| 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 4383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4394 pushq(rbp); // Caller's frame pointer. | 4394 pushq(rbp); // Caller's frame pointer. |
| 4395 movp(rbp, rsp); | 4395 movp(rbp, rsp); |
| 4396 Push(rsi); // Callee's context. | 4396 Push(rsi); // Callee's context. |
| 4397 Push(rdi); // Callee's JS function. | 4397 Push(rdi); // Callee's JS function. |
| 4398 } | 4398 } |
| 4399 } | 4399 } |
| 4400 | 4400 |
| 4401 | 4401 |
| 4402 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 4402 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
| 4403 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); | 4403 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
| 4404 movp(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); | 4404 movp(vector, FieldOperand(vector, JSFunction::kLiteralsOffset)); |
| 4405 movp(vector, FieldOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); | 4405 movp(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset)); |
| 4406 } | 4406 } |
| 4407 | 4407 |
| 4408 | 4408 |
| 4409 void MacroAssembler::EnterFrame(StackFrame::Type type, | 4409 void MacroAssembler::EnterFrame(StackFrame::Type type, |
| 4410 bool load_constant_pool_pointer_reg) { | 4410 bool load_constant_pool_pointer_reg) { |
| 4411 // Out-of-line constant pool not implemented on x64. | 4411 // Out-of-line constant pool not implemented on x64. |
| 4412 UNREACHABLE(); | 4412 UNREACHABLE(); |
| 4413 } | 4413 } |
| 4414 | 4414 |
| 4415 | 4415 |
| (...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5721 movl(rax, dividend); | 5721 movl(rax, dividend); |
| 5722 shrl(rax, Immediate(31)); | 5722 shrl(rax, Immediate(31)); |
| 5723 addl(rdx, rax); | 5723 addl(rdx, rax); |
| 5724 } | 5724 } |
| 5725 | 5725 |
| 5726 | 5726 |
| 5727 } // namespace internal | 5727 } // namespace internal |
| 5728 } // namespace v8 | 5728 } // namespace v8 |
| 5729 | 5729 |
| 5730 #endif // V8_TARGET_ARCH_X64 | 5730 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |