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

Side by Side Diff: src/mips/builtins-mips.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/ia32/builtins-ia32.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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 // - Deal with sloppy mode functions which need to replace the 910 // - Deal with sloppy mode functions which need to replace the
911 // receiver with the global proxy when called as functions (without an 911 // receiver with the global proxy when called as functions (without an
912 // explicit receiver object). 912 // explicit receiver object).
913 // - Code aging of the BytecodeArray object. 913 // - Code aging of the BytecodeArray object.
914 914
915 // Perform stack guard check. 915 // Perform stack guard check.
916 { 916 {
917 Label ok; 917 Label ok;
918 __ LoadRoot(at, Heap::kStackLimitRootIndex); 918 __ LoadRoot(at, Heap::kStackLimitRootIndex);
919 __ Branch(&ok, hs, sp, Operand(at)); 919 __ Branch(&ok, hs, sp, Operand(at));
920 __ push(kInterpreterBytecodeArrayRegister);
920 __ CallRuntime(Runtime::kStackGuard, 0); 921 __ CallRuntime(Runtime::kStackGuard, 0);
922 __ pop(kInterpreterBytecodeArrayRegister);
921 __ bind(&ok); 923 __ bind(&ok);
922 } 924 }
923 925
924 // Load bytecode offset and dispatch table into registers. 926 // Load bytecode offset and dispatch table into registers.
925 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); 927 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex);
926 __ Subu( 928 __ Subu(
927 kInterpreterRegisterFileRegister, fp, 929 kInterpreterRegisterFileRegister, fp,
928 Operand(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp)); 930 Operand(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp));
929 __ li(kInterpreterBytecodeOffsetRegister, 931 __ li(kInterpreterBytecodeOffsetRegister,
930 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); 932 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag));
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 } 1929 }
1928 } 1930 }
1929 1931
1930 1932
1931 #undef __ 1933 #undef __
1932 1934
1933 } // namespace internal 1935 } // namespace internal
1934 } // namespace v8 1936 } // namespace v8
1935 1937
1936 #endif // V8_TARGET_ARCH_MIPS 1938 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698