Index: src/crankshaft/mips64/lithium-codegen-mips64.cc |
diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.cc b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
index 41ed95ed615da98fb4ef696dc89967103c7aa6a2..a30aff257a7a42e997b5465f82a0b0c730d2e475 100644 |
--- a/src/crankshaft/mips64/lithium-codegen-mips64.cc |
+++ b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
@@ -59,6 +59,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); |
} |
@@ -861,12 +864,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)"; |