Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: runtime/vm/kernel_binary_flowgraph.h

Issue 2860823002: Introduce classes for string and name indexes (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/kernel_binary.cc ('k') | runtime/vm/kernel_binary_flowgraph.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/kernel_binary.cc ('k') | runtime/vm/kernel_binary_flowgraph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698