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

Unified Diff: runtime/vm/flow_graph.cc

Issue 23684059: Polymorphic inlining of [] operations. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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
Index: runtime/vm/flow_graph.cc
===================================================================
--- runtime/vm/flow_graph.cc (revision 27433)
+++ runtime/vm/flow_graph.cc (working copy)
@@ -97,6 +97,20 @@
}
+Instruction* FlowGraph::AppendTo(Instruction* prev,
+ Instruction* instr,
+ Environment* env,
+ Definition::UseKind use_kind) {
+ if (use_kind == Definition::kValue) {
+ ASSERT(instr->IsDefinition());
+ instr->AsDefinition()->set_ssa_temp_index(alloc_ssa_temp_index());
+ }
+ ASSERT(instr->env() == NULL);
+ if (env != NULL) env->DeepCopyTo(instr);
+ return prev->AppendInstruction(instr);
+}
+
+
void FlowGraph::DiscoverBlocks() {
// Initialize state.
preorder_.Clear();

Powered by Google App Engine
This is Rietveld 408576698