Don't perform access checks for internally used properties

BUG=
TBR=dcarney@chromium.org

Review URL: https://codereview.chromium.org/956283003

Cr-Commit-Position: refs/heads/master@{#26878}
This commit is contained in:
verwaest 2015-02-26 04:56:07 -08:00 committed by Commit bot
parent 03cef94a49
commit 1e0c067d55

View File

@ -38,7 +38,10 @@ LookupIterator::State LookupIterator::LookupInHolder(Map* map,
switch (state_) {
case NOT_FOUND:
if (map->IsJSProxyMap()) return JSPROXY;
if (map->is_access_check_needed()) return ACCESS_CHECK;
if (map->is_access_check_needed() &&
!isolate_->IsInternallyUsedPropertyName(name_)) {
return ACCESS_CHECK;
}
// Fall through.
case ACCESS_CHECK:
if (check_interceptor() && map->has_named_interceptor()) {