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

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

Issue 2193793002: Put Scopes into temporary Zone (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: ditto 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
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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 bool Parse(ParseInfo* info); 711 bool Parse(ParseInfo* info);
712 void ParseOnBackground(ParseInfo* info); 712 void ParseOnBackground(ParseInfo* info);
713 713
714 // Handle errors detected during parsing, move statistics to Isolate, 714 // Handle errors detected during parsing, move statistics to Isolate,
715 // internalize strings (move them to the heap). 715 // internalize strings (move them to the heap).
716 void Internalize(Isolate* isolate, Handle<Script> script, bool error); 716 void Internalize(Isolate* isolate, Handle<Script> script, bool error);
717 void HandleSourceURLComments(Isolate* isolate, Handle<Script> script); 717 void HandleSourceURLComments(Isolate* isolate, Handle<Script> script);
718 718
719 private: 719 private:
720 friend class ParserTraits; 720 friend class ParserTraits;
721 friend class DiscardableZoneScope;
722 721
723 // Runtime encoding of different completion modes. 722 // Runtime encoding of different completion modes.
724 enum CompletionKind { 723 enum CompletionKind {
725 kNormalCompletion, 724 kNormalCompletion,
726 kThrowCompletion, 725 kThrowCompletion,
727 kAbruptCompletion 726 kAbruptCompletion
728 }; 727 };
729 728
730 // Limit the allowed number of local variables in a function. The hard limit 729 // Limit the allowed number of local variables in a function. The hard limit
731 // is that offsets computed by FullCodeGenerator::StackOperand and similar 730 // is that offsets computed by FullCodeGenerator::StackOperand and similar
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 1318
1320 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1319 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1321 return parser_->ParseDoExpression(ok); 1320 return parser_->ParseDoExpression(ok);
1322 } 1321 }
1323 1322
1324 1323
1325 } // namespace internal 1324 } // namespace internal
1326 } // namespace v8 1325 } // namespace v8
1327 1326
1328 #endif // V8_PARSING_PARSER_H_ 1327 #endif // V8_PARSING_PARSER_H_
OLDNEW
« src/ast/scopes.cc ('K') | « src/ast/scopes.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698