Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index cbef145d971a84c9c601234b0241337b3dae2f2e..d9e8b8b04d0f79781b54c2858fe4b7291608924f 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -651,11 +651,9 @@ MaybeObject* Object::GetProperty(Object* receiver, |
receiver, result->GetCallbackObject(), name); |
case HANDLER: |
return result->proxy()->GetPropertyWithHandler(receiver, name); |
- case INTERCEPTOR: { |
- JSObject* recvr = JSObject::cast(receiver); |
+ case INTERCEPTOR: |
return result->holder()->GetPropertyWithInterceptor( |
- recvr, name, attributes); |
- } |
+ receiver, name, attributes); |
case TRANSITION: |
case NONEXISTENT: |
UNREACHABLE(); |
@@ -10483,7 +10481,7 @@ InterceptorInfo* JSObject::GetIndexedInterceptor() { |
MaybeObject* JSObject::GetPropertyPostInterceptor( |
- JSReceiver* receiver, |
+ Object* receiver, |
String* name, |
PropertyAttributes* attributes) { |
// Check local property in holder, ignore interceptor. |
@@ -10501,7 +10499,7 @@ MaybeObject* JSObject::GetPropertyPostInterceptor( |
MaybeObject* JSObject::GetLocalPropertyPostInterceptor( |
- JSReceiver* receiver, |
+ Object* receiver, |
String* name, |
PropertyAttributes* attributes) { |
// Check local property in holder, ignore interceptor. |
@@ -10515,13 +10513,13 @@ MaybeObject* JSObject::GetLocalPropertyPostInterceptor( |
MaybeObject* JSObject::GetPropertyWithInterceptor( |
- JSReceiver* receiver, |
+ Object* receiver, |
String* name, |
PropertyAttributes* attributes) { |
Isolate* isolate = GetIsolate(); |
InterceptorInfo* interceptor = GetNamedInterceptor(); |
HandleScope scope(isolate); |
- Handle<JSReceiver> receiver_handle(receiver); |
+ Handle<Object> receiver_handle(receiver); |
Handle<JSObject> holder_handle(this); |
Handle<String> name_handle(name); |