[turbofan] Don't lookup private symbols on prototypes.

R=yangguo@chromium.org
BUG=v8:4470
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#31686}
This commit is contained in:
bmeurer 2015-10-30 05:14:34 -07:00 committed by Commit bot
parent 5820adf276
commit 18b37c7f59

View File

@ -449,6 +449,9 @@ bool JSNativeContextSpecialization::ComputePropertyAccessInfo(
return false;
}
// Don't lookup private symbols on the prototype chain.
if (name->IsPrivate()) return false;
// Walk up the prototype chain.
if (!map->prototype()->IsJSObject()) {
// Perform the implicit ToObject for primitives here.