| Index: src/parsing/parser.cc
|
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
|
| index 805b6ef066bfe5ea0cd4669cf2ad2a387b022873..a90201173cf69e596a3c50e2726c84731604b6d1 100644
|
| --- a/src/parsing/parser.cc
|
| +++ b/src/parsing/parser.cc
|
| @@ -3361,21 +3361,18 @@ void Parser::HandleSourceURLComments(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);
|
| - }
|
| +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) {
|
| // Move statistics to Isolate.
|
| for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount;
|
| ++feature) {
|
|
|