OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { | 1021 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { |
1022 // Initialize register file register and dispatch table register. | 1022 // Initialize register file register and dispatch table register. |
1023 __ Add(kInterpreterRegisterFileRegister, fp, | 1023 __ Add(kInterpreterRegisterFileRegister, fp, |
1024 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1024 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
1025 __ LoadRoot(kInterpreterDispatchTableRegister, | 1025 __ LoadRoot(kInterpreterDispatchTableRegister, |
1026 Heap::kInterpreterTableRootIndex); | 1026 Heap::kInterpreterTableRootIndex); |
1027 __ Add(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, | 1027 __ Add(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, |
1028 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); | 1028 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
1029 | 1029 |
1030 // Get the context from the frame. | 1030 // Get the context from the frame. |
1031 // TODO(rmcilroy): Update interpreter frame to expect current context at the | |
1032 // context slot instead of the function context. | |
1033 __ Ldr(kContextRegister, | 1031 __ Ldr(kContextRegister, |
1034 MemOperand(kInterpreterRegisterFileRegister, | 1032 MemOperand(kInterpreterRegisterFileRegister, |
1035 InterpreterFrameConstants::kContextFromRegisterPointer)); | 1033 InterpreterFrameConstants::kContextFromRegisterPointer)); |
1036 | 1034 |
1037 // Get the bytecode array pointer from the frame. | 1035 // Get the bytecode array pointer from the frame. |
1038 __ Ldr(x1, | 1036 __ Ldr(x1, |
1039 MemOperand(kInterpreterRegisterFileRegister, | 1037 MemOperand(kInterpreterRegisterFileRegister, |
1040 InterpreterFrameConstants::kFunctionFromRegisterPointer)); | 1038 InterpreterFrameConstants::kFunctionFromRegisterPointer)); |
1041 __ Ldr(x1, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset)); | 1039 __ Ldr(x1, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset)); |
1042 __ Ldr(kInterpreterBytecodeArrayRegister, | 1040 __ Ldr(kInterpreterBytecodeArrayRegister, |
(...skipping 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2616 } | 2614 } |
2617 } | 2615 } |
2618 | 2616 |
2619 | 2617 |
2620 #undef __ | 2618 #undef __ |
2621 | 2619 |
2622 } // namespace internal | 2620 } // namespace internal |
2623 } // namespace v8 | 2621 } // namespace v8 |
2624 | 2622 |
2625 #endif // V8_TARGET_ARCH_ARM | 2623 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |