| 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 4195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4206 pushq(rbp); // Caller's frame pointer. | 4206 pushq(rbp); // Caller's frame pointer. |
| 4207 movp(rbp, rsp); | 4207 movp(rbp, rsp); |
| 4208 Push(rsi); // Callee's context. | 4208 Push(rsi); // Callee's context. |
| 4209 Push(rdi); // Callee's JS function. | 4209 Push(rdi); // Callee's JS function. |
| 4210 } | 4210 } |
| 4211 } | 4211 } |
| 4212 | 4212 |
| 4213 | 4213 |
| 4214 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 4214 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
| 4215 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); | 4215 movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
| 4216 movp(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); | 4216 movp(vector, FieldOperand(vector, JSFunction::kLiteralsOffset)); |
| 4217 movp(vector, FieldOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); | 4217 movp(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset)); |
| 4218 } | 4218 } |
| 4219 | 4219 |
| 4220 | 4220 |
| 4221 void MacroAssembler::EnterFrame(StackFrame::Type type, | 4221 void MacroAssembler::EnterFrame(StackFrame::Type type, |
| 4222 bool load_constant_pool_pointer_reg) { | 4222 bool load_constant_pool_pointer_reg) { |
| 4223 // Out-of-line constant pool not implemented on x64. | 4223 // Out-of-line constant pool not implemented on x64. |
| 4224 UNREACHABLE(); | 4224 UNREACHABLE(); |
| 4225 } | 4225 } |
| 4226 | 4226 |
| 4227 | 4227 |
| (...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5457 movl(rax, dividend); | 5457 movl(rax, dividend); |
| 5458 shrl(rax, Immediate(31)); | 5458 shrl(rax, Immediate(31)); |
| 5459 addl(rdx, rax); | 5459 addl(rdx, rax); |
| 5460 } | 5460 } |
| 5461 | 5461 |
| 5462 | 5462 |
| 5463 } // namespace internal | 5463 } // namespace internal |
| 5464 } // namespace v8 | 5464 } // namespace v8 |
| 5465 | 5465 |
| 5466 #endif // V8_TARGET_ARCH_X64 | 5466 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |