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

Side by Side Diff: src/mips64/builtins-mips64.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/mips/builtins-mips.cc ('k') | src/x64/builtins-x64.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); 1132 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT);
1133 } 1133 }
1134 1134
1135 1135
1136 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { 1136 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) {
1137 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); 1137 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY);
1138 } 1138 }
1139 1139
1140 1140
1141 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) { 1141 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) {
1142 // Set the address of the interpreter entry trampoline as a return address.
1143 // This simulates the initial call to bytecode handlers in interpreter entry
1144 // trampoline. The return will never actually be taken, but our stack walker
1145 // uses this address to determine whether a frame is interpreted.
1146 __ li(ra, Operand(masm->isolate()->builtins()->InterpreterEntryTrampoline()));
1147
1142 Generate_EnterBytecodeDispatch(masm); 1148 Generate_EnterBytecodeDispatch(masm);
1143 } 1149 }
1144 1150
1145 1151
1146 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { 1152 void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
1147 CallRuntimePassFunction(masm, Runtime::kCompileLazy); 1153 CallRuntimePassFunction(masm, Runtime::kCompileLazy);
1148 GenerateTailCallToReturnedCode(masm); 1154 GenerateTailCallToReturnedCode(masm);
1149 } 1155 }
1150 1156
1151 1157
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after
2559 } 2565 }
2560 } 2566 }
2561 2567
2562 2568
2563 #undef __ 2569 #undef __
2564 2570
2565 } // namespace internal 2571 } // namespace internal
2566 } // namespace v8 2572 } // namespace v8
2567 2573
2568 #endif // V8_TARGET_ARCH_MIPS64 2574 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698