Index: src/crankshaft/lithium.cc |
diff --git a/src/crankshaft/lithium.cc b/src/crankshaft/lithium.cc |
index 4b3e0bc63a8d7279d37bcf42946215b5a501578d..8804da7838eee3d53b443147aa2fdd933d208394 100644 |
--- a/src/crankshaft/lithium.cc |
+++ b/src/crankshaft/lithium.cc |
@@ -448,13 +448,14 @@ LChunk* LChunk::NewChunk(HGraph* graph) { |
Handle<Code> LChunk::Codegen() { |
MacroAssembler assembler(info()->isolate(), NULL, 0, |
CodeObjectRequired::kYes); |
- LOG_CODE_EVENT(info()->isolate(), |
- CodeStartLinePosInfoRecordEvent( |
- assembler.positions_recorder())); |
// Code serializer only takes unoptimized code. |
DCHECK(!info()->will_serialize()); |
LCodeGen generator(this, &assembler, info()); |
+ LOG_CODE_EVENT(info()->isolate(), |
+ CodeStartLinePosInfoRecordEvent( |
+ generator.source_position_table_builder())); |
+ |
MarkEmptyBlocks(); |
if (generator.GenerateCode()) { |
@@ -465,7 +466,7 @@ Handle<Code> LChunk::Codegen() { |
CommitDependencies(code); |
code->set_is_crankshafted(true); |
void* jit_handler_data = |
- assembler.positions_recorder()->DetachJITHandlerData(); |
+ generator.source_position_table_builder()->DetachJITHandlerData(); |
LOG_CODE_EVENT(info()->isolate(), |
CodeEndLinePosInfoRecordEvent(AbstractCode::cast(*code), |
jit_handler_data)); |