| Index: src/harmony-simd.js
|
| diff --git a/src/harmony-simd.js b/src/harmony-simd.js
|
| index a5e3bcde96ceedcfe74eb3e691a57106e7c921ae..07634f824fd5c3faa7a2e3c4e591a3d30ba7e329 100644
|
| --- a/src/harmony-simd.js
|
| +++ b/src/harmony-simd.js
|
| @@ -243,6 +243,10 @@ function NAMEGreaterThanJS(a, b) {
|
| function NAMEGreaterThanOrEqualJS(a, b) {
|
| return %NAMEGreaterThanOrEqual(a, b);
|
| }
|
| +
|
| +function NAMEStoreJS(tarray, index, a) {
|
| + return %NAMEStore(tarray, index, a);
|
| +}
|
| endmacro
|
|
|
| SIMD_NUMERIC_TYPES(DECLARE_NUMERIC_FUNCTIONS)
|
| @@ -420,6 +424,26 @@ endmacro
|
|
|
| SIMD_X16_TYPES(DECLARE_X16_FUNCTIONS)
|
|
|
| +macro SIMD_LOADN_STOREN_TYPES(FUNCTION)
|
| +FUNCTION(Float32x4, 1)
|
| +FUNCTION(Float32x4, 2)
|
| +FUNCTION(Float32x4, 3)
|
| +FUNCTION(Int32x4, 1)
|
| +FUNCTION(Int32x4, 2)
|
| +FUNCTION(Int32x4, 3)
|
| +FUNCTION(Uint32x4, 1)
|
| +FUNCTION(Uint32x4, 2)
|
| +FUNCTION(Uint32x4, 3)
|
| +endmacro
|
| +
|
| +macro DECLARE_LOADN_STOREN_FUNCTIONS(NAME, COUNT)
|
| +function NAMEStoreCOUNTJS(tarray, index, a) {
|
| + return %NAMEStoreCOUNT(tarray, index, a);
|
| +}
|
| +endmacro
|
| +
|
| +SIMD_LOADN_STOREN_TYPES(DECLARE_LOADN_STOREN_FUNCTIONS)
|
| +
|
| //-------------------------------------------------------------------
|
|
|
| function Float32x4Constructor(c0, c1, c2, c3) {
|
| @@ -599,6 +623,10 @@ utils.InstallFunctions(GlobalFloat32x4, DONT_ENUM, [
|
| 'fromUint16x8Bits', Float32x4FromUint16x8BitsJS,
|
| 'fromInt8x16Bits', Float32x4FromInt8x16BitsJS,
|
| 'fromUint8x16Bits', Float32x4FromUint8x16BitsJS,
|
| + 'store', Float32x4StoreJS,
|
| + 'store1', Float32x4Store1JS,
|
| + 'store2', Float32x4Store2JS,
|
| + 'store3', Float32x4Store3JS,
|
| ]);
|
|
|
| utils.InstallFunctions(GlobalInt32x4, DONT_ENUM, [
|
| @@ -635,6 +663,10 @@ utils.InstallFunctions(GlobalInt32x4, DONT_ENUM, [
|
| 'fromUint16x8Bits', Int32x4FromUint16x8BitsJS,
|
| 'fromInt8x16Bits', Int32x4FromInt8x16BitsJS,
|
| 'fromUint8x16Bits', Int32x4FromUint8x16BitsJS,
|
| + 'store', Int32x4StoreJS,
|
| + 'store1', Int32x4Store1JS,
|
| + 'store2', Int32x4Store2JS,
|
| + 'store3', Int32x4Store3JS,
|
| ]);
|
|
|
| utils.InstallFunctions(GlobalUint32x4, DONT_ENUM, [
|
| @@ -671,6 +703,10 @@ utils.InstallFunctions(GlobalUint32x4, DONT_ENUM, [
|
| 'fromUint16x8Bits', Uint32x4FromUint16x8BitsJS,
|
| 'fromInt8x16Bits', Uint32x4FromInt8x16BitsJS,
|
| 'fromUint8x16Bits', Uint32x4FromUint8x16BitsJS,
|
| + 'store', Uint32x4StoreJS,
|
| + 'store1', Uint32x4Store1JS,
|
| + 'store2', Uint32x4Store2JS,
|
| + 'store3', Uint32x4Store3JS,
|
| ]);
|
|
|
| utils.InstallFunctions(GlobalBool32x4, DONT_ENUM, [
|
| @@ -723,6 +759,7 @@ utils.InstallFunctions(GlobalInt16x8, DONT_ENUM, [
|
| 'fromUint16x8Bits', Int16x8FromUint16x8BitsJS,
|
| 'fromInt8x16Bits', Int16x8FromInt8x16BitsJS,
|
| 'fromUint8x16Bits', Int16x8FromUint8x16BitsJS,
|
| + 'store', Int16x8StoreJS,
|
| ]);
|
|
|
| utils.InstallFunctions(GlobalUint16x8, DONT_ENUM, [
|
| @@ -762,6 +799,7 @@ utils.InstallFunctions(GlobalUint16x8, DONT_ENUM, [
|
| 'fromInt16x8Bits', Uint16x8FromInt16x8BitsJS,
|
| 'fromInt8x16Bits', Uint16x8FromInt8x16BitsJS,
|
| 'fromUint8x16Bits', Uint16x8FromUint8x16BitsJS,
|
| + 'store', Uint16x8StoreJS,
|
| ]);
|
|
|
| utils.InstallFunctions(GlobalBool16x8, DONT_ENUM, [
|
| @@ -814,6 +852,7 @@ utils.InstallFunctions(GlobalInt8x16, DONT_ENUM, [
|
| 'fromInt16x8Bits', Int8x16FromInt16x8BitsJS,
|
| 'fromUint16x8Bits', Int8x16FromUint16x8BitsJS,
|
| 'fromUint8x16Bits', Int8x16FromUint8x16BitsJS,
|
| + 'store', Int8x16StoreJS,
|
| ]);
|
|
|
| utils.InstallFunctions(GlobalUint8x16, DONT_ENUM, [
|
| @@ -853,6 +892,7 @@ utils.InstallFunctions(GlobalUint8x16, DONT_ENUM, [
|
| 'fromInt16x8Bits', Uint8x16FromInt16x8BitsJS,
|
| 'fromUint16x8Bits', Uint8x16FromUint16x8BitsJS,
|
| 'fromInt8x16Bits', Uint8x16FromInt8x16BitsJS,
|
| + 'store', Uint8x16StoreJS,
|
| ]);
|
|
|
| utils.InstallFunctions(GlobalBool8x16, DONT_ENUM, [
|
|
|