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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual ~StreamingFlowGraphBuilder() {} | 69 virtual ~StreamingFlowGraphBuilder() {} |
70 | 70 |
71 Fragment BuildAt(intptr_t kernel_offset); | 71 Fragment BuildAt(intptr_t kernel_offset); |
72 | 72 |
73 private: | 73 private: |
74 intptr_t ReaderOffset(); | 74 intptr_t ReaderOffset(); |
75 void SetOffset(intptr_t offset); | 75 void SetOffset(intptr_t offset); |
76 void SkipBytes(intptr_t skip); | 76 void SkipBytes(intptr_t skip); |
77 uint32_t ReadUInt(); | 77 uint32_t ReadUInt(); |
78 intptr_t ReadListLength(); | 78 intptr_t ReadListLength(); |
| 79 NameIndex ReadCanonicalNameReference(); |
79 TokenPosition ReadPosition(bool record = true); | 80 TokenPosition ReadPosition(bool record = true); |
80 Tag ReadTag(uint8_t* payload = NULL); | 81 Tag ReadTag(uint8_t* payload = NULL); |
81 | 82 |
82 CatchBlock* catch_block(); | 83 CatchBlock* catch_block(); |
83 ScopeBuildingResult* scopes(); | 84 ScopeBuildingResult* scopes(); |
84 ParsedFunction* parsed_function(); | 85 ParsedFunction* parsed_function(); |
85 | 86 |
86 Fragment DebugStepCheck(TokenPosition position); | 87 Fragment DebugStepCheck(TokenPosition position); |
87 Fragment LoadLocal(LocalVariable* variable); | 88 Fragment LoadLocal(LocalVariable* variable); |
88 Fragment PushArgument(); | 89 Fragment PushArgument(); |
(...skipping 27 matching lines...) Expand all Loading... |
116 | 117 |
117 friend class StreamingConstantEvaluator; | 118 friend class StreamingConstantEvaluator; |
118 }; | 119 }; |
119 | 120 |
120 | 121 |
121 } // namespace kernel | 122 } // namespace kernel |
122 } // namespace dart | 123 } // namespace dart |
123 | 124 |
124 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 125 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
125 #endif // RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ | 126 #endif // RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ |
OLD | NEW |