Bug 891400 - Don't use LoadTypedArrayElementStatic for uint32 arrays.

This commit is contained in:
Brian Hackett 2013-07-11 16:50:27 -06:00
parent 957a02a6a6
commit f426863a2f

View File

@ -6539,6 +6539,10 @@ IonBuilder::jsop_getelem_typed_static(bool *psucceeded)
ArrayBufferView::ViewType viewType = JS_GetArrayBufferViewType(tarr);
// LoadTypedArrayElementStatic currently treats uint32 arrays as int32.
if (viewType == ArrayBufferView::TYPE_UINT32)
return true;
MDefinition *ptr = convertShiftToMaskForStaticTypedArray(id, viewType);
if (!ptr)
return true;