OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_PARSER_H_ | 5 #ifndef VM_PARSER_H_ |
6 #define VM_PARSER_H_ | 6 #define VM_PARSER_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 | 9 |
10 #include "platform/assert.h" | 10 #include "platform/assert.h" |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 Array* default_values); | 526 Array* default_values); |
527 SequenceNode* ParseInvokeFieldDispatcher(const Function& func, | 527 SequenceNode* ParseInvokeFieldDispatcher(const Function& func, |
528 Array* default_values); | 528 Array* default_values); |
529 SequenceNode* ParseImplicitClosure(const Function& func, | 529 SequenceNode* ParseImplicitClosure(const Function& func, |
530 Array* default_values); | 530 Array* default_values); |
531 | 531 |
532 void BuildDispatcherScope(const Function& func, | 532 void BuildDispatcherScope(const Function& func, |
533 const ArgumentsDescriptor& desc, | 533 const ArgumentsDescriptor& desc, |
534 Array* default_values); | 534 Array* default_values); |
535 | 535 |
| 536 void EnsureHasReturnStatement(SequenceNode* seq, intptr_t return_pos); |
536 void ChainNewBlock(LocalScope* outer_scope); | 537 void ChainNewBlock(LocalScope* outer_scope); |
537 void OpenBlock(); | 538 void OpenBlock(); |
538 void OpenLoopBlock(); | 539 void OpenLoopBlock(); |
539 void OpenFunctionBlock(const Function& func); | 540 void OpenFunctionBlock(const Function& func); |
540 void OpenAsyncClosure(); | 541 void OpenAsyncClosure(); |
541 RawFunction* OpenAsyncFunction(intptr_t formal_param_pos); | 542 RawFunction* OpenAsyncFunction(intptr_t formal_param_pos); |
542 RawFunction* OpenSyncGeneratorFunction(intptr_t func_pos); | 543 RawFunction* OpenSyncGeneratorFunction(intptr_t func_pos); |
543 SequenceNode* CloseSyncGenFunction(const Function& closure, | 544 SequenceNode* CloseSyncGenFunction(const Function& closure, |
544 SequenceNode* closure_node); | 545 SequenceNode* closure_node); |
545 void AddSyncGenClosureParameters(ParamList* params); | 546 void AddSyncGenClosureParameters(ParamList* params); |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 | 861 |
861 // Indentation of parser trace. | 862 // Indentation of parser trace. |
862 intptr_t trace_indent_; | 863 intptr_t trace_indent_; |
863 | 864 |
864 DISALLOW_COPY_AND_ASSIGN(Parser); | 865 DISALLOW_COPY_AND_ASSIGN(Parser); |
865 }; | 866 }; |
866 | 867 |
867 } // namespace dart | 868 } // namespace dart |
868 | 869 |
869 #endif // VM_PARSER_H_ | 870 #endif // VM_PARSER_H_ |
OLD | NEW |