[JAEGER] Fixed regression in bug 583692 that disabled scope ICs.

This commit is contained in:
David Anderson 2010-08-12 02:42:51 -07:00
parent cbd7bb3275
commit 86b6472243

View File

@ -1654,14 +1654,15 @@ class ScopeNameCompiler : public PICStubCompiler
return disable("property is on proto of a scope object");
sprop = (JSScopeProperty *)prop;
if (obj->getClass() == &js_CallClass)
return generateCallStub();
if (!sprop->hasDefaultGetterOrIsMethod())
return disable("getter");
if (!SPROP_HAS_VALID_SLOT(sprop, holder->scope()))
return disable("invalid slot");
if (obj->getClass() == &js_CallClass)
return generateCallStub();
if (!obj->getParent())
return generateGlobalStub();