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

Side by Side Diff: src/s390/builtins-s390.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/ppc/builtins-ppc.cc ('k') | src/x64/builtins-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_S390 5 #if V8_TARGET_ARCH_S390
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 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 } 1136 }
1137 1137
1138 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { 1138 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) {
1139 // Initialize register file register and dispatch table register. 1139 // Initialize register file register and dispatch table register.
1140 __ AddP(kInterpreterRegisterFileRegister, fp, 1140 __ AddP(kInterpreterRegisterFileRegister, fp,
1141 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 1141 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
1142 __ mov(kInterpreterDispatchTableRegister, 1142 __ mov(kInterpreterDispatchTableRegister,
1143 Operand(ExternalReference::interpreter_dispatch_table_address( 1143 Operand(ExternalReference::interpreter_dispatch_table_address(
1144 masm->isolate()))); 1144 masm->isolate())));
1145 1145
1146 // Get the context from the frame.
1147 __ LoadP(kContextRegister,
1148 MemOperand(kInterpreterRegisterFileRegister,
1149 InterpreterFrameConstants::kContextFromRegisterPointer));
1150
1151 // Get the bytecode array pointer from the frame. 1146 // Get the bytecode array pointer from the frame.
1152 __ LoadP( 1147 __ LoadP(
1153 kInterpreterBytecodeArrayRegister, 1148 kInterpreterBytecodeArrayRegister,
1154 MemOperand(kInterpreterRegisterFileRegister, 1149 MemOperand(kInterpreterRegisterFileRegister,
1155 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); 1150 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer));
1156 1151
1157 if (FLAG_debug_code) { 1152 if (FLAG_debug_code) {
1158 // Check function data field is actually a BytecodeArray object. 1153 // Check function data field is actually a BytecodeArray object.
1159 __ TestIfSmi(kInterpreterBytecodeArrayRegister); 1154 __ TestIfSmi(kInterpreterBytecodeArrayRegister);
1160 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); 1155 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry);
(...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 __ bkpt(0); 2666 __ bkpt(0);
2672 } 2667 }
2673 } 2668 }
2674 2669
2675 #undef __ 2670 #undef __
2676 2671
2677 } // namespace internal 2672 } // namespace internal
2678 } // namespace v8 2673 } // namespace v8
2679 2674
2680 #endif // V8_TARGET_ARCH_S390 2675 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/ppc/builtins-ppc.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698