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_PREPARSER_H | 5 #ifndef V8_PREPARSER_H |
6 #define V8_PREPARSER_H | 6 #define V8_PREPARSER_H |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1589 Statement ParseStatement(bool* ok); | 1589 Statement ParseStatement(bool* ok); |
1590 Statement ParseSubStatement(bool* ok); | 1590 Statement ParseSubStatement(bool* ok); |
1591 Statement ParseFunctionDeclaration(bool* ok); | 1591 Statement ParseFunctionDeclaration(bool* ok); |
1592 Statement ParseClassDeclaration(bool* ok); | 1592 Statement ParseClassDeclaration(bool* ok); |
1593 Statement ParseBlock(bool* ok); | 1593 Statement ParseBlock(bool* ok); |
1594 Statement ParseVariableStatement(VariableDeclarationContext var_context, | 1594 Statement ParseVariableStatement(VariableDeclarationContext var_context, |
1595 bool* ok); | 1595 bool* ok); |
1596 Statement ParseVariableDeclarations(VariableDeclarationContext var_context, | 1596 Statement ParseVariableDeclarations(VariableDeclarationContext var_context, |
1597 VariableDeclarationProperties* decl_props, | 1597 VariableDeclarationProperties* decl_props, |
1598 int* num_decl, | 1598 int* num_decl, |
| 1599 Scanner::Location* first_initializer_loc, |
1599 bool* ok); | 1600 bool* ok); |
1600 Statement ParseExpressionOrLabelledStatement(bool* ok); | 1601 Statement ParseExpressionOrLabelledStatement(bool* ok); |
1601 Statement ParseIfStatement(bool* ok); | 1602 Statement ParseIfStatement(bool* ok); |
1602 Statement ParseContinueStatement(bool* ok); | 1603 Statement ParseContinueStatement(bool* ok); |
1603 Statement ParseBreakStatement(bool* ok); | 1604 Statement ParseBreakStatement(bool* ok); |
1604 Statement ParseReturnStatement(bool* ok); | 1605 Statement ParseReturnStatement(bool* ok); |
1605 Statement ParseWithStatement(bool* ok); | 1606 Statement ParseWithStatement(bool* ok); |
1606 Statement ParseSwitchStatement(bool* ok); | 1607 Statement ParseSwitchStatement(bool* ok); |
1607 Statement ParseDoWhileStatement(bool* ok); | 1608 Statement ParseDoWhileStatement(bool* ok); |
1608 Statement ParseWhileStatement(bool* ok); | 1609 Statement ParseWhileStatement(bool* ok); |
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3163 *ok = false; | 3164 *ok = false; |
3164 return; | 3165 return; |
3165 } | 3166 } |
3166 has_seen_constructor_ = true; | 3167 has_seen_constructor_ = true; |
3167 return; | 3168 return; |
3168 } | 3169 } |
3169 } | 3170 } |
3170 } } // v8::internal | 3171 } } // v8::internal |
3171 | 3172 |
3172 #endif // V8_PREPARSER_H | 3173 #endif // V8_PREPARSER_H |
OLD | NEW |