Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: src/parsing/parser.h

Issue 2198043002: Add a mode to completely deserialize scope chains (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler-dispatcher/compiler-dispatcher-job.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSING_PARSER_H_ 5 #ifndef V8_PARSING_PARSER_H_
6 #define V8_PARSING_PARSER_H_ 6 #define V8_PARSING_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 cached_parse_data_ = NULL; 710 cached_parse_data_ = NULL;
711 } 711 }
712 712
713 // Parses the source code represented by the compilation info and sets its 713 // Parses the source code represented by the compilation info and sets its
714 // function literal. Returns false (and deallocates any allocated AST 714 // function literal. Returns false (and deallocates any allocated AST
715 // nodes) if parsing failed. 715 // nodes) if parsing failed.
716 static bool ParseStatic(ParseInfo* info); 716 static bool ParseStatic(ParseInfo* info);
717 bool Parse(ParseInfo* info); 717 bool Parse(ParseInfo* info);
718 void ParseOnBackground(ParseInfo* info); 718 void ParseOnBackground(ParseInfo* info);
719 719
720 void DeserializeScopeChain(ParseInfo* info, Handle<Context> context,
721 Scope::DeserializationMode deserialization_mode);
722
720 // Handle errors detected during parsing, move statistics to Isolate, 723 // Handle errors detected during parsing, move statistics to Isolate,
721 // internalize strings (move them to the heap). 724 // internalize strings (move them to the heap).
722 void Internalize(Isolate* isolate, Handle<Script> script, bool error); 725 void Internalize(Isolate* isolate, Handle<Script> script, bool error);
723 void HandleSourceURLComments(Isolate* isolate, Handle<Script> script); 726 void HandleSourceURLComments(Isolate* isolate, Handle<Script> script);
724 727
725 private: 728 private:
726 friend class ParserTraits; 729 friend class ParserTraits;
727 friend class DiscardableZoneScope; 730 friend class DiscardableZoneScope;
728 731
729 // Runtime encoding of different completion modes. 732 // Runtime encoding of different completion modes.
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 1326
1324 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1327 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1325 return parser_->ParseDoExpression(ok); 1328 return parser_->ParseDoExpression(ok);
1326 } 1329 }
1327 1330
1328 1331
1329 } // namespace internal 1332 } // namespace internal
1330 } // namespace v8 1333 } // namespace v8
1331 1334
1332 #endif // V8_PARSING_PARSER_H_ 1335 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/compiler-dispatcher/compiler-dispatcher-job.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698