| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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_BINARY_FLOWGRAPH_H_ | 5 #ifndef RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ |
| 6 #define RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ | 6 #define RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ |
| 7 | 7 |
| 8 #if !defined(DART_PRECOMPILED_RUNTIME) | 8 #if !defined(DART_PRECOMPILED_RUNTIME) |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 | 500 |
| 501 StreamingFlowGraphBuilder* builder_; | 501 StreamingFlowGraphBuilder* builder_; |
| 502 TranslationHelper& translation_helper_; | 502 TranslationHelper& translation_helper_; |
| 503 ActiveClass* active_class_; | 503 ActiveClass* active_class_; |
| 504 TypeParameterScope* type_parameter_scope_; | 504 TypeParameterScope* type_parameter_scope_; |
| 505 Zone* zone_; | 505 Zone* zone_; |
| 506 AbstractType& result_; | 506 AbstractType& result_; |
| 507 bool finalize_; | 507 bool finalize_; |
| 508 | 508 |
| 509 friend class StreamingScopeBuilder; | 509 friend class StreamingScopeBuilder; |
| 510 friend class KernelReader; | 510 friend class KernelLoader; |
| 511 }; | 511 }; |
| 512 | 512 |
| 513 class StreamingScopeBuilder { | 513 class StreamingScopeBuilder { |
| 514 public: | 514 public: |
| 515 StreamingScopeBuilder(ParsedFunction* parsed_function, | 515 StreamingScopeBuilder(ParsedFunction* parsed_function, |
| 516 intptr_t relative_kernel_offset, | 516 intptr_t relative_kernel_offset, |
| 517 const TypedData& data); | 517 const TypedData& data); |
| 518 | 518 |
| 519 virtual ~StreamingScopeBuilder(); | 519 virtual ~StreamingScopeBuilder(); |
| 520 | 520 |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1072 friend class StreamingDartTypeTranslator; | 1072 friend class StreamingDartTypeTranslator; |
| 1073 friend class StreamingScopeBuilder; | 1073 friend class StreamingScopeBuilder; |
| 1074 friend class FunctionNodeHelper; | 1074 friend class FunctionNodeHelper; |
| 1075 friend class VariableDeclarationHelper; | 1075 friend class VariableDeclarationHelper; |
| 1076 friend class FieldHelper; | 1076 friend class FieldHelper; |
| 1077 friend class ProcedureHelper; | 1077 friend class ProcedureHelper; |
| 1078 friend class ClassHelper; | 1078 friend class ClassHelper; |
| 1079 friend class LibraryHelper; | 1079 friend class LibraryHelper; |
| 1080 friend class ConstructorHelper; | 1080 friend class ConstructorHelper; |
| 1081 friend class SimpleExpressionConverter; | 1081 friend class SimpleExpressionConverter; |
| 1082 friend class KernelReader; | 1082 friend class KernelLoader; |
| 1083 }; | 1083 }; |
| 1084 | 1084 |
| 1085 // A helper class that saves the current reader position, goes to another reader | 1085 // A helper class that saves the current reader position, goes to another reader |
| 1086 // position, and upon destruction, resets to the original reader position. | 1086 // position, and upon destruction, resets to the original reader position. |
| 1087 class AlternativeReadingScope { | 1087 class AlternativeReadingScope { |
| 1088 public: | 1088 public: |
| 1089 AlternativeReadingScope(Reader* reader, intptr_t new_position) | 1089 AlternativeReadingScope(Reader* reader, intptr_t new_position) |
| 1090 : reader_(reader), | 1090 : reader_(reader), |
| 1091 saved_size_(reader_->size()), | 1091 saved_size_(reader_->size()), |
| 1092 saved_raw_buffer_(reader_->raw_buffer()), | 1092 saved_raw_buffer_(reader_->raw_buffer()), |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 const uint8_t* saved_raw_buffer_; | 1131 const uint8_t* saved_raw_buffer_; |
| 1132 const TypedData* saved_typed_data_; | 1132 const TypedData* saved_typed_data_; |
| 1133 intptr_t saved_offset_; | 1133 intptr_t saved_offset_; |
| 1134 }; | 1134 }; |
| 1135 | 1135 |
| 1136 } // namespace kernel | 1136 } // namespace kernel |
| 1137 } // namespace dart | 1137 } // namespace dart |
| 1138 | 1138 |
| 1139 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 1139 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 1140 #endif // RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ | 1140 #endif // RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ |
| OLD | NEW |