| 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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { | 1042 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { |
| 1043 // Initialize register file register and dispatch table register. | 1043 // Initialize register file register and dispatch table register. |
| 1044 __ Daddu(kInterpreterRegisterFileRegister, fp, | 1044 __ Daddu(kInterpreterRegisterFileRegister, fp, |
| 1045 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1045 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
| 1046 __ LoadRoot(kInterpreterDispatchTableRegister, | 1046 __ LoadRoot(kInterpreterDispatchTableRegister, |
| 1047 Heap::kInterpreterTableRootIndex); | 1047 Heap::kInterpreterTableRootIndex); |
| 1048 __ Daddu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, | 1048 __ Daddu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, |
| 1049 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); | 1049 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
| 1050 | 1050 |
| 1051 // Get the context from the frame. | 1051 // Get the context from the frame. |
| 1052 // TODO(rmcilroy): Update interpreter frame to expect current context at the | |
| 1053 // context slot instead of the function context. | |
| 1054 __ ld(kContextRegister, | 1052 __ ld(kContextRegister, |
| 1055 MemOperand(kInterpreterRegisterFileRegister, | 1053 MemOperand(kInterpreterRegisterFileRegister, |
| 1056 InterpreterFrameConstants::kContextFromRegisterPointer)); | 1054 InterpreterFrameConstants::kContextFromRegisterPointer)); |
| 1057 | 1055 |
| 1058 // Get the bytecode array pointer from the frame. | 1056 // Get the bytecode array pointer from the frame. |
| 1059 __ ld(a1, | 1057 __ ld(a1, |
| 1060 MemOperand(kInterpreterRegisterFileRegister, | 1058 MemOperand(kInterpreterRegisterFileRegister, |
| 1061 InterpreterFrameConstants::kFunctionFromRegisterPointer)); | 1059 InterpreterFrameConstants::kFunctionFromRegisterPointer)); |
| 1062 __ ld(a1, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 1060 __ ld(a1, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
| 1063 __ ld(kInterpreterBytecodeArrayRegister, | 1061 __ ld(kInterpreterBytecodeArrayRegister, |
| (...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2542 } | 2540 } |
| 2543 } | 2541 } |
| 2544 | 2542 |
| 2545 | 2543 |
| 2546 #undef __ | 2544 #undef __ |
| 2547 | 2545 |
| 2548 } // namespace internal | 2546 } // namespace internal |
| 2549 } // namespace v8 | 2547 } // namespace v8 |
| 2550 | 2548 |
| 2551 #endif // V8_TARGET_ARCH_MIPS64 | 2549 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |