Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: src/mips/builtins-mips.cc

Issue 1684073002: [Interpreter] Save and restore dispatch table pointer during calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_assm
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { 970 void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) {
971 // Open a frame scope to indicate that there is a frame on the stack. The 971 // Open a frame scope to indicate that there is a frame on the stack. The
972 // MANUAL indicates that the scope shouldn't actually generate code to set up 972 // MANUAL indicates that the scope shouldn't actually generate code to set up
973 // the frame (that is done below). 973 // the frame (that is done below).
974 FrameScope frame_scope(masm, StackFrame::MANUAL); 974 FrameScope frame_scope(masm, StackFrame::MANUAL);
975 975
976 __ Push(ra, fp, cp, a1); 976 __ Push(ra, fp, cp, a1);
977 __ Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); 977 __ Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp));
978 __ Push(a3); 978 __ Push(a3);
979 979
980 // Push dispatch table pointer.
981 __ li(a0, Operand(ExternalReference::interpreter_dispatch_table_address(
982 masm->isolate())));
983 __ push(a0);
980 // Push zero for bytecode array offset. 984 // Push zero for bytecode array offset.
981 __ Push(zero_reg); 985 __ Push(zero_reg);
982 986
983 // Get the bytecode array from the function object and load the pointer to the 987 // Get the bytecode array from the function object and load the pointer to the
984 // first entry into kInterpreterBytecodeRegister. 988 // first entry into kInterpreterBytecodeRegister.
985 __ lw(a0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); 989 __ lw(a0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
986 __ lw(kInterpreterBytecodeArrayRegister, 990 __ lw(kInterpreterBytecodeArrayRegister,
987 FieldMemOperand(a0, SharedFunctionInfo::kFunctionDataOffset)); 991 FieldMemOperand(a0, SharedFunctionInfo::kFunctionDataOffset));
988 992
989 if (FLAG_debug_code) { 993 if (FLAG_debug_code) {
(...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after
2761 } 2765 }
2762 } 2766 }
2763 2767
2764 2768
2765 #undef __ 2769 #undef __
2766 2770
2767 } // namespace internal 2771 } // namespace internal
2768 } // namespace v8 2772 } // namespace v8
2769 2773
2770 #endif // V8_TARGET_ARCH_MIPS 2774 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698