| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|