Index: src/crankshaft/x87/lithium-codegen-x87.cc |
diff --git a/src/crankshaft/x87/lithium-codegen-x87.cc b/src/crankshaft/x87/lithium-codegen-x87.cc |
index d21b34991c015b198911ea5ca7ae2e22f81d0adf..c6e643eeb7f04df21d9f04ad51079c0e75a4dd80 100644 |
--- a/src/crankshaft/x87/lithium-codegen-x87.cc |
+++ b/src/crankshaft/x87/lithium-codegen-x87.cc |
@@ -68,6 +68,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); |
if (info()->ShouldEnsureSpaceForLazyDeopt()) { |
Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); |
@@ -1098,12 +1101,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)"; |