Index: src/preparse-data.cc |
diff --git a/src/preparse-data.cc b/src/preparse-data.cc |
index e1c7ad199b93654e7ed0c7af3f14dbe06c8e8c74..9b25b73e5e1e004ecd9599be312e1453cf729081 100644 |
--- a/src/preparse-data.cc |
+++ b/src/preparse-data.cc |
@@ -29,7 +29,7 @@ CompleteParserRecorder::CompleteParserRecorder() { |
void CompleteParserRecorder::LogMessage(int start_pos, int end_pos, |
- const char* message, |
+ MessageTemplate::Template message, |
const char* arg_opt, |
ParseErrorType error_type) { |
if (HasError()) return; |
@@ -43,8 +43,9 @@ void CompleteParserRecorder::LogMessage(int start_pos, int end_pos, |
function_store_.Add((arg_opt == NULL) ? 0 : 1); |
STATIC_ASSERT(PreparseDataConstants::kParseErrorTypePos == 3); |
function_store_.Add(error_type); |
- STATIC_ASSERT(PreparseDataConstants::kMessageTextPos == 4); |
- WriteString(CStrVector(message)); |
+ STATIC_ASSERT(PreparseDataConstants::kMessageTemplatePos == 4); |
+ function_store_.Add(static_cast<unsigned>(message)); |
+ STATIC_ASSERT(PreparseDataConstants::kMessageArgPos == 5); |
if (arg_opt != NULL) WriteString(CStrVector(arg_opt)); |
} |