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

Side by Side Diff: src/x64/builtins-x64.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/mips64/builtins-mips64.cc ('k') | test/cctest/interpreter/test-interpreter.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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); 898 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT);
899 } 899 }
900 900
901 901
902 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { 902 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) {
903 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); 903 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY);
904 } 904 }
905 905
906 906
907 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { 907 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) {
908 // Set the address of the interpreter entry trampoline as a return address.
909 // This simulates the initial call to bytecode handlers in interpreter entry
910 // trampoline. The return will never actually be taken, but our stack walker
911 // uses this address to determine whether a frame is interpreted.
912 __ Push(masm->isolate()->builtins()->InterpreterEntryTrampoline());
913
908 Generate_EnterBytecodeDispatch(masm); 914 Generate_EnterBytecodeDispatch(masm);
909 } 915 }
910 916
911 917
912 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { 918 void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
913 CallRuntimePassFunction(masm, Runtime::kCompileLazy); 919 CallRuntimePassFunction(masm, Runtime::kCompileLazy);
914 GenerateTailCallToReturnedCode(masm); 920 GenerateTailCallToReturnedCode(masm);
915 } 921 }
916 922
917 923
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after
2615 __ ret(0); 2621 __ ret(0);
2616 } 2622 }
2617 2623
2618 2624
2619 #undef __ 2625 #undef __
2620 2626
2621 } // namespace internal 2627 } // namespace internal
2622 } // namespace v8 2628 } // namespace v8
2623 2629
2624 #endif // V8_TARGET_ARCH_X64 2630 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | test/cctest/interpreter/test-interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698