Index: src/preparse-data.cc |
diff --git a/src/preparse-data.cc b/src/preparse-data.cc |
index a66a1adcf9b6bd7eb6d12735d231843657e70287..40498d69da1d679a73f064ca8e799ee9b2883473 100644 |
--- a/src/preparse-data.cc |
+++ b/src/preparse-data.cc |
@@ -28,11 +28,10 @@ CompleteParserRecorder::CompleteParserRecorder() { |
} |
-void CompleteParserRecorder::LogMessage(int start_pos, |
- int end_pos, |
+void CompleteParserRecorder::LogMessage(int start_pos, int end_pos, |
const char* message, |
const char* arg_opt, |
- bool is_reference_error) { |
+ ParseErrorType error_type) { |
if (HasError()) return; |
preamble_[PreparseDataConstants::kHasErrorOffset] = true; |
function_store_.Reset(); |
@@ -42,8 +41,8 @@ void CompleteParserRecorder::LogMessage(int start_pos, |
function_store_.Add(end_pos); |
STATIC_ASSERT(PreparseDataConstants::kMessageArgCountPos == 2); |
function_store_.Add((arg_opt == NULL) ? 0 : 1); |
- STATIC_ASSERT(PreparseDataConstants::kIsReferenceErrorPos == 3); |
- function_store_.Add(is_reference_error ? 1 : 0); |
+ STATIC_ASSERT(PreparseDataConstants::kParseErrorTypePos == 3); |
+ function_store_.Add(error_type); |
STATIC_ASSERT(PreparseDataConstants::kMessageTextPos == 4); |
WriteString(CStrVector(message)); |
if (arg_opt != NULL) WriteString(CStrVector(arg_opt)); |