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 7fc6dd9d077688686cc31807749bd2624116ee28..6bf0a7e80a75a59c7f1e0a0d618c6411a707c7d7 100644 |
--- a/src/compiler/ppc/code-generator-ppc.cc |
+++ b/src/compiler/ppc/code-generator-ppc.cc |
@@ -32,6 +32,7 @@ class PPCOperandConverter final : public InstructionOperandConverter { |
RCBit OutputRCBit() const { |
switch (instr_->flags_mode()) { |
case kFlags_branch: |
+ case kFlags_deoptimize: |
case kFlags_set: |
return SetRC; |
case kFlags_none: |
@@ -1589,6 +1590,9 @@ void CodeGenerator::AssembleDeoptimizerCall( |
int deoptimization_id, Deoptimizer::BailoutType bailout_type) { |
Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
isolate(), deoptimization_id, bailout_type); |
+ // TODO(turbofan): We should be able to generate better code by sharing the |
+ // actual final call site and just bl'ing to it here, similar to what we do |
+ // in the lithium backend. |
__ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
} |