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 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1583 Statement ParseStatement(bool* ok); | 1583 Statement ParseStatement(bool* ok); |
1584 Statement ParseSubStatement(bool* ok); | 1584 Statement ParseSubStatement(bool* ok); |
1585 Statement ParseFunctionDeclaration(bool* ok); | 1585 Statement ParseFunctionDeclaration(bool* ok); |
1586 Statement ParseClassDeclaration(bool* ok); | 1586 Statement ParseClassDeclaration(bool* ok); |
1587 Statement ParseBlock(bool* ok); | 1587 Statement ParseBlock(bool* ok); |
1588 Statement ParseVariableStatement(VariableDeclarationContext var_context, | 1588 Statement ParseVariableStatement(VariableDeclarationContext var_context, |
1589 bool* ok); | 1589 bool* ok); |
1590 Statement ParseVariableDeclarations(VariableDeclarationContext var_context, | 1590 Statement ParseVariableDeclarations(VariableDeclarationContext var_context, |
1591 VariableDeclarationProperties* decl_props, | 1591 VariableDeclarationProperties* decl_props, |
1592 int* num_decl, | 1592 int* num_decl, |
| 1593 Scanner::Location* first_initializer_loc, |
1593 bool* ok); | 1594 bool* ok); |
1594 Statement ParseExpressionOrLabelledStatement(bool* ok); | 1595 Statement ParseExpressionOrLabelledStatement(bool* ok); |
1595 Statement ParseIfStatement(bool* ok); | 1596 Statement ParseIfStatement(bool* ok); |
1596 Statement ParseContinueStatement(bool* ok); | 1597 Statement ParseContinueStatement(bool* ok); |
1597 Statement ParseBreakStatement(bool* ok); | 1598 Statement ParseBreakStatement(bool* ok); |
1598 Statement ParseReturnStatement(bool* ok); | 1599 Statement ParseReturnStatement(bool* ok); |
1599 Statement ParseWithStatement(bool* ok); | 1600 Statement ParseWithStatement(bool* ok); |
1600 Statement ParseSwitchStatement(bool* ok); | 1601 Statement ParseSwitchStatement(bool* ok); |
1601 Statement ParseDoWhileStatement(bool* ok); | 1602 Statement ParseDoWhileStatement(bool* ok); |
1602 Statement ParseWhileStatement(bool* ok); | 1603 Statement ParseWhileStatement(bool* ok); |
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3157 *ok = false; | 3158 *ok = false; |
3158 return; | 3159 return; |
3159 } | 3160 } |
3160 has_seen_constructor_ = true; | 3161 has_seen_constructor_ = true; |
3161 return; | 3162 return; |
3162 } | 3163 } |
3163 } | 3164 } |
3164 } } // v8::internal | 3165 } } // v8::internal |
3165 | 3166 |
3166 #endif // V8_PREPARSER_H | 3167 #endif // V8_PREPARSER_H |
OLD | NEW |