| 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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 static FunctionNode* ReadFrom(Reader* reader); | 893 static FunctionNode* ReadFrom(Reader* reader); |
| 894 | 894 |
| 895 virtual ~FunctionNode(); | 895 virtual ~FunctionNode(); |
| 896 | 896 |
| 897 DEFINE_CASTING_OPERATIONS(FunctionNode); | 897 DEFINE_CASTING_OPERATIONS(FunctionNode); |
| 898 | 898 |
| 899 virtual void AcceptTreeVisitor(TreeVisitor* visitor); | 899 virtual void AcceptTreeVisitor(TreeVisitor* visitor); |
| 900 virtual void VisitChildren(Visitor* visitor); | 900 virtual void VisitChildren(Visitor* visitor); |
| 901 | 901 |
| 902 AsyncMarker async_marker() { return async_marker_; } | 902 AsyncMarker async_marker() { return async_marker_; } |
| 903 bool debuggable() { return debuggable_; } | 903 AsyncMarker original_async_marker() { return original_async_marker_; } |
| 904 TypeParameterList& type_parameters() { return type_parameters_; } | 904 TypeParameterList& type_parameters() { return type_parameters_; } |
| 905 int required_parameter_count() { return required_parameter_count_; } | 905 int required_parameter_count() { return required_parameter_count_; } |
| 906 List<VariableDeclaration>& positional_parameters() { | 906 List<VariableDeclaration>& positional_parameters() { |
| 907 return positional_parameters_; | 907 return positional_parameters_; |
| 908 } | 908 } |
| 909 List<VariableDeclaration>& named_parameters() { return named_parameters_; } | 909 List<VariableDeclaration>& named_parameters() { return named_parameters_; } |
| 910 DartType* return_type() { return return_type_; } | 910 DartType* return_type() { return return_type_; } |
| 911 InferredValue* inferred_return_value() { return inferred_return_value_; } | 911 InferredValue* inferred_return_value() { return inferred_return_value_; } |
| 912 Statement* body() { return body_; } | 912 Statement* body() { return body_; } |
| 913 TokenPosition position() { return position_; } | 913 TokenPosition position() { return position_; } |
| 914 TokenPosition end_position() { return end_position_; } | 914 TokenPosition end_position() { return end_position_; } |
| 915 | 915 |
| 916 private: | 916 private: |
| 917 FunctionNode() | 917 FunctionNode() |
| 918 : position_(TokenPosition::kNoSource), | 918 : position_(TokenPosition::kNoSource), |
| 919 end_position_(TokenPosition::kNoSource) {} | 919 end_position_(TokenPosition::kNoSource) {} |
| 920 | 920 |
| 921 AsyncMarker async_marker_; | 921 AsyncMarker async_marker_; |
| 922 bool debuggable_; | 922 AsyncMarker original_async_marker_; |
| 923 TypeParameterList type_parameters_; | 923 TypeParameterList type_parameters_; |
| 924 int required_parameter_count_; | 924 int required_parameter_count_; |
| 925 List<VariableDeclaration> positional_parameters_; | 925 List<VariableDeclaration> positional_parameters_; |
| 926 List<VariableDeclaration> named_parameters_; | 926 List<VariableDeclaration> named_parameters_; |
| 927 Child<DartType> return_type_; | 927 Child<DartType> return_type_; |
| 928 Child<InferredValue> inferred_return_value_; | 928 Child<InferredValue> inferred_return_value_; |
| 929 Child<Statement> body_; | 929 Child<Statement> body_; |
| 930 TokenPosition position_; | 930 TokenPosition position_; |
| 931 TokenPosition end_position_; | 931 TokenPosition end_position_; |
| 932 | 932 |
| (...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3167 | 3167 |
| 3168 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, | 3168 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, |
| 3169 intptr_t buffer_length); | 3169 intptr_t buffer_length); |
| 3170 | 3170 |
| 3171 | 3171 |
| 3172 | 3172 |
| 3173 } // namespace dart | 3173 } // namespace dart |
| 3174 | 3174 |
| 3175 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 3175 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 3176 #endif // RUNTIME_VM_KERNEL_H_ | 3176 #endif // RUNTIME_VM_KERNEL_H_ |
| OLD | NEW |