Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 529773002: Minor-key-ify four stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix some compilation issues Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 testp(scratch, Immediate(StoreBuffer::kStoreBufferOverflowBit)); 228 testp(scratch, Immediate(StoreBuffer::kStoreBufferOverflowBit));
229 if (and_then == kReturnAtEnd) { 229 if (and_then == kReturnAtEnd) {
230 Label buffer_overflowed; 230 Label buffer_overflowed;
231 j(not_equal, &buffer_overflowed, Label::kNear); 231 j(not_equal, &buffer_overflowed, Label::kNear);
232 ret(0); 232 ret(0);
233 bind(&buffer_overflowed); 233 bind(&buffer_overflowed);
234 } else { 234 } else {
235 DCHECK(and_then == kFallThroughAtEnd); 235 DCHECK(and_then == kFallThroughAtEnd);
236 j(equal, &done, Label::kNear); 236 j(equal, &done, Label::kNear);
237 } 237 }
238 StoreBufferOverflowStub store_buffer_overflow = 238 StoreBufferOverflowStub store_buffer_overflow(isolate(), save_fp);
239 StoreBufferOverflowStub(isolate(), save_fp);
240 CallStub(&store_buffer_overflow); 239 CallStub(&store_buffer_overflow);
241 if (and_then == kReturnAtEnd) { 240 if (and_then == kReturnAtEnd) {
242 ret(0); 241 ret(0);
243 } else { 242 } else {
244 DCHECK(and_then == kFallThroughAtEnd); 243 DCHECK(and_then == kFallThroughAtEnd);
245 bind(&done); 244 bind(&done);
246 } 245 }
247 } 246 }
248 247
249 248
(...skipping 5126 matching lines...) Expand 10 before | Expand all | Expand 10 after
5376 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift())); 5375 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift()));
5377 movl(rax, dividend); 5376 movl(rax, dividend);
5378 shrl(rax, Immediate(31)); 5377 shrl(rax, Immediate(31));
5379 addl(rdx, rax); 5378 addl(rdx, rax);
5380 } 5379 }
5381 5380
5382 5381
5383 } } // namespace v8::internal 5382 } } // namespace v8::internal
5384 5383
5385 #endif // V8_TARGET_ARCH_X64 5384 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698