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

Side by Side Diff: src/arm64/builtins-arm64.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/arm/builtins-arm.cc ('k') | src/compiler/bytecode-graph-builder.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) { 1021 static void Generate_EnterBytecodeDispatch(MacroAssembler* masm) {
1022 // Initialize register file register and dispatch table register. 1022 // Initialize register file register and dispatch table register.
1023 __ Add(kInterpreterRegisterFileRegister, fp, 1023 __ Add(kInterpreterRegisterFileRegister, fp,
1024 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); 1024 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp));
1025 __ LoadRoot(kInterpreterDispatchTableRegister, 1025 __ LoadRoot(kInterpreterDispatchTableRegister,
1026 Heap::kInterpreterTableRootIndex); 1026 Heap::kInterpreterTableRootIndex);
1027 __ Add(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, 1027 __ Add(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister,
1028 Operand(FixedArray::kHeaderSize - kHeapObjectTag)); 1028 Operand(FixedArray::kHeaderSize - kHeapObjectTag));
1029 1029
1030 // Get the context from the frame. 1030 // Get the context from the frame.
1031 // TODO(rmcilroy): Update interpreter frame to expect current context at the
1032 // context slot instead of the function context.
1033 __ Ldr(kContextRegister, 1031 __ Ldr(kContextRegister,
1034 MemOperand(kInterpreterRegisterFileRegister, 1032 MemOperand(kInterpreterRegisterFileRegister,
1035 InterpreterFrameConstants::kContextFromRegisterPointer)); 1033 InterpreterFrameConstants::kContextFromRegisterPointer));
1036 1034
1037 // Get the bytecode array pointer from the frame. 1035 // Get the bytecode array pointer from the frame.
1038 __ Ldr(x1, 1036 __ Ldr(x1,
1039 MemOperand(kInterpreterRegisterFileRegister, 1037 MemOperand(kInterpreterRegisterFileRegister,
1040 InterpreterFrameConstants::kFunctionFromRegisterPointer)); 1038 InterpreterFrameConstants::kFunctionFromRegisterPointer));
1041 __ Ldr(x1, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset)); 1039 __ Ldr(x1, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset));
1042 __ Ldr(kInterpreterBytecodeArrayRegister, 1040 __ Ldr(kInterpreterBytecodeArrayRegister,
(...skipping 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after
2616 } 2614 }
2617 } 2615 }
2618 2616
2619 2617
2620 #undef __ 2618 #undef __
2621 2619
2622 } // namespace internal 2620 } // namespace internal
2623 } // namespace v8 2621 } // namespace v8
2624 2622
2625 #endif // V8_TARGET_ARCH_ARM 2623 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698