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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 5820 matching lines...) Expand 10 before | Expand all | Expand 10 after
5831 static Handle<WeakCell> GetOrCreatePrototypeWeakCell( 5831 static Handle<WeakCell> GetOrCreatePrototypeWeakCell(
5832 Handle<JSObject> prototype, Isolate* isolate); 5832 Handle<JSObject> prototype, Isolate* isolate);
5833 5833
5834 Map* FindRootMap(); 5834 Map* FindRootMap();
5835 Map* FindFieldOwner(int descriptor); 5835 Map* FindFieldOwner(int descriptor);
5836 5836
5837 inline int GetInObjectPropertyOffset(int index); 5837 inline int GetInObjectPropertyOffset(int index);
5838 5838
5839 int NumberOfFields(); 5839 int NumberOfFields();
5840 5840
5841 // Returns true if transition to the given map requires special
5842 // synchronization with the concurrent marker.
5843 bool TransitionRequiresSynchronizationWithGC(Map* target);
5844 // Returns true if transition to the given map removes a tagged in-object
5845 // field.
5846 bool TransitionRemovesTaggedField(Map* target);
5847 // Returns true if transition to the given map replaces a tagged in-object
5848 // field with an untagged in-object field.
5849 bool TransitionChangesTaggedFieldToUntaggedField(Map* target);
5850
5841 // TODO(ishell): candidate with JSObject::MigrateToMap(). 5851 // TODO(ishell): candidate with JSObject::MigrateToMap().
5842 bool InstancesNeedRewriting(Map* target); 5852 bool InstancesNeedRewriting(Map* target);
5843 bool InstancesNeedRewriting(Map* target, int target_number_of_fields, 5853 bool InstancesNeedRewriting(Map* target, int target_number_of_fields,
5844 int target_inobject, int target_unused, 5854 int target_inobject, int target_unused,
5845 int* old_number_of_fields); 5855 int* old_number_of_fields);
5846 // TODO(ishell): moveit! 5856 // TODO(ishell): moveit!
5847 static Handle<Map> GeneralizeAllFields(Handle<Map> map); 5857 static Handle<Map> GeneralizeAllFields(Handle<Map> map);
5848 MUST_USE_RESULT static Handle<FieldType> GeneralizeFieldType( 5858 MUST_USE_RESULT static Handle<FieldType> GeneralizeFieldType(
5849 Representation rep1, Handle<FieldType> type1, Representation rep2, 5859 Representation rep1, Handle<FieldType> type1, Representation rep2,
5850 Handle<FieldType> type2, Isolate* isolate); 5860 Handle<FieldType> type2, Isolate* isolate);
(...skipping 5668 matching lines...) Expand 10 before | Expand all | Expand 10 after
11519 } 11529 }
11520 }; 11530 };
11521 11531
11522 11532
11523 } // NOLINT, false-positive due to second-order macros. 11533 } // NOLINT, false-positive due to second-order macros.
11524 } // NOLINT, false-positive due to second-order macros. 11534 } // NOLINT, false-positive due to second-order macros.
11525 11535
11526 #include "src/objects/object-macros-undef.h" 11536 #include "src/objects/object-macros-undef.h"
11527 11537
11528 #endif // V8_OBJECTS_H_ 11538 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698