OLD | NEW |
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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1137 TryStatement* ParseTryStatement(bool* ok); | 1137 TryStatement* ParseTryStatement(bool* ok); |
1138 DebuggerStatement* ParseDebuggerStatement(bool* ok); | 1138 DebuggerStatement* ParseDebuggerStatement(bool* ok); |
1139 | 1139 |
1140 // !%_IsJSReceiver(result = iterator.next()) && | 1140 // !%_IsJSReceiver(result = iterator.next()) && |
1141 // %ThrowIteratorResultNotAnObject(result) | 1141 // %ThrowIteratorResultNotAnObject(result) |
1142 Expression* BuildIteratorNextResult(Expression* iterator, Variable* result, | 1142 Expression* BuildIteratorNextResult(Expression* iterator, Variable* result, |
1143 int pos); | 1143 int pos); |
1144 | 1144 |
1145 | 1145 |
1146 // Initialize the components of a for-in / for-of statement. | 1146 // Initialize the components of a for-in / for-of statement. |
1147 void InitializeForEachStatement(ForEachStatement* stmt, | 1147 void InitializeForEachStatement(ForEachStatement* stmt, Expression* each, |
1148 Expression* each, | 1148 Expression* subject, Statement* body, |
1149 Expression* subject, | 1149 bool is_destructuring); |
1150 Statement* body); | |
1151 Statement* DesugarLexicalBindingsInForStatement( | 1150 Statement* DesugarLexicalBindingsInForStatement( |
1152 Scope* inner_scope, bool is_const, ZoneList<const AstRawString*>* names, | 1151 Scope* inner_scope, bool is_const, ZoneList<const AstRawString*>* names, |
1153 ForStatement* loop, Statement* init, Expression* cond, Statement* next, | 1152 ForStatement* loop, Statement* init, Expression* cond, Statement* next, |
1154 Statement* body, bool* ok); | 1153 Statement* body, bool* ok); |
1155 | 1154 |
1156 void RewriteDoExpression(Expression* expr, bool* ok); | 1155 void RewriteDoExpression(Expression* expr, bool* ok); |
1157 | 1156 |
1158 FunctionLiteral* ParseFunctionLiteral( | 1157 FunctionLiteral* ParseFunctionLiteral( |
1159 const AstRawString* name, Scanner::Location function_name_location, | 1158 const AstRawString* name, Scanner::Location function_name_location, |
1160 FunctionNameValidity function_name_validity, FunctionKind kind, | 1159 FunctionNameValidity function_name_validity, FunctionKind kind, |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1443 | 1442 |
1444 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1443 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1445 return parser_->ParseDoExpression(ok); | 1444 return parser_->ParseDoExpression(ok); |
1446 } | 1445 } |
1447 | 1446 |
1448 | 1447 |
1449 } // namespace internal | 1448 } // namespace internal |
1450 } // namespace v8 | 1449 } // namespace v8 |
1451 | 1450 |
1452 #endif // V8_PARSING_PARSER_H_ | 1451 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |