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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 __ bind(&loop_check); | 1132 __ bind(&loop_check); |
1133 __ Branch(&loop_header, gt, a2, Operand(t0)); | 1133 __ Branch(&loop_header, gt, a2, Operand(t0)); |
1134 | 1134 |
1135 // Call the constructor with a0, a1, and a3 unmodified. | 1135 // Call the constructor with a0, a1, and a3 unmodified. |
1136 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET); | 1136 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET); |
1137 } | 1137 } |
1138 | 1138 |
1139 | 1139 |
1140 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { | 1140 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { |
1141 // Initialize register file register and dispatch table register. | 1141 // Initialize register file register and dispatch table register. |
| 1142 __ Addu(kInterpreterRegisterFileRegister, fp, |
| 1143 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
1142 __ li(kInterpreterDispatchTableRegister, | 1144 __ li(kInterpreterDispatchTableRegister, |
1143 Operand(ExternalReference::interpreter_dispatch_table_address( | 1145 Operand(ExternalReference::interpreter_dispatch_table_address( |
1144 masm->isolate()))); | 1146 masm->isolate()))); |
1145 | 1147 |
1146 // Get the context from the frame. | 1148 // Get the context from the frame. |
1147 __ lw(kContextRegister, | 1149 __ lw(kContextRegister, |
1148 MemOperand(kInterpreterRegisterFileRegister, | 1150 MemOperand(kInterpreterRegisterFileRegister, |
1149 InterpreterFrameConstants::kContextFromRegisterPointer)); | 1151 InterpreterFrameConstants::kContextFromRegisterPointer)); |
1150 | 1152 |
1151 // Get the bytecode array pointer from the frame. | 1153 // Get the bytecode array pointer from the frame. |
(...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2759 } | 2761 } |
2760 } | 2762 } |
2761 | 2763 |
2762 | 2764 |
2763 #undef __ | 2765 #undef __ |
2764 | 2766 |
2765 } // namespace internal | 2767 } // namespace internal |
2766 } // namespace v8 | 2768 } // namespace v8 |
2767 | 2769 |
2768 #endif // V8_TARGET_ARCH_MIPS | 2770 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |