зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
463ef22208
Коммит
6addd62ec1
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче