| 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 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 __ Addu(kInterpreterRegisterFileRegister, fp, | 1053 __ Addu(kInterpreterRegisterFileRegister, fp, |
| 1054 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1054 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
| 1055 __ LoadRoot(kInterpreterDispatchTableRegister, | 1055 __ LoadRoot(kInterpreterDispatchTableRegister, |
| 1056 Heap::kInterpreterTableRootIndex); | 1056 Heap::kInterpreterTableRootIndex); |
| 1057 __ Addu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, | 1057 __ Addu(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 __ lw(kContextRegister, | 1061 __ lw(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 __ lw(a1, | 1066 __ lw(a1, |
| 1069 MemOperand(kInterpreterRegisterFileRegister, | 1067 MemOperand(kInterpreterRegisterFileRegister, |
| 1070 InterpreterFrameConstants::kFunctionFromRegisterPointer)); | 1068 InterpreterFrameConstants::kFunctionFromRegisterPointer)); |
| 1071 __ lw(a1, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 1069 __ lw(a1, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
| 1072 __ lw(kInterpreterBytecodeArrayRegister, | 1070 __ lw(kInterpreterBytecodeArrayRegister, |
| (...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2549 } | 2547 } |
| 2550 } | 2548 } |
| 2551 | 2549 |
| 2552 | 2550 |
| 2553 #undef __ | 2551 #undef __ |
| 2554 | 2552 |
| 2555 } // namespace internal | 2553 } // namespace internal |
| 2556 } // namespace v8 | 2554 } // namespace v8 |
| 2557 | 2555 |
| 2558 #endif // V8_TARGET_ARCH_MIPS | 2556 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |