Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index 57062be41c86bedef4c0f7f5e8205283a41e9bf4..0b0f9b0757252a1852c0cc6203f931680e303b6a 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -783,64 +783,6 @@ const AccessorDescriptor Accessors::FunctionCaller = { |
// |
-// Accessors::ObjectPrototype |
-// |
- |
- |
-static inline Object* GetPrototypeSkipHiddenPrototypes(Isolate* isolate, |
- Object* receiver) { |
- Object* current = receiver->GetPrototype(isolate); |
- while (current->IsJSObject() && |
- JSObject::cast(current)->map()->is_hidden_prototype()) { |
- current = current->GetPrototype(isolate); |
- } |
- return current; |
-} |
- |
- |
-MaybeObject* Accessors::ObjectGetPrototype(Object* receiver, void*) { |
- return GetPrototypeSkipHiddenPrototypes(Isolate::Current(), receiver); |
-} |
- |
- |
-MaybeObject* Accessors::ObjectSetPrototype(JSObject* receiver_raw, |
- Object* value_raw, |
- void*) { |
- const bool kSkipHiddenPrototypes = true; |
- // To be consistent with other Set functions, return the value. |
- if (!(FLAG_harmony_observation && receiver_raw->map()->is_observed())) |
- return receiver_raw->SetPrototype(value_raw, kSkipHiddenPrototypes); |
- |
- Isolate* isolate = receiver_raw->GetIsolate(); |
- HandleScope scope(isolate); |
- Handle<JSObject> receiver(receiver_raw); |
- Handle<Object> value(value_raw, isolate); |
- Handle<Object> old_value(GetPrototypeSkipHiddenPrototypes(isolate, *receiver), |
- isolate); |
- |
- MaybeObject* result = receiver->SetPrototype(*value, kSkipHiddenPrototypes); |
- Handle<Object> hresult; |
- if (!result->ToHandle(&hresult, isolate)) return result; |
- |
- Handle<Object> new_value(GetPrototypeSkipHiddenPrototypes(isolate, *receiver), |
- isolate); |
- if (!new_value->SameValue(*old_value)) { |
- JSObject::EnqueueChangeRecord(receiver, "prototype", |
- isolate->factory()->proto_string(), |
- old_value); |
- } |
- return *hresult; |
-} |
- |
- |
-const AccessorDescriptor Accessors::ObjectPrototype = { |
- ObjectGetPrototype, |
- ObjectSetPrototype, |
- 0 |
-}; |
- |
- |
-// |
// Accessors::MakeModuleExport |
// |