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

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

Issue 1615063002: [interpreter] Fix return address when entering exception handler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months 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/arm64/builtins-arm64.cc ('k') | src/mips/builtins-mips.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_IA32 5 #if V8_TARGET_ARCH_IA32
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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); 850 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT);
851 } 851 }
852 852
853 853
854 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { 854 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) {
855 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); 855 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY);
856 } 856 }
857 857
858 858
859 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { 859 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) {
860 // Set the address of the interpreter entry trampoline as a return address.
861 // This simulates the initial call to bytecode handlers in interpreter entry
862 // trampoline. The return will never actually be taken, but our stack walker
863 // uses this address to determine whether a frame is interpreted.
864 __ Push(masm->isolate()->builtins()->InterpreterEntryTrampoline());
865
860 Generate_EnterBytecodeDispatch(masm); 866 Generate_EnterBytecodeDispatch(masm);
861 } 867 }
862 868
863 869
864 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { 870 void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
865 CallRuntimePassFunction(masm, Runtime::kCompileLazy); 871 CallRuntimePassFunction(masm, Runtime::kCompileLazy);
866 GenerateTailCallToReturnedCode(masm); 872 GenerateTailCallToReturnedCode(masm);
867 } 873 }
868 874
869 875
(...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after
2537 2543
2538 __ bind(&ok); 2544 __ bind(&ok);
2539 __ ret(0); 2545 __ ret(0);
2540 } 2546 }
2541 2547
2542 #undef __ 2548 #undef __
2543 } // namespace internal 2549 } // namespace internal
2544 } // namespace v8 2550 } // namespace v8
2545 2551
2546 #endif // V8_TARGET_ARCH_IA32 2552 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698