Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: runtime/vm/kernel_reader.h

Issue 2973633002: [kernel] Change how TypeParameterType is calculated. (Closed)
Patch Set: Rebased Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 void ReadPreliminaryClass(dart::Class* klass, 104 void ReadPreliminaryClass(dart::Class* klass,
105 ClassHelper* class_helper, 105 ClassHelper* class_helper,
106 intptr_t type_parameter_count); 106 intptr_t type_parameter_count);
107 dart::Class& ReadClass(const dart::Library& library, 107 dart::Class& ReadClass(const dart::Library& library,
108 const dart::Class& toplevel_class); 108 const dart::Class& toplevel_class);
109 void ReadProcedure(const dart::Library& library, 109 void ReadProcedure(const dart::Library& library,
110 const dart::Class& owner, 110 const dart::Class& owner,
111 bool in_class); 111 bool in_class);
112 112
113 template <typename U>
114 void ReadAndSetupTypeParameters(U* set_on,
115 intptr_t type_parameter_count,
116 const Class& parameterized_class,
117 const Function& parameterized_function);
118
113 RawArray* MakeFunctionsArray(); 119 RawArray* MakeFunctionsArray();
114 120
115 // If klass's script is not the script at the uri index, return a PatchClass 121 // If klass's script is not the script at the uri index, return a PatchClass
116 // for klass whose script corresponds to the uri index. 122 // for klass whose script corresponds to the uri index.
117 // Otherwise return klass. 123 // Otherwise return klass.
118 const Object& ClassForScriptAt(const dart::Class& klass, 124 const Object& ClassForScriptAt(const dart::Class& klass,
119 intptr_t source_uri_index); 125 intptr_t source_uri_index);
120 Script& ScriptAt(intptr_t source_uri_index, 126 Script& ScriptAt(intptr_t source_uri_index,
121 StringIndex import_uri = StringIndex()); 127 StringIndex import_uri = StringIndex());
122 128
(...skipping 26 matching lines...) Expand all
149 155
150 GrowableArray<const dart::Function*> functions_; 156 GrowableArray<const dart::Function*> functions_;
151 GrowableArray<const dart::Field*> fields_; 157 GrowableArray<const dart::Field*> fields_;
152 }; 158 };
153 159
154 } // namespace kernel 160 } // namespace kernel
155 } // namespace dart 161 } // namespace dart
156 162
157 #endif // !defined(DART_PRECOMPILED_RUNTIME) 163 #endif // !defined(DART_PRECOMPILED_RUNTIME)
158 #endif // RUNTIME_VM_KERNEL_READER_H_ 164 #endif // RUNTIME_VM_KERNEL_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698