Revision: 19585
Author: [email protected]
Date: Thu Feb 27 15:28:28 2014 UTC
Log: Fix bogus assertion.
[email protected]
BUG=347530
Review URL: https://codereview.chromium.org/183243002
http://code.google.com/p/v8/source/detail?r=19585
Modified:
/branches/bleeding_edge/src/objects.cc
=======================================
--- /branches/bleeding_edge/src/objects.cc Thu Feb 27 14:45:53 2014 UTC
+++ /branches/bleeding_edge/src/objects.cc Thu Feb 27 15:28:28 2014 UTC
@@ -13089,8 +13089,9 @@
}
// Fall through if packing is not guaranteed.
case FAST_HOLEY_DOUBLE_ELEMENTS: {
- FixedDoubleArray* elms = FixedDoubleArray::cast(elements());
- *capacity = elms->length();
+ *capacity = elements()->length();
+ if (*capacity == 0) break;
+ FixedDoubleArray * elms = FixedDoubleArray::cast(elements());
for (int i = 0; i < *capacity; i++) {
if (!elms->is_the_hole(i)) ++(*used);
}
--
--
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/groups/opt_out.