OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 RUNTIME_VM_KERNEL_READER_H_ | 5 #ifndef RUNTIME_VM_KERNEL_READER_H_ |
6 #define RUNTIME_VM_KERNEL_READER_H_ | 6 #define RUNTIME_VM_KERNEL_READER_H_ |
7 | 7 |
8 #if !defined(DART_PRECOMPILED_RUNTIME) | 8 #if !defined(DART_PRECOMPILED_RUNTIME) |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 void ReadPreliminaryClass(dart::Class* klass, | 100 void ReadPreliminaryClass(dart::Class* klass, |
101 ClassHelper* class_helper, | 101 ClassHelper* class_helper, |
102 intptr_t type_parameter_count); | 102 intptr_t type_parameter_count); |
103 dart::Class& ReadClass(const dart::Library& library, | 103 dart::Class& ReadClass(const dart::Library& library, |
104 const dart::Class& toplevel_class); | 104 const dart::Class& toplevel_class); |
105 void ReadProcedure(const dart::Library& library, | 105 void ReadProcedure(const dart::Library& library, |
106 const dart::Class& owner, | 106 const dart::Class& owner, |
107 bool in_class); | 107 bool in_class); |
108 | 108 |
| 109 template <typename U> |
| 110 void ReadAndSetupTypeParameters(U* set_on, |
| 111 intptr_t type_parameter_count, |
| 112 const Class& parameterized_class, |
| 113 const Function& parameterized_function); |
| 114 |
109 RawArray* MakeFunctionsArray(); | 115 RawArray* MakeFunctionsArray(); |
110 | 116 |
111 // If klass's script is not the script at the uri index, return a PatchClass | 117 // If klass's script is not the script at the uri index, return a PatchClass |
112 // for klass whose script corresponds to the uri index. | 118 // for klass whose script corresponds to the uri index. |
113 // Otherwise return klass. | 119 // Otherwise return klass. |
114 const Object& ClassForScriptAt(const dart::Class& klass, | 120 const Object& ClassForScriptAt(const dart::Class& klass, |
115 intptr_t source_uri_index); | 121 intptr_t source_uri_index); |
116 Script& ScriptAt(intptr_t source_uri_index, | 122 Script& ScriptAt(intptr_t source_uri_index, |
117 StringIndex import_uri = StringIndex()); | 123 StringIndex import_uri = StringIndex()); |
118 | 124 |
(...skipping 26 matching lines...) Expand all Loading... |
145 | 151 |
146 GrowableArray<const dart::Function*> functions_; | 152 GrowableArray<const dart::Function*> functions_; |
147 GrowableArray<const dart::Field*> fields_; | 153 GrowableArray<const dart::Field*> fields_; |
148 }; | 154 }; |
149 | 155 |
150 } // namespace kernel | 156 } // namespace kernel |
151 } // namespace dart | 157 } // namespace dart |
152 | 158 |
153 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 159 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
154 #endif // RUNTIME_VM_KERNEL_READER_H_ | 160 #endif // RUNTIME_VM_KERNEL_READER_H_ |
OLD | NEW |