Fix presubmit errors

TBR=ager@chromium.org
Review URL: http://codereview.chromium.org/449053

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3390 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
sgjesse@chromium.org 2009-12-01 11:16:21 +00:00
parent a8db297d14
commit 64ecb69b4a

View File

@ -8519,10 +8519,7 @@ static int GetGlobalObjectsCount() {
v8::internal::HeapIterator it; v8::internal::HeapIterator it;
while (it.has_next()) { while (it.has_next()) {
v8::internal::HeapObject* object = it.next(); v8::internal::HeapObject* object = it.next();
if (object->IsJSGlobalObject()) { if (object->IsJSGlobalObject()) count++;
count++;
//object->PrintLn();
}
} }
return count; return count;
} }
@ -8561,7 +8558,7 @@ TEST(Bug528) {
v8::internal::Heap::CollectAllGarbage(false); v8::internal::Heap::CollectAllGarbage(false);
if (GetGlobalObjectsCount() == 1) break; if (GetGlobalObjectsCount() == 1) break;
} }
CHECK(gc_count <= 2); CHECK_GE(2, gc_count);
CHECK_EQ(1, GetGlobalObjectsCount()); CHECK_EQ(1, GetGlobalObjectsCount());
// Eval in a function creates reference from the compilation cache to the // Eval in a function creates reference from the compilation cache to the
@ -8610,7 +8607,7 @@ TEST(Bug528) {
v8::internal::Heap::CollectAllGarbage(false); v8::internal::Heap::CollectAllGarbage(false);
if (GetGlobalObjectsCount() == 1) break; if (GetGlobalObjectsCount() == 1) break;
} }
CHECK(gc_count <= 2); CHECK_GE(2, gc_count);
CHECK_EQ(1, GetGlobalObjectsCount()); CHECK_EQ(1, GetGlobalObjectsCount());
other_context.Dispose(); other_context.Dispose();