| 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_PARSER_H_ | 5 #ifndef V8_PARSER_H_ |
| 6 #define V8_PARSER_H_ | 6 #define V8_PARSER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/ast.h" | 9 #include "src/ast.h" |
| 10 #include "src/compiler.h" // TODO(titzer): remove this include dependency | 10 #include "src/compiler.h" // TODO(titzer): remove this include dependency |
| (...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1065 ZoneList<const AstRawString*>* labels, bool* ok); | 1065 ZoneList<const AstRawString*>* labels, bool* ok); |
| 1066 IfStatement* ParseIfStatement(ZoneList<const AstRawString*>* labels, | 1066 IfStatement* ParseIfStatement(ZoneList<const AstRawString*>* labels, |
| 1067 bool* ok); | 1067 bool* ok); |
| 1068 Statement* ParseContinueStatement(bool* ok); | 1068 Statement* ParseContinueStatement(bool* ok); |
| 1069 Statement* ParseBreakStatement(ZoneList<const AstRawString*>* labels, | 1069 Statement* ParseBreakStatement(ZoneList<const AstRawString*>* labels, |
| 1070 bool* ok); | 1070 bool* ok); |
| 1071 Statement* ParseReturnStatement(bool* ok); | 1071 Statement* ParseReturnStatement(bool* ok); |
| 1072 Statement* ParseWithStatement(ZoneList<const AstRawString*>* labels, | 1072 Statement* ParseWithStatement(ZoneList<const AstRawString*>* labels, |
| 1073 bool* ok); | 1073 bool* ok); |
| 1074 CaseClause* ParseCaseClause(bool* default_seen_ptr, bool* ok); | 1074 CaseClause* ParseCaseClause(bool* default_seen_ptr, bool* ok); |
| 1075 Statement* ParseSwitchStatement(ZoneList<const AstRawString*>* labels, | 1075 SwitchStatement* ParseSwitchStatement(ZoneList<const AstRawString*>* labels, |
| 1076 bool* ok); | 1076 bool* ok); |
| 1077 DoWhileStatement* ParseDoWhileStatement(ZoneList<const AstRawString*>* labels, | 1077 DoWhileStatement* ParseDoWhileStatement(ZoneList<const AstRawString*>* labels, |
| 1078 bool* ok); | 1078 bool* ok); |
| 1079 WhileStatement* ParseWhileStatement(ZoneList<const AstRawString*>* labels, | 1079 WhileStatement* ParseWhileStatement(ZoneList<const AstRawString*>* labels, |
| 1080 bool* ok); | 1080 bool* ok); |
| 1081 Statement* ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok); | 1081 Statement* ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
| 1082 Statement* ParseThrowStatement(bool* ok); | 1082 Statement* ParseThrowStatement(bool* ok); |
| 1083 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value); | 1083 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value); |
| 1084 TryStatement* ParseTryStatement(bool* ok); | 1084 TryStatement* ParseTryStatement(bool* ok); |
| 1085 DebuggerStatement* ParseDebuggerStatement(bool* ok); | 1085 DebuggerStatement* ParseDebuggerStatement(bool* ok); |
| 1086 | 1086 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1363 parser_->BuildParameterInitializationBlock(parameters, ok); | 1363 parser_->BuildParameterInitializationBlock(parameters, ok); |
| 1364 if (!*ok) return; | 1364 if (!*ok) return; |
| 1365 if (init_block != nullptr) { | 1365 if (init_block != nullptr) { |
| 1366 body->Add(init_block, parser_->zone()); | 1366 body->Add(init_block, parser_->zone()); |
| 1367 } | 1367 } |
| 1368 } | 1368 } |
| 1369 } | 1369 } |
| 1370 } } // namespace v8::internal | 1370 } } // namespace v8::internal |
| 1371 | 1371 |
| 1372 #endif // V8_PARSER_H_ | 1372 #endif // V8_PARSER_H_ |
| OLD | NEW |