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

Unified Diff: src/objects-inl.h

Issue 2617363003: Use map to distinguish type feedback vectors. (Closed)
Patch Set: Created 3 years, 11 months 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
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 244e66d4d116514df95ea8d47bc4e25345218c98..b9bc799ccac02fe0ba9bd63a7b57104a53099264 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -349,7 +349,9 @@ bool Object::IsLayoutDescriptor() const {
return IsSmi() || IsFixedTypedArrayBase();
}
-bool HeapObject::IsTypeFeedbackVector() const { return IsFixedArray(); }
+bool HeapObject::IsTypeFeedbackVector() const {
+ return map() == GetHeap()->type_feedback_vector_map();
+}
bool HeapObject::IsTypeFeedbackMetadata() const { return IsFixedArray(); }
« no previous file with comments | « src/heap/heap.cc ('k') | src/type-feedback-vector.cc » ('j') | src/type-feedback-vector-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698