| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 53 }; | 53 }; | 
| 54 | 54 | 
| 55 class KernelReader { | 55 class KernelReader { | 
| 56  public: | 56  public: | 
| 57   explicit KernelReader(Program* program); | 57   explicit KernelReader(Program* program); | 
| 58 | 58 | 
| 59   // Returns the library containing the main procedure, null if there | 59   // Returns the library containing the main procedure, null if there | 
| 60   // was no main procedure, or a failure object if there was an error. | 60   // was no main procedure, or a failure object if there was an error. | 
| 61   dart::Object& ReadProgram(); | 61   dart::Object& ReadProgram(); | 
| 62 | 62 | 
|  | 63   // Finds all libraries that have been modified in this incremental | 
|  | 64   // version of the kernel program file. | 
|  | 65   void FindModifiedLibraries(Isolate* isolate, | 
|  | 66                              BitVector* modified_libs, | 
|  | 67                              bool force_reload); | 
|  | 68 | 
| 63   void ReadLibrary(intptr_t kernel_offset); | 69   void ReadLibrary(intptr_t kernel_offset); | 
| 64 | 70 | 
| 65   const dart::String& DartSymbol(StringIndex index) { | 71   const dart::String& DartSymbol(StringIndex index) { | 
| 66     return translation_helper_.DartSymbol(index); | 72     return translation_helper_.DartSymbol(index); | 
| 67   } | 73   } | 
| 68 | 74 | 
| 69   const dart::String& LibraryUri(intptr_t library_index) { | 75   const dart::String& LibraryUri(intptr_t library_index) { | 
| 70     return translation_helper_.DartSymbol( | 76     return translation_helper_.DartSymbol( | 
| 71         translation_helper_.CanonicalNameString( | 77         translation_helper_.CanonicalNameString( | 
| 72             library_canonical_name(library_index))); | 78             library_canonical_name(library_index))); | 
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 154 | 160 | 
| 155   GrowableArray<const dart::Function*> functions_; | 161   GrowableArray<const dart::Function*> functions_; | 
| 156   GrowableArray<const dart::Field*> fields_; | 162   GrowableArray<const dart::Field*> fields_; | 
| 157 }; | 163 }; | 
| 158 | 164 | 
| 159 }  // namespace kernel | 165 }  // namespace kernel | 
| 160 }  // namespace dart | 166 }  // namespace dart | 
| 161 | 167 | 
| 162 #endif  // !defined(DART_PRECOMPILED_RUNTIME) | 168 #endif  // !defined(DART_PRECOMPILED_RUNTIME) | 
| 163 #endif  // RUNTIME_VM_KERNEL_READER_H_ | 169 #endif  // RUNTIME_VM_KERNEL_READER_H_ | 
| OLD | NEW | 
|---|