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

Unified Diff: runtime/vm/kernel_to_il.cc

Issue 2790093002: Hacky streaming of VariableGet (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« pkg/kernel/lib/binary/ast_to_binary.dart ('K') | « runtime/vm/kernel_to_il.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_to_il.cc
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc
index e700fb5ff85a29d333493e33332c171e16528ce3..c6cd622287976ae09b53ccb32eff85eb258f4cea 100644
--- a/runtime/vm/kernel_to_il.cc
+++ b/runtime/vm/kernel_to_il.cc
@@ -2914,6 +2914,13 @@ dart::LocalVariable* FlowGraphBuilder::LookupVariable(
}
+dart::LocalVariable* FlowGraphBuilder::LookupVariable(intptr_t kernel_offset) {
+ LocalVariable* local = scopes_->locals.Lookup(kernel_offset);
+ ASSERT(local != NULL);
+ return local;
+}
+
+
void FlowGraphBuilder::SetTempIndex(Definition* definition) {
definition->set_temp_index(
stack_ == NULL ? 0 : stack_->definition()->temp_index() + 1);
@@ -4639,7 +4646,7 @@ void FlowGraphBuilder::VisitTypeLiteral(TypeLiteral* node) {
void FlowGraphBuilder::VisitVariableGet(VariableGet* node) {
- fragment_ = LoadLocal(LookupVariable(node->variable()));
+ fragment_ = streaming_flow_graph_builder_->BuildAt(node->kernel_offset());
}
« pkg/kernel/lib/binary/ast_to_binary.dart ('K') | « runtime/vm/kernel_to_il.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698