Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index a494778a989c3c3963f8ba288b18ec5fa5359b58..861217619a5bcafee8918c86f4aa22347a3a3855 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -2153,6 +2153,13 @@ class JSObject: public JSReceiver { |
StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED, |
ExecutableAccessorInfoHandling handling = DEFAULT_HANDLING); |
+ static void AddProperty(Handle<JSObject> object, |
+ Handle<Name> key, |
+ Handle<Object> value, |
+ PropertyAttributes attributes, |
+ ValueType value_type = OPTIMAL_REPRESENTATION, |
+ StoreMode mode = ALLOW_AS_CONSTANT); |
+ |
// Extend the receiver with a single fast property appeared first in the |
// passed map. This also extends the property backing store if necessary. |
static void AllocateStorageForMap(Handle<JSObject> object, Handle<Map> map); |
@@ -2750,7 +2757,7 @@ class JSObject: public JSReceiver { |
StrictMode strict_mode); |
// Add a property to an object. |
- MUST_USE_RESULT static MaybeHandle<Object> AddProperty( |
+ MUST_USE_RESULT static MaybeHandle<Object> AddPropertyInternal( |
Handle<JSObject> object, |
Handle<Name> name, |
Handle<Object> value, |