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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 | 1128 |
1129 | 1129 |
1130 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { | 1130 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { |
1131 // Initialize register file register and dispatch table register. | 1131 // Initialize register file register and dispatch table register. |
1132 __ Addu(kInterpreterRegisterFileRegister, fp, | 1132 __ Addu(kInterpreterRegisterFileRegister, fp, |
1133 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1133 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
1134 __ li(kInterpreterDispatchTableRegister, | 1134 __ li(kInterpreterDispatchTableRegister, |
1135 Operand(ExternalReference::interpreter_dispatch_table_address( | 1135 Operand(ExternalReference::interpreter_dispatch_table_address( |
1136 masm->isolate()))); | 1136 masm->isolate()))); |
1137 | 1137 |
1138 // Get the context from the frame. | |
1139 __ lw(kContextRegister, | |
1140 MemOperand(kInterpreterRegisterFileRegister, | |
1141 InterpreterFrameConstants::kContextFromRegisterPointer)); | |
1142 | |
1143 // Get the bytecode array pointer from the frame. | 1138 // Get the bytecode array pointer from the frame. |
1144 __ lw( | 1139 __ lw( |
1145 kInterpreterBytecodeArrayRegister, | 1140 kInterpreterBytecodeArrayRegister, |
1146 MemOperand(kInterpreterRegisterFileRegister, | 1141 MemOperand(kInterpreterRegisterFileRegister, |
1147 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); | 1142 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); |
1148 | 1143 |
1149 if (FLAG_debug_code) { | 1144 if (FLAG_debug_code) { |
1150 // Check function data field is actually a BytecodeArray object. | 1145 // Check function data field is actually a BytecodeArray object. |
1151 __ SmiTst(kInterpreterBytecodeArrayRegister, at); | 1146 __ SmiTst(kInterpreterBytecodeArrayRegister, at); |
1152 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, at, | 1147 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, at, |
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2704 } | 2699 } |
2705 } | 2700 } |
2706 | 2701 |
2707 | 2702 |
2708 #undef __ | 2703 #undef __ |
2709 | 2704 |
2710 } // namespace internal | 2705 } // namespace internal |
2711 } // namespace v8 | 2706 } // namespace v8 |
2712 | 2707 |
2713 #endif // V8_TARGET_ARCH_MIPS | 2708 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |