Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index dafbd25122d75435617336ca28fa262a1c3f88f0..9c12a5102ca878c772a3f730a15f393ac8a18832 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -328,7 +328,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 --------------------", |
@@ -791,6 +792,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); |