Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 54ec58988cfe53ce34907147369a94567bca6eff..424f2e6d004fba26fa8d57ca9212cdac6809636f 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -277,7 +277,8 @@ bool LCodeGen::GenerateDeferredCode() { |
HValue* value = |
instructions_->at(code->instruction_index())->hydrogen_value(); |
- RecordAndWritePosition(value->position()); |
+ RecordAndWritePosition( |
+ chunk()->graph()->SourcePositionToScriptPosition(value->position())); |
Comment(";;; <@%d,#%d> " |
"-------------------- Deferred %s --------------------", |
@@ -906,6 +907,7 @@ void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
translations_.CreateByteArray(isolate()->factory()); |
data->SetTranslationByteArray(*translations); |
data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
+ data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
Handle<FixedArray> literals = |
factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); |