| Index: src/harmony-simd.js
|
| diff --git a/src/harmony-simd.js b/src/harmony-simd.js
|
| index a5e3bcde96ceedcfe74eb3e691a57106e7c921ae..3cc18c2e908d8301717128caa1698a89e6683edd 100644
|
| --- a/src/harmony-simd.js
|
| +++ b/src/harmony-simd.js
|
| @@ -23,12 +23,6 @@
|
| FUNCTION(Int8x16, int8x16, 16)
|
| endmacro
|
|
|
| -macro SIMD_UINT_TYPES(FUNCTION)
|
| -FUNCTION(Uint32x4, uint32x4, 4)
|
| -FUNCTION(Uint16x8, uint16x8, 8)
|
| -FUNCTION(Uint8x16, uint8x16, 16)
|
| -endmacro
|
| -
|
| macro SIMD_BOOL_TYPES(FUNCTION)
|
| FUNCTION(Bool32x4, bool32x4, 4)
|
| FUNCTION(Bool16x8, bool16x8, 8)
|
| @@ -38,7 +32,6 @@
|
| macro SIMD_ALL_TYPES(FUNCTION)
|
| SIMD_FLOAT_TYPES(FUNCTION)
|
| SIMD_INT_TYPES(FUNCTION)
|
| -SIMD_UINT_TYPES(FUNCTION)
|
| SIMD_BOOL_TYPES(FUNCTION)
|
| endmacro
|
|
|
| @@ -92,6 +85,14 @@
|
| function NAMEExtractLaneJS(instance, lane) {
|
| return %NAMEExtractLane(instance, lane);
|
| }
|
| +
|
| +function NAMEEqualJS(a, b) {
|
| + return %NAMEEqual(a, b);
|
| +}
|
| +
|
| +function NAMENotEqualJS(a, b) {
|
| + return %NAMENotEqual(a, b);
|
| +}
|
| endmacro
|
|
|
| SIMD_ALL_TYPES(DECLARE_COMMON_FUNCTIONS)
|
| @@ -101,73 +102,16 @@
|
| return %NAMEShiftLeftByScalar(instance, shift);
|
| }
|
|
|
| +function NAMEShiftRightLogicalByScalarJS(instance, shift) {
|
| + return %NAMEShiftRightLogicalByScalar(instance, shift);
|
| +}
|
| +
|
| function NAMEShiftRightArithmeticByScalarJS(instance, shift) {
|
| return %NAMEShiftRightArithmeticByScalar(instance, shift);
|
| }
|
| endmacro
|
|
|
| SIMD_INT_TYPES(DECLARE_INT_FUNCTIONS)
|
| -
|
| -macro DECLARE_UINT_FUNCTIONS(NAME, TYPE, LANES)
|
| -function NAMEShiftLeftByScalarJS(instance, shift) {
|
| - return %NAMEShiftLeftByScalar(instance, shift);
|
| -}
|
| -
|
| -function NAMEShiftRightLogicalByScalarJS(instance, shift) {
|
| - return %NAMEShiftRightLogicalByScalar(instance, shift);
|
| -}
|
| -
|
| -function NAMEHorizontalSumJS(instance) {
|
| - return %NAMEHorizontalSum(instance);
|
| -}
|
| -endmacro
|
| -
|
| -SIMD_UINT_TYPES(DECLARE_UINT_FUNCTIONS)
|
| -
|
| -macro SIMD_SMALL_INT_TYPES(FUNCTION)
|
| -FUNCTION(Int16x8)
|
| -FUNCTION(Int8x16)
|
| -FUNCTION(Uint8x16)
|
| -FUNCTION(Uint16x8)
|
| -endmacro
|
| -
|
| -macro DECLARE_SMALL_INT_FUNCTIONS(NAME)
|
| -function NAMEAddSaturateJS(a, b) {
|
| - return %NAMEAddSaturate(a, b);
|
| -}
|
| -
|
| -function NAMESubSaturateJS(a, b) {
|
| - return %NAMESubSaturate(a, b);
|
| -}
|
| -endmacro
|
| -
|
| -SIMD_SMALL_INT_TYPES(DECLARE_SMALL_INT_FUNCTIONS)
|
| -
|
| -macro SIMD_SMALL_UINT_TYPES(FUNCTION)
|
| -FUNCTION(Uint8x16)
|
| -FUNCTION(Uint16x8)
|
| -endmacro
|
| -
|
| -macro DECLARE_SMALL_UINT_FUNCTIONS(NAME)
|
| -function NAMEAbsoluteDifferenceJS(a, b) {
|
| - return %NAMEAbsoluteDifference(a, b);
|
| -}
|
| -
|
| -function NAMEWidenedAbsoluteDifferenceJS(a, b) {
|
| - return %NAMEWidenedAbsoluteDifference(a, b);
|
| -}
|
| -endmacro
|
| -
|
| -SIMD_SMALL_UINT_TYPES(DECLARE_SMALL_UINT_FUNCTIONS)
|
| -
|
| -macro DECLARE_SIGNED_FUNCTIONS(NAME, TYPE, LANES)
|
| -function NAMENegJS(a) {
|
| - return %NAMENeg(a);
|
| -}
|
| -endmacro
|
| -
|
| -SIMD_FLOAT_TYPES(DECLARE_SIGNED_FUNCTIONS)
|
| -SIMD_INT_TYPES(DECLARE_SIGNED_FUNCTIONS)
|
|
|
| macro DECLARE_BOOL_FUNCTIONS(NAME, TYPE, LANES)
|
| function NAMEReplaceLaneJS(instance, lane, value) {
|
| @@ -185,10 +129,22 @@
|
|
|
| SIMD_BOOL_TYPES(DECLARE_BOOL_FUNCTIONS)
|
|
|
| +macro SIMD_UNSIGNED_INT_TYPES(FUNCTION)
|
| +FUNCTION(Int16x8)
|
| +FUNCTION(Int8x16)
|
| +endmacro
|
| +
|
| +macro DECLARE_UNSIGNED_INT_FUNCTIONS(NAME)
|
| +function NAMEUnsignedExtractLaneJS(instance, lane) {
|
| + return %NAMEUnsignedExtractLane(instance, lane);
|
| +}
|
| +endmacro
|
| +
|
| +SIMD_UNSIGNED_INT_TYPES(DECLARE_UNSIGNED_INT_FUNCTIONS)
|
| +
|
| macro SIMD_NUMERIC_TYPES(FUNCTION)
|
| SIMD_FLOAT_TYPES(FUNCTION)
|
| SIMD_INT_TYPES(FUNCTION)
|
| -SIMD_UINT_TYPES(FUNCTION)
|
| endmacro
|
|
|
| macro DECLARE_NUMERIC_FUNCTIONS(NAME, TYPE, LANES)
|
| @@ -200,6 +156,10 @@
|
| return %NAMESelect(selector, a, b);
|
| }
|
|
|
| +function NAMENegJS(a) {
|
| + return %NAMENeg(a);
|
| +}
|
| +
|
| function NAMEAddJS(a, b) {
|
| return %NAMEAdd(a, b);
|
| }
|
| @@ -220,14 +180,6 @@
|
| return %NAMEMax(a, b);
|
| }
|
|
|
| -function NAMEEqualJS(a, b) {
|
| - return %NAMEEqual(a, b);
|
| -}
|
| -
|
| -function NAMENotEqualJS(a, b) {
|
| - return %NAMENotEqual(a, b);
|
| -}
|
| -
|
| function NAMELessThanJS(a, b) {
|
| return %NAMELessThan(a, b);
|
| }
|
| @@ -249,7 +201,6 @@
|
|
|
| macro SIMD_LOGICAL_TYPES(FUNCTION)
|
| SIMD_INT_TYPES(FUNCTION)
|
| -SIMD_UINT_TYPES(FUNCTION)
|
| SIMD_BOOL_TYPES(FUNCTION)
|
| endmacro
|
|
|
| @@ -275,15 +226,7 @@
|
|
|
| macro SIMD_FROM_TYPES(FUNCTION)
|
| FUNCTION(Float32x4, Int32x4)
|
| -FUNCTION(Float32x4, Uint32x4)
|
| FUNCTION(Int32x4, Float32x4)
|
| -FUNCTION(Int32x4, Uint32x4)
|
| -FUNCTION(Uint32x4, Float32x4)
|
| -FUNCTION(Uint32x4, Int32x4)
|
| -FUNCTION(Int16x8, Uint16x8)
|
| -FUNCTION(Uint16x8, Int16x8)
|
| -FUNCTION(Int8x16, Uint8x16)
|
| -FUNCTION(Uint8x16, Int8x16)
|
| endmacro
|
|
|
| macro DECLARE_FROM_FUNCTIONS(TO, FROM)
|
| @@ -296,47 +239,17 @@
|
|
|
| macro SIMD_FROM_BITS_TYPES(FUNCTION)
|
| FUNCTION(Float32x4, Int32x4)
|
| -FUNCTION(Float32x4, Uint32x4)
|
| FUNCTION(Float32x4, Int16x8)
|
| -FUNCTION(Float32x4, Uint16x8)
|
| FUNCTION(Float32x4, Int8x16)
|
| -FUNCTION(Float32x4, Uint8x16)
|
| FUNCTION(Int32x4, Float32x4)
|
| -FUNCTION(Int32x4, Uint32x4)
|
| FUNCTION(Int32x4, Int16x8)
|
| -FUNCTION(Int32x4, Uint16x8)
|
| FUNCTION(Int32x4, Int8x16)
|
| -FUNCTION(Int32x4, Uint8x16)
|
| -FUNCTION(Uint32x4, Float32x4)
|
| -FUNCTION(Uint32x4, Int32x4)
|
| -FUNCTION(Uint32x4, Int16x8)
|
| -FUNCTION(Uint32x4, Uint16x8)
|
| -FUNCTION(Uint32x4, Int8x16)
|
| -FUNCTION(Uint32x4, Uint8x16)
|
| FUNCTION(Int16x8, Float32x4)
|
| FUNCTION(Int16x8, Int32x4)
|
| -FUNCTION(Int16x8, Uint32x4)
|
| -FUNCTION(Int16x8, Uint16x8)
|
| FUNCTION(Int16x8, Int8x16)
|
| -FUNCTION(Int16x8, Uint8x16)
|
| -FUNCTION(Uint16x8, Float32x4)
|
| -FUNCTION(Uint16x8, Int32x4)
|
| -FUNCTION(Uint16x8, Uint32x4)
|
| -FUNCTION(Uint16x8, Int16x8)
|
| -FUNCTION(Uint16x8, Int8x16)
|
| -FUNCTION(Uint16x8, Uint8x16)
|
| FUNCTION(Int8x16, Float32x4)
|
| FUNCTION(Int8x16, Int32x4)
|
| -FUNCTION(Int8x16, Uint32x4)
|
| FUNCTION(Int8x16, Int16x8)
|
| -FUNCTION(Int8x16, Uint16x8)
|
| -FUNCTION(Int8x16, Uint8x16)
|
| -FUNCTION(Uint8x16, Float32x4)
|
| -FUNCTION(Uint8x16, Int32x4)
|
| -FUNCTION(Uint8x16, Uint32x4)
|
| -FUNCTION(Uint8x16, Int16x8)
|
| -FUNCTION(Uint8x16, Uint16x8)
|
| -FUNCTION(Uint8x16, Int8x16)
|
| endmacro
|
|
|
| macro DECLARE_FROM_BITS_FUNCTIONS(TO, FROM)
|
| @@ -346,79 +259,6 @@
|
| endmacro
|
|
|
| SIMD_FROM_BITS_TYPES(DECLARE_FROM_BITS_FUNCTIONS)
|
| -
|
| -//-------------------------------------------------------------------
|
| -
|
| -macro SIMD_X4_TYPES(FUNCTION)
|
| -FUNCTION(Float32x4)
|
| -FUNCTION(Int32x4)
|
| -FUNCTION(Uint32x4)
|
| -FUNCTION(Bool32x4)
|
| -endmacro
|
| -
|
| -macro DECLARE_X4_FUNCTIONS(NAME)
|
| -function NAMESplat(s) {
|
| - return %CreateNAME(s, s, s, s);
|
| -}
|
| -
|
| -function NAMESwizzleJS(a, c0, c1, c2, c3) {
|
| - return %NAMESwizzle(a, c0, c1, c2, c3);
|
| -}
|
| -
|
| -function NAMEShuffleJS(a, b, c0, c1, c2, c3) {
|
| - return %NAMEShuffle(a, b, c0, c1, c2, c3);
|
| -}
|
| -endmacro
|
| -
|
| -SIMD_X4_TYPES(DECLARE_X4_FUNCTIONS)
|
| -
|
| -macro SIMD_X8_TYPES(FUNCTION)
|
| -FUNCTION(Int16x8)
|
| -FUNCTION(Uint16x8)
|
| -FUNCTION(Bool16x8)
|
| -endmacro
|
| -
|
| -macro DECLARE_X8_FUNCTIONS(NAME)
|
| -function NAMESplat(s) {
|
| - return %CreateNAME(s, s, s, s, s, s, s, s);
|
| -}
|
| -
|
| -function NAMESwizzleJS(a, c0, c1, c2, c3, c4, c5, c6, c7) {
|
| - return %NAMESwizzle(a, c0, c1, c2, c3, c4, c5, c6, c7);
|
| -}
|
| -
|
| -function NAMEShuffleJS(a, b, c0, c1, c2, c3, c4, c5, c6, c7) {
|
| - return %NAMEShuffle(a, b, c0, c1, c2, c3, c4, c5, c6, c7);
|
| -}
|
| -endmacro
|
| -
|
| -SIMD_X8_TYPES(DECLARE_X8_FUNCTIONS)
|
| -
|
| -macro SIMD_X16_TYPES(FUNCTION)
|
| -FUNCTION(Int8x16)
|
| -FUNCTION(Uint8x16)
|
| -FUNCTION(Bool8x16)
|
| -endmacro
|
| -
|
| -macro DECLARE_X16_FUNCTIONS(NAME)
|
| -function NAMESplat(s) {
|
| - return %CreateNAME(s, s, s, s, s, s, s, s, s, s, s, s, s, s, s, s);
|
| -}
|
| -
|
| -function NAMESwizzleJS(a, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11,
|
| - c12, c13, c14, c15) {
|
| - return %NAMESwizzle(a, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11,
|
| - c12, c13, c14, c15);
|
| -}
|
| -
|
| -function NAMEShuffleJS(a, b, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10,
|
| - c11, c12, c13, c14, c15) {
|
| - return %NAMEShuffle(a, b, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10,
|
| - c11, c12, c13, c14, c15);
|
| -}
|
| -endmacro
|
| -
|
| -SIMD_X16_TYPES(DECLARE_X16_FUNCTIONS)
|
|
|
| //-------------------------------------------------------------------
|
|
|
| @@ -429,6 +269,56 @@
|
| }
|
|
|
|
|
| +function Float32x4Splat(s) {
|
| + return %CreateFloat32x4(s, s, s, s);
|
| +}
|
| +
|
| +
|
| +function Float32x4AbsJS(a) {
|
| + return %Float32x4Abs(a);
|
| +}
|
| +
|
| +
|
| +function Float32x4SqrtJS(a) {
|
| + return %Float32x4Sqrt(a);
|
| +}
|
| +
|
| +
|
| +function Float32x4RecipApproxJS(a) {
|
| + return %Float32x4RecipApprox(a);
|
| +}
|
| +
|
| +
|
| +function Float32x4RecipSqrtApproxJS(a) {
|
| + return %Float32x4RecipSqrtApprox(a);
|
| +}
|
| +
|
| +
|
| +function Float32x4DivJS(a, b) {
|
| + return %Float32x4Div(a, b);
|
| +}
|
| +
|
| +
|
| +function Float32x4MinNumJS(a, b) {
|
| + return %Float32x4MinNum(a, b);
|
| +}
|
| +
|
| +
|
| +function Float32x4MaxNumJS(a, b) {
|
| + return %Float32x4MaxNum(a, b);
|
| +}
|
| +
|
| +
|
| +function Float32x4SwizzleJS(a, c0, c1, c2, c3) {
|
| + return %Float32x4Swizzle(a, c0, c1, c2, c3);
|
| +}
|
| +
|
| +
|
| +function Float32x4ShuffleJS(a, b, c0, c1, c2, c3) {
|
| + return %Float32x4Shuffle(a, b, c0, c1, c2, c3);
|
| +}
|
| +
|
| +
|
| function Int32x4Constructor(c0, c1, c2, c3) {
|
| if (%_IsConstructCall()) throw MakeTypeError(kNotConstructor, "Int32x4");
|
| return %CreateInt32x4(TO_NUMBER_INLINE(c0), TO_NUMBER_INLINE(c1),
|
| @@ -436,16 +326,38 @@
|
| }
|
|
|
|
|
| -function Uint32x4Constructor(c0, c1, c2, c3) {
|
| - if (%_IsConstructCall()) throw MakeTypeError(kNotConstructor, "Uint32x4");
|
| - return %CreateUint32x4(TO_NUMBER_INLINE(c0), TO_NUMBER_INLINE(c1),
|
| - TO_NUMBER_INLINE(c2), TO_NUMBER_INLINE(c3));
|
| +function Int32x4Splat(s) {
|
| + return %CreateInt32x4(s, s, s, s);
|
| +}
|
| +
|
| +
|
| +function Int32x4SwizzleJS(a, c0, c1, c2, c3) {
|
| + return %Int32x4Swizzle(a, c0, c1, c2, c3);
|
| +}
|
| +
|
| +
|
| +function Int32x4ShuffleJS(a, b, c0, c1, c2, c3) {
|
| + return %Int32x4Shuffle(a, b, c0, c1, c2, c3);
|
| }
|
|
|
|
|
| function Bool32x4Constructor(c0, c1, c2, c3) {
|
| if (%_IsConstructCall()) throw MakeTypeError(kNotConstructor, "Bool32x4");
|
| return %CreateBool32x4(c0, c1, c2, c3);
|
| +}
|
| +
|
| +
|
| +function Bool32x4Splat(s) {
|
| + return %CreateBool32x4(s, s, s, s);
|
| +}
|
| +
|
| +function Bool32x4SwizzleJS(a, c0, c1, c2, c3) {
|
| + return %Bool32x4Swizzle(a, c0, c1, c2, c3);
|
| +}
|
| +
|
| +
|
| +function Bool32x4ShuffleJS(a, b, c0, c1, c2, c3) {
|
| + return %Bool32x4Shuffle(a, b, c0, c1, c2, c3);
|
| }
|
|
|
|
|
| @@ -458,18 +370,39 @@
|
| }
|
|
|
|
|
| -function Uint16x8Constructor(c0, c1, c2, c3, c4, c5, c6, c7) {
|
| - if (%_IsConstructCall()) throw MakeTypeError(kNotConstructor, "Uint16x8");
|
| - return %CreateUint16x8(TO_NUMBER_INLINE(c0), TO_NUMBER_INLINE(c1),
|
| - TO_NUMBER_INLINE(c2), TO_NUMBER_INLINE(c3),
|
| - TO_NUMBER_INLINE(c4), TO_NUMBER_INLINE(c5),
|
| - TO_NUMBER_INLINE(c6), TO_NUMBER_INLINE(c7));
|
| +function Int16x8Splat(s) {
|
| + return %CreateInt16x8(s, s, s, s, s, s, s, s);
|
| +}
|
| +
|
| +
|
| +function Int16x8SwizzleJS(a, c0, c1, c2, c3, c4, c5, c6, c7) {
|
| + return %Int16x8Swizzle(a, c0, c1, c2, c3, c4, c5, c6, c7);
|
| +}
|
| +
|
| +
|
| +function Int16x8ShuffleJS(a, b, c0, c1, c2, c3, c4, c5, c6, c7) {
|
| + return %Int16x8Shuffle(a, b, c0, c1, c2, c3, c4, c5, c6, c7);
|
| }
|
|
|
|
|
| function Bool16x8Constructor(c0, c1, c2, c3, c4, c5, c6, c7) {
|
| if (%_IsConstructCall()) throw MakeTypeError(kNotConstructor, "Bool16x8");
|
| return %CreateBool16x8(c0, c1, c2, c3, c4, c5, c6, c7);
|
| +}
|
| +
|
| +
|
| +function Bool16x8Splat(s) {
|
| + return %CreateBool16x8(s, s, s, s, s, s, s, s);
|
| +}
|
| +
|
| +
|
| +function Bool16x8SwizzleJS(a, c0, c1, c2, c3, c4, c5, c6, c7) {
|
| + return %Bool16x8Swizzle(a, c0, c1, c2, c3, c4, c5, c6, c7);
|
| +}
|
| +
|
| +
|
| +function Bool16x8ShuffleJS(a, b, c0, c1, c2, c3, c4, c5, c6, c7) {
|
| + return %Bool16x8Shuffle(a, b, c0, c1, c2, c3, c4, c5, c6, c7);
|
| }
|
|
|
|
|
| @@ -487,17 +420,22 @@
|
| }
|
|
|
|
|
| -function Uint8x16Constructor(c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11,
|
| - c12, c13, c14, c15) {
|
| - if (%_IsConstructCall()) throw MakeTypeError(kNotConstructor, "Uint8x16");
|
| - return %CreateUint8x16(TO_NUMBER_INLINE(c0), TO_NUMBER_INLINE(c1),
|
| - TO_NUMBER_INLINE(c2), TO_NUMBER_INLINE(c3),
|
| - TO_NUMBER_INLINE(c4), TO_NUMBER_INLINE(c5),
|
| - TO_NUMBER_INLINE(c6), TO_NUMBER_INLINE(c7),
|
| - TO_NUMBER_INLINE(c8), TO_NUMBER_INLINE(c9),
|
| - TO_NUMBER_INLINE(c10), TO_NUMBER_INLINE(c11),
|
| - TO_NUMBER_INLINE(c12), TO_NUMBER_INLINE(c13),
|
| - TO_NUMBER_INLINE(c14), TO_NUMBER_INLINE(c15));
|
| +function Int8x16Splat(s) {
|
| + return %CreateInt8x16(s, s, s, s, s, s, s, s, s, s, s, s, s, s, s, s);
|
| +}
|
| +
|
| +
|
| +function Int8x16SwizzleJS(a, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11,
|
| + c12, c13, c14, c15) {
|
| + return %Int8x16Swizzle(a, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11,
|
| + c12, c13, c14, c15);
|
| +}
|
| +
|
| +
|
| +function Int8x16ShuffleJS(a, b, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10,
|
| + c11, c12, c13, c14, c15) {
|
| + return %Int8x16Shuffle(a, b, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10,
|
| + c11, c12, c13, c14, c15);
|
| }
|
|
|
|
|
| @@ -509,38 +447,22 @@
|
| }
|
|
|
|
|
| -function Float32x4AbsJS(a) {
|
| - return %Float32x4Abs(a);
|
| -}
|
| -
|
| -
|
| -function Float32x4SqrtJS(a) {
|
| - return %Float32x4Sqrt(a);
|
| -}
|
| -
|
| -
|
| -function Float32x4RecipApproxJS(a) {
|
| - return %Float32x4RecipApprox(a);
|
| -}
|
| -
|
| -
|
| -function Float32x4RecipSqrtApproxJS(a) {
|
| - return %Float32x4RecipSqrtApprox(a);
|
| -}
|
| -
|
| -
|
| -function Float32x4DivJS(a, b) {
|
| - return %Float32x4Div(a, b);
|
| -}
|
| -
|
| -
|
| -function Float32x4MinNumJS(a, b) {
|
| - return %Float32x4MinNum(a, b);
|
| -}
|
| -
|
| -
|
| -function Float32x4MaxNumJS(a, b) {
|
| - return %Float32x4MaxNum(a, b);
|
| +function Bool8x16Splat(s) {
|
| + return %CreateBool8x16(s, s, s, s, s, s, s, s, s, s, s, s, s, s, s, s);
|
| +}
|
| +
|
| +
|
| +function Bool8x16SwizzleJS(a, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11,
|
| + c12, c13, c14, c15) {
|
| + return %Bool8x16Swizzle(a, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11,
|
| + c12, c13, c14, c15);
|
| +}
|
| +
|
| +
|
| +function Bool8x16ShuffleJS(a, b, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10,
|
| + c11, c12, c13, c14, c15) {
|
| + return %Bool8x16Shuffle(a, b, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10,
|
| + c11, c12, c13, c14, c15);
|
| }
|
|
|
|
|
| @@ -592,13 +514,9 @@
|
| 'swizzle', Float32x4SwizzleJS,
|
| 'shuffle', Float32x4ShuffleJS,
|
| 'fromInt32x4', Float32x4FromInt32x4JS,
|
| - 'fromUint32x4', Float32x4FromUint32x4JS,
|
| 'fromInt32x4Bits', Float32x4FromInt32x4BitsJS,
|
| - 'fromUint32x4Bits', Float32x4FromUint32x4BitsJS,
|
| 'fromInt16x8Bits', Float32x4FromInt16x8BitsJS,
|
| - 'fromUint16x8Bits', Float32x4FromUint16x8BitsJS,
|
| 'fromInt8x16Bits', Float32x4FromInt8x16BitsJS,
|
| - 'fromUint8x16Bits', Float32x4FromUint8x16BitsJS,
|
| ]);
|
|
|
| utils.InstallFunctions(GlobalInt32x4, DONT_ENUM, [
|
| @@ -617,6 +535,7 @@
|
| 'xor', Int32x4XorJS,
|
| 'not', Int32x4NotJS,
|
| 'shiftLeftByScalar', Int32x4ShiftLeftByScalarJS,
|
| + 'shiftRightLogicalByScalar', Int32x4ShiftRightLogicalByScalarJS,
|
| 'shiftRightArithmeticByScalar', Int32x4ShiftRightArithmeticByScalarJS,
|
| 'lessThan', Int32x4LessThanJS,
|
| 'lessThanOrEqual', Int32x4LessThanOrEqualJS,
|
| @@ -628,49 +547,9 @@
|
| 'swizzle', Int32x4SwizzleJS,
|
| 'shuffle', Int32x4ShuffleJS,
|
| 'fromFloat32x4', Int32x4FromFloat32x4JS,
|
| - 'fromUint32x4', Int32x4FromUint32x4JS,
|
| 'fromFloat32x4Bits', Int32x4FromFloat32x4BitsJS,
|
| - 'fromUint32x4Bits', Int32x4FromUint32x4BitsJS,
|
| 'fromInt16x8Bits', Int32x4FromInt16x8BitsJS,
|
| - 'fromUint16x8Bits', Int32x4FromUint16x8BitsJS,
|
| 'fromInt8x16Bits', Int32x4FromInt8x16BitsJS,
|
| - 'fromUint8x16Bits', Int32x4FromUint8x16BitsJS,
|
| -]);
|
| -
|
| -utils.InstallFunctions(GlobalUint32x4, DONT_ENUM, [
|
| - 'splat', Uint32x4Splat,
|
| - 'check', Uint32x4CheckJS,
|
| - 'extractLane', Uint32x4ExtractLaneJS,
|
| - 'replaceLane', Uint32x4ReplaceLaneJS,
|
| - 'add', Uint32x4AddJS,
|
| - 'sub', Uint32x4SubJS,
|
| - 'mul', Uint32x4MulJS,
|
| - 'min', Uint32x4MinJS,
|
| - 'max', Uint32x4MaxJS,
|
| - 'and', Uint32x4AndJS,
|
| - 'or', Uint32x4OrJS,
|
| - 'xor', Uint32x4XorJS,
|
| - 'not', Uint32x4NotJS,
|
| - 'shiftLeftByScalar', Uint32x4ShiftLeftByScalarJS,
|
| - 'shiftRightLogicalByScalar', Uint32x4ShiftRightLogicalByScalarJS,
|
| - 'horizontalSum', Uint32x4HorizontalSumJS,
|
| - 'lessThan', Uint32x4LessThanJS,
|
| - 'lessThanOrEqual', Uint32x4LessThanOrEqualJS,
|
| - 'greaterThan', Uint32x4GreaterThanJS,
|
| - 'greaterThanOrEqual', Uint32x4GreaterThanOrEqualJS,
|
| - 'equal', Uint32x4EqualJS,
|
| - 'notEqual', Uint32x4NotEqualJS,
|
| - 'select', Uint32x4SelectJS,
|
| - 'swizzle', Uint32x4SwizzleJS,
|
| - 'shuffle', Uint32x4ShuffleJS,
|
| - 'fromFloat32x4', Uint32x4FromFloat32x4JS,
|
| - 'fromInt32x4', Uint32x4FromInt32x4JS,
|
| - 'fromFloat32x4Bits', Uint32x4FromFloat32x4BitsJS,
|
| - 'fromInt32x4Bits', Uint32x4FromInt32x4BitsJS,
|
| - 'fromInt16x8Bits', Uint32x4FromInt16x8BitsJS,
|
| - 'fromUint16x8Bits', Uint32x4FromUint16x8BitsJS,
|
| - 'fromInt8x16Bits', Uint32x4FromInt8x16BitsJS,
|
| - 'fromUint8x16Bits', Uint32x4FromUint8x16BitsJS,
|
| ]);
|
|
|
| utils.InstallFunctions(GlobalBool32x4, DONT_ENUM, [
|
| @@ -684,6 +563,8 @@
|
| 'not', Bool32x4NotJS,
|
| 'anyTrue', Bool32x4AnyTrueJS,
|
| 'allTrue', Bool32x4AllTrueJS,
|
| + 'equal', Bool32x4EqualJS,
|
| + 'notEqual', Bool32x4NotEqualJS,
|
| 'swizzle', Bool32x4SwizzleJS,
|
| 'shuffle', Bool32x4ShuffleJS,
|
| ]);
|
| @@ -692,12 +573,11 @@
|
| 'splat', Int16x8Splat,
|
| 'check', Int16x8CheckJS,
|
| 'extractLane', Int16x8ExtractLaneJS,
|
| + 'unsignedExtractLane', Int16x8UnsignedExtractLaneJS,
|
| 'replaceLane', Int16x8ReplaceLaneJS,
|
| 'neg', Int16x8NegJS,
|
| 'add', Int16x8AddJS,
|
| 'sub', Int16x8SubJS,
|
| - 'addSaturate', Int16x8AddSaturateJS,
|
| - 'subSaturate', Int16x8SubSaturateJS,
|
| 'mul', Int16x8MulJS,
|
| 'min', Int16x8MinJS,
|
| 'max', Int16x8MaxJS,
|
| @@ -706,6 +586,7 @@
|
| 'xor', Int16x8XorJS,
|
| 'not', Int16x8NotJS,
|
| 'shiftLeftByScalar', Int16x8ShiftLeftByScalarJS,
|
| + 'shiftRightLogicalByScalar', Int16x8ShiftRightLogicalByScalarJS,
|
| 'shiftRightArithmeticByScalar', Int16x8ShiftRightArithmeticByScalarJS,
|
| 'lessThan', Int16x8LessThanJS,
|
| 'lessThanOrEqual', Int16x8LessThanOrEqualJS,
|
| @@ -716,52 +597,9 @@
|
| 'select', Int16x8SelectJS,
|
| 'swizzle', Int16x8SwizzleJS,
|
| 'shuffle', Int16x8ShuffleJS,
|
| - 'fromUint16x8', Int16x8FromUint16x8JS,
|
| 'fromFloat32x4Bits', Int16x8FromFloat32x4BitsJS,
|
| 'fromInt32x4Bits', Int16x8FromInt32x4BitsJS,
|
| - 'fromUint32x4Bits', Int16x8FromUint32x4BitsJS,
|
| - 'fromUint16x8Bits', Int16x8FromUint16x8BitsJS,
|
| 'fromInt8x16Bits', Int16x8FromInt8x16BitsJS,
|
| - 'fromUint8x16Bits', Int16x8FromUint8x16BitsJS,
|
| -]);
|
| -
|
| -utils.InstallFunctions(GlobalUint16x8, DONT_ENUM, [
|
| - 'splat', Uint16x8Splat,
|
| - 'check', Uint16x8CheckJS,
|
| - 'extractLane', Uint16x8ExtractLaneJS,
|
| - 'replaceLane', Uint16x8ReplaceLaneJS,
|
| - 'add', Uint16x8AddJS,
|
| - 'sub', Uint16x8SubJS,
|
| - 'addSaturate', Uint16x8AddSaturateJS,
|
| - 'subSaturate', Uint16x8SubSaturateJS,
|
| - 'mul', Uint16x8MulJS,
|
| - 'min', Uint16x8MinJS,
|
| - 'max', Uint16x8MaxJS,
|
| - 'and', Uint16x8AndJS,
|
| - 'or', Uint16x8OrJS,
|
| - 'xor', Uint16x8XorJS,
|
| - 'not', Uint16x8NotJS,
|
| - 'shiftLeftByScalar', Uint16x8ShiftLeftByScalarJS,
|
| - 'shiftRightLogicalByScalar', Uint16x8ShiftRightLogicalByScalarJS,
|
| - 'horizontalSum', Uint16x8HorizontalSumJS,
|
| - 'absoluteDifference', Uint16x8AbsoluteDifferenceJS,
|
| - 'widenedAbsoluteDifference', Uint16x8WidenedAbsoluteDifferenceJS,
|
| - 'lessThan', Uint16x8LessThanJS,
|
| - 'lessThanOrEqual', Uint16x8LessThanOrEqualJS,
|
| - 'greaterThan', Uint16x8GreaterThanJS,
|
| - 'greaterThanOrEqual', Uint16x8GreaterThanOrEqualJS,
|
| - 'equal', Uint16x8EqualJS,
|
| - 'notEqual', Uint16x8NotEqualJS,
|
| - 'select', Uint16x8SelectJS,
|
| - 'swizzle', Uint16x8SwizzleJS,
|
| - 'shuffle', Uint16x8ShuffleJS,
|
| - 'fromInt16x8', Uint16x8FromInt16x8JS,
|
| - 'fromFloat32x4Bits', Uint16x8FromFloat32x4BitsJS,
|
| - 'fromInt32x4Bits', Uint16x8FromInt32x4BitsJS,
|
| - 'fromUint32x4Bits', Uint16x8FromUint32x4BitsJS,
|
| - 'fromInt16x8Bits', Uint16x8FromInt16x8BitsJS,
|
| - 'fromInt8x16Bits', Uint16x8FromInt8x16BitsJS,
|
| - 'fromUint8x16Bits', Uint16x8FromUint8x16BitsJS,
|
| ]);
|
|
|
| utils.InstallFunctions(GlobalBool16x8, DONT_ENUM, [
|
| @@ -775,6 +613,8 @@
|
| 'not', Bool16x8NotJS,
|
| 'anyTrue', Bool16x8AnyTrueJS,
|
| 'allTrue', Bool16x8AllTrueJS,
|
| + 'equal', Bool16x8EqualJS,
|
| + 'notEqual', Bool16x8NotEqualJS,
|
| 'swizzle', Bool16x8SwizzleJS,
|
| 'shuffle', Bool16x8ShuffleJS,
|
| ]);
|
| @@ -783,12 +623,11 @@
|
| 'splat', Int8x16Splat,
|
| 'check', Int8x16CheckJS,
|
| 'extractLane', Int8x16ExtractLaneJS,
|
| + 'unsignedExtractLane', Int8x16UnsignedExtractLaneJS,
|
| 'replaceLane', Int8x16ReplaceLaneJS,
|
| 'neg', Int8x16NegJS,
|
| 'add', Int8x16AddJS,
|
| 'sub', Int8x16SubJS,
|
| - 'addSaturate', Int8x16AddSaturateJS,
|
| - 'subSaturate', Int8x16SubSaturateJS,
|
| 'mul', Int8x16MulJS,
|
| 'min', Int8x16MinJS,
|
| 'max', Int8x16MaxJS,
|
| @@ -797,6 +636,7 @@
|
| 'xor', Int8x16XorJS,
|
| 'not', Int8x16NotJS,
|
| 'shiftLeftByScalar', Int8x16ShiftLeftByScalarJS,
|
| + 'shiftRightLogicalByScalar', Int8x16ShiftRightLogicalByScalarJS,
|
| 'shiftRightArithmeticByScalar', Int8x16ShiftRightArithmeticByScalarJS,
|
| 'lessThan', Int8x16LessThanJS,
|
| 'lessThanOrEqual', Int8x16LessThanOrEqualJS,
|
| @@ -807,52 +647,9 @@
|
| 'select', Int8x16SelectJS,
|
| 'swizzle', Int8x16SwizzleJS,
|
| 'shuffle', Int8x16ShuffleJS,
|
| - 'fromUint8x16', Int8x16FromUint8x16JS,
|
| 'fromFloat32x4Bits', Int8x16FromFloat32x4BitsJS,
|
| 'fromInt32x4Bits', Int8x16FromInt32x4BitsJS,
|
| - 'fromUint32x4Bits', Int8x16FromUint32x4BitsJS,
|
| 'fromInt16x8Bits', Int8x16FromInt16x8BitsJS,
|
| - 'fromUint16x8Bits', Int8x16FromUint16x8BitsJS,
|
| - 'fromUint8x16Bits', Int8x16FromUint8x16BitsJS,
|
| -]);
|
| -
|
| -utils.InstallFunctions(GlobalUint8x16, DONT_ENUM, [
|
| - 'splat', Uint8x16Splat,
|
| - 'check', Uint8x16CheckJS,
|
| - 'extractLane', Uint8x16ExtractLaneJS,
|
| - 'replaceLane', Uint8x16ReplaceLaneJS,
|
| - 'add', Uint8x16AddJS,
|
| - 'sub', Uint8x16SubJS,
|
| - 'addSaturate', Uint8x16AddSaturateJS,
|
| - 'subSaturate', Uint8x16SubSaturateJS,
|
| - 'mul', Uint8x16MulJS,
|
| - 'min', Uint8x16MinJS,
|
| - 'max', Uint8x16MaxJS,
|
| - 'and', Uint8x16AndJS,
|
| - 'or', Uint8x16OrJS,
|
| - 'xor', Uint8x16XorJS,
|
| - 'not', Uint8x16NotJS,
|
| - 'shiftLeftByScalar', Uint8x16ShiftLeftByScalarJS,
|
| - 'shiftRightLogicalByScalar', Uint8x16ShiftRightLogicalByScalarJS,
|
| - 'horizontalSum', Uint8x16HorizontalSumJS,
|
| - 'absoluteDifference', Uint8x16AbsoluteDifferenceJS,
|
| - 'widenedAbsoluteDifference', Uint8x16WidenedAbsoluteDifferenceJS,
|
| - 'lessThan', Uint8x16LessThanJS,
|
| - 'lessThanOrEqual', Uint8x16LessThanOrEqualJS,
|
| - 'greaterThan', Uint8x16GreaterThanJS,
|
| - 'greaterThanOrEqual', Uint8x16GreaterThanOrEqualJS,
|
| - 'equal', Uint8x16EqualJS,
|
| - 'notEqual', Uint8x16NotEqualJS,
|
| - 'select', Uint8x16SelectJS,
|
| - 'swizzle', Uint8x16SwizzleJS,
|
| - 'shuffle', Uint8x16ShuffleJS,
|
| - 'fromInt8x16', Uint8x16FromInt8x16JS,
|
| - 'fromFloat32x4Bits', Uint8x16FromFloat32x4BitsJS,
|
| - 'fromInt32x4Bits', Uint8x16FromInt32x4BitsJS,
|
| - 'fromUint32x4Bits', Uint8x16FromUint32x4BitsJS,
|
| - 'fromInt16x8Bits', Uint8x16FromInt16x8BitsJS,
|
| - 'fromUint16x8Bits', Uint8x16FromUint16x8BitsJS,
|
| - 'fromInt8x16Bits', Uint8x16FromInt8x16BitsJS,
|
| ]);
|
|
|
| utils.InstallFunctions(GlobalBool8x16, DONT_ENUM, [
|
| @@ -866,6 +663,8 @@
|
| 'not', Bool8x16NotJS,
|
| 'anyTrue', Bool8x16AnyTrueJS,
|
| 'allTrue', Bool8x16AllTrueJS,
|
| + 'equal', Bool8x16EqualJS,
|
| + 'notEqual', Bool8x16NotEqualJS,
|
| 'swizzle', Bool8x16SwizzleJS,
|
| 'shuffle', Bool8x16ShuffleJS,
|
| ]);
|
| @@ -873,13 +672,10 @@
|
| utils.Export(function(to) {
|
| to.Float32x4ToString = Float32x4ToString;
|
| to.Int32x4ToString = Int32x4ToString;
|
| - to.Uint32x4ToString = Uint32x4ToString;
|
| to.Bool32x4ToString = Bool32x4ToString;
|
| to.Int16x8ToString = Int16x8ToString;
|
| - to.Uint16x8ToString = Uint16x8ToString;
|
| to.Bool16x8ToString = Bool16x8ToString;
|
| to.Int8x16ToString = Int8x16ToString;
|
| - to.Uint8x16ToString = Uint8x16ToString;
|
| to.Bool8x16ToString = Bool8x16ToString;
|
| });
|
|
|
|
|