| 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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 DebuggerStatement* ParseDebuggerStatement(bool* ok); | 921 DebuggerStatement* ParseDebuggerStatement(bool* ok); |
| 922 | 922 |
| 923 // !%_IsJSReceiver(result = iterator.next()) && | 923 // !%_IsJSReceiver(result = iterator.next()) && |
| 924 // %ThrowIteratorResultNotAnObject(result) | 924 // %ThrowIteratorResultNotAnObject(result) |
| 925 Expression* BuildIteratorNextResult(Expression* iterator, Variable* result, | 925 Expression* BuildIteratorNextResult(Expression* iterator, Variable* result, |
| 926 int pos); | 926 int pos); |
| 927 | 927 |
| 928 | 928 |
| 929 // Initialize the components of a for-in / for-of statement. | 929 // Initialize the components of a for-in / for-of statement. |
| 930 void InitializeForEachStatement(ForEachStatement* stmt, Expression* each, | 930 void InitializeForEachStatement(ForEachStatement* stmt, Expression* each, |
| 931 Expression* subject, Statement* body, | 931 Expression* subject, Statement* body); |
| 932 bool is_destructuring); | 932 void InitializeForOfStatement(ForOfStatement* stmt, Expression* each, |
| 933 Expression* subject, Statement* body, |
| 934 bool use_position_hack = false); |
| 933 Statement* DesugarLexicalBindingsInForStatement( | 935 Statement* DesugarLexicalBindingsInForStatement( |
| 934 Scope* inner_scope, VariableMode mode, | 936 Scope* inner_scope, VariableMode mode, |
| 935 ZoneList<const AstRawString*>* names, ForStatement* loop, Statement* init, | 937 ZoneList<const AstRawString*>* names, ForStatement* loop, Statement* init, |
| 936 Expression* cond, Statement* next, Statement* body, bool* ok); | 938 Expression* cond, Statement* next, Statement* body, bool* ok); |
| 937 | 939 |
| 938 void RewriteDoExpression(Expression* expr, bool* ok); | 940 void RewriteDoExpression(Expression* expr, bool* ok); |
| 939 | 941 |
| 940 FunctionLiteral* ParseFunctionLiteral( | 942 FunctionLiteral* ParseFunctionLiteral( |
| 941 const AstRawString* name, Scanner::Location function_name_location, | 943 const AstRawString* name, Scanner::Location function_name_location, |
| 942 FunctionNameValidity function_name_validity, FunctionKind kind, | 944 FunctionNameValidity function_name_validity, FunctionKind kind, |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 | 1230 |
| 1229 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1231 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
| 1230 return parser_->ParseDoExpression(ok); | 1232 return parser_->ParseDoExpression(ok); |
| 1231 } | 1233 } |
| 1232 | 1234 |
| 1233 | 1235 |
| 1234 } // namespace internal | 1236 } // namespace internal |
| 1235 } // namespace v8 | 1237 } // namespace v8 |
| 1236 | 1238 |
| 1237 #endif // V8_PARSING_PARSER_H_ | 1239 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |