| 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 AstNode* CheckDuplicateFieldInit( | 477 AstNode* CheckDuplicateFieldInit( |
| 478 intptr_t init_pos, | 478 intptr_t init_pos, |
| 479 GrowableArray<Field*>* initialized_fields, | 479 GrowableArray<Field*>* initialized_fields, |
| 480 AstNode* instance, | 480 AstNode* instance, |
| 481 Field* field, | 481 Field* field, |
| 482 AstNode* init_value); | 482 AstNode* init_value); |
| 483 StaticCallNode* GenerateSuperConstructorCall( | 483 StaticCallNode* GenerateSuperConstructorCall( |
| 484 const Class& cls, | 484 const Class& cls, |
| 485 intptr_t supercall_pos, | 485 intptr_t supercall_pos, |
| 486 LocalVariable* receiver, | 486 LocalVariable* receiver, |
| 487 AstNode* phase_parameter, | |
| 488 ArgumentListNode* forwarding_args); | 487 ArgumentListNode* forwarding_args); |
| 489 StaticCallNode* ParseSuperInitializer( | 488 StaticCallNode* ParseSuperInitializer( |
| 490 const Class& cls, | 489 const Class& cls, |
| 491 LocalVariable* receiver); | 490 LocalVariable* receiver); |
| 492 AstNode* ParseInitializer(const Class& cls, | 491 AstNode* ParseInitializer(const Class& cls, |
| 493 LocalVariable* receiver, | 492 LocalVariable* receiver, |
| 494 GrowableArray<Field*>* initialized_fields); | 493 GrowableArray<Field*>* initialized_fields); |
| 495 void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver); | 494 void ParseConstructorRedirection(const Class& cls, LocalVariable* receiver); |
| 496 void ParseInitializers(const Class& cls, | 495 void ParseInitializers(const Class& cls, |
| 497 LocalVariable* receiver, | 496 LocalVariable* receiver, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 | 577 |
| 579 SequenceNode* CloseAsyncClosure(SequenceNode* body); | 578 SequenceNode* CloseAsyncClosure(SequenceNode* body); |
| 580 SequenceNode* CloseAsyncTryBlock(SequenceNode* try_block); | 579 SequenceNode* CloseAsyncTryBlock(SequenceNode* try_block); |
| 581 SequenceNode* CloseAsyncGeneratorTryBlock(SequenceNode *body); | 580 SequenceNode* CloseAsyncGeneratorTryBlock(SequenceNode *body); |
| 582 | 581 |
| 583 void AddAsyncClosureParameters(ParamList* params); | 582 void AddAsyncClosureParameters(ParamList* params); |
| 584 void AddContinuationVariables(); | 583 void AddContinuationVariables(); |
| 585 void AddAsyncClosureVariables(); | 584 void AddAsyncClosureVariables(); |
| 586 void AddAsyncGeneratorVariables(); | 585 void AddAsyncGeneratorVariables(); |
| 587 | 586 |
| 588 LocalVariable* LookupPhaseParameter(); | |
| 589 LocalVariable* LookupReceiver(LocalScope* from_scope, bool test_only); | 587 LocalVariable* LookupReceiver(LocalScope* from_scope, bool test_only); |
| 590 LocalVariable* LookupTypeArgumentsParameter(LocalScope* from_scope, | 588 LocalVariable* LookupTypeArgumentsParameter(LocalScope* from_scope, |
| 591 bool test_only); | 589 bool test_only); |
| 592 void CaptureInstantiator(); | 590 void CaptureInstantiator(); |
| 593 AstNode* LoadReceiver(intptr_t token_pos); | 591 AstNode* LoadReceiver(intptr_t token_pos); |
| 594 AstNode* LoadFieldIfUnresolved(AstNode* node); | 592 AstNode* LoadFieldIfUnresolved(AstNode* node); |
| 595 AstNode* LoadClosure(PrimaryNode* primary); | 593 AstNode* LoadClosure(PrimaryNode* primary); |
| 596 InstanceGetterNode* CallGetter(intptr_t token_pos, | 594 InstanceGetterNode* CallGetter(intptr_t token_pos, |
| 597 AstNode* object, | 595 AstNode* object, |
| 598 const String& name); | 596 const String& name); |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 | 888 |
| 891 // Indentation of parser trace. | 889 // Indentation of parser trace. |
| 892 intptr_t trace_indent_; | 890 intptr_t trace_indent_; |
| 893 | 891 |
| 894 DISALLOW_COPY_AND_ASSIGN(Parser); | 892 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 895 }; | 893 }; |
| 896 | 894 |
| 897 } // namespace dart | 895 } // namespace dart |
| 898 | 896 |
| 899 #endif // VM_PARSER_H_ | 897 #endif // VM_PARSER_H_ |
| OLD | NEW |