| Index: src/preparse-data.cc
|
| diff --git a/src/preparse-data.cc b/src/preparse-data.cc
|
| index 9f585a991feadd5c99344cbae31d4c06df2fbfe3..5bc6173e90f07847e2a99c834ae24195a4fa6d3c 100644
|
| --- a/src/preparse-data.cc
|
| +++ b/src/preparse-data.cc
|
| @@ -88,9 +88,10 @@ CompleteParserRecorder::CompleteParserRecorder()
|
|
|
|
|
| void CompleteParserRecorder::LogMessage(int start_pos,
|
| - int end_pos,
|
| - const char* message,
|
| - const char* arg_opt) {
|
| + int end_pos,
|
| + const char* message,
|
| + const char* arg_opt,
|
| + bool is_reference_error) {
|
| if (has_error()) return;
|
| preamble_[PreparseDataConstants::kHasErrorOffset] = true;
|
| function_store_.Reset();
|
| @@ -100,7 +101,9 @@ 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::kMessageTextPos == 3);
|
| + STATIC_ASSERT(PreparseDataConstants::kIsReferenceErrorPos == 3);
|
| + function_store_.Add(is_reference_error ? 1 : 0);
|
| + STATIC_ASSERT(PreparseDataConstants::kMessageTextPos == 4);
|
| WriteString(CStrVector(message));
|
| if (arg_opt != NULL) WriteString(CStrVector(arg_opt));
|
| should_log_symbols_ = false;
|
|
|