| 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 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1366 ZoneList<v8::internal::Statement*>* body, bool* ok) { | 1366 ZoneList<v8::internal::Statement*>* body, bool* ok) { |
| 1367 if (!parameters.is_simple) { | 1367 if (!parameters.is_simple) { |
| 1368 auto* init_block = | 1368 auto* init_block = |
| 1369 parser_->BuildParameterInitializationBlock(parameters, ok); | 1369 parser_->BuildParameterInitializationBlock(parameters, ok); |
| 1370 if (!*ok) return; | 1370 if (!*ok) return; |
| 1371 if (init_block != nullptr) { | 1371 if (init_block != nullptr) { |
| 1372 body->Add(init_block, parser_->zone()); | 1372 body->Add(init_block, parser_->zone()); |
| 1373 } | 1373 } |
| 1374 } | 1374 } |
| 1375 } | 1375 } |
| 1376 } } // namespace v8::internal | 1376 } // namespace internal |
| 1377 } // namespace v8 |
| 1377 | 1378 |
| 1378 #endif // V8_PARSER_H_ | 1379 #endif // V8_PARSER_H_ |
| OLD | NEW |