Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index a90201173cf69e596a3c50e2726c84731604b6d1..805b6ef066bfe5ea0cd4669cf2ad2a387b022873 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -3361,18 +3361,21 @@ |
} |
} |
-void Parser::ReportErrors(Isolate* isolate, Handle<Script> script) { |
- if (stack_overflow()) { |
- isolate->StackOverflow(); |
- } else { |
- DCHECK(pending_error_handler_.has_pending_error()); |
- // Internalize ast values for throwing the pending error. |
- ast_value_factory()->Internalize(isolate); |
- pending_error_handler_.ThrowPendingError(isolate, script); |
- } |
-} |
- |
-void Parser::UpdateStatistics(Isolate* isolate, Handle<Script> script) { |
+ |
+void Parser::Internalize(Isolate* isolate, Handle<Script> script, bool error) { |
+ // Internalize strings and values. |
+ ast_value_factory()->Internalize(isolate); |
+ |
+ // Error processing. |
+ if (error) { |
+ if (stack_overflow()) { |
+ isolate->StackOverflow(); |
+ } else { |
+ DCHECK(pending_error_handler_.has_pending_error()); |
+ pending_error_handler_.ThrowPendingError(isolate, script); |
+ } |
+ } |
+ |
// Move statistics to Isolate. |
for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount; |
++feature) { |