Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 604b164a46576b82660998114e2dbeca322c9c79..e4fbe1fcd68667b8ad5322962dbd090327d18183 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -267,7 +267,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 --------------------", |
@@ -859,6 +860,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); |