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 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 CaseClause* ParseCaseClause(bool* default_seen_ptr, bool* ok); | 895 CaseClause* ParseCaseClause(bool* default_seen_ptr, bool* ok); |
896 Statement* ParseSwitchStatement(ZoneList<const AstRawString*>* labels, | 896 Statement* ParseSwitchStatement(ZoneList<const AstRawString*>* labels, |
897 bool* ok); | 897 bool* ok); |
898 DoWhileStatement* ParseDoWhileStatement(ZoneList<const AstRawString*>* labels, | 898 DoWhileStatement* ParseDoWhileStatement(ZoneList<const AstRawString*>* labels, |
899 bool* ok); | 899 bool* ok); |
900 WhileStatement* ParseWhileStatement(ZoneList<const AstRawString*>* labels, | 900 WhileStatement* ParseWhileStatement(ZoneList<const AstRawString*>* labels, |
901 bool* ok); | 901 bool* ok); |
902 Statement* ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok); | 902 Statement* ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
903 Statement* ParseThrowStatement(bool* ok); | 903 Statement* ParseThrowStatement(bool* ok); |
904 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value); | 904 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value); |
| 905 class DontCollectExpressionsInTailPositionScope; |
| 906 class CollectExpressionsInTailPositionToListScope; |
905 TryStatement* ParseTryStatement(bool* ok); | 907 TryStatement* ParseTryStatement(bool* ok); |
906 DebuggerStatement* ParseDebuggerStatement(bool* ok); | 908 DebuggerStatement* ParseDebuggerStatement(bool* ok); |
907 | 909 |
908 // !%_IsJSReceiver(result = iterator.next()) && | 910 // !%_IsJSReceiver(result = iterator.next()) && |
909 // %ThrowIteratorResultNotAnObject(result) | 911 // %ThrowIteratorResultNotAnObject(result) |
910 Expression* BuildIteratorNextResult(Expression* iterator, Variable* result, | 912 Expression* BuildIteratorNextResult(Expression* iterator, Variable* result, |
911 int pos); | 913 int pos); |
912 | 914 |
913 | 915 |
914 // Initialize the components of a for-in / for-of statement. | 916 // Initialize the components of a for-in / for-of statement. |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 | 1220 |
1219 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1221 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1220 return parser_->ParseDoExpression(ok); | 1222 return parser_->ParseDoExpression(ok); |
1221 } | 1223 } |
1222 | 1224 |
1223 | 1225 |
1224 } // namespace internal | 1226 } // namespace internal |
1225 } // namespace v8 | 1227 } // namespace v8 |
1226 | 1228 |
1227 #endif // V8_PARSING_PARSER_H_ | 1229 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |