Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 869da9be04b59934711fc492e8c541e037749c9d..2f943059a592fa6134cccc6e152d5ca1b19b9e3b 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -3236,7 +3236,8 @@ class DescriptorArray: public FixedArray { |
PropertyDetails details); |
void Replace(int descriptor_number, Descriptor* descriptor); |
- // Generalizes representation and field type of all field descriptors. |
+ // Generalizes constness, representation and field type of all field |
+ // descriptors. |
void GeneralizeAllFields(); |
// Append automatically sets the enumeration index. This should only be used |
@@ -6026,6 +6027,7 @@ class Map: public HeapObject { |
Representation rep1, Handle<FieldType> type1, Representation rep2, |
Handle<FieldType> type2, Isolate* isolate); |
static void GeneralizeField(Handle<Map> map, int modify_index, |
+ PropertyConstness new_constness, |
Representation new_representation, |
Handle<FieldType> new_field_type); |
@@ -6040,6 +6042,7 @@ class Map: public HeapObject { |
static Handle<Map> PrepareForDataProperty(Handle<Map> old_map, |
int descriptor_number, |
+ PropertyConstness constness, |
Handle<Object> value); |
static Handle<Map> Normalize(Handle<Map> map, PropertyNormalizationMode mode, |
@@ -6164,8 +6167,8 @@ class Map: public HeapObject { |
MUST_USE_RESULT static MaybeHandle<Map> CopyWithField( |
Handle<Map> map, Handle<Name> name, Handle<FieldType> type, |
- PropertyAttributes attributes, Representation representation, |
- TransitionFlag flag); |
+ PropertyAttributes attributes, PropertyConstness constness, |
+ Representation representation, TransitionFlag flag); |
MUST_USE_RESULT static MaybeHandle<Map> CopyWithConstant( |
Handle<Map> map, |
@@ -6206,6 +6209,7 @@ class Map: public HeapObject { |
Handle<Name> name, |
Handle<Object> value, |
PropertyAttributes attributes, |
+ PropertyConstness constness, |
StoreFromKeyed store_mode); |
static Handle<Map> TransitionToAccessorProperty( |
Isolate* isolate, Handle<Map> map, Handle<Name> name, int descriptor, |
@@ -6497,6 +6501,7 @@ class Map: public HeapObject { |
// type. The type must be prepared for storing in descriptor array: |
// it must be either a simple type or a map wrapped in a weak cell. |
void UpdateFieldType(int descriptor_number, Handle<Name> name, |
+ PropertyConstness new_constness, |
Representation new_representation, |
Handle<Object> new_wrapped_type); |