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

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: rebased 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/ast/scopes.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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 bool Parse(ParseInfo* info); 717 bool Parse(ParseInfo* info);
718 void ParseOnBackground(ParseInfo* info); 718 void ParseOnBackground(ParseInfo* info);
719 719
720 // Handle errors detected during parsing, move statistics to Isolate, 720 // Handle errors detected during parsing, move statistics to Isolate,
721 // internalize strings (move them to the heap). 721 // internalize strings (move them to the heap).
722 void Internalize(Isolate* isolate, Handle<Script> script, bool error); 722 void Internalize(Isolate* isolate, Handle<Script> script, bool error);
723 void HandleSourceURLComments(Isolate* isolate, Handle<Script> script); 723 void HandleSourceURLComments(Isolate* isolate, Handle<Script> script);
724 724
725 private: 725 private:
726 friend class ParserTraits; 726 friend class ParserTraits;
727 friend class DiscardableZoneScope;
728 727
729 // Runtime encoding of different completion modes. 728 // Runtime encoding of different completion modes.
730 enum CompletionKind { 729 enum CompletionKind {
731 kNormalCompletion, 730 kNormalCompletion,
732 kThrowCompletion, 731 kThrowCompletion,
733 kAbruptCompletion 732 kAbruptCompletion
734 }; 733 };
735 734
736 // Limit the allowed number of local variables in a function. The hard limit 735 // Limit the allowed number of local variables in a function. The hard limit
737 // is that offsets computed by FullCodeGenerator::StackOperand and similar 736 // is that offsets computed by FullCodeGenerator::StackOperand and similar
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 1322
1324 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1323 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1325 return parser_->ParseDoExpression(ok); 1324 return parser_->ParseDoExpression(ok);
1326 } 1325 }
1327 1326
1328 1327
1329 } // namespace internal 1328 } // namespace internal
1330 } // namespace v8 1329 } // namespace v8
1331 1330
1332 #endif // V8_PARSING_PARSER_H_ 1331 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/ast/scopes.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698