| Index: src/parsing/parser.h
|
| diff --git a/src/parsing/parser.h b/src/parsing/parser.h
|
| index 20c79371822276d08a8b1691a4855a9fb090ad59..5cefdc79b9bb123310135c3ad19ba4a9029a9fe9 100644
|
| --- a/src/parsing/parser.h
|
| +++ b/src/parsing/parser.h
|
| @@ -222,16 +222,17 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) {
|
| void DeserializeScopeChain(ParseInfo* info,
|
| MaybeHandle<ScopeInfo> maybe_outer_scope_info);
|
|
|
| - // Handle errors detected during parsing, move statistics to Isolate,
|
| - // internalize strings (move them to the heap).
|
| - void Internalize(Isolate* isolate, Handle<Script> script, bool error);
|
| + // Handle errors detected during parsing
|
| + void ReportErrors(Isolate* isolate, Handle<Script> script);
|
| + // Move statistics to Isolate
|
| + void UpdateStatistics(Isolate* isolate, Handle<Script> script);
|
| void HandleSourceURLComments(Isolate* isolate, Handle<Script> script);
|
|
|
| private:
|
| friend class ParserBase<Parser>;
|
| friend class v8::internal::ExpressionClassifier<ParserTypes<Parser>>;
|
| - friend bool v8::internal::parsing::ParseProgram(ParseInfo*);
|
| - friend bool v8::internal::parsing::ParseFunction(ParseInfo*);
|
| + friend bool v8::internal::parsing::ParseProgram(ParseInfo*, bool);
|
| + friend bool v8::internal::parsing::ParseFunction(ParseInfo*, bool);
|
|
|
| bool AllowsLazyParsingWithoutUnresolvedVariables() const {
|
| return scope()->AllowsLazyParsingWithoutUnresolvedVariables(
|
|
|