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

Side by Side Diff: src/x64/builtins-x64.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/ppc/builtins-ppc.cc ('k') | src/x87/builtins-x87.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_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 // - Deal with sloppy mode functions which need to replace the 715 // - Deal with sloppy mode functions which need to replace the
716 // receiver with the global proxy when called as functions (without an 716 // receiver with the global proxy when called as functions (without an
717 // explicit receiver object). 717 // explicit receiver object).
718 // - Code aging of the BytecodeArray object. 718 // - Code aging of the BytecodeArray object.
719 719
720 // Perform stack guard check. 720 // Perform stack guard check.
721 { 721 {
722 Label ok; 722 Label ok;
723 __ CompareRoot(rsp, Heap::kStackLimitRootIndex); 723 __ CompareRoot(rsp, Heap::kStackLimitRootIndex);
724 __ j(above_equal, &ok, Label::kNear); 724 __ j(above_equal, &ok, Label::kNear);
725 __ Push(kInterpreterBytecodeArrayRegister);
725 __ CallRuntime(Runtime::kStackGuard, 0); 726 __ CallRuntime(Runtime::kStackGuard, 0);
727 __ Pop(kInterpreterBytecodeArrayRegister);
726 __ bind(&ok); 728 __ bind(&ok);
727 } 729 }
728 730
729 // Load accumulator, register file, bytecode offset, dispatch table into 731 // Load accumulator, register file, bytecode offset, dispatch table into
730 // registers. 732 // registers.
731 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); 733 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex);
732 __ movp(kInterpreterRegisterFileRegister, rbp); 734 __ movp(kInterpreterRegisterFileRegister, rbp);
733 __ subp( 735 __ subp(
734 kInterpreterRegisterFileRegister, 736 kInterpreterRegisterFileRegister,
735 Immediate(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp)); 737 Immediate(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp));
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 __ ret(0); 1969 __ ret(0);
1968 } 1970 }
1969 1971
1970 1972
1971 #undef __ 1973 #undef __
1972 1974
1973 } // namespace internal 1975 } // namespace internal
1974 } // namespace v8 1976 } // namespace v8
1975 1977
1976 #endif // V8_TARGET_ARCH_X64 1978 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ppc/builtins-ppc.cc ('k') | src/x87/builtins-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698