OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { | 1051 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { |
1052 // Initialize register file register and dispatch table register. | 1052 // Initialize register file register and dispatch table register. |
1053 __ addi(kInterpreterRegisterFileRegister, fp, | 1053 __ addi(kInterpreterRegisterFileRegister, fp, |
1054 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1054 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
1055 __ LoadRoot(kInterpreterDispatchTableRegister, | 1055 __ LoadRoot(kInterpreterDispatchTableRegister, |
1056 Heap::kInterpreterTableRootIndex); | 1056 Heap::kInterpreterTableRootIndex); |
1057 __ addi(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, | 1057 __ addi(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, |
1058 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); | 1058 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
1059 | 1059 |
1060 // Get the context from the frame. | 1060 // Get the context from the frame. |
1061 // TODO(rmcilroy): Update interpreter frame to expect current context at the | |
1062 // context slot instead of the function context. | |
1063 __ LoadP(kContextRegister, | 1061 __ LoadP(kContextRegister, |
1064 MemOperand(kInterpreterRegisterFileRegister, | 1062 MemOperand(kInterpreterRegisterFileRegister, |
1065 InterpreterFrameConstants::kContextFromRegisterPointer)); | 1063 InterpreterFrameConstants::kContextFromRegisterPointer)); |
1066 | 1064 |
1067 // Get the bytecode array pointer from the frame. | 1065 // Get the bytecode array pointer from the frame. |
1068 __ LoadP(r4, | 1066 __ LoadP(r4, |
1069 MemOperand(kInterpreterRegisterFileRegister, | 1067 MemOperand(kInterpreterRegisterFileRegister, |
1070 InterpreterFrameConstants::kFunctionFromRegisterPointer)); | 1068 InterpreterFrameConstants::kFunctionFromRegisterPointer)); |
1071 __ LoadP(r4, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); | 1069 __ LoadP(r4, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); |
1072 __ LoadP(kInterpreterBytecodeArrayRegister, | 1070 __ LoadP(kInterpreterBytecodeArrayRegister, |
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2538 __ bkpt(0); | 2536 __ bkpt(0); |
2539 } | 2537 } |
2540 } | 2538 } |
2541 | 2539 |
2542 | 2540 |
2543 #undef __ | 2541 #undef __ |
2544 } // namespace internal | 2542 } // namespace internal |
2545 } // namespace v8 | 2543 } // namespace v8 |
2546 | 2544 |
2547 #endif // V8_TARGET_ARCH_PPC | 2545 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |