| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index ae3ba6db3ea581bd2cb1cec74fa37d60532904ac..770eaeabdcf2cf05c306606f4a7d8a12a3150023 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -2893,18 +2893,6 @@ class JSObject: public JSReceiver {
|
| StoreMode mode = ALLOW_AS_CONSTANT,
|
| TransitionFlag flag = INSERT_TRANSITION);
|
|
|
| - // Add a constant function property to a fast-case object.
|
| - // This leaves a CONSTANT_TRANSITION in the old map, and
|
| - // if it is called on a second object with this map, a
|
| - // normal property is added instead, with a map transition.
|
| - // This avoids the creation of many maps with the same constant
|
| - // function, all orphaned.
|
| - static void AddConstantProperty(Handle<JSObject> object,
|
| - Handle<Name> name,
|
| - Handle<Object> constant,
|
| - PropertyAttributes attributes,
|
| - TransitionFlag flag);
|
| -
|
| // Add a property to a fast-case object.
|
| static void AddFastProperty(Handle<JSObject> object,
|
| Handle<Name> name,
|
| @@ -6432,9 +6420,6 @@ class Map: public HeapObject {
|
| Handle<DescriptorArray> descriptors,
|
| TransitionFlag flag,
|
| SimpleTransitionFlag simple_flag = FULL_TRANSITION);
|
| - static Handle<Map> CopyAddDescriptor(Handle<Map> map,
|
| - Descriptor* descriptor,
|
| - TransitionFlag flag);
|
| static Handle<Map> CopyInsertDescriptor(Handle<Map> map,
|
| Descriptor* descriptor,
|
| TransitionFlag flag);
|
| @@ -6444,6 +6429,21 @@ class Map: public HeapObject {
|
| int index,
|
| TransitionFlag flag);
|
|
|
| + MUST_USE_RESULT static MaybeHandle<Map> CopyWithField(
|
| + Handle<Map> map,
|
| + Handle<Name> name,
|
| + Handle<HeapType> type,
|
| + PropertyAttributes attributes,
|
| + Representation representation,
|
| + TransitionFlag flag);
|
| +
|
| + MUST_USE_RESULT static MaybeHandle<Map> CopyWithConstant(
|
| + Handle<Map> map,
|
| + Handle<Name> name,
|
| + Handle<Object> constant,
|
| + PropertyAttributes attributes,
|
| + TransitionFlag flag);
|
| +
|
| static Handle<Map> AsElementsKind(Handle<Map> map, ElementsKind kind);
|
|
|
| static Handle<Map> CopyAsElementsKind(Handle<Map> map,
|
| @@ -6694,6 +6694,9 @@ class Map: public HeapObject {
|
| Handle<Map> map,
|
| int new_descriptor,
|
| Handle<DescriptorArray> descriptors);
|
| + static Handle<Map> CopyAddDescriptor(Handle<Map> map,
|
| + Descriptor* descriptor,
|
| + TransitionFlag flag);
|
|
|
| // Zaps the contents of backing data structures. Note that the
|
| // heap verifier (i.e. VerifyMarkingVisitor) relies on zapping of objects
|
|
|