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

Side by Side Diff: src/mips/builtins-mips.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/interpreter/interpreter.cc ('k') | src/mips64/builtins-mips64.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { 1051 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) {
1052 // Initialize register file register and dispatch table register. 1052 // Initialize register file register and dispatch table register.
1053 __ Addu(kInterpreterRegisterFileRegister, fp, 1053 __ Addu(kInterpreterRegisterFileRegister, fp,
1054 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 1054 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
1055 __ LoadRoot(kInterpreterDispatchTableRegister, 1055 __ LoadRoot(kInterpreterDispatchTableRegister,
1056 Heap::kInterpreterTableRootIndex); 1056 Heap::kInterpreterTableRootIndex);
1057 __ Addu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, 1057 __ Addu(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister,
1058 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); 1058 Operand(FixedArray::kHeaderSize - kHeapObjectTag));
1059 1059
1060 // Get the context from the frame. 1060 // Get the context from the frame.
1061 // TODO(rmcilroy): Update interpreter frame to expect current context at the
1062 // context slot instead of the function context.
1063 __ lw(kContextRegister, 1061 __ lw(kContextRegister,
1064 MemOperand(kInterpreterRegisterFileRegister, 1062 MemOperand(kInterpreterRegisterFileRegister,
1065 InterpreterFrameConstants::kContextFromRegisterPointer)); 1063 InterpreterFrameConstants::kContextFromRegisterPointer));
1066 1064
1067 // Get the bytecode array pointer from the frame. 1065 // Get the bytecode array pointer from the frame.
1068 __ lw(a1, 1066 __ lw(a1,
1069 MemOperand(kInterpreterRegisterFileRegister, 1067 MemOperand(kInterpreterRegisterFileRegister,
1070 InterpreterFrameConstants::kFunctionFromRegisterPointer)); 1068 InterpreterFrameConstants::kFunctionFromRegisterPointer));
1071 __ lw(a1, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); 1069 __ lw(a1, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
1072 __ lw(kInterpreterBytecodeArrayRegister, 1070 __ lw(kInterpreterBytecodeArrayRegister,
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
2549 } 2547 }
2550 } 2548 }
2551 2549
2552 2550
2553 #undef __ 2551 #undef __
2554 2552
2555 } // namespace internal 2553 } // namespace internal
2556 } // namespace v8 2554 } // namespace v8
2557 2555
2558 #endif // V8_TARGET_ARCH_MIPS 2556 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698