| 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 3050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3061 #endif | 3061 #endif |
| 3062 LoadAddress(kScratchRegister, ext); | 3062 LoadAddress(kScratchRegister, ext); |
| 3063 call(kScratchRegister); | 3063 call(kScratchRegister); |
| 3064 #ifdef DEBUG | 3064 #ifdef DEBUG |
| 3065 CHECK_EQ(end_position, pc_offset()); | 3065 CHECK_EQ(end_position, pc_offset()); |
| 3066 #endif | 3066 #endif |
| 3067 } | 3067 } |
| 3068 | 3068 |
| 3069 | 3069 |
| 3070 void MacroAssembler::Call(const Operand& op) { | 3070 void MacroAssembler::Call(const Operand& op) { |
| 3071 if (kPointerSize == kInt64Size) { | 3071 if (kPointerSize == kInt64Size && !CpuFeatures::IsSupported(ATOM)) { |
| 3072 call(op); | 3072 call(op); |
| 3073 } else { | 3073 } else { |
| 3074 movp(kScratchRegister, op); | 3074 movp(kScratchRegister, op); |
| 3075 call(kScratchRegister); | 3075 call(kScratchRegister); |
| 3076 } | 3076 } |
| 3077 } | 3077 } |
| 3078 | 3078 |
| 3079 | 3079 |
| 3080 void MacroAssembler::Call(Address destination, RelocInfo::Mode rmode) { | 3080 void MacroAssembler::Call(Address destination, RelocInfo::Mode rmode) { |
| 3081 #ifdef DEBUG | 3081 #ifdef DEBUG |
| (...skipping 2321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5403 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift)); | 5403 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift)); |
| 5404 movl(rax, dividend); | 5404 movl(rax, dividend); |
| 5405 shrl(rax, Immediate(31)); | 5405 shrl(rax, Immediate(31)); |
| 5406 addl(rdx, rax); | 5406 addl(rdx, rax); |
| 5407 } | 5407 } |
| 5408 | 5408 |
| 5409 | 5409 |
| 5410 } } // namespace v8::internal | 5410 } } // namespace v8::internal |
| 5411 | 5411 |
| 5412 #endif // V8_TARGET_ARCH_X64 | 5412 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |