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

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

Issue 1232803002: Debugger: refactor reloc info. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix mips 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/ppc/macro-assembler-ppc.cc ('k') | src/x87/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 3540 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, ExternalReference(Runtime::kDebugBreak, isolate()));
3559 CEntryStub ces(isolate(), 1); 3559 CEntryStub ces(isolate(), 1);
3560 DCHECK(AllowThisStubCall(&ces)); 3560 DCHECK(AllowThisStubCall(&ces));
3561 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); 3561 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
3562 } 3562 }
3563 3563
3564 3564
3565 void MacroAssembler::InvokeCode(Register code, 3565 void MacroAssembler::InvokeCode(Register code,
3566 const ParameterCount& expected, 3566 const ParameterCount& expected,
3567 const ParameterCount& actual, 3567 const ParameterCount& actual,
3568 InvokeFlag flag, 3568 InvokeFlag flag,
3569 const CallWrapper& call_wrapper) { 3569 const CallWrapper& call_wrapper) {
3570 // You can't call a function without a valid frame. 3570 // You can't call a function without a valid frame.
3571 DCHECK(flag == JUMP_FUNCTION || has_frame()); 3571 DCHECK(flag == JUMP_FUNCTION || has_frame());
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
5090 movl(rax, dividend); 5090 movl(rax, dividend);
5091 shrl(rax, Immediate(31)); 5091 shrl(rax, Immediate(31));
5092 addl(rdx, rax); 5092 addl(rdx, rax);
5093 } 5093 }
5094 5094
5095 5095
5096 } // namespace internal 5096 } // namespace internal
5097 } // namespace v8 5097 } // namespace v8
5098 5098
5099 #endif // V8_TARGET_ARCH_X64 5099 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ppc/macro-assembler-ppc.cc ('k') | src/x87/assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698