Index: test/cctest/test-dataflow.cc |
=================================================================== |
--- test/cctest/test-dataflow.cc (revision 10788) |
+++ test/cctest/test-dataflow.cc (working copy) |
@@ -36,16 +36,17 @@ |
TEST(BitVector) { |
v8::internal::V8::Initialize(NULL); |
- ZoneScope zone(Isolate::Current(), DELETE_ON_EXIT); |
+ ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT); |
+ Zone* zone = ZONE; |
{ |
- BitVector v(15); |
+ BitVector v(15, zone); |
v.Add(1); |
CHECK(v.Contains(1)); |
v.Remove(0); |
CHECK(!v.Contains(0)); |
v.Add(0); |
v.Add(1); |
- BitVector w(15); |
+ BitVector w(15, zone); |
w.Add(1); |
v.Intersect(w); |
CHECK(!v.Contains(0)); |
@@ -53,7 +54,7 @@ |
} |
{ |
- BitVector v(64); |
+ BitVector v(64, zone); |
v.Add(27); |
v.Add(30); |
v.Add(31); |
@@ -71,9 +72,9 @@ |
} |
{ |
- BitVector v(15); |
+ BitVector v(15, zone); |
v.Add(0); |
- BitVector w(15); |
+ BitVector w(15, zone); |
w.Add(1); |
v.Union(w); |
CHECK(v.Contains(0)); |
@@ -81,13 +82,13 @@ |
} |
{ |
- BitVector v(15); |
+ BitVector v(15, zone); |
v.Add(0); |
- BitVector w(15); |
+ BitVector w(15, zone); |
w = v; |
CHECK(w.Contains(0)); |
w.Add(1); |
- BitVector u(w); |
+ BitVector u(w, zone); |
CHECK(u.Contains(0)); |
CHECK(u.Contains(1)); |
v.Union(w); |
@@ -96,9 +97,9 @@ |
} |
{ |
- BitVector v(35); |
+ BitVector v(35, zone); |
v.Add(0); |
- BitVector w(35); |
+ BitVector w(35, zone); |
w.Add(33); |
v.Union(w); |
CHECK(v.Contains(0)); |
@@ -106,15 +107,15 @@ |
} |
{ |
- BitVector v(35); |
+ BitVector v(35, zone); |
v.Add(32); |
v.Add(33); |
- BitVector w(35); |
+ BitVector w(35, zone); |
w.Add(33); |
v.Intersect(w); |
CHECK(!v.Contains(32)); |
CHECK(v.Contains(33)); |
- BitVector r(35); |
+ BitVector r(35, zone); |
r.CopyFrom(v); |
CHECK(!r.Contains(32)); |
CHECK(r.Contains(33)); |