| 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 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 DoWhileStatement* ParseDoWhileStatement(ZoneList<const AstRawString*>* labels, | 1095 DoWhileStatement* ParseDoWhileStatement(ZoneList<const AstRawString*>* labels, |
| 1096 bool* ok); | 1096 bool* ok); |
| 1097 WhileStatement* ParseWhileStatement(ZoneList<const AstRawString*>* labels, | 1097 WhileStatement* ParseWhileStatement(ZoneList<const AstRawString*>* labels, |
| 1098 bool* ok); | 1098 bool* ok); |
| 1099 Statement* ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok); | 1099 Statement* ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
| 1100 Statement* ParseThrowStatement(bool* ok); | 1100 Statement* ParseThrowStatement(bool* ok); |
| 1101 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value); | 1101 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value); |
| 1102 TryStatement* ParseTryStatement(bool* ok); | 1102 TryStatement* ParseTryStatement(bool* ok); |
| 1103 DebuggerStatement* ParseDebuggerStatement(bool* ok); | 1103 DebuggerStatement* ParseDebuggerStatement(bool* ok); |
| 1104 | 1104 |
| 1105 // !%_IsSpecObject(result = iterator.next()) && | 1105 // !%_IsJSReceiver(result = iterator.next()) && |
| 1106 // %ThrowIteratorResultNotAnObject(result) | 1106 // %ThrowIteratorResultNotAnObject(result) |
| 1107 Expression* BuildIteratorNextResult(Expression* iterator, Variable* result, | 1107 Expression* BuildIteratorNextResult(Expression* iterator, Variable* result, |
| 1108 int pos); | 1108 int pos); |
| 1109 | 1109 |
| 1110 | 1110 |
| 1111 // Initialize the components of a for-in / for-of statement. | 1111 // Initialize the components of a for-in / for-of statement. |
| 1112 void InitializeForEachStatement(ForEachStatement* stmt, | 1112 void InitializeForEachStatement(ForEachStatement* stmt, |
| 1113 Expression* each, | 1113 Expression* each, |
| 1114 Expression* subject, | 1114 Expression* subject, |
| 1115 Statement* body); | 1115 Statement* body); |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1403 | 1403 |
| 1404 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1404 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
| 1405 return parser_->ParseDoExpression(ok); | 1405 return parser_->ParseDoExpression(ok); |
| 1406 } | 1406 } |
| 1407 | 1407 |
| 1408 | 1408 |
| 1409 } // namespace internal | 1409 } // namespace internal |
| 1410 } // namespace v8 | 1410 } // namespace v8 |
| 1411 | 1411 |
| 1412 #endif // V8_PARSING_PARSER_H_ | 1412 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |