Index: src/compiler/ppc/code-generator-ppc.cc |
diff --git a/src/compiler/ppc/code-generator-ppc.cc b/src/compiler/ppc/code-generator-ppc.cc |
index 77cfc7d137c96f0485cd475b8a4029af78bdc92e..8147d855d8cb59e776a6f3d98c5ab9442142627b 100644 |
--- a/src/compiler/ppc/code-generator-ppc.cc |
+++ b/src/compiler/ppc/code-generator-ppc.cc |
@@ -568,6 +568,12 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
// don't emit code for nops. |
DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
break; |
+ case kArchDeoptimize: { |
+ int deopt_state_id = |
+ BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); |
+ AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); |
+ break; |
+ } |
case kArchRet: |
AssembleReturn(); |
DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
@@ -1112,9 +1118,10 @@ void CodeGenerator::AssembleArchTableSwitch(Instruction* instr) { |
} |
-void CodeGenerator::AssembleDeoptimizerCall(int deoptimization_id) { |
+void CodeGenerator::AssembleDeoptimizerCall( |
+ int deoptimization_id, Deoptimizer::BailoutType bailout_type) { |
Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
- isolate(), deoptimization_id, Deoptimizer::LAZY); |
+ isolate(), deoptimization_id, bailout_type); |
__ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
} |