Bug 1151269 - Fix the test used by Ion ICs for whether values can definitely be written to an unboxed object, r=jandem.

This commit is contained in:
Brian Hackett 2015-04-09 10:42:41 -06:00
Родитель 463ef22208
Коммит 6addd62ec1
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -3076,11 +3076,10 @@ GenerateSetUnboxed(JSContext* cx, MacroAssembler& masm, IonCache::StubAttacher&
MOZ_ASSERT(!UnboxedTypeNeedsPreBarrier(unboxedType));
}
// If the unboxed object's type has known properties, then instances have
// never been converted to native objects and the type set check performed
// above ensures the value being written can be stored in the unboxed
// object.
Label* storeFailure = obj->group()->unknownProperties() ? &failure : nullptr;
// If unboxed objects in this group have have never been converted to
// native objects then the type set check performed above ensures the value
// being written can be stored in the unboxed object.
Label* storeFailure = obj->group()->unboxedLayout().nativeGroup() ? &failure : nullptr;
masm.storeUnboxedProperty(address, unboxedType, value, storeFailure);