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

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

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: majorly improve stack traces, get rid of self-spawning behaviour, create inner generator function Created 4 years, 8 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 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 Expression* right, int pos); 1067 Expression* right, int pos);
1068 1068
1069 friend class NonPatternRewriter; 1069 friend class NonPatternRewriter;
1070 V8_INLINE Expression* RewriteSpreads(ArrayLiteral* lit); 1070 V8_INLINE Expression* RewriteSpreads(ArrayLiteral* lit);
1071 1071
1072 V8_INLINE void RewriteNonPattern(ExpressionClassifier* classifier, bool* ok); 1072 V8_INLINE void RewriteNonPattern(ExpressionClassifier* classifier, bool* ok);
1073 1073
1074 friend class InitializerRewriter; 1074 friend class InitializerRewriter;
1075 void RewriteParameterInitializer(Expression* expr, Scope* scope); 1075 void RewriteParameterInitializer(Expression* expr, Scope* scope);
1076 1076
1077 Expression* EmitCreateJSGeneratorObject(int pos);
1078 Expression* EmitYieldJSGeneratorObject(Expression* generator_object);
1079
1077 Scanner scanner_; 1080 Scanner scanner_;
1078 PreParser* reusable_preparser_; 1081 PreParser* reusable_preparser_;
1079 Scope* original_scope_; // for ES5 function declarations in sloppy eval 1082 Scope* original_scope_; // for ES5 function declarations in sloppy eval
1080 Target* target_stack_; // for break, continue statements 1083 Target* target_stack_; // for break, continue statements
1081 ScriptCompiler::CompileOptions compile_options_; 1084 ScriptCompiler::CompileOptions compile_options_;
1082 ParseData* cached_parse_data_; 1085 ParseData* cached_parse_data_;
1083 1086
1084 PendingCompilationErrorHandler pending_error_handler_; 1087 PendingCompilationErrorHandler pending_error_handler_;
1085 1088
1086 // Other information which will be stored in Parser and moved to Isolate after 1089 // Other information which will be stored in Parser and moved to Isolate after
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 1266
1264 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1267 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1265 return parser_->ParseDoExpression(ok); 1268 return parser_->ParseDoExpression(ok);
1266 } 1269 }
1267 1270
1268 1271
1269 } // namespace internal 1272 } // namespace internal
1270 } // namespace v8 1273 } // namespace v8
1271 1274
1272 #endif // V8_PARSING_PARSER_H_ 1275 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/parsing/parser.cc » ('j') | src/parsing/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698