Index: src/crankshaft/mips/lithium-codegen-mips.cc |
diff --git a/src/crankshaft/mips/lithium-codegen-mips.cc b/src/crankshaft/mips/lithium-codegen-mips.cc |
index 30a59fcc198a6b26f060a7d59988bc3ab4e3ed94..c8e0cd0cc2bcbc30e12fbea72e63f26dac998abf 100644 |
--- a/src/crankshaft/mips/lithium-codegen-mips.cc |
+++ b/src/crankshaft/mips/lithium-codegen-mips.cc |
@@ -83,6 +83,9 @@ void LCodeGen::FinishCode(Handle<Code> code) { |
DCHECK(is_done()); |
code->set_stack_slots(GetTotalFrameSlotCount()); |
code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
+ Handle<ByteArray> source_positions = |
+ source_position_table_builder_.ToSourcePositionTable(); |
+ code->set_source_position_table(*source_positions); |
PopulateDeoptimizationData(code); |
} |
@@ -872,12 +875,6 @@ void LCodeGen::RecordSafepointWithRegisters(LPointerMap* pointers, |
} |
-void LCodeGen::RecordAndWritePosition(int position) { |
- if (position == RelocInfo::kNoPosition) return; |
- masm()->positions_recorder()->RecordPosition(position); |
-} |
- |
- |
static const char* LabelType(LLabel* label) { |
if (label->is_loop_header()) return " (loop header)"; |
if (label->is_osr_entry()) return " (OSR entry)"; |