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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 | 1117 |
1118 | 1118 |
1119 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { | 1119 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { |
1120 // Initialize register file register and dispatch table register. | 1120 // Initialize register file register and dispatch table register. |
1121 __ Daddu(kInterpreterRegisterFileRegister, fp, | 1121 __ Daddu(kInterpreterRegisterFileRegister, fp, |
1122 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1122 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
1123 __ li(kInterpreterDispatchTableRegister, | 1123 __ li(kInterpreterDispatchTableRegister, |
1124 Operand(ExternalReference::interpreter_dispatch_table_address( | 1124 Operand(ExternalReference::interpreter_dispatch_table_address( |
1125 masm->isolate()))); | 1125 masm->isolate()))); |
1126 | 1126 |
1127 // Get the context from the frame. | |
1128 __ ld(kContextRegister, | |
1129 MemOperand(kInterpreterRegisterFileRegister, | |
1130 InterpreterFrameConstants::kContextFromRegisterPointer)); | |
1131 | |
1132 // Get the bytecode array pointer from the frame. | 1127 // Get the bytecode array pointer from the frame. |
1133 __ ld( | 1128 __ ld( |
1134 kInterpreterBytecodeArrayRegister, | 1129 kInterpreterBytecodeArrayRegister, |
1135 MemOperand(kInterpreterRegisterFileRegister, | 1130 MemOperand(kInterpreterRegisterFileRegister, |
1136 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); | 1131 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); |
1137 | 1132 |
1138 if (FLAG_debug_code) { | 1133 if (FLAG_debug_code) { |
1139 // Check function data field is actually a BytecodeArray object. | 1134 // Check function data field is actually a BytecodeArray object. |
1140 __ SmiTst(kInterpreterBytecodeArrayRegister, at); | 1135 __ SmiTst(kInterpreterBytecodeArrayRegister, at); |
1141 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, at, | 1136 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, at, |
(...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2695 } | 2690 } |
2696 } | 2691 } |
2697 | 2692 |
2698 | 2693 |
2699 #undef __ | 2694 #undef __ |
2700 | 2695 |
2701 } // namespace internal | 2696 } // namespace internal |
2702 } // namespace v8 | 2697 } // namespace v8 |
2703 | 2698 |
2704 #endif // V8_TARGET_ARCH_MIPS64 | 2699 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |