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/growable_array.h" |
| 13 #include "vm/object.h" |
13 #include "vm/token_position.h" | 14 #include "vm/token_position.h" |
14 | 15 |
15 namespace dart { | 16 namespace dart { |
16 | 17 |
17 class Field; | 18 class Field; |
18 class ParsedFunction; | 19 class ParsedFunction; |
19 class Zone; | 20 class Zone; |
20 | 21 |
21 namespace kernel { | 22 namespace kernel { |
22 | 23 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 intptr_t name_table_offset_; | 78 intptr_t name_table_offset_; |
78 | 79 |
79 const uint8_t* kernel_data_; | 80 const uint8_t* kernel_data_; |
80 intptr_t kernel_data_size_; | 81 intptr_t kernel_data_size_; |
81 | 82 |
82 DISALLOW_COPY_AND_ASSIGN(Program); | 83 DISALLOW_COPY_AND_ASSIGN(Program); |
83 }; | 84 }; |
84 | 85 |
85 ParsedFunction* ParseStaticFieldInitializer(Zone* zone, const Field& field); | 86 ParsedFunction* ParseStaticFieldInitializer(Zone* zone, const Field& field); |
86 | 87 |
| 88 bool FieldHasFunctionLiteralInitializer(const Field& field, |
| 89 TokenPosition* start, |
| 90 TokenPosition* end); |
| 91 |
87 } // namespace kernel | 92 } // namespace kernel |
88 | 93 |
89 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, | 94 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, |
90 intptr_t buffer_length); | 95 intptr_t buffer_length); |
91 | 96 |
92 } // namespace dart | 97 } // namespace dart |
93 | 98 |
94 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 99 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
95 #endif // RUNTIME_VM_KERNEL_H_ | 100 #endif // RUNTIME_VM_KERNEL_H_ |
OLD | NEW |