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

Side by Side Diff: src/ppc/builtins-ppc.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/mips64/builtins-mips64.cc ('k') | src/x64/builtins-x64.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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 // receiver with the global proxy when called as functions (without an 908 // receiver with the global proxy when called as functions (without an
909 // explicit receiver object). 909 // explicit receiver object).
910 // - Code aging of the BytecodeArray object. 910 // - Code aging of the BytecodeArray object.
911 911
912 // Perform stack guard check. 912 // Perform stack guard check.
913 { 913 {
914 Label ok; 914 Label ok;
915 __ LoadRoot(r0, Heap::kStackLimitRootIndex); 915 __ LoadRoot(r0, Heap::kStackLimitRootIndex);
916 __ cmp(sp, r0); 916 __ cmp(sp, r0);
917 __ bge(&ok); 917 __ bge(&ok);
918 __ push(kInterpreterBytecodeArrayRegister);
918 __ CallRuntime(Runtime::kStackGuard, 0); 919 __ CallRuntime(Runtime::kStackGuard, 0);
920 __ pop(kInterpreterBytecodeArrayRegister);
919 __ bind(&ok); 921 __ bind(&ok);
920 } 922 }
921 923
922 // Load accumulator, register file, bytecode offset, dispatch table into 924 // Load accumulator, register file, bytecode offset, dispatch table into
923 // registers. 925 // registers.
924 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); 926 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex);
925 __ subi( 927 __ subi(
926 kInterpreterRegisterFileRegister, fp, 928 kInterpreterRegisterFileRegister, fp,
927 Operand(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp)); 929 Operand(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp));
928 __ mov(kInterpreterBytecodeOffsetRegister, 930 __ mov(kInterpreterBytecodeOffsetRegister,
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1941 __ bkpt(0); 1943 __ bkpt(0);
1942 } 1944 }
1943 } 1945 }
1944 1946
1945 1947
1946 #undef __ 1948 #undef __
1947 } // namespace internal 1949 } // namespace internal
1948 } // namespace v8 1950 } // namespace v8
1949 1951
1950 #endif // V8_TARGET_ARCH_PPC 1952 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698