| 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 3537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |