| Index: src/objects-debug.cc
|
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc
|
| index 564acec80dbbff6e21c0cadc4816138dbd3904be..54afc645d4b67106a5e39e7bbebaadf83914a325 100644
|
| --- a/src/objects-debug.cc
|
| +++ b/src/objects-debug.cc
|
| @@ -156,6 +156,9 @@ void HeapObject::HeapObjectVerify() {
|
| case JS_ARRAY_TYPE:
|
| JSArray::cast(this)->JSArrayVerify();
|
| break;
|
| + case JS_WEAK_MAP_TYPE:
|
| + JSWeakMap::cast(this)->JSWeakMapVerify();
|
| + break;
|
| case JS_REGEXP_TYPE:
|
| JSRegExp::cast(this)->JSRegExpVerify();
|
| break;
|
| @@ -321,7 +324,7 @@ void FixedArray::FixedArrayVerify() {
|
| void FixedDoubleArray::FixedDoubleArrayVerify() {
|
| for (int i = 0; i < length(); i++) {
|
| if (!is_the_hole(i)) {
|
| - double value = get(i);
|
| + double value = get_scalar(i);
|
| ASSERT(!isnan(value) ||
|
| (BitCast<uint64_t>(value) ==
|
| BitCast<uint64_t>(canonical_not_the_hole_nan_as_double())));
|
| @@ -461,6 +464,14 @@ void JSArray::JSArrayVerify() {
|
| }
|
|
|
|
|
| +void JSWeakMap::JSWeakMapVerify() {
|
| + CHECK(IsJSWeakMap());
|
| + JSObjectVerify();
|
| + VerifyHeapPointer(table());
|
| + ASSERT(table()->IsHashTable());
|
| +}
|
| +
|
| +
|
| void JSRegExp::JSRegExpVerify() {
|
| JSObjectVerify();
|
| ASSERT(data()->IsUndefined() || data()->IsFixedArray());
|
|
|