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

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

Issue 1887493004: [Interpreter] No longer require context machine register in bytecode handlers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_dispatch
Patch Set: Fix x87 Created 4 years, 8 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 | « src/mips/builtins-mips.cc ('k') | src/ppc/builtins-ppc.cc » ('j') | 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_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 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 1117
1118 1118
1119 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { 1119 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) {
1120 // Initialize register file register and dispatch table register. 1120 // Initialize register file register and dispatch table register.
1121 __ Daddu(kInterpreterRegisterFileRegister, fp, 1121 __ Daddu(kInterpreterRegisterFileRegister, fp,
1122 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 1122 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
1123 __ li(kInterpreterDispatchTableRegister, 1123 __ li(kInterpreterDispatchTableRegister,
1124 Operand(ExternalReference::interpreter_dispatch_table_address( 1124 Operand(ExternalReference::interpreter_dispatch_table_address(
1125 masm->isolate()))); 1125 masm->isolate())));
1126 1126
1127 // Get the context from the frame.
1128 __ ld(kContextRegister,
1129 MemOperand(kInterpreterRegisterFileRegister,
1130 InterpreterFrameConstants::kContextFromRegisterPointer));
1131
1132 // Get the bytecode array pointer from the frame. 1127 // Get the bytecode array pointer from the frame.
1133 __ ld( 1128 __ ld(
1134 kInterpreterBytecodeArrayRegister, 1129 kInterpreterBytecodeArrayRegister,
1135 MemOperand(kInterpreterRegisterFileRegister, 1130 MemOperand(kInterpreterRegisterFileRegister,
1136 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); 1131 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer));
1137 1132
1138 if (FLAG_debug_code) { 1133 if (FLAG_debug_code) {
1139 // Check function data field is actually a BytecodeArray object. 1134 // Check function data field is actually a BytecodeArray object.
1140 __ SmiTst(kInterpreterBytecodeArrayRegister, at); 1135 __ SmiTst(kInterpreterBytecodeArrayRegister, at);
1141 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, at, 1136 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, at,
(...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after
2695 } 2690 }
2696 } 2691 }
2697 2692
2698 2693
2699 #undef __ 2694 #undef __
2700 2695
2701 } // namespace internal 2696 } // namespace internal
2702 } // namespace v8 2697 } // namespace v8
2703 2698
2704 #endif // V8_TARGET_ARCH_MIPS64 2699 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/ppc/builtins-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698