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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { | 963 void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
964 // Open a frame scope to indicate that there is a frame on the stack. The | 964 // Open a frame scope to indicate that there is a frame on the stack. The |
965 // MANUAL indicates that the scope shouldn't actually generate code to set up | 965 // MANUAL indicates that the scope shouldn't actually generate code to set up |
966 // the frame (that is done below). | 966 // the frame (that is done below). |
967 FrameScope frame_scope(masm, StackFrame::MANUAL); | 967 FrameScope frame_scope(masm, StackFrame::MANUAL); |
968 | 968 |
969 __ Push(ra, fp, cp, a1); | 969 __ Push(ra, fp, cp, a1); |
970 __ Daddu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); | 970 __ Daddu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); |
971 __ Push(a3); | 971 __ Push(a3); |
972 | 972 |
| 973 // Push dispatch table pointer. |
| 974 __ li(a0, Operand(ExternalReference::interpreter_dispatch_table_address( |
| 975 masm->isolate()))); |
| 976 __ Push(a0); |
973 // Push zero for bytecode array offset. | 977 // Push zero for bytecode array offset. |
974 __ Push(zero_reg); | 978 __ Push(zero_reg); |
975 | 979 |
976 // Get the bytecode array from the function object and load the pointer to the | 980 // Get the bytecode array from the function object and load the pointer to the |
977 // first entry into kInterpreterBytecodeRegister. | 981 // first entry into kInterpreterBytecodeRegister. |
978 __ ld(a0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 982 __ ld(a0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
979 __ ld(kInterpreterBytecodeArrayRegister, | 983 __ ld(kInterpreterBytecodeArrayRegister, |
980 FieldMemOperand(a0, SharedFunctionInfo::kFunctionDataOffset)); | 984 FieldMemOperand(a0, SharedFunctionInfo::kFunctionDataOffset)); |
981 | 985 |
982 if (FLAG_debug_code) { | 986 if (FLAG_debug_code) { |
(...skipping 1773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2756 } | 2760 } |
2757 } | 2761 } |
2758 | 2762 |
2759 | 2763 |
2760 #undef __ | 2764 #undef __ |
2761 | 2765 |
2762 } // namespace internal | 2766 } // namespace internal |
2763 } // namespace v8 | 2767 } // namespace v8 |
2764 | 2768 |
2765 #endif // V8_TARGET_ARCH_MIPS64 | 2769 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |