Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 18ef79a629c2d5420569a333c6ffbe9af1d041eb..2fd00d03444610558668a49f79aea74cabb13d01 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -476,7 +476,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 --------------------", |
@@ -1178,6 +1179,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); |