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

Unified Diff: runtime/vm/intermediate_language_test.cc

Issue 10894034: Make constants computations instead of values. (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/intermediate_language_test.cc
diff --git a/runtime/vm/intermediate_language_test.cc b/runtime/vm/intermediate_language_test.cc
index 13eb7f4cd1077ba2f2a2215191dd8624ac60e5aa..62c8eca78b4d003cd2578587ef7ff3d1d41bc99f 100644
--- a/runtime/vm/intermediate_language_test.cc
+++ b/runtime/vm/intermediate_language_test.cc
@@ -27,11 +27,11 @@ TEST_CASE(OptimizationTests) {
UseVal* use2 = new UseVal(def2);
EXPECT(!use2->Equals(use1a));
- ConstantVal* c1 = new ConstantVal(Bool::ZoneHandle(Bool::True()));
- ConstantVal* c2 = new ConstantVal(Bool::ZoneHandle(Bool::True()));
+ ConstantComp* c1 = new ConstantComp(Bool::ZoneHandle(Bool::True()));
+ ConstantComp* c2 = new ConstantComp(Bool::ZoneHandle(Bool::True()));
EXPECT(c1->Equals(c2));
- ConstantVal* c3 = new ConstantVal(Object::ZoneHandle());
- ConstantVal* c4 = new ConstantVal(Object::ZoneHandle());
+ ConstantComp* c3 = new ConstantComp(Object::ZoneHandle());
+ ConstantComp* c4 = new ConstantComp(Object::ZoneHandle());
EXPECT(c3->Equals(c4));
EXPECT(!c3->Equals(c1));
}

Powered by Google App Engine
This is Rietveld 408576698