| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 8f9ca63abbd7c7cbc2645451ad82d648458b8d32..59a4d4ba5c14cac88e0f2875beb2e518afd6103e 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -5661,6 +5661,9 @@ void Heap::TracePossibleWrapper(JSObject* js_object) {
|
| }
|
|
|
| void Heap::RegisterExternallyReferencedObject(Object** object) {
|
| + // The embedder is not aware of whether numbers are materialized as heap
|
| + // objects are just passed around as Smis.
|
| + if (!(*object)->IsHeapObject()) return;
|
| HeapObject* heap_object = HeapObject::cast(*object);
|
| DCHECK(Contains(heap_object));
|
| if (FLAG_incremental_marking_wrappers && incremental_marking()->IsMarking()) {
|
|
|