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

Side by Side Diff: src/ppc/builtins-ppc.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/mips64/builtins-mips64.cc ('k') | src/s390/builtins-s390.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_PPC 5 #if V8_TARGET_ARCH_PPC
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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 1148
1149 1149
1150 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { 1150 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) {
1151 // Initialize register file register and dispatch table register. 1151 // Initialize register file register and dispatch table register.
1152 __ addi(kInterpreterRegisterFileRegister, fp, 1152 __ addi(kInterpreterRegisterFileRegister, fp,
1153 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 1153 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
1154 __ mov(kInterpreterDispatchTableRegister, 1154 __ mov(kInterpreterDispatchTableRegister,
1155 Operand(ExternalReference::interpreter_dispatch_table_address( 1155 Operand(ExternalReference::interpreter_dispatch_table_address(
1156 masm->isolate()))); 1156 masm->isolate())));
1157 1157
1158 // Get the context from the frame.
1159 __ LoadP(kContextRegister,
1160 MemOperand(kInterpreterRegisterFileRegister,
1161 InterpreterFrameConstants::kContextFromRegisterPointer));
1162
1163 // Get the bytecode array pointer from the frame. 1158 // Get the bytecode array pointer from the frame.
1164 __ LoadP( 1159 __ LoadP(
1165 kInterpreterBytecodeArrayRegister, 1160 kInterpreterBytecodeArrayRegister,
1166 MemOperand(kInterpreterRegisterFileRegister, 1161 MemOperand(kInterpreterRegisterFileRegister,
1167 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer)); 1162 InterpreterFrameConstants::kBytecodeArrayFromRegisterPointer));
1168 1163
1169 if (FLAG_debug_code) { 1164 if (FLAG_debug_code) {
1170 // Check function data field is actually a BytecodeArray object. 1165 // Check function data field is actually a BytecodeArray object.
1171 __ TestIfSmi(kInterpreterBytecodeArrayRegister, r0); 1166 __ TestIfSmi(kInterpreterBytecodeArrayRegister, r0);
1172 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); 1167 __ Assert(ne, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry);
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
2717 __ bkpt(0); 2712 __ bkpt(0);
2718 } 2713 }
2719 } 2714 }
2720 2715
2721 2716
2722 #undef __ 2717 #undef __
2723 } // namespace internal 2718 } // namespace internal
2724 } // namespace v8 2719 } // namespace v8
2725 2720
2726 #endif // V8_TARGET_ARCH_PPC 2721 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/s390/builtins-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698