Index: src/lithium-codegen.cc |
diff --git a/src/lithium-codegen.cc b/src/lithium-codegen.cc |
index ea409b2af6cbfa54055f845bc6a567512c2bdf33..89df2ce845d6047661c5883b5bd1377d2a260d5e 100644 |
--- a/src/lithium-codegen.cc |
+++ b/src/lithium-codegen.cc |
@@ -189,4 +189,13 @@ void LCodeGenBase::AddStabilityDependency(Handle<Map> map) { |
chunk_->AddStabilityDependency(map); |
} |
+ |
+Deoptimizer::DeoptInfo LCodeGenBase::MakeDeoptInfo( |
+ LInstruction* instr, Deoptimizer::DeoptReason deopt_reason) { |
+ Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), |
+ instr->Mnemonic(), deopt_reason); |
+ HEnterInlined* enter_inlined = instr->environment()->entry(); |
+ deopt_info.inlining_id = enter_inlined ? enter_inlined->inlining_id() : 0; |
+ return deopt_info; |
+} |
} } // namespace v8::internal |