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

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

Issue 1248303002: Unify runtime-style IC functions with Runtime intrinsics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make mips work Created 5 years, 5 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
« no previous file with comments | « src/x64/debug-x64.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | 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/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 3537 matching lines...) Expand 10 before | Expand all | Expand 10 after
3548 decl(counter_operand); 3548 decl(counter_operand);
3549 } else { 3549 } else {
3550 subl(counter_operand, Immediate(value)); 3550 subl(counter_operand, Immediate(value));
3551 } 3551 }
3552 } 3552 }
3553 } 3553 }
3554 3554
3555 3555
3556 void MacroAssembler::DebugBreak() { 3556 void MacroAssembler::DebugBreak() {
3557 Set(rax, 0); // No arguments. 3557 Set(rax, 0); // No arguments.
3558 LoadAddress(rbx, ExternalReference(Runtime::kDebugBreak, isolate())); 3558 LoadAddress(rbx,
3559 ExternalReference(Runtime::kHandleDebuggerStatement, isolate()));
3559 CEntryStub ces(isolate(), 1); 3560 CEntryStub ces(isolate(), 1);
3560 DCHECK(AllowThisStubCall(&ces)); 3561 DCHECK(AllowThisStubCall(&ces));
3561 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); 3562 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
3562 } 3563 }
3563 3564
3564 3565
3565 void MacroAssembler::InvokeCode(Register code, 3566 void MacroAssembler::InvokeCode(Register code,
3566 const ParameterCount& expected, 3567 const ParameterCount& expected,
3567 const ParameterCount& actual, 3568 const ParameterCount& actual,
3568 InvokeFlag flag, 3569 InvokeFlag flag,
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
5085 movl(rax, dividend); 5086 movl(rax, dividend);
5086 shrl(rax, Immediate(31)); 5087 shrl(rax, Immediate(31));
5087 addl(rdx, rax); 5088 addl(rdx, rax);
5088 } 5089 }
5089 5090
5090 5091
5091 } // namespace internal 5092 } // namespace internal
5092 } // namespace v8 5093 } // namespace v8
5093 5094
5094 #endif // V8_TARGET_ARCH_X64 5095 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/debug-x64.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698