Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 1105c6868dc4699e0c0ffb9c057d7a6c16775112..81271d44a8be1f40c0ffc1c45ee35bcf353805b8 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -1493,6 +1493,7 @@ static bool IsUnscavengedHeapObject(Heap* heap, Object** p) { |
static bool IsUnmodifiedHeapObject(Object** p) { |
Object* object = *p; |
+ if (object->IsSmi()) return true; |
mythria
2015/12/02 09:45:49
I thought we can collect all Smi objects. If you t
mythria
2015/12/02 09:45:49
I am a little surprised that we have Smi objects t
jochen (gone - plz use gerrit)
2015/12/02 09:48:28
actually, I think we should return false for all o
mythria
2015/12/02 12:32:38
Done.
|
DCHECK(object->IsHeapObject()); |
mythria
2015/12/02 09:45:49
I think we could remove this DCHECK right? or is i
jochen (gone - plz use gerrit)
2015/12/02 09:48:28
you can remove it
mythria
2015/12/02 12:32:38
Done.
|
HeapObject* heap_object = HeapObject::cast(object); |
if (!object->IsJSObject()) return false; |