Chromium Code Reviews

Unified Diff: test/cctest/test-types.cc

Issue 444503005: Remove non-trivial subtyping between bitset and non-bitset types. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« src/types.cc ('K') | « src/types.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-types.cc
diff --git a/test/cctest/test-types.cc b/test/cctest/test-types.cc
index 753457366701c26be2af0c798663fac2e7a092aa..c0b9af6fef672a1a24898668c0db8af7a18433cb 100644
--- a/test/cctest/test-types.cc
+++ b/test/cctest/test-types.cc
@@ -6,6 +6,7 @@
#include "src/hydrogen-types.h"
#include "src/isolate-inl.h"
+#include "src/ostreams.h"
#include "src/types.h"
#include "test/cctest/cctest.h"
@@ -1319,6 +1320,13 @@ struct Tests : Rep {
TypeHandle type2 = *it2;
TypeHandle union12 = T.Union(type1, type2);
TypeHandle union21 = T.Union(type2, type1);
+ OFStream os(stdout);
rossberg 2014/08/05 15:07:53 Yeah, I don't like committing this. Either all tes
neis 2014/08/05 17:01:10 Done.
+ type1->PrintTo(os);
+ os << " \\/ ";
+ type2->PrintTo(os);
+ os << " = ";
+ union12->PrintTo(os);
+ os << "\n";
CheckEqual(union12, union21);
}
}
@@ -1547,6 +1555,13 @@ struct Tests : Rep {
TypeHandle type2 = *it2;
TypeHandle intersect12 = T.Intersect(type1, type2);
TypeHandle intersect21 = T.Intersect(type2, type1);
+ OFStream os(stdout);
+ type1->PrintTo(os);
+ os << " /\\ ";
+ type2->PrintTo(os);
+ os << " = ";
+ intersect12->PrintTo(os);
+ os << "\n";
CheckEqual(intersect12, intersect21);
}
}
« src/types.cc ('K') | « src/types.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine