Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 72cdc038ebfdb39e96573e6f49433dd84a292bc7..59ce40d9163ff5dacfc58faa5269eea173fa7e62 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -224,6 +224,13 @@ int CompilationInfo::GetDeclareGlobalsFlags() const { |
DeclareGlobalsLanguageMode::encode(parse_info()->language_mode()); |
} |
+SourcePositionTableBuilder::RecordingMode |
+CompilationInfo::SourcePositionRecordingMode() const { |
+ return parse_info() && parse_info()->is_native() |
+ ? SourcePositionTableBuilder::OMIT_SOURCE_POSITIONS |
+ : SourcePositionTableBuilder::RECORD_SOURCE_POSITIONS; |
+} |
+ |
bool CompilationInfo::ExpectsJSReceiverAsReceiver() { |
return is_sloppy(parse_info()->language_mode()) && !parse_info()->is_native(); |
} |