Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index ce5ce1e2e9d581e3c7855ee4f38ef99cac41fe4e..701130c7829769baf10d9abc63f45f5f00d647e1 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -401,8 +401,9 @@ void CodeGenerator::AssembleSourcePosition(Instruction* instr) { |
masm()->positions_recorder()->RecordPosition(code_pos); |
masm()->positions_recorder()->WriteRecordedPositions(); |
if (FLAG_code_comments) { |
- Vector<char> buffer = Vector<char>::New(256); |
CompilationInfo* info = this->info(); |
+ if (!info->parse_info()) return; |
+ Vector<char> buffer = Vector<char>::New(256); |
int ln = Script::GetLineNumber(info->script(), code_pos); |
int cn = Script::GetColumnNumber(info->script(), code_pos); |
if (info->script()->name()->IsString()) { |