Index: src/runtime/runtime-classes.cc |
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
index ac02ce1b1cd07ee26f8b168ae4adfce6ca822410..fc2f4a0ece516cae71428e3d350b0fe5511dcc24 100644 |
--- a/src/runtime/runtime-classes.cc |
+++ b/src/runtime/runtime-classes.cc |
@@ -223,9 +223,8 @@ RUNTIME_FUNCTION(Runtime_ClassGetSourceCode) { |
static Object* LoadFromSuper(Isolate* isolate, Handle<Object> receiver, |
Handle<JSObject> home_object, Handle<Name> name) { |
- if (home_object->IsAccessCheckNeeded() && |
- !isolate->MayNamedAccess(home_object, name, v8::ACCESS_GET)) { |
- isolate->ReportFailedAccessCheck(home_object, v8::ACCESS_GET); |
+ if (home_object->IsAccessCheckNeeded() && !isolate->MayAccess(home_object)) { |
+ isolate->ReportFailedAccessCheck(home_object); |
RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate); |
} |
@@ -243,9 +242,8 @@ static Object* LoadFromSuper(Isolate* isolate, Handle<Object> receiver, |
static Object* LoadElementFromSuper(Isolate* isolate, Handle<Object> receiver, |
Handle<JSObject> home_object, |
uint32_t index) { |
- if (home_object->IsAccessCheckNeeded() && |
- !isolate->MayIndexedAccess(home_object, index, v8::ACCESS_GET)) { |
- isolate->ReportFailedAccessCheck(home_object, v8::ACCESS_GET); |
+ if (home_object->IsAccessCheckNeeded() && !isolate->MayAccess(home_object)) { |
+ isolate->ReportFailedAccessCheck(home_object); |
RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate); |
} |
@@ -297,9 +295,8 @@ RUNTIME_FUNCTION(Runtime_LoadKeyedFromSuper) { |
static Object* StoreToSuper(Isolate* isolate, Handle<JSObject> home_object, |
Handle<Object> receiver, Handle<Name> name, |
Handle<Object> value, LanguageMode language_mode) { |
- if (home_object->IsAccessCheckNeeded() && |
- !isolate->MayNamedAccess(home_object, name, v8::ACCESS_SET)) { |
- isolate->ReportFailedAccessCheck(home_object, v8::ACCESS_SET); |
+ if (home_object->IsAccessCheckNeeded() && !isolate->MayAccess(home_object)) { |
+ isolate->ReportFailedAccessCheck(home_object); |
RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate); |
} |
@@ -322,9 +319,8 @@ static Object* StoreElementToSuper(Isolate* isolate, |
Handle<Object> receiver, uint32_t index, |
Handle<Object> value, |
LanguageMode language_mode) { |
- if (home_object->IsAccessCheckNeeded() && |
- !isolate->MayIndexedAccess(home_object, index, v8::ACCESS_SET)) { |
- isolate->ReportFailedAccessCheck(home_object, v8::ACCESS_SET); |
+ if (home_object->IsAccessCheckNeeded() && !isolate->MayAccess(home_object)) { |
+ isolate->ReportFailedAccessCheck(home_object); |
RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate); |
} |