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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 struct TopLevel; | 22 struct TopLevel; |
23 class ClassDesc; | 23 class ClassDesc; |
24 struct MemberDesc; | 24 struct MemberDesc; |
25 struct ParamList; | 25 struct ParamList; |
26 struct QualIdent; | 26 struct QualIdent; |
27 struct CatchParamDesc; | 27 struct CatchParamDesc; |
28 struct FieldInitExpression; | 28 struct FieldInitExpression; |
29 | 29 |
30 // The class ParsedFunction holds the result of parsing a function. | 30 // The class ParsedFunction holds the result of parsing a function. |
31 class ParsedFunction : public ValueObject { | 31 class ParsedFunction : public ZoneAllocated { |
32 public: | 32 public: |
33 static const int kFirstLocalSlotIndex = -2; | 33 static const int kFirstLocalSlotIndex = -2; |
34 | 34 |
35 explicit ParsedFunction(const Function& function) | 35 explicit ParsedFunction(const Function& function) |
36 : function_(function), | 36 : function_(function), |
37 node_sequence_(NULL), | 37 node_sequence_(NULL), |
38 instantiator_(NULL), | 38 instantiator_(NULL), |
39 default_parameter_values_(Array::Handle()), | 39 default_parameter_values_(Array::Handle()), |
40 saved_context_var_(NULL), | 40 saved_context_var_(NULL), |
41 expression_temp_var_(NULL), | 41 expression_temp_var_(NULL), |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 | 609 |
610 // Allocate temporary only once per function. | 610 // Allocate temporary only once per function. |
611 LocalVariable* expression_temp_; | 611 LocalVariable* expression_temp_; |
612 | 612 |
613 DISALLOW_COPY_AND_ASSIGN(Parser); | 613 DISALLOW_COPY_AND_ASSIGN(Parser); |
614 }; | 614 }; |
615 | 615 |
616 } // namespace dart | 616 } // namespace dart |
617 | 617 |
618 #endif // VM_PARSER_H_ | 618 #endif // VM_PARSER_H_ |
OLD | NEW |