Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index d0667e28f14d572a022aa7756a98f3edf63b9a83..6bb1ce774e7e75dba7df69707e47bae6d8138fc3 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -2546,8 +2546,7 @@ class JSObject: public JSReceiver { |
MUST_USE_RESULT MaybeObject* PreventExtensions(); |
// ES5 Object.freeze |
- MUST_USE_RESULT MaybeObject* Freeze(Isolate* isolate); |
- |
+ static Handle<Object> Freeze(Handle<JSObject> object); |
// Called the first time an object is observed with ES7 Object.observe. |
MUST_USE_RESULT MaybeObject* SetObserved(Isolate* isolate); |
@@ -3187,6 +3186,10 @@ class DescriptorArray: public FixedArray { |
return CopyUpToAddAttributes(enumeration_index, NONE); |
} |
+ static Handle<DescriptorArray> CopyUpToAddAttributes( |
+ Handle<DescriptorArray> desc, |
+ int enumeration_index, |
+ PropertyAttributes attributes); |
MUST_USE_RESULT MaybeObject* CopyUpToAddAttributes( |
int enumeration_index, |
PropertyAttributes attributes); |
@@ -5789,6 +5792,10 @@ class Map: public HeapObject { |
MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); |
static Handle<Map> CopyDropDescriptors(Handle<Map> map); |
MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); |
+ static Handle<Map> CopyReplaceDescriptors(Handle<Map> map, |
+ Handle<DescriptorArray> descriptors, |
+ TransitionFlag flag, |
+ Handle<Name> name); |
MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( |
DescriptorArray* descriptors, |
TransitionFlag flag, |