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

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

Issue 1714503002: PPC: Refine '[Interpreter] Fix deopt when accumulator needs to be materialized.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | 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 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 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 __ addi(ip, ip, Operand(Code::kHeaderSize - kHeapObjectTag)); 1178 __ addi(ip, ip, Operand(Code::kHeaderSize - kHeapObjectTag));
1179 __ Jump(ip); 1179 __ Jump(ip);
1180 } 1180 }
1181 1181
1182 1182
1183 static void Generate_InterpreterNotifyDeoptimizedHelper( 1183 static void Generate_InterpreterNotifyDeoptimizedHelper(
1184 MacroAssembler* masm, Deoptimizer::BailoutType type) { 1184 MacroAssembler* masm, Deoptimizer::BailoutType type) {
1185 // Enter an internal frame. 1185 // Enter an internal frame.
1186 { 1186 {
1187 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); 1187 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
1188 // Save accumulator register and pass the deoptimization type to 1188
1189 // the runtime system. 1189 // Pass the deoptimization type to the runtime system.
1190 __ LoadSmiLiteral(r4, Smi::FromInt(static_cast<int>(type))); 1190 __ LoadSmiLiteral(r4, Smi::FromInt(static_cast<int>(type)));
1191 __ Push(kInterpreterAccumulatorRegister, r4); 1191 __ Push(kInterpreterAccumulatorRegister, r4);
1192 __ CallRuntime(Runtime::kNotifyDeoptimized); 1192 __ CallRuntime(Runtime::kNotifyDeoptimized);
1193 __ pop(kInterpreterAccumulatorRegister); // Restore accumulator register. 1193 __ pop(kInterpreterAccumulatorRegister); // Restore accumulator register.
1194 // Tear down internal frame. 1194 // Tear down internal frame.
1195 } 1195 }
1196 1196
1197 // Drop state (we don't use these for interpreter deopts). 1197 // Drop state (we don't use these for interpreter deopts).
1198 __ Drop(1); 1198 __ Drop(1);
1199 1199
(...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after
2747 __ bkpt(0); 2747 __ bkpt(0);
2748 } 2748 }
2749 } 2749 }
2750 2750
2751 2751
2752 #undef __ 2752 #undef __
2753 } // namespace internal 2753 } // namespace internal
2754 } // namespace v8 2754 } // namespace v8
2755 2755
2756 #endif // V8_TARGET_ARCH_PPC 2756 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698