| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 FunctionNode* kernel_function, | 63 FunctionNode* kernel_function, |
| 64 bool is_method, | 64 bool is_method, |
| 65 bool is_closure); | 65 bool is_closure); |
| 66 | 66 |
| 67 void ReadLibrary(Library* kernel_library); | 67 void ReadLibrary(Library* kernel_library); |
| 68 | 68 |
| 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, Class* kernel_klass); | 73 dart::Class& ReadClass(const dart::Library& library, |
| 74 const dart::Class& toplevel_class, |
| 75 Class* kernel_klass); |
| 74 void ReadProcedure(const dart::Library& library, | 76 void ReadProcedure(const dart::Library& library, |
| 75 const dart::Class& owner, | 77 const dart::Class& owner, |
| 76 Procedure* procedure, | 78 Procedure* procedure, |
| 77 Class* kernel_klass = NULL); | 79 Class* kernel_klass = NULL); |
| 78 | 80 |
| 79 // If klass's script is not the script at the uri index, return a PatchClass | 81 // If klass's script is not the script at the uri index, return a PatchClass |
| 80 // for klass whose script corresponds to the uri index. | 82 // for klass whose script corresponds to the uri index. |
| 81 // Otherwise return klass. | 83 // Otherwise return klass. |
| 82 const Object& ClassForScriptAt(const dart::Class& klass, | 84 const Object& ClassForScriptAt(const dart::Class& klass, |
| 83 intptr_t source_uri_index); | 85 intptr_t source_uri_index); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 107 | 109 |
| 108 Mapping<Library, dart::Library> libraries_; | 110 Mapping<Library, dart::Library> libraries_; |
| 109 Mapping<Class, dart::Class> classes_; | 111 Mapping<Class, dart::Class> classes_; |
| 110 }; | 112 }; |
| 111 | 113 |
| 112 } // namespace kernel | 114 } // namespace kernel |
| 113 } // namespace dart | 115 } // namespace dart |
| 114 | 116 |
| 115 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 117 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 116 #endif // RUNTIME_VM_KERNEL_READER_H_ | 118 #endif // RUNTIME_VM_KERNEL_READER_H_ |
| OLD | NEW |