Index: src/a64/lithium-codegen-a64.cc |
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc |
index b95e2b46a110f90768a526d1449825f05b759632..40ef5c6f124501e42e5c4c05735718a84eaa2627 100644 |
--- a/src/a64/lithium-codegen-a64.cc |
+++ b/src/a64/lithium-codegen-a64.cc |
@@ -782,7 +782,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 --------------------", |
@@ -917,6 +918,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); |