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

Side by Side Diff: src/parser.h

Issue 742643003: Cache template literal callSiteObj (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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_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 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 void HandleSourceURLComments(); 866 void HandleSourceURLComments();
867 867
868 void ThrowPendingError(); 868 void ThrowPendingError();
869 869
870 TemplateLiteralState OpenTemplateLiteral(int pos); 870 TemplateLiteralState OpenTemplateLiteral(int pos);
871 void AddTemplateSpan(TemplateLiteralState* state, bool tail); 871 void AddTemplateSpan(TemplateLiteralState* state, bool tail);
872 void AddTemplateExpression(TemplateLiteralState* state, 872 void AddTemplateExpression(TemplateLiteralState* state,
873 Expression* expression); 873 Expression* expression);
874 Expression* CloseTemplateLiteral(TemplateLiteralState* state, int start, 874 Expression* CloseTemplateLiteral(TemplateLiteralState* state, int start,
875 Expression* tag); 875 Expression* tag);
876 ZoneList<Expression*>* TemplateRawStrings(const TemplateLiteral* lit); 876 ZoneList<Expression*>* TemplateRawStrings(const TemplateLiteral* lit,
877 uint32_t* hash);
877 Scanner scanner_; 878 Scanner scanner_;
878 PreParser* reusable_preparser_; 879 PreParser* reusable_preparser_;
879 Scope* original_scope_; // for ES5 function declarations in sloppy eval 880 Scope* original_scope_; // for ES5 function declarations in sloppy eval
880 Target* target_stack_; // for break, continue statements 881 Target* target_stack_; // for break, continue statements
881 ParseData* cached_parse_data_; 882 ParseData* cached_parse_data_;
882 883
883 CompilationInfo* info_; 884 CompilationInfo* info_;
884 885
885 // Pending errors. 886 // Pending errors.
886 bool has_pending_error_; 887 bool has_pending_error_;
(...skipping 103 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

Powered by Google App Engine
This is Rietveld 408576698