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 "vm/ast.h" | 10 #include "vm/ast.h" |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 SequenceNode* ParseConstructor(const Function& func, | 387 SequenceNode* ParseConstructor(const Function& func, |
388 Array& default_parameter_values); | 388 Array& default_parameter_values); |
389 SequenceNode* ParseFunc(const Function& func, | 389 SequenceNode* ParseFunc(const Function& func, |
390 Array& default_parameter_values); | 390 Array& default_parameter_values); |
391 | 391 |
392 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); | 392 void ParseNativeFunctionBlock(const ParamList* params, const Function& func); |
393 | 393 |
394 SequenceNode* ParseInstanceGetter(const Function& func); | 394 SequenceNode* ParseInstanceGetter(const Function& func); |
395 SequenceNode* ParseInstanceSetter(const Function& func); | 395 SequenceNode* ParseInstanceSetter(const Function& func); |
396 SequenceNode* ParseStaticConstGetter(const Function& func); | 396 SequenceNode* ParseStaticConstGetter(const Function& func); |
| 397 SequenceNode* ParseMethodExtractor(const Function& func); |
397 | 398 |
398 void ChainNewBlock(LocalScope* outer_scope); | 399 void ChainNewBlock(LocalScope* outer_scope); |
399 void OpenBlock(); | 400 void OpenBlock(); |
400 void OpenLoopBlock(); | 401 void OpenLoopBlock(); |
401 void OpenFunctionBlock(const Function& func); | 402 void OpenFunctionBlock(const Function& func); |
402 SequenceNode* CloseBlock(); | 403 SequenceNode* CloseBlock(); |
403 | 404 |
404 LocalVariable* LookupPhaseParameter(); | 405 LocalVariable* LookupPhaseParameter(); |
405 LocalVariable* LookupReceiver(LocalScope* from_scope, bool test_only); | 406 LocalVariable* LookupReceiver(LocalScope* from_scope, bool test_only); |
406 LocalVariable* LookupTypeArgumentsParameter(LocalScope* from_scope, | 407 LocalVariable* LookupTypeArgumentsParameter(LocalScope* from_scope, |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 | 630 |
630 // Allocate temporary only once per function. | 631 // Allocate temporary only once per function. |
631 LocalVariable* expression_temp_; | 632 LocalVariable* expression_temp_; |
632 | 633 |
633 DISALLOW_COPY_AND_ASSIGN(Parser); | 634 DISALLOW_COPY_AND_ASSIGN(Parser); |
634 }; | 635 }; |
635 | 636 |
636 } // namespace dart | 637 } // namespace dart |
637 | 638 |
638 #endif // VM_PARSER_H_ | 639 #endif // VM_PARSER_H_ |
OLD | NEW |