Index: src/crankshaft/lithium.cc |
diff --git a/src/crankshaft/lithium.cc b/src/crankshaft/lithium.cc |
index 8ba35138c7a5bac4cc8b099bfb1c877a06100e7f..8cf3a3f0e6a982a497939e3caf08a48cdf8c6f11 100644 |
--- a/src/crankshaft/lithium.cc |
+++ b/src/crankshaft/lithium.cc |
@@ -461,8 +461,10 @@ Handle<Code> LChunk::Codegen() { |
&assembler, nullptr, info(), assembler.CodeObject()); |
generator.FinishCode(code); |
CommitDependencies(code); |
- generator.source_position_table_builder()->EndJitLogging( |
- AbstractCode::cast(*code)); |
+ Handle<ByteArray> source_positions = |
+ generator.source_position_table_builder()->ToSourcePositionTable( |
+ info()->isolate(), Handle<AbstractCode>::cast(code)); |
+ code->set_source_position_table(*source_positions); |
code->set_is_crankshafted(true); |
CodeGenerator::PrintCode(code, info()); |