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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 10891025: Eliminate class UseVal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index c4eacd721249a21295a8e2bd879aa9571708bd09..a349cabba670ce3d9f7104626ce8166997889c2b 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -62,7 +62,7 @@ void EffectGraphVisitor::Append(const EffectGraphVisitor& other_fragment) {
}
-UseVal* EffectGraphVisitor::Bind(Computation* computation) {
+Value* EffectGraphVisitor::Bind(Computation* computation) {
ASSERT(is_open());
DeallocateTempIndex(computation->InputCount());
BindInstr* bind_instr = new BindInstr(BindInstr::kUsed, computation);
@@ -73,7 +73,7 @@ UseVal* EffectGraphVisitor::Bind(Computation* computation) {
exit()->set_next(bind_instr);
}
exit_ = bind_instr;
- return new UseVal(bind_instr);
+ return new Value(bind_instr);
}
@@ -1688,7 +1688,6 @@ void EffectGraphVisitor::BuildConstructorTypeArguments(
const LocalVariable& t2 = node->allocated_object_var();
Value* instantiator_type_arguments = BuildInstantiatorTypeArguments(
node->token_pos(), NULL);
- ASSERT(instantiator_type_arguments->IsUse());
Value* stored_instantiator =
Bind(BuildStoreLocal(t1, instantiator_type_arguments));
// t1: instantiator type arguments.

Powered by Google App Engine
This is Rietveld 408576698