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

Side by Side Diff: src/x87/builtins-x87.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/x64/builtins-x64.cc ('k') | no next file » | 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_X87 5 #if V8_TARGET_ARCH_X87
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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 // explicit receiver object). 647 // explicit receiver object).
648 // - Code aging of the BytecodeArray object. 648 // - Code aging of the BytecodeArray object.
649 649
650 // Perform stack guard check. 650 // Perform stack guard check.
651 { 651 {
652 Label ok; 652 Label ok;
653 ExternalReference stack_limit = 653 ExternalReference stack_limit =
654 ExternalReference::address_of_stack_limit(masm->isolate()); 654 ExternalReference::address_of_stack_limit(masm->isolate());
655 __ cmp(esp, Operand::StaticVariable(stack_limit)); 655 __ cmp(esp, Operand::StaticVariable(stack_limit));
656 __ j(above_equal, &ok); 656 __ j(above_equal, &ok);
657 __ push(kInterpreterBytecodeArrayRegister);
657 __ CallRuntime(Runtime::kStackGuard, 0); 658 __ CallRuntime(Runtime::kStackGuard, 0);
659 __ pop(kInterpreterBytecodeArrayRegister);
658 __ bind(&ok); 660 __ bind(&ok);
659 } 661 }
660 662
661 // Load accumulator, register file, bytecode offset, dispatch table into 663 // Load accumulator, register file, bytecode offset, dispatch table into
662 // registers. 664 // registers.
663 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); 665 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex);
664 __ mov(kInterpreterRegisterFileRegister, ebp); 666 __ mov(kInterpreterRegisterFileRegister, ebp);
665 __ sub( 667 __ sub(
666 kInterpreterRegisterFileRegister, 668 kInterpreterRegisterFileRegister,
667 Immediate(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp)); 669 Immediate(kPointerSize + StandardFrameConstants::kFixedFrameSizeFromFp));
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1898 1900
1899 __ bind(&ok); 1901 __ bind(&ok);
1900 __ ret(0); 1902 __ ret(0);
1901 } 1903 }
1902 1904
1903 #undef __ 1905 #undef __
1904 } // namespace internal 1906 } // namespace internal
1905 } // namespace v8 1907 } // namespace v8
1906 1908
1907 #endif // V8_TARGET_ARCH_X87 1909 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698