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

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

Issue 1426863005: [Interpreter] Ensure we save the BytecodeArray register properly in InterpreterEntryTrampoline buil… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/ia32/builtins-ia32.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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 // - Deal with sloppy mode functions which need to replace the 935 // - Deal with sloppy mode functions which need to replace the
936 // receiver with the global proxy when called as functions (without an 936 // receiver with the global proxy when called as functions (without an
937 // explicit receiver object). 937 // explicit receiver object).
938 // - Code aging of the BytecodeArray object. 938 // - Code aging of the BytecodeArray object.
939 939
940 // Perform stack guard check. 940 // Perform stack guard check.
941 { 941 {
942 Label ok; 942 Label ok;
943 __ CompareRoot(jssp, Heap::kStackLimitRootIndex); 943 __ CompareRoot(jssp, Heap::kStackLimitRootIndex);
944 __ B(hs, &ok); 944 __ B(hs, &ok);
945 __ Push(kInterpreterBytecodeArrayRegister);
945 __ CallRuntime(Runtime::kStackGuard, 0); 946 __ CallRuntime(Runtime::kStackGuard, 0);
947 __ Pop(kInterpreterBytecodeArrayRegister);
946 __ Bind(&ok); 948 __ Bind(&ok);
947 } 949 }
948 950
949 // Load accumulator, register file, bytecode offset, dispatch table into 951 // Load accumulator, register file, bytecode offset, dispatch table into
950 // registers. 952 // registers.
951 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); 953 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex);
952 __ Sub(kInterpreterRegisterFileRegister, fp, 954 __ Sub(kInterpreterRegisterFileRegister, fp,
953 Operand(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp)); 955 Operand(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp));
954 __ Mov(kInterpreterBytecodeOffsetRegister, 956 __ Mov(kInterpreterBytecodeOffsetRegister,
955 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); 957 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag));
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1987 } 1989 }
1988 } 1990 }
1989 1991
1990 1992
1991 #undef __ 1993 #undef __
1992 1994
1993 } // namespace internal 1995 } // namespace internal
1994 } // namespace v8 1996 } // namespace v8
1995 1997
1996 #endif // V8_TARGET_ARCH_ARM 1998 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698