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

Side by Side Diff: src/arm/builtins-arm.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 | « no previous file | src/arm64/builtins-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 1132
1133 1133
1134 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { 1134 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) {
1135 // Initialize register file register and dispatch table register. 1135 // Initialize register file register and dispatch table register.
1136 __ add(kInterpreterRegisterFileRegister, fp, 1136 __ add(kInterpreterRegisterFileRegister, fp,
1137 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 1137 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
1138 __ mov(kInterpreterDispatchTableRegister, 1138 __ mov(kInterpreterDispatchTableRegister,
1139 Operand(ExternalReference::interpreter_dispatch_table_address( 1139 Operand(ExternalReference::interpreter_dispatch_table_address(
1140 masm->isolate()))); 1140 masm->isolate())));
1141 1141
1142 // Get the context from the frame.
1143 __ ldr(kContextRegister,
1144 MemOperand(kInterpreterRegisterFileRegister,
1145 InterpreterFrameConstants::kContextFromRegisterPointer));
1146
1147 // Get the bytecode array pointer from the frame. 1142 // Get the bytecode array pointer from the frame.
1148 __ ldr( 1143 __ ldr(
1149 kInterpreterBytecodeArrayRegister, 1144 kInterpreterBytecodeArrayRegister,
1150 MemOperand(kInterpreterRegisterFileRegister, 1145 MemOperand(kInterpreterRegisterFileRegister,
1151 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); 1146 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer));
1152 1147
1153 if (FLAG_debug_code) { 1148 if (FLAG_debug_code) {
1154 // Check function data field is actually a BytecodeArray object. 1149 // Check function data field is actually a BytecodeArray object.
1155 __ SmiTst(kInterpreterBytecodeArrayRegister); 1150 __ SmiTst(kInterpreterBytecodeArrayRegister);
1156 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); 1151 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry);
(...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after
2616 } 2611 }
2617 } 2612 }
2618 2613
2619 2614
2620 #undef __ 2615 #undef __
2621 2616
2622 } // namespace internal 2617 } // namespace internal
2623 } // namespace v8 2618 } // namespace v8
2624 2619
2625 #endif // V8_TARGET_ARCH_ARM 2620 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698