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 17 matching lines...) Expand all Loading... |
28 struct RegExpCompileData; | 28 struct RegExpCompileData; |
29 class SourceLabel; | 29 class SourceLabel; |
30 template <typename T> class GrowableArray; | 30 template <typename T> class GrowableArray; |
31 class Parser; | 31 class Parser; |
32 | 32 |
33 struct CatchParamDesc; | 33 struct CatchParamDesc; |
34 class ClassDesc; | 34 class ClassDesc; |
35 struct MemberDesc; | 35 struct MemberDesc; |
36 struct ParamList; | 36 struct ParamList; |
37 struct QualIdent; | 37 struct QualIdent; |
38 struct TopLevel; | 38 class TopLevel; |
39 | 39 |
40 // The class ParsedFunction holds the result of parsing a function. | 40 // The class ParsedFunction holds the result of parsing a function. |
41 class ParsedFunction : public ZoneAllocated { | 41 class ParsedFunction : public ZoneAllocated { |
42 public: | 42 public: |
43 ParsedFunction(Thread* thread, const Function& function) | 43 ParsedFunction(Thread* thread, const Function& function) |
44 : thread_(thread), | 44 : thread_(thread), |
45 function_(function), | 45 function_(function), |
46 code_(Code::Handle(zone(), function.unoptimized_code())), | 46 code_(Code::Handle(zone(), function.unoptimized_code())), |
47 node_sequence_(NULL), | 47 node_sequence_(NULL), |
48 regexp_compile_data_(NULL), | 48 regexp_compile_data_(NULL), |
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 | 888 |
889 // Indentation of parser trace. | 889 // Indentation of parser trace. |
890 intptr_t trace_indent_; | 890 intptr_t trace_indent_; |
891 | 891 |
892 DISALLOW_COPY_AND_ASSIGN(Parser); | 892 DISALLOW_COPY_AND_ASSIGN(Parser); |
893 }; | 893 }; |
894 | 894 |
895 } // namespace dart | 895 } // namespace dart |
896 | 896 |
897 #endif // VM_PARSER_H_ | 897 #endif // VM_PARSER_H_ |
OLD | NEW |