Don't explicitly unbox before GetPropertyCache (bug 799907, r=djvj).

This commit is contained in:
David Anderson 2012-10-11 13:47:50 -07:00
parent 5aa8fc064a
commit 9b18baec73

View File

@ -5944,13 +5944,9 @@ IonBuilder::jsop_getprop(HandlePropertyName name)
ins = load;
} else if (obj->type() == MIRType_Value && unaryTypes.inTypes->objectOrSentinel()) {
// Fallibly unwrap the object and IC the result.
MUnbox *unbox = MUnbox::New(obj, MIRType_Object, MUnbox::Fallible);
current->add(unbox);
spew("GETPROP is object-or-sentinel");
MGetPropertyCache *load = MGetPropertyCache::New(unbox, name);
MGetPropertyCache *load = MGetPropertyCache::New(obj, name);
load->setResultType(rvalType);
if (accessGetter)
load->setAllowGetters();