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

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

Issue 1604923002: [Interpreter] Always store current context in the frames context slot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_fix_block_context_scope
Patch Set: Rebase Created 4 years, 11 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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { 1042 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) {
1043 // Initialize register file register and dispatch table register. 1043 // Initialize register file register and dispatch table register.
1044 __ Daddu(kInterpreterRegisterFileRegister, fp, 1044 __ Daddu(kInterpreterRegisterFileRegister, fp,
1045 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 1045 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
1046 __ LoadRoot(kInterpreterDispatchTableRegister, 1046 __ LoadRoot(kInterpreterDispatchTableRegister,
1047 Heap::kInterpreterTableRootIndex); 1047 Heap::kInterpreterTableRootIndex);
1048 __ Daddu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, 1048 __ Daddu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister,
1049 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); 1049 Operand(FixedArray::kHeaderSize - kHeapObjectTag));
1050 1050
1051 // Get the context from the frame. 1051 // Get the context from the frame.
1052 // TODO(rmcilroy): Update interpreter frame to expect current context at the
1053 // context slot instead of the function context.
1054 __ ld(kContextRegister, 1052 __ ld(kContextRegister,
1055 MemOperand(kInterpreterRegisterFileRegister, 1053 MemOperand(kInterpreterRegisterFileRegister,
1056 InterpreterFrameConstants::kContextFromRegisterPointer)); 1054 InterpreterFrameConstants::kContextFromRegisterPointer));
1057 1055
1058 // Get the bytecode array pointer from the frame. 1056 // Get the bytecode array pointer from the frame.
1059 __ ld(a1, 1057 __ ld(a1,
1060 MemOperand(kInterpreterRegisterFileRegister, 1058 MemOperand(kInterpreterRegisterFileRegister,
1061 InterpreterFrameConstants::kFunctionFromRegisterPointer)); 1059 InterpreterFrameConstants::kFunctionFromRegisterPointer));
1062 __ ld(a1, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); 1060 __ ld(a1, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
1063 __ ld(kInterpreterBytecodeArrayRegister, 1061 __ ld(kInterpreterBytecodeArrayRegister,
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after
2542 } 2540 }
2543 } 2541 }
2544 2542
2545 2543
2546 #undef __ 2544 #undef __
2547 2545
2548 } // namespace internal 2546 } // namespace internal
2549 } // namespace v8 2547 } // namespace v8
2550 2548
2551 #endif // V8_TARGET_ARCH_MIPS64 2549 #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