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 3616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3627 Nop(kNoCodeAgeSequenceLength - Assembler::kShortCallInstructionLength); | 3627 Nop(kNoCodeAgeSequenceLength - Assembler::kShortCallInstructionLength); |
3628 } else { | 3628 } else { |
3629 pushq(rbp); // Caller's frame pointer. | 3629 pushq(rbp); // Caller's frame pointer. |
3630 movp(rbp, rsp); | 3630 movp(rbp, rsp); |
3631 Push(rsi); // Callee's context. | 3631 Push(rsi); // Callee's context. |
3632 Push(rdi); // Callee's JS function. | 3632 Push(rdi); // Callee's JS function. |
3633 } | 3633 } |
3634 } | 3634 } |
3635 | 3635 |
3636 | 3636 |
| 3637 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
| 3638 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
| 3639 movp(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); |
| 3640 movp(vector, FieldOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); |
| 3641 } |
| 3642 |
| 3643 |
3637 void MacroAssembler::EnterFrame(StackFrame::Type type, | 3644 void MacroAssembler::EnterFrame(StackFrame::Type type, |
3638 bool load_constant_pool_pointer_reg) { | 3645 bool load_constant_pool_pointer_reg) { |
3639 // Out-of-line constant pool not implemented on x64. | 3646 // Out-of-line constant pool not implemented on x64. |
3640 UNREACHABLE(); | 3647 UNREACHABLE(); |
3641 } | 3648 } |
3642 | 3649 |
3643 | 3650 |
3644 void MacroAssembler::EnterFrame(StackFrame::Type type) { | 3651 void MacroAssembler::EnterFrame(StackFrame::Type type) { |
3645 pushq(rbp); | 3652 pushq(rbp); |
3646 movp(rbp, rsp); | 3653 movp(rbp, rsp); |
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4983 movl(rax, dividend); | 4990 movl(rax, dividend); |
4984 shrl(rax, Immediate(31)); | 4991 shrl(rax, Immediate(31)); |
4985 addl(rdx, rax); | 4992 addl(rdx, rax); |
4986 } | 4993 } |
4987 | 4994 |
4988 | 4995 |
4989 } // namespace internal | 4996 } // namespace internal |
4990 } // namespace v8 | 4997 } // namespace v8 |
4991 | 4998 |
4992 #endif // V8_TARGET_ARCH_X64 | 4999 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |