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

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

Issue 1673333003: MIPS: Fix '[interpreter] move the dispatch table off heap.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698