| 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 GrowableArray<const dart::Function*>* functions); |
| 81 |
| 82 RawArray* MakeFunctionsArray(GrowableArray<const dart::Function*>* functions); |
| 80 | 83 |
| 81 // If klass's script is not the script at the uri index, return a PatchClass | 84 // 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. | 85 // for klass whose script corresponds to the uri index. |
| 83 // Otherwise return klass. | 86 // Otherwise return klass. |
| 84 const Object& ClassForScriptAt(const dart::Class& klass, | 87 const Object& ClassForScriptAt(const dart::Class& klass, |
| 85 intptr_t source_uri_index); | 88 intptr_t source_uri_index); |
| 86 Script& ScriptAt(intptr_t source_uri_index, String* import_uri = NULL); | 89 Script& ScriptAt(intptr_t source_uri_index, String* import_uri = NULL); |
| 87 | 90 |
| 88 void GenerateFieldAccessors(const dart::Class& klass, | 91 void GenerateFieldAccessors(const dart::Class& klass, |
| 89 const dart::Field& field, | 92 const dart::Field& field, |
| 90 Field* kernel_field); | 93 Field* kernel_field, |
| 94 GrowableArray<const dart::Function*>* functions); |
| 91 | 95 |
| 92 void SetupFieldAccessorFunction(const dart::Class& klass, | 96 void SetupFieldAccessorFunction(const dart::Class& klass, |
| 93 const dart::Function& function); | 97 const dart::Function& function); |
| 94 | 98 |
| 95 dart::Library& LookupLibrary(CanonicalName* library); | 99 dart::Library& LookupLibrary(CanonicalName* library); |
| 96 dart::Class& LookupClass(CanonicalName* klass); | 100 dart::Class& LookupClass(CanonicalName* klass); |
| 97 | 101 |
| 98 dart::RawFunction::Kind GetFunctionType(Procedure* kernel_procedure); | 102 dart::RawFunction::Kind GetFunctionType(Procedure* kernel_procedure); |
| 99 | 103 |
| 100 Program* program_; | 104 Program* program_; |
| 101 | 105 |
| 102 dart::Thread* thread_; | 106 dart::Thread* thread_; |
| 103 dart::Zone* zone_; | 107 dart::Zone* zone_; |
| 104 dart::Isolate* isolate_; | 108 dart::Isolate* isolate_; |
| 105 Array& scripts_; | 109 Array& scripts_; |
| 106 ActiveClass active_class_; | 110 ActiveClass active_class_; |
| 107 BuildingTranslationHelper translation_helper_; | 111 BuildingTranslationHelper translation_helper_; |
| 108 DartTypeTranslator type_translator_; | 112 DartTypeTranslator type_translator_; |
| 109 | 113 |
| 110 Mapping<CanonicalName, dart::Library> libraries_; | 114 Mapping<CanonicalName, dart::Library> libraries_; |
| 111 Mapping<CanonicalName, dart::Class> classes_; | 115 Mapping<CanonicalName, dart::Class> classes_; |
| 112 }; | 116 }; |
| 113 | 117 |
| 114 } // namespace kernel | 118 } // namespace kernel |
| 115 } // namespace dart | 119 } // namespace dart |
| 116 | 120 |
| 117 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 121 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 118 #endif // RUNTIME_VM_KERNEL_READER_H_ | 122 #endif // RUNTIME_VM_KERNEL_READER_H_ |
| OLD | NEW |