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

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

Issue 2790093002: Hacky streaming of VariableGet (Closed)
Patch Set: Created 3 years, 8 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
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 Tag ReadTag(uint8_t* payload = NULL); 98 Tag ReadTag(uint8_t* payload = NULL);
99 99
100 CatchBlock* catch_block(); 100 CatchBlock* catch_block();
101 ScopeBuildingResult* scopes(); 101 ScopeBuildingResult* scopes();
102 ParsedFunction* parsed_function(); 102 ParsedFunction* parsed_function();
103 103
104 dart::String& DartSymbol(intptr_t str_index); 104 dart::String& DartSymbol(intptr_t str_index);
105 dart::String& DartString(intptr_t str_index); 105 dart::String& DartString(intptr_t str_index);
106 String* KernelString(intptr_t str_index); 106 String* KernelString(intptr_t str_index);
107 107
108 dart::LocalVariable* LookupVariable(intptr_t kernel_offset);
109
108 Fragment DebugStepCheck(TokenPosition position); 110 Fragment DebugStepCheck(TokenPosition position);
109 Fragment LoadLocal(LocalVariable* variable); 111 Fragment LoadLocal(LocalVariable* variable);
110 Fragment PushArgument(); 112 Fragment PushArgument();
111 Fragment RethrowException(TokenPosition position, int catch_try_index); 113 Fragment RethrowException(TokenPosition position, int catch_try_index);
112 Fragment ThrowNoSuchMethodError(); 114 Fragment ThrowNoSuchMethodError();
113 Fragment Constant(const Object& value); 115 Fragment Constant(const Object& value);
114 Fragment IntConstant(int64_t value); 116 Fragment IntConstant(int64_t value);
115 Fragment LoadStaticField(); 117 Fragment LoadStaticField();
116 Fragment StaticCall(TokenPosition position, 118 Fragment StaticCall(TokenPosition position,
117 const Function& target, 119 const Function& target,
118 intptr_t argument_count); 120 intptr_t argument_count);
119 121
120 Fragment BuildInvalidExpression(); 122 Fragment BuildInvalidExpression();
123 Fragment BuildVariableGet();
124 Fragment BuildVariableGet(uint8_t payload);
121 Fragment BuildStaticGet(); 125 Fragment BuildStaticGet();
122 Fragment BuildSymbolLiteral(); 126 Fragment BuildSymbolLiteral();
123 Fragment BuildThisExpression(); 127 Fragment BuildThisExpression();
124 Fragment BuildRethrow(); 128 Fragment BuildRethrow();
125 Fragment BuildBigIntLiteral(); 129 Fragment BuildBigIntLiteral();
126 Fragment BuildStringLiteral(); 130 Fragment BuildStringLiteral();
127 Fragment BuildIntLiteral(uint8_t payload); 131 Fragment BuildIntLiteral(uint8_t payload);
128 Fragment BuildIntLiteral(bool is_negative); 132 Fragment BuildIntLiteral(bool is_negative);
129 Fragment BuildDoubleLiteral(); 133 Fragment BuildDoubleLiteral();
130 Fragment BuildBoolLiteral(bool value); 134 Fragment BuildBoolLiteral(bool value);
(...skipping 13 matching lines...) Expand all
144 intptr_t canonical_names_next_offset_; 148 intptr_t canonical_names_next_offset_;
145 149
146 friend class StreamingConstantEvaluator; 150 friend class StreamingConstantEvaluator;
147 }; 151 };
148 152
149 } // namespace kernel 153 } // namespace kernel
150 } // namespace dart 154 } // namespace dart
151 155
152 #endif // !defined(DART_PRECOMPILED_RUNTIME) 156 #endif // !defined(DART_PRECOMPILED_RUNTIME)
153 #endif // RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ 157 #endif // RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698