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