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

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

Issue 1633633002: [Interpreter] Fix deopting from inline functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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/objects-inl.h ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 1125
1126 void Builtins::Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm) { 1126 void Builtins::Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm) {
1127 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); 1127 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT);
1128 } 1128 }
1129 1129
1130 1130
1131 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { 1131 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) {
1132 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); 1132 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY);
1133 } 1133 }
1134 1134
1135 1135 void Builtins::Generate_InterpreterEnterBytecodeDispatch(MacroAssembler* masm) {
1136 void Builtins::Generate_InterpreterEnterExceptionHandler(MacroAssembler* masm) {
1137 // Set the address of the interpreter entry trampoline as a return address. 1136 // Set the address of the interpreter entry trampoline as a return address.
1138 // This simulates the initial call to bytecode handlers in interpreter entry 1137 // This simulates the initial call to bytecode handlers in interpreter entry
1139 // trampoline. The return will never actually be taken, but our stack walker 1138 // trampoline. The return will never actually be taken, but our stack walker
1140 // uses this address to determine whether a frame is interpreted. 1139 // uses this address to determine whether a frame is interpreted.
1141 __ mov(r0, 1140 __ mov(r0,
1142 Operand(masm->isolate()->builtins()->InterpreterEntryTrampoline())); 1141 Operand(masm->isolate()->builtins()->InterpreterEntryTrampoline()));
1143 __ mtlr(r0); 1142 __ mtlr(r0);
1144 1143
1145 Generate_EnterBytecodeDispatch(masm); 1144 Generate_EnterBytecodeDispatch(masm);
1146 } 1145 }
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after
2536 __ bkpt(0); 2535 __ bkpt(0);
2537 } 2536 }
2538 } 2537 }
2539 2538
2540 2539
2541 #undef __ 2540 #undef __
2542 } // namespace internal 2541 } // namespace internal
2543 } // namespace v8 2542 } // namespace v8
2544 2543
2545 #endif // V8_TARGET_ARCH_PPC 2544 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698