| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 46 | 46 | 
| 47  private: | 47  private: | 
| 48   typedef MallocMap<KernelType, VmType*> MapType; | 48   typedef MallocMap<KernelType, VmType*> MapType; | 
| 49   MapType map_; | 49   MapType map_; | 
| 50 }; | 50 }; | 
| 51 | 51 | 
| 52 class KernelReader { | 52 class KernelReader { | 
| 53  public: | 53  public: | 
| 54   explicit KernelReader(Program* program); | 54   explicit KernelReader(Program* program); | 
| 55 | 55 | 
| 56   // Returns either a library or a failure object. | 56   // Returns the library containing the main procedure, null if there | 
|  | 57   // was no main procedure, or a failure object if there was an error. | 
| 57   dart::Object& ReadProgram(); | 58   dart::Object& ReadProgram(); | 
| 58 | 59 | 
| 59   static void SetupFunctionParameters(TranslationHelper translation_helper_, | 60   static void SetupFunctionParameters(TranslationHelper translation_helper_, | 
| 60                                       DartTypeTranslator type_translator_, | 61                                       DartTypeTranslator type_translator_, | 
| 61                                       const dart::Class& owner, | 62                                       const dart::Class& owner, | 
| 62                                       const dart::Function& function, | 63                                       const dart::Function& function, | 
| 63                                       FunctionNode* kernel_function, | 64                                       FunctionNode* kernel_function, | 
| 64                                       bool is_method, | 65                                       bool is_method, | 
| 65                                       bool is_closure); | 66                                       bool is_closure); | 
| 66 | 67 | 
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 120 | 121 | 
| 121   GrowableArray<const dart::Function*> functions_; | 122   GrowableArray<const dart::Function*> functions_; | 
| 122   GrowableArray<const dart::Field*> fields_; | 123   GrowableArray<const dart::Field*> fields_; | 
| 123 }; | 124 }; | 
| 124 | 125 | 
| 125 }  // namespace kernel | 126 }  // namespace kernel | 
| 126 }  // namespace dart | 127 }  // namespace dart | 
| 127 | 128 | 
| 128 #endif  // !defined(DART_PRECOMPILED_RUNTIME) | 129 #endif  // !defined(DART_PRECOMPILED_RUNTIME) | 
| 129 #endif  // RUNTIME_VM_KERNEL_READER_H_ | 130 #endif  // RUNTIME_VM_KERNEL_READER_H_ | 
| OLD | NEW | 
|---|