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

Unified Diff: runtime/vm/intermediate_language_test.cc

Issue 10829451: Make Value not a subclass of Computation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebased 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/intermediate_language_test.cc
===================================================================
--- runtime/vm/intermediate_language_test.cc (revision 11037)
+++ runtime/vm/intermediate_language_test.cc (working copy)
@@ -36,7 +36,8 @@
EXPECT(def1->use_list()->next_use() == NULL);
EXPECT(def2->use_list() == use3);
EXPECT(def2->use_list()->next_use() == NULL);
- BindInstr* bind = new BindInstr(BindInstr::kUsed, use2);
+ BindInstr* bind =
+ new BindInstr(BindInstr::kUsed, new BooleanNegateComp(use2));
bind->RemoveInputUses();
EXPECT(def1->use_list() == NULL);
// Test replacing with a definition without uses.
@@ -53,7 +54,6 @@
UseVal* use1a = new UseVal(def1);
UseVal* use1b = new UseVal(def1);
EXPECT(use1a->Equals(use1b));
- EXPECT(use1a->Hashcode() == use1b->Hashcode());
UseVal* use2 = new UseVal(def2);
EXPECT(!use2->Equals(use1a));

Powered by Google App Engine
This is Rietveld 408576698