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

Unified Diff: src/objects.h

Issue 2702303002: [heap] Notify GC on potentially unsafe object layout changes. (Closed)
Patch Set: NULL -> nullptr Created 3 years, 10 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.h
diff --git a/src/objects.h b/src/objects.h
index 5828bc002ba95830d53d132aee6e7ae4a998f926..96fb2e6d0cdbee082e493d6ec96c0c0412708f60 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -5838,6 +5838,16 @@ class Map: public HeapObject {
int NumberOfFields();
+ // Returns true if transition to the given map requires special
+ // synchronization with the concurrent marker.
+ bool TransitionRequiresSynchronizationWithGC(Map* target);
+ // Returns true if transition to the given map removes a tagged in-object
+ // field.
+ bool TransitionRemovesTaggedField(Map* target);
+ // Returns true if transition to the given map replaces a tagged in-object
+ // field with an untagged in-object field.
+ bool TransitionChangesTaggedFieldToUntaggedField(Map* target);
+
// TODO(ishell): candidate with JSObject::MigrateToMap().
bool InstancesNeedRewriting(Map* target);
bool InstancesNeedRewriting(Map* target, int target_number_of_fields,

Powered by Google App Engine
This is Rietveld 408576698