| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 private: | 69 private: |
| 70 friend class BuildingTranslationHelper; | 70 friend class BuildingTranslationHelper; |
| 71 | 71 |
| 72 void ReadPreliminaryClass(dart::Class* klass, Class* kernel_klass); | 72 void ReadPreliminaryClass(dart::Class* klass, Class* kernel_klass); |
| 73 dart::Class& ReadClass(const dart::Library& library, | 73 dart::Class& ReadClass(const dart::Library& library, |
| 74 const dart::Class& toplevel_class, | 74 const dart::Class& toplevel_class, |
| 75 Class* kernel_klass); | 75 Class* kernel_klass); |
| 76 void ReadProcedure(const dart::Library& library, | 76 void ReadProcedure(const dart::Library& library, |
| 77 const dart::Class& owner, | 77 const dart::Class& owner, |
| 78 Procedure* procedure, | 78 Procedure* procedure, |
| 79 Class* kernel_klass = NULL); | 79 Class* kernel_klass); |
| 80 |
| 81 RawArray* MakeFunctionsArray(); |
| 80 | 82 |
| 81 // If klass's script is not the script at the uri index, return a PatchClass | 83 // If klass's script is not the script at the uri index, return a PatchClass |
| 82 // for klass whose script corresponds to the uri index. | 84 // for klass whose script corresponds to the uri index. |
| 83 // Otherwise return klass. | 85 // Otherwise return klass. |
| 84 const Object& ClassForScriptAt(const dart::Class& klass, | 86 const Object& ClassForScriptAt(const dart::Class& klass, |
| 85 intptr_t source_uri_index); | 87 intptr_t source_uri_index); |
| 86 Script& ScriptAt(intptr_t source_uri_index, String* import_uri = NULL); | 88 Script& ScriptAt(intptr_t source_uri_index, String* import_uri = NULL); |
| 87 | 89 |
| 88 void GenerateFieldAccessors(const dart::Class& klass, | 90 void GenerateFieldAccessors(const dart::Class& klass, |
| 89 const dart::Field& field, | 91 const dart::Field& field, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 102 dart::Thread* thread_; | 104 dart::Thread* thread_; |
| 103 dart::Zone* zone_; | 105 dart::Zone* zone_; |
| 104 dart::Isolate* isolate_; | 106 dart::Isolate* isolate_; |
| 105 Array& scripts_; | 107 Array& scripts_; |
| 106 ActiveClass active_class_; | 108 ActiveClass active_class_; |
| 107 BuildingTranslationHelper translation_helper_; | 109 BuildingTranslationHelper translation_helper_; |
| 108 DartTypeTranslator type_translator_; | 110 DartTypeTranslator type_translator_; |
| 109 | 111 |
| 110 Mapping<CanonicalName, dart::Library> libraries_; | 112 Mapping<CanonicalName, dart::Library> libraries_; |
| 111 Mapping<CanonicalName, dart::Class> classes_; | 113 Mapping<CanonicalName, dart::Class> classes_; |
| 114 |
| 115 GrowableArray<const dart::Function*> functions_; |
| 116 GrowableArray<const dart::Field*> fields_; |
| 112 }; | 117 }; |
| 113 | 118 |
| 114 } // namespace kernel | 119 } // namespace kernel |
| 115 } // namespace dart | 120 } // namespace dart |
| 116 | 121 |
| 117 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 122 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 118 #endif // RUNTIME_VM_KERNEL_READER_H_ | 123 #endif // RUNTIME_VM_KERNEL_READER_H_ |
| OLD | NEW |