| 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" |
| (...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1202 public: | 1202 public: |
| 1203 static Arguments* ReadFrom(Reader* reader); | 1203 static Arguments* ReadFrom(Reader* reader); |
| 1204 | 1204 |
| 1205 virtual ~Arguments(); | 1205 virtual ~Arguments(); |
| 1206 | 1206 |
| 1207 DEFINE_CASTING_OPERATIONS(Arguments); | 1207 DEFINE_CASTING_OPERATIONS(Arguments); |
| 1208 | 1208 |
| 1209 virtual void AcceptTreeVisitor(TreeVisitor* visitor); | 1209 virtual void AcceptTreeVisitor(TreeVisitor* visitor); |
| 1210 virtual void VisitChildren(Visitor* visitor); | 1210 virtual void VisitChildren(Visitor* visitor); |
| 1211 | 1211 |
| 1212 // TODO(regis): Support type arguments of generic functions. |
| 1212 List<DartType>& types() { return types_; } | 1213 List<DartType>& types() { return types_; } |
| 1213 List<Expression>& positional() { return positional_; } | 1214 List<Expression>& positional() { return positional_; } |
| 1214 List<NamedExpression>& named() { return named_; } | 1215 List<NamedExpression>& named() { return named_; } |
| 1215 | 1216 |
| 1216 int count() { return positional_.length() + named_.length(); } | 1217 int count() { return positional_.length() + named_.length(); } |
| 1217 | 1218 |
| 1218 private: | 1219 private: |
| 1219 Arguments() {} | 1220 Arguments() {} |
| 1220 | 1221 |
| 1221 List<DartType> types_; | 1222 List<DartType> types_; |
| (...skipping 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3336 } // namespace kernel | 3337 } // namespace kernel |
| 3337 | 3338 |
| 3338 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, | 3339 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, |
| 3339 intptr_t buffer_length); | 3340 intptr_t buffer_length); |
| 3340 | 3341 |
| 3341 | 3342 |
| 3342 } // namespace dart | 3343 } // namespace dart |
| 3343 | 3344 |
| 3344 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 3345 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 3345 #endif // RUNTIME_VM_KERNEL_H_ | 3346 #endif // RUNTIME_VM_KERNEL_H_ |
| OLD | NEW |