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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/division-by-constant.h" | 8 #include "src/base/division-by-constant.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 4070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4081 if (FLAG_native_code_counters && counter->Enabled()) { | 4081 if (FLAG_native_code_counters && counter->Enabled()) { |
4082 Operand counter_operand = ExternalOperand(ExternalReference(counter)); | 4082 Operand counter_operand = ExternalOperand(ExternalReference(counter)); |
4083 if (value == 1) { | 4083 if (value == 1) { |
4084 decl(counter_operand); | 4084 decl(counter_operand); |
4085 } else { | 4085 } else { |
4086 subl(counter_operand, Immediate(value)); | 4086 subl(counter_operand, Immediate(value)); |
4087 } | 4087 } |
4088 } | 4088 } |
4089 } | 4089 } |
4090 | 4090 |
| 4091 void MacroAssembler::DebugBreak() { |
| 4092 Call(isolate()->builtins()->HandleDebuggerStatement(), |
| 4093 RelocInfo::DEBUGGER_STATEMENT); |
| 4094 } |
| 4095 |
4091 void MacroAssembler::MaybeDropFrames() { | 4096 void MacroAssembler::MaybeDropFrames() { |
4092 // Check whether we need to drop frames to restart a function on the stack. | 4097 // Check whether we need to drop frames to restart a function on the stack. |
4093 ExternalReference restart_fp = | 4098 ExternalReference restart_fp = |
4094 ExternalReference::debug_restart_fp_address(isolate()); | 4099 ExternalReference::debug_restart_fp_address(isolate()); |
4095 Load(rbx, restart_fp); | 4100 Load(rbx, restart_fp); |
4096 testp(rbx, rbx); | 4101 testp(rbx, rbx); |
4097 j(not_zero, isolate()->builtins()->FrameDropperTrampoline(), | 4102 j(not_zero, isolate()->builtins()->FrameDropperTrampoline(), |
4098 RelocInfo::CODE_TARGET); | 4103 RelocInfo::CODE_TARGET); |
4099 } | 4104 } |
4100 | 4105 |
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5302 movl(rax, dividend); | 5307 movl(rax, dividend); |
5303 shrl(rax, Immediate(31)); | 5308 shrl(rax, Immediate(31)); |
5304 addl(rdx, rax); | 5309 addl(rdx, rax); |
5305 } | 5310 } |
5306 | 5311 |
5307 | 5312 |
5308 } // namespace internal | 5313 } // namespace internal |
5309 } // namespace v8 | 5314 } // namespace v8 |
5310 | 5315 |
5311 #endif // V8_TARGET_ARCH_X64 | 5316 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |