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

Side by Side Diff: src/parser.h

Issue 880253004: Do not create unresolved variables when parsing arrow functions lazily (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | src/parser.cc » ('j') | src/parser.cc » ('J')
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_PARSER_H_ 5 #ifndef V8_PARSER_H_
6 #define V8_PARSER_H_ 6 #define V8_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/compiler.h" // For CachedDataMode 10 #include "src/compiler.h" // For CachedDataMode
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 Expression* tag); 878 Expression* tag);
879 uint32_t ComputeTemplateLiteralHash(const TemplateLiteral* lit); 879 uint32_t ComputeTemplateLiteralHash(const TemplateLiteral* lit);
880 880
881 Scanner scanner_; 881 Scanner scanner_;
882 PreParser* reusable_preparser_; 882 PreParser* reusable_preparser_;
883 Scope* original_scope_; // for ES5 function declarations in sloppy eval 883 Scope* original_scope_; // for ES5 function declarations in sloppy eval
884 Target* target_stack_; // for break, continue statements 884 Target* target_stack_; // for break, continue statements
885 ParseData* cached_parse_data_; 885 ParseData* cached_parse_data_;
886 886
887 CompilationInfo* info_; 887 CompilationInfo* info_;
888 bool parsing_lazy_arrow_parameters_; // for lazily parsed arrow functions.
888 889
889 // Pending errors. 890 // Pending errors.
890 bool has_pending_error_; 891 bool has_pending_error_;
891 Scanner::Location pending_error_location_; 892 Scanner::Location pending_error_location_;
892 const char* pending_error_message_; 893 const char* pending_error_message_;
893 const AstRawString* pending_error_arg_; 894 const AstRawString* pending_error_arg_;
894 const char* pending_error_char_arg_; 895 const char* pending_error_char_arg_;
895 bool pending_error_is_reference_error_; 896 bool pending_error_is_reference_error_;
896 897
897 // Other information which will be stored in Parser and moved to Isolate after 898 // Other information which will be stored in Parser and moved to Isolate after
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 } 991 }
991 992
992 993
993 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, 994 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state,
994 int start, Expression* tag) { 995 int start, Expression* tag) {
995 return parser_->CloseTemplateLiteral(state, start, tag); 996 return parser_->CloseTemplateLiteral(state, start, tag);
996 } 997 }
997 } } // namespace v8::internal 998 } } // namespace v8::internal
998 999
999 #endif // V8_PARSER_H_ 1000 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698