Commit 0589ba70 authored by rossberg@chromium.org's avatar rossberg@chromium.org

Split Distributivity test

TBR=verwaest@chromium.org
BUG=

Review URL: https://codereview.chromium.org/298253008

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21572 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 776fcd68
......@@ -1725,7 +1725,7 @@ struct Tests : Rep {
T.Union(T.ObjectConstant2, T.ObjectConstant1));
}
void Distributivity() {
void Distributivity1() {
// Distributivity:
// Union(T1, Intersect(T2, T3)) = Intersect(Union(T1, T2), Union(T1, T3))
for (TypeIterator it1 = T.types.begin(); it1 != T.types.end(); ++it1) {
......@@ -1743,7 +1743,9 @@ struct Tests : Rep {
}
}
}
}
void Distributivity2() {
// Distributivity:
// Intersect(T1, Union(T2, T3)) = Union(Intersect(T1, T2), Intersect(T1,T3))
for (TypeIterator it1 = T.types.begin(); it1 != T.types.end(); ++it1) {
......@@ -1899,10 +1901,17 @@ TEST(Intersect2) {
}
TEST(Distributivity) {
TEST(Distributivity1) {
CcTest::InitializeVM();
ZoneTests().Distributivity1();
HeapTests().Distributivity1();
}
TEST(Distributivity2) {
CcTest::InitializeVM();
ZoneTests().Distributivity();
HeapTests().Distributivity();
ZoneTests().Distributivity2();
HeapTests().Distributivity2();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment