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 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 // Call the constructor with a0, a1, and a3 unmodified. | 1136 // Call the constructor with a0, a1, and a3 unmodified. |
1137 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET); | 1137 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET); |
1138 } | 1138 } |
1139 | 1139 |
1140 | 1140 |
1141 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { | 1141 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { |
1142 // Initialize register file register and dispatch table register. | 1142 // Initialize register file register and dispatch table register. |
1143 __ li(kInterpreterDispatchTableRegister, | 1143 __ li(kInterpreterDispatchTableRegister, |
1144 Operand(ExternalReference::interpreter_dispatch_table_address( | 1144 Operand(ExternalReference::interpreter_dispatch_table_address( |
1145 masm->isolate()))); | 1145 masm->isolate()))); |
1146 __ Addu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, | |
1147 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); | |
1148 | 1146 |
1149 // Get the context from the frame. | 1147 // Get the context from the frame. |
1150 __ lw(kContextRegister, | 1148 __ lw(kContextRegister, |
1151 MemOperand(kInterpreterRegisterFileRegister, | 1149 MemOperand(kInterpreterRegisterFileRegister, |
1152 InterpreterFrameConstants::kContextFromRegisterPointer)); | 1150 InterpreterFrameConstants::kContextFromRegisterPointer)); |
1153 | 1151 |
1154 // Get the bytecode array pointer from the frame. | 1152 // Get the bytecode array pointer from the frame. |
1155 __ lw(a1, | 1153 __ lw(a1, |
1156 MemOperand(kInterpreterRegisterFileRegister, | 1154 MemOperand(kInterpreterRegisterFileRegister, |
1157 InterpreterFrameConstants::kFunctionFromRegisterPointer)); | 1155 InterpreterFrameConstants::kFunctionFromRegisterPointer)); |
(...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2764 } | 2762 } |
2765 } | 2763 } |
2766 | 2764 |
2767 | 2765 |
2768 #undef __ | 2766 #undef __ |
2769 | 2767 |
2770 } // namespace internal | 2768 } // namespace internal |
2771 } // namespace v8 | 2769 } // namespace v8 |
2772 | 2770 |
2773 #endif // V8_TARGET_ARCH_MIPS | 2771 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |