Revision: 21303
Author: [email protected]
Date: Wed May 14 11:43:21 2014 UTC
Log: Fix test after r21299.
This fixes Win and Mac test failures.
[email protected]
Review URL: https://codereview.chromium.org/282863005
http://code.google.com/p/v8/source/detail?r=21303
Modified:
/branches/bleeding_edge/test/cctest/test-heap.cc
=======================================
--- /branches/bleeding_edge/test/cctest/test-heap.cc Wed May 14 09:12:21
2014 UTC
+++ /branches/bleeding_edge/test/cctest/test-heap.cc Wed May 14 11:43:21
2014 UTC
@@ -3919,8 +3919,12 @@
}
heap->CollectAllGarbage(i::Heap::kNoGCFlags);
}
- WeakHashTable* table =
WeakHashTable::cast(heap->weak_object_to_code_table());
- CHECK_EQ(0, table->NumberOfElements());
+ int elements = 0;
+ 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);
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.