| 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 4071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 4091 |
| 4092 void MacroAssembler::DebugBreak() { | |
| 4093 Set(rax, 0); // No arguments. | |
| 4094 LoadAddress(rbx, | |
| 4095 ExternalReference(Runtime::kHandleDebuggerStatement, isolate())); | |
| 4096 CEntryStub ces(isolate(), 1); | |
| 4097 DCHECK(AllowThisStubCall(&ces)); | |
| 4098 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); | |
| 4099 } | |
| 4100 | |
| 4101 void MacroAssembler::PrepareForTailCall(const ParameterCount& callee_args_count, | 4092 void MacroAssembler::PrepareForTailCall(const ParameterCount& callee_args_count, |
| 4102 Register caller_args_count_reg, | 4093 Register caller_args_count_reg, |
| 4103 Register scratch0, Register scratch1, | 4094 Register scratch0, Register scratch1, |
| 4104 ReturnAddressState ra_state) { | 4095 ReturnAddressState ra_state) { |
| 4105 #if DEBUG | 4096 #if DEBUG |
| 4106 if (callee_args_count.is_reg()) { | 4097 if (callee_args_count.is_reg()) { |
| 4107 DCHECK(!AreAliased(callee_args_count.reg(), caller_args_count_reg, scratch0, | 4098 DCHECK(!AreAliased(callee_args_count.reg(), caller_args_count_reg, scratch0, |
| 4108 scratch1)); | 4099 scratch1)); |
| 4109 } else { | 4100 } else { |
| 4110 DCHECK(!AreAliased(caller_args_count_reg, scratch0, scratch1)); | 4101 DCHECK(!AreAliased(caller_args_count_reg, scratch0, scratch1)); |
| (...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5302 movl(rax, dividend); | 5293 movl(rax, dividend); |
| 5303 shrl(rax, Immediate(31)); | 5294 shrl(rax, Immediate(31)); |
| 5304 addl(rdx, rax); | 5295 addl(rdx, rax); |
| 5305 } | 5296 } |
| 5306 | 5297 |
| 5307 | 5298 |
| 5308 } // namespace internal | 5299 } // namespace internal |
| 5309 } // namespace v8 | 5300 } // namespace v8 |
| 5310 | 5301 |
| 5311 #endif // V8_TARGET_ARCH_X64 | 5302 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |