Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Unified Diff: src/heap/heap.cc

Issue 1491203002: Updated the check for unmodfied objects to handle Smi Objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698