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 4311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4322 pushq(rbp); // Caller's frame pointer. | 4322 pushq(rbp); // Caller's frame pointer. |
4323 movp(rbp, rsp); | 4323 movp(rbp, rsp); |
4324 Push(rsi); // Callee's context. | 4324 Push(rsi); // Callee's context. |
4325 Push(rdi); // Callee's JS function. | 4325 Push(rdi); // Callee's JS function. |
4326 } | 4326 } |
4327 } | 4327 } |
4328 | 4328 |
4329 | 4329 |
4330 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 4330 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
4331 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); | 4331 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
4332 movp(vector, FieldOperand(vector, JSFunction::kLiteralsOffset)); | 4332 movp(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); |
4333 movp(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | 4333 movp(vector, FieldOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); |
4334 } | 4334 } |
4335 | 4335 |
4336 | 4336 |
4337 void MacroAssembler::EnterFrame(StackFrame::Type type, | 4337 void MacroAssembler::EnterFrame(StackFrame::Type type, |
4338 bool load_constant_pool_pointer_reg) { | 4338 bool load_constant_pool_pointer_reg) { |
4339 // Out-of-line constant pool not implemented on x64. | 4339 // Out-of-line constant pool not implemented on x64. |
4340 UNREACHABLE(); | 4340 UNREACHABLE(); |
4341 } | 4341 } |
4342 | 4342 |
4343 | 4343 |
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5595 movl(rax, dividend); | 5595 movl(rax, dividend); |
5596 shrl(rax, Immediate(31)); | 5596 shrl(rax, Immediate(31)); |
5597 addl(rdx, rax); | 5597 addl(rdx, rax); |
5598 } | 5598 } |
5599 | 5599 |
5600 | 5600 |
5601 } // namespace internal | 5601 } // namespace internal |
5602 } // namespace v8 | 5602 } // namespace v8 |
5603 | 5603 |
5604 #endif // V8_TARGET_ARCH_X64 | 5604 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |