Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index b13118d526ce27ba6aea3e32d2b2a707d625e4fa..ed0749d77f75fc0ddbd793f5a460fa6c23a2ffec 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -6407,6 +6407,10 @@ bool HOptimizedGraphBuilder::PropertyAccessInfo::LoadFieldMaps( |
bool HOptimizedGraphBuilder::PropertyAccessInfo::LookupInPrototypes() { |
Handle<Map> map = this->map(); |
+ if (name_->IsPrivate()) { |
+ NotFound(); |
+ return !map->has_hidden_prototype(); |
+ } |
while (map->prototype()->IsJSObject()) { |
holder_ = handle(JSObject::cast(map->prototype())); |