Commit 4d92ce57 authored by ulan@chromium.org's avatar ulan@chromium.org

Fix test after r21299.

This fixes Win and Mac test failures.

TBR=danno@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21303 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 8bca653c
...@@ -3919,8 +3919,12 @@ TEST(NoWeakHashTableLeakWithIncrementalMarking) { ...@@ -3919,8 +3919,12 @@ TEST(NoWeakHashTableLeakWithIncrementalMarking) {
} }
heap->CollectAllGarbage(i::Heap::kNoGCFlags); heap->CollectAllGarbage(i::Heap::kNoGCFlags);
} }
WeakHashTable* table = WeakHashTable::cast(heap->weak_object_to_code_table()); int elements = 0;
CHECK_EQ(0, table->NumberOfElements()); if (heap->weak_object_to_code_table()->IsHashTable()) {
WeakHashTable* t = WeakHashTable::cast(heap->weak_object_to_code_table());
elements = t->NumberOfElements();
}
CHECK_EQ(0, elements);
} }
......
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