| 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_H_ | 5 #ifndef RUNTIME_VM_KERNEL_H_ | 
| 6 #define RUNTIME_VM_KERNEL_H_ | 6 #define RUNTIME_VM_KERNEL_H_ | 
| 7 | 7 | 
| 8 #if !defined(DART_PRECOMPILED_RUNTIME) | 8 #if !defined(DART_PRECOMPILED_RUNTIME) | 
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" | 
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" | 
| 11 #include "vm/globals.h" | 11 #include "vm/globals.h" | 
|  | 12 #include "vm/growable_array.h" | 
| 12 #include "vm/token_position.h" | 13 #include "vm/token_position.h" | 
| 13 | 14 | 
| 14 | 15 | 
| 15 #define KERNEL_NODES_DO(M)                                                     \ | 16 #define KERNEL_NODES_DO(M)                                                     \ | 
| 16   M(Name)                                                                      \ | 17   M(Name)                                                                      \ | 
| 17   M(InferredValue)                                                             \ | 18   M(InferredValue)                                                             \ | 
| 18   M(DartType)                                                                  \ | 19   M(DartType)                                                                  \ | 
| 19   M(InvalidType)                                                               \ | 20   M(InvalidType)                                                               \ | 
| 20   M(DynamicType)                                                               \ | 21   M(DynamicType)                                                               \ | 
| 21   M(VoidType)                                                                  \ | 22   M(VoidType)                                                                  \ | 
| (...skipping 2698 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2720   DEFINE_CASTING_OPERATIONS(Program); | 2721   DEFINE_CASTING_OPERATIONS(Program); | 
| 2721 | 2722 | 
| 2722   virtual void AcceptTreeVisitor(TreeVisitor* visitor); | 2723   virtual void AcceptTreeVisitor(TreeVisitor* visitor); | 
| 2723   virtual void VisitChildren(Visitor* visitor); | 2724   virtual void VisitChildren(Visitor* visitor); | 
| 2724 | 2725 | 
| 2725   StringTable& string_table() { return string_table_; } | 2726   StringTable& string_table() { return string_table_; } | 
| 2726   StringTable& source_uri_table() { return source_uri_table_; } | 2727   StringTable& source_uri_table() { return source_uri_table_; } | 
| 2727   SourceTable& source_table() { return source_table_; } | 2728   SourceTable& source_table() { return source_table_; } | 
| 2728   List<Library>& libraries() { return libraries_; } | 2729   List<Library>& libraries() { return libraries_; } | 
| 2729   Procedure* main_method() { return main_method_; } | 2730   Procedure* main_method() { return main_method_; } | 
|  | 2731   MallocGrowableArray<MallocGrowableArray<intptr_t>*> valid_token_positions; | 
|  | 2732   MallocGrowableArray<MallocGrowableArray<intptr_t>*> yield_token_positions; | 
| 2730 | 2733 | 
| 2731  private: | 2734  private: | 
| 2732   Program() {} | 2735   Program() {} | 
| 2733 | 2736 | 
| 2734   List<Library> libraries_; | 2737   List<Library> libraries_; | 
| 2735   Ref<Procedure> main_method_; | 2738   Ref<Procedure> main_method_; | 
| 2736   StringTable string_table_; | 2739   StringTable string_table_; | 
| 2737   StringTable source_uri_table_; | 2740   StringTable source_uri_table_; | 
| 2738   SourceTable source_table_; | 2741   SourceTable source_table_; | 
| 2739 | 2742 | 
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3164 | 3167 | 
| 3165 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, | 3168 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, | 
| 3166                                                  intptr_t buffer_length); | 3169                                                  intptr_t buffer_length); | 
| 3167 | 3170 | 
| 3168 | 3171 | 
| 3169 | 3172 | 
| 3170 }  // namespace dart | 3173 }  // namespace dart | 
| 3171 | 3174 | 
| 3172 #endif  // !defined(DART_PRECOMPILED_RUNTIME) | 3175 #endif  // !defined(DART_PRECOMPILED_RUNTIME) | 
| 3173 #endif  // RUNTIME_VM_KERNEL_H_ | 3176 #endif  // RUNTIME_VM_KERNEL_H_ | 
| OLD | NEW | 
|---|