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

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

Issue 17827005: Get rid of ZoneScope completely. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Suggestions from danno Created 7 years, 6 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
« no previous file with comments | « test/cctest/test-ast.cc ('k') | test/cctest/test-liveedit.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-dataflow.cc
diff --git a/test/cctest/test-dataflow.cc b/test/cctest/test-dataflow.cc
index ae3327965f93ad1bc30b3b859dbe452eb7c01946..f3f03082362644af25738e174873d48b365ec2a5 100644
--- a/test/cctest/test-dataflow.cc
+++ b/test/cctest/test-dataflow.cc
@@ -36,17 +36,16 @@ using namespace v8::internal;
TEST(BitVector) {
v8::internal::V8::Initialize(NULL);
- Zone* zone = Isolate::Current()->runtime_zone();
- ZoneScope zone_scope(zone, DELETE_ON_EXIT);
+ Zone zone(Isolate::Current());
{
- BitVector v(15, zone);
+ 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, zone);
+ BitVector w(15, &zone);
w.Add(1);
v.Intersect(w);
CHECK(!v.Contains(0));
@@ -54,7 +53,7 @@ TEST(BitVector) {
}
{
- BitVector v(64, zone);
+ BitVector v(64, &zone);
v.Add(27);
v.Add(30);
v.Add(31);
@@ -72,9 +71,9 @@ TEST(BitVector) {
}
{
- BitVector v(15, zone);
+ BitVector v(15, &zone);
v.Add(0);
- BitVector w(15, zone);
+ BitVector w(15, &zone);
w.Add(1);
v.Union(w);
CHECK(v.Contains(0));
@@ -82,13 +81,13 @@ TEST(BitVector) {
}
{
- BitVector v(15, zone);
+ BitVector v(15, &zone);
v.Add(0);
- BitVector w(15, zone);
+ BitVector w(15, &zone);
w = v;
CHECK(w.Contains(0));
w.Add(1);
- BitVector u(w, zone);
+ BitVector u(w, &zone);
CHECK(u.Contains(0));
CHECK(u.Contains(1));
v.Union(w);
@@ -97,9 +96,9 @@ TEST(BitVector) {
}
{
- BitVector v(35, zone);
+ BitVector v(35, &zone);
v.Add(0);
- BitVector w(35, zone);
+ BitVector w(35, &zone);
w.Add(33);
v.Union(w);
CHECK(v.Contains(0));
@@ -107,15 +106,15 @@ TEST(BitVector) {
}
{
- BitVector v(35, zone);
+ BitVector v(35, &zone);
v.Add(32);
v.Add(33);
- BitVector w(35, zone);
+ BitVector w(35, &zone);
w.Add(33);
v.Intersect(w);
CHECK(!v.Contains(32));
CHECK(v.Contains(33));
- BitVector r(35, zone);
+ BitVector r(35, &zone);
r.CopyFrom(v);
CHECK(!r.Contains(32));
CHECK(r.Contains(33));
« no previous file with comments | « test/cctest/test-ast.cc ('k') | test/cctest/test-liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698