| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 void ReadProcedure(const dart::Library& library, | 77 void ReadProcedure(const dart::Library& library, |
| 78 const dart::Class& owner, | 78 const dart::Class& owner, |
| 79 Procedure* procedure, | 79 Procedure* procedure, |
| 80 Class* kernel_klass = NULL); | 80 Class* kernel_klass = NULL); |
| 81 | 81 |
| 82 // If klass's script is not the script at the uri index, return a PatchClass | 82 // If klass's script is not the script at the uri index, return a PatchClass |
| 83 // for klass whose script corresponds to the uri index. | 83 // for klass whose script corresponds to the uri index. |
| 84 // Otherwise return klass. | 84 // Otherwise return klass. |
| 85 const Object& ClassForScriptAt(const dart::Class& klass, | 85 const Object& ClassForScriptAt(const dart::Class& klass, |
| 86 intptr_t source_uri_index); | 86 intptr_t source_uri_index); |
| 87 Script& ScriptAt(intptr_t source_uri_index); | 87 Script& ScriptAt(intptr_t source_uri_index, String* import_uri = NULL); |
| 88 | 88 |
| 89 void GenerateFieldAccessors(const dart::Class& klass, | 89 void GenerateFieldAccessors(const dart::Class& klass, |
| 90 const dart::Field& field, | 90 const dart::Field& field, |
| 91 Field* kernel_field); | 91 Field* kernel_field); |
| 92 | 92 |
| 93 void SetupFieldAccessorFunction(const dart::Class& klass, | 93 void SetupFieldAccessorFunction(const dart::Class& klass, |
| 94 const dart::Function& function); | 94 const dart::Function& function); |
| 95 | 95 |
| 96 dart::Library& LookupLibrary(Library* library); | 96 dart::Library& LookupLibrary(Library* library); |
| 97 dart::Class& LookupClass(Class* klass); | 97 dart::Class& LookupClass(Class* klass); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 110 | 110 |
| 111 Mapping<Library, dart::Library> libraries_; | 111 Mapping<Library, dart::Library> libraries_; |
| 112 Mapping<Class, dart::Class> classes_; | 112 Mapping<Class, dart::Class> classes_; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace kernel | 115 } // namespace kernel |
| 116 } // namespace dart | 116 } // namespace dart |
| 117 | 117 |
| 118 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 118 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 119 #endif // RUNTIME_VM_KERNEL_READER_H_ | 119 #endif // RUNTIME_VM_KERNEL_READER_H_ |
| OLD | NEW |