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

Unified Diff: vm/intermediate_language_test.cc

Issue 10826299: Fix crash bug when replacing a definition with a definition that has no uses. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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
« no previous file with comments | « vm/intermediate_language.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/intermediate_language_test.cc
===================================================================
--- vm/intermediate_language_test.cc (revision 10621)
+++ vm/intermediate_language_test.cc (working copy)
@@ -39,6 +39,10 @@
BindInstr* bind = new BindInstr(BindInstr::kUsed, use2);
bind->RemoveInputUses();
EXPECT(def1->use_list() == NULL);
+ // Test replacing with a definition without uses.
+ UseVal* use4 = new UseVal(def2);
+ def2->ReplaceUsesWith(def1);
+ EXPECT(def1->use_list() == use4);
zerny-google 2012/08/14 11:04:36 Maybe check a few more properties here: EXPECT(de
Florian Schneider 2012/08/14 11:17:17 Done. Good point. I forgot to set the uselist of d
}
} // namespace dart
« no previous file with comments | « vm/intermediate_language.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698