| Index: src/objects-debug.cc
|
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc
|
| index d4cbef7d6a701f0afdae4b8df08830c019faa835..626ff00931a3be3841bc5b216aff90279875e35d 100644
|
| --- a/src/objects-debug.cc
|
| +++ b/src/objects-debug.cc
|
| @@ -264,8 +264,9 @@ void FixedTypedArray<Traits>::FixedTypedArrayVerify() {
|
|
|
|
|
| bool JSObject::ElementsAreSafeToExamine() {
|
| - return (FLAG_use_gvn && FLAG_use_allocation_folding) ||
|
| - reinterpret_cast<Map*>(elements()) !=
|
| + // If a GC was caused while constructing this object, the elements
|
| + // pointer may point to a one pointer filler map.
|
| + return reinterpret_cast<Map*>(elements()) !=
|
| GetHeap()->one_pointer_filler_map();
|
| }
|
|
|
|
|