| 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 3966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3977 Nop(kNoCodeAgeSequenceLength - Assembler::kShortCallInstructionLength); | 3977 Nop(kNoCodeAgeSequenceLength - Assembler::kShortCallInstructionLength); |
| 3978 } else { | 3978 } else { |
| 3979 pushq(rbp); // Caller's frame pointer. | 3979 pushq(rbp); // Caller's frame pointer. |
| 3980 movp(rbp, rsp); | 3980 movp(rbp, rsp); |
| 3981 Push(rsi); // Callee's context. | 3981 Push(rsi); // Callee's context. |
| 3982 Push(rdi); // Callee's JS function. | 3982 Push(rdi); // Callee's JS function. |
| 3983 } | 3983 } |
| 3984 } | 3984 } |
| 3985 | 3985 |
| 3986 | 3986 |
| 3987 void MacroAssembler::EnterFrame(StackFrame::Type type, |
| 3988 bool load_constant_pool_pointer_reg) { |
| 3989 // Out-of-line constant pool not implemented on x64. |
| 3990 UNREACHABLE(); |
| 3991 } |
| 3992 |
| 3993 |
| 3987 void MacroAssembler::EnterFrame(StackFrame::Type type) { | 3994 void MacroAssembler::EnterFrame(StackFrame::Type type) { |
| 3988 pushq(rbp); | 3995 pushq(rbp); |
| 3989 movp(rbp, rsp); | 3996 movp(rbp, rsp); |
| 3990 Push(rsi); // Context. | 3997 Push(rsi); // Context. |
| 3991 Push(Smi::FromInt(type)); | 3998 Push(Smi::FromInt(type)); |
| 3992 Move(kScratchRegister, CodeObject(), RelocInfo::EMBEDDED_OBJECT); | 3999 Move(kScratchRegister, CodeObject(), RelocInfo::EMBEDDED_OBJECT); |
| 3993 Push(kScratchRegister); | 4000 Push(kScratchRegister); |
| 3994 if (emit_debug_code()) { | 4001 if (emit_debug_code()) { |
| 3995 Move(kScratchRegister, | 4002 Move(kScratchRegister, |
| 3996 isolate()->factory()->undefined_value(), | 4003 isolate()->factory()->undefined_value(), |
| (...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5335 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift)); | 5342 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift)); |
| 5336 movl(rax, dividend); | 5343 movl(rax, dividend); |
| 5337 shrl(rax, Immediate(31)); | 5344 shrl(rax, Immediate(31)); |
| 5338 addl(rdx, rax); | 5345 addl(rdx, rax); |
| 5339 } | 5346 } |
| 5340 | 5347 |
| 5341 | 5348 |
| 5342 } } // namespace v8::internal | 5349 } } // namespace v8::internal |
| 5343 | 5350 |
| 5344 #endif // V8_TARGET_ARCH_X64 | 5351 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |