From 0589ba70177f5582b9395014b18a856546b0e9d2 Mon Sep 17 00:00:00 2001 From: "rossberg@chromium.org" Date: Wed, 28 May 2014 15:05:53 +0000 Subject: [PATCH] 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 --- test/cctest/test-types.cc | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/test/cctest/test-types.cc b/test/cctest/test-types.cc index d2f9b9a004..21e3df8f9a 100644 --- a/test/cctest/test-types.cc +++ b/test/cctest/test-types.cc @@ -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().Distributivity(); - HeapTests().Distributivity(); + ZoneTests().Distributivity1(); + HeapTests().Distributivity1(); +} + + +TEST(Distributivity2) { + CcTest::InitializeVM(); + ZoneTests().Distributivity2(); + HeapTests().Distributivity2(); }