Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 80a0ada87d1f4df48a0b60d0f7066780a9f33647..8e626b4d2bef4d61a1ae0407b3b187b613a4a188 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1887,6 +1887,10 @@ class JSReceiver: public HeapObject { |
Handle<Object> key, PropertyDescriptor* desc, |
ShouldThrow should_throw); |
+ // "virtual" dispatcher to the correct [[CreateDataProperty]] implementation. |
+ MUST_USE_RESULT static Maybe<bool> CreateDataProperty(LookupIterator* it, |
+ Handle<Object> value); |
+ |
static bool OrdinaryDefineOwnProperty(Isolate* isolate, |
Handle<JSObject> object, |
Handle<Object> key, |
@@ -1918,6 +1922,8 @@ class JSReceiver: public HeapObject { |
// function that was used to instantiate the object). |
String* constructor_name(); |
+ Context* GetCreationContext(); |
+ |
MUST_USE_RESULT static inline Maybe<PropertyAttributes> GetPropertyAttributes( |
Handle<JSReceiver> object, Handle<Name> name); |
MUST_USE_RESULT static inline Maybe<PropertyAttributes> |
@@ -2502,8 +2508,6 @@ class JSObject: public JSReceiver { |
typedef FlexibleBodyDescriptor<kPropertiesOffset> BodyDescriptor; |
- Context* GetCreationContext(); |
- |
// Enqueue change record for Object.observe. May cause GC. |
MUST_USE_RESULT static MaybeHandle<Object> EnqueueChangeRecord( |
Handle<JSObject> object, const char* type, Handle<Name> name, |