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

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

Issue 1567603005: Set up rewriting triggers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
« src/parsing/parser-base.h ('K') | « src/parsing/parser-base.h ('k') | no next file » | 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_PREPARSER_H 5 #ifndef V8_PARSING_PREPARSER_H
6 #define V8_PARSING_PREPARSER_H 6 #define V8_PARSING_PREPARSER_H
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 PreParserExpressionList args, 919 PreParserExpressionList args,
920 int pos); 920 int pos);
921 921
922 inline void RewriteDestructuringAssignments() {} 922 inline void RewriteDestructuringAssignments() {}
923 923
924 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {} 924 inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {}
925 925
926 void SetFunctionNameFromPropertyName(PreParserExpression, 926 void SetFunctionNameFromPropertyName(PreParserExpression,
927 PreParserIdentifier) {} 927 PreParserIdentifier) {}
928 928
929 inline PreParserExpression RewriteExpression(PreParserExpression expr) {
930 return expr;
931 }
932 inline PreParserExpression RewriteObjectLiteralProperty(
933 PreParserExpression property) {
934 return property;
935 }
936
929 private: 937 private:
930 PreParser* pre_parser_; 938 PreParser* pre_parser_;
931 }; 939 };
932 940
933 941
934 // Preparsing checks a JavaScript program and emits preparse-data that helps 942 // Preparsing checks a JavaScript program and emits preparse-data that helps
935 // a later parsing to be faster. 943 // a later parsing to be faster.
936 // See preparse-data-format.h for the data format. 944 // See preparse-data-format.h for the data format.
937 945
938 // The PreParser checks that the syntax follows the grammar for JavaScript, 946 // The PreParser checks that the syntax follows the grammar for JavaScript,
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 const PreParserFormalParameters& parameters, FunctionKind kind, 1134 const PreParserFormalParameters& parameters, FunctionKind kind,
1127 FunctionLiteral::FunctionType function_type, bool* ok) { 1135 FunctionLiteral::FunctionType function_type, bool* ok) {
1128 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1136 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1129 kind, function_type, ok); 1137 kind, function_type, ok);
1130 } 1138 }
1131 1139
1132 } // namespace internal 1140 } // namespace internal
1133 } // namespace v8 1141 } // namespace v8
1134 1142
1135 #endif // V8_PARSING_PREPARSER_H 1143 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« src/parsing/parser-base.h ('K') | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698