| 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 "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
| 11 #include "vm/ast.h" | 11 #include "vm/ast.h" |
| 12 #include "vm/class_finalizer.h" | 12 #include "vm/class_finalizer.h" |
| 13 #include "vm/compiler_stats.h" | 13 #include "vm/compiler_stats.h" |
| 14 #include "vm/scanner.h" | 14 #include "vm/scanner.h" |
| 15 | 15 |
| 16 namespace dart { | 16 namespace dart { |
| 17 | 17 |
| 18 // Forward declarations. | 18 // Forward declarations. |
| 19 class ArgumentsDescriptor; |
| 19 class Function; | 20 class Function; |
| 20 class Isolate; | 21 class Isolate; |
| 21 class LiteralToken; | 22 class LiteralToken; |
| 22 class Script; | 23 class Script; |
| 23 class TokenStream; | 24 class TokenStream; |
| 24 | 25 |
| 25 struct TopLevel; | 26 struct TopLevel; |
| 26 class ClassDesc; | 27 class ClassDesc; |
| 27 struct MemberDesc; | 28 struct MemberDesc; |
| 28 struct ParamList; | 29 struct ParamList; |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 Array& default_parameter_values); | 432 Array& default_parameter_values); |
| 432 | 433 |
| 433 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); | 434 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); |
| 434 | 435 |
| 435 SequenceNode* ParseInstanceGetter(const Function& func); | 436 SequenceNode* ParseInstanceGetter(const Function& func); |
| 436 SequenceNode* ParseInstanceSetter(const Function& func); | 437 SequenceNode* ParseInstanceSetter(const Function& func); |
| 437 SequenceNode* ParseStaticConstGetter(const Function& func); | 438 SequenceNode* ParseStaticConstGetter(const Function& func); |
| 438 SequenceNode* ParseMethodExtractor(const Function& func); | 439 SequenceNode* ParseMethodExtractor(const Function& func); |
| 439 SequenceNode* ParseNoSuchMethodDispatcher(const Function& func, | 440 SequenceNode* ParseNoSuchMethodDispatcher(const Function& func, |
| 440 Array& default_values); | 441 Array& default_values); |
| 442 SequenceNode* ParseInvokeFieldDispatcher(const Function& func, |
| 443 Array& default_values); |
| 444 void BuildDispatcherScope(const Function& func, |
| 445 const ArgumentsDescriptor& desc, |
| 446 Array& default_values); |
| 441 | 447 |
| 442 void ChainNewBlock(LocalScope* outer_scope); | 448 void ChainNewBlock(LocalScope* outer_scope); |
| 443 void OpenBlock(); | 449 void OpenBlock(); |
| 444 void OpenLoopBlock(); | 450 void OpenLoopBlock(); |
| 445 void OpenFunctionBlock(const Function& func); | 451 void OpenFunctionBlock(const Function& func); |
| 446 SequenceNode* CloseBlock(); | 452 SequenceNode* CloseBlock(); |
| 447 | 453 |
| 448 LocalVariable* LookupPhaseParameter(); | 454 LocalVariable* LookupPhaseParameter(); |
| 449 LocalVariable* LookupReceiver(LocalScope* from_scope, bool test_only); | 455 LocalVariable* LookupReceiver(LocalScope* from_scope, bool test_only); |
| 450 LocalVariable* LookupTypeArgumentsParameter(LocalScope* from_scope, | 456 LocalVariable* LookupTypeArgumentsParameter(LocalScope* from_scope, |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 // code at all points in the try block where an exit from the block is | 686 // code at all points in the try block where an exit from the block is |
| 681 // done using 'return', 'break' or 'continue' statements. | 687 // done using 'return', 'break' or 'continue' statements. |
| 682 TryBlocks* try_blocks_list_; | 688 TryBlocks* try_blocks_list_; |
| 683 | 689 |
| 684 DISALLOW_COPY_AND_ASSIGN(Parser); | 690 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 685 }; | 691 }; |
| 686 | 692 |
| 687 } // namespace dart | 693 } // namespace dart |
| 688 | 694 |
| 689 #endif // VM_PARSER_H_ | 695 #endif // VM_PARSER_H_ |
| OLD | NEW |