| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 (program_->library_count() - index) * 4); | 87 (program_->library_count() - index) * 4); |
| 88 reader.set_offset(reader.ReadUInt32()); | 88 reader.set_offset(reader.ReadUInt32()); |
| 89 | 89 |
| 90 // Start reading library. | 90 // Start reading library. |
| 91 reader.ReadFlags(); // read flags. | 91 reader.ReadFlags(); // read flags. |
| 92 return reader.ReadCanonicalNameReference(); | 92 return reader.ReadCanonicalNameReference(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 uint8_t CharacterAt(StringIndex string_index, intptr_t index); | 95 uint8_t CharacterAt(StringIndex string_index, intptr_t index); |
| 96 | 96 |
| 97 static bool FieldHasFunctionLiteralInitializer(const dart::Field& field, |
| 98 TokenPosition* start, |
| 99 TokenPosition* end); |
| 100 |
| 97 private: | 101 private: |
| 98 friend class BuildingTranslationHelper; | 102 friend class BuildingTranslationHelper; |
| 99 | 103 |
| 100 void ReadPreliminaryClass(dart::Class* klass, | 104 void ReadPreliminaryClass(dart::Class* klass, |
| 101 ClassHelper* class_helper, | 105 ClassHelper* class_helper, |
| 102 intptr_t type_parameter_count); | 106 intptr_t type_parameter_count); |
| 103 dart::Class& ReadClass(const dart::Library& library, | 107 dart::Class& ReadClass(const dart::Library& library, |
| 104 const dart::Class& toplevel_class); | 108 const dart::Class& toplevel_class); |
| 105 void ReadProcedure(const dart::Library& library, | 109 void ReadProcedure(const dart::Library& library, |
| 106 const dart::Class& owner, | 110 const dart::Class& owner, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 149 |
| 146 GrowableArray<const dart::Function*> functions_; | 150 GrowableArray<const dart::Function*> functions_; |
| 147 GrowableArray<const dart::Field*> fields_; | 151 GrowableArray<const dart::Field*> fields_; |
| 148 }; | 152 }; |
| 149 | 153 |
| 150 } // namespace kernel | 154 } // namespace kernel |
| 151 } // namespace dart | 155 } // namespace dart |
| 152 | 156 |
| 153 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 157 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 154 #endif // RUNTIME_VM_KERNEL_READER_H_ | 158 #endif // RUNTIME_VM_KERNEL_READER_H_ |
| OLD | NEW |