Reviewers: ,

Message:
Committed patchset #1 manually as r21303 (presubmit successful).

Description:
Fix test after r21299.

This fixes Win and Mac test failures.

[email protected]

Committed: https://code.google.com/p/v8/source/detail?r=21303

Please review this at https://codereview.chromium.org/282863005/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+6, -2 lines):
  M test/cctest/test-heap.cc


Index: test/cctest/test-heap.cc
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
index 757b36d1391b2338e8842fe7042d068cd4637a3d..45ec1fc3f96ed185e1982e0be5252f19ff217a4a 100644
--- a/test/cctest/test-heap.cc
+++ b/test/cctest/test-heap.cc
@@ -3919,8 +3919,12 @@ TEST(NoWeakHashTableLeakWithIncrementalMarking) {
     }
     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.

Reply via email to