Bug 793284 - Use non-freezing checks in TestCommonPropFunc() to avoid bogus invalidations. (r=djvj)

This commit is contained in:
Eric Faust 2012-09-26 19:02:56 -04:00
parent 30183ad75c
commit 29e32d6fb7

View File

@ -5389,7 +5389,7 @@ IonBuilder::TestCommonPropFunc(JSContext *cx, types::StackTypeSet *types, Handle
types::HeapTypeSet *propSet = typeObj->getProperty(cx, typeId, false);
if (!propSet)
return false;
if (propSet->isOwnProperty(cx, typeObj, false))
if (propSet->ownProperty(false))
return true;
// Check the DOM status of the instance type
@ -5477,7 +5477,7 @@ IonBuilder::TestCommonPropFunc(JSContext *cx, types::StackTypeSet *types, Handle
types::HeapTypeSet *propSet = typeObj->getProperty(cx, typeId, false);
if (!propSet)
return false;
if (propSet->isOwnProperty(cx, typeObj, false))
if (propSet->ownProperty(false))
return true;
curObj = curObj->getProto();