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 3043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3054 #endif | 3054 #endif |
3055 LoadAddress(kScratchRegister, ext); | 3055 LoadAddress(kScratchRegister, ext); |
3056 call(kScratchRegister); | 3056 call(kScratchRegister); |
3057 #ifdef DEBUG | 3057 #ifdef DEBUG |
3058 CHECK_EQ(end_position, pc_offset()); | 3058 CHECK_EQ(end_position, pc_offset()); |
3059 #endif | 3059 #endif |
3060 } | 3060 } |
3061 | 3061 |
3062 | 3062 |
3063 void MacroAssembler::Call(const Operand& op) { | 3063 void MacroAssembler::Call(const Operand& op) { |
3064 if (kPointerSize == kInt64Size) { | 3064 if (kPointerSize == kInt64Size && !FLAG_intel_atom) { |
3065 call(op); | 3065 call(op); |
3066 } else { | 3066 } else { |
3067 movp(kScratchRegister, op); | 3067 movp(kScratchRegister, op); |
3068 call(kScratchRegister); | 3068 call(kScratchRegister); |
3069 } | 3069 } |
3070 } | 3070 } |
3071 | 3071 |
3072 | 3072 |
3073 void MacroAssembler::Call(Address destination, RelocInfo::Mode rmode) { | 3073 void MacroAssembler::Call(Address destination, RelocInfo::Mode rmode) { |
3074 #ifdef DEBUG | 3074 #ifdef DEBUG |
(...skipping 2321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5396 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift)); | 5396 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift)); |
5397 movl(rax, dividend); | 5397 movl(rax, dividend); |
5398 shrl(rax, Immediate(31)); | 5398 shrl(rax, Immediate(31)); |
5399 addl(rdx, rax); | 5399 addl(rdx, rax); |
5400 } | 5400 } |
5401 | 5401 |
5402 | 5402 |
5403 } } // namespace v8::internal | 5403 } } // namespace v8::internal |
5404 | 5404 |
5405 #endif // V8_TARGET_ARCH_X64 | 5405 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |