Index: src/harmony-simd.js |
diff --git a/src/harmony-simd.js b/src/harmony-simd.js |
index 5119adc9296fc51f452d168f5d79133f4cd6ab74..3cc18c2e908d8301717128caa1698a89e6683edd 100644 |
--- a/src/harmony-simd.js |
+++ b/src/harmony-simd.js |
@@ -13,21 +13,33 @@ |
var GlobalSIMD = global.SIMD; |
-macro SIMD_TYPES(FUNCTION) |
+macro SIMD_FLOAT_TYPES(FUNCTION) |
FUNCTION(Float32x4, float32x4, 4) |
+endmacro |
+ |
+macro SIMD_INT_TYPES(FUNCTION) |
FUNCTION(Int32x4, int32x4, 4) |
-FUNCTION(Bool32x4, bool32x4, 4) |
FUNCTION(Int16x8, int16x8, 8) |
-FUNCTION(Bool16x8, bool16x8, 8) |
FUNCTION(Int8x16, int8x16, 16) |
+endmacro |
+ |
+macro SIMD_BOOL_TYPES(FUNCTION) |
+FUNCTION(Bool32x4, bool32x4, 4) |
+FUNCTION(Bool16x8, bool16x8, 8) |
FUNCTION(Bool8x16, bool8x16, 16) |
endmacro |
+macro SIMD_ALL_TYPES(FUNCTION) |
+SIMD_FLOAT_TYPES(FUNCTION) |
+SIMD_INT_TYPES(FUNCTION) |
+SIMD_BOOL_TYPES(FUNCTION) |
+endmacro |
+ |
macro DECLARE_GLOBALS(NAME, TYPE, LANES) |
var GlobalNAME = GlobalSIMD.NAME; |
endmacro |
-SIMD_TYPES(DECLARE_GLOBALS) |
+SIMD_ALL_TYPES(DECLARE_GLOBALS) |
macro DECLARE_COMMON_FUNCTIONS(NAME, TYPE, LANES) |
function NAMECheckJS(a) { |
@@ -73,35 +85,46 @@ function NAMEValueOf() { |
function NAMEExtractLaneJS(instance, lane) { |
return %NAMEExtractLane(instance, lane); |
} |
-endmacro |
-SIMD_TYPES(DECLARE_COMMON_FUNCTIONS) |
+function NAMEEqualJS(a, b) { |
+ return %NAMEEqual(a, b); |
+} |
-macro SIMD_NUMERIC_TYPES(FUNCTION) |
-FUNCTION(Float32x4) |
-FUNCTION(Int32x4) |
-FUNCTION(Int16x8) |
-FUNCTION(Int8x16) |
+function NAMENotEqualJS(a, b) { |
+ return %NAMENotEqual(a, b); |
+} |
endmacro |
-macro DECLARE_NUMERIC_FUNCTIONS(NAME) |
-function NAMEReplaceLaneJS(instance, lane, value) { |
- return %NAMEReplaceLane(instance, lane, TO_NUMBER_INLINE(value)); |
+SIMD_ALL_TYPES(DECLARE_COMMON_FUNCTIONS) |
+ |
+macro DECLARE_INT_FUNCTIONS(NAME, TYPE, LANES) |
+function NAMEShiftLeftByScalarJS(instance, shift) { |
+ return %NAMEShiftLeftByScalar(instance, shift); |
} |
-endmacro |
-SIMD_NUMERIC_TYPES(DECLARE_NUMERIC_FUNCTIONS) |
+function NAMEShiftRightLogicalByScalarJS(instance, shift) { |
+ return %NAMEShiftRightLogicalByScalar(instance, shift); |
+} |
-macro SIMD_BOOL_TYPES(FUNCTION) |
-FUNCTION(Bool32x4) |
-FUNCTION(Bool16x8) |
-FUNCTION(Bool8x16) |
+function NAMEShiftRightArithmeticByScalarJS(instance, shift) { |
+ return %NAMEShiftRightArithmeticByScalar(instance, shift); |
+} |
endmacro |
-macro DECLARE_BOOL_FUNCTIONS(NAME) |
+SIMD_INT_TYPES(DECLARE_INT_FUNCTIONS) |
+ |
+macro DECLARE_BOOL_FUNCTIONS(NAME, TYPE, LANES) |
function NAMEReplaceLaneJS(instance, lane, value) { |
return %NAMEReplaceLane(instance, lane, value); |
} |
+ |
+function NAMEAnyTrueJS(s) { |
+ return %NAMEAnyTrue(s); |
+} |
+ |
+function NAMEAllTrueJS(s) { |
+ return %NAMEAllTrue(s); |
+} |
endmacro |
SIMD_BOOL_TYPES(DECLARE_BOOL_FUNCTIONS) |
@@ -119,6 +142,124 @@ endmacro |
SIMD_UNSIGNED_INT_TYPES(DECLARE_UNSIGNED_INT_FUNCTIONS) |
+macro SIMD_NUMERIC_TYPES(FUNCTION) |
+SIMD_FLOAT_TYPES(FUNCTION) |
+SIMD_INT_TYPES(FUNCTION) |
+endmacro |
+ |
+macro DECLARE_NUMERIC_FUNCTIONS(NAME, TYPE, LANES) |
+function NAMEReplaceLaneJS(instance, lane, value) { |
+ return %NAMEReplaceLane(instance, lane, TO_NUMBER_INLINE(value)); |
+} |
+ |
+function NAMESelectJS(selector, a, b) { |
+ return %NAMESelect(selector, a, b); |
+} |
+ |
+function NAMENegJS(a) { |
+ return %NAMENeg(a); |
+} |
+ |
+function NAMEAddJS(a, b) { |
+ return %NAMEAdd(a, b); |
+} |
+ |
+function NAMESubJS(a, b) { |
+ return %NAMESub(a, b); |
+} |
+ |
+function NAMEMulJS(a, b) { |
+ return %NAMEMul(a, b); |
+} |
+ |
+function NAMEMinJS(a, b) { |
+ return %NAMEMin(a, b); |
+} |
+ |
+function NAMEMaxJS(a, b) { |
+ return %NAMEMax(a, b); |
+} |
+ |
+function NAMELessThanJS(a, b) { |
+ return %NAMELessThan(a, b); |
+} |
+ |
+function NAMELessThanOrEqualJS(a, b) { |
+ return %NAMELessThanOrEqual(a, b); |
+} |
+ |
+function NAMEGreaterThanJS(a, b) { |
+ return %NAMEGreaterThan(a, b); |
+} |
+ |
+function NAMEGreaterThanOrEqualJS(a, b) { |
+ return %NAMEGreaterThanOrEqual(a, b); |
+} |
+endmacro |
+ |
+SIMD_NUMERIC_TYPES(DECLARE_NUMERIC_FUNCTIONS) |
+ |
+macro SIMD_LOGICAL_TYPES(FUNCTION) |
+SIMD_INT_TYPES(FUNCTION) |
+SIMD_BOOL_TYPES(FUNCTION) |
+endmacro |
+ |
+macro DECLARE_LOGICAL_FUNCTIONS(NAME, TYPE, LANES) |
+function NAMEAndJS(a, b) { |
+ return %NAMEAnd(a, b); |
+} |
+ |
+function NAMEOrJS(a, b) { |
+ return %NAMEOr(a, b); |
+} |
+ |
+function NAMEXorJS(a, b) { |
+ return %NAMEXor(a, b); |
+} |
+ |
+function NAMENotJS(a) { |
+ return %NAMENot(a); |
+} |
+endmacro |
+ |
+SIMD_LOGICAL_TYPES(DECLARE_LOGICAL_FUNCTIONS) |
+ |
+macro SIMD_FROM_TYPES(FUNCTION) |
+FUNCTION(Float32x4, Int32x4) |
+FUNCTION(Int32x4, Float32x4) |
+endmacro |
+ |
+macro DECLARE_FROM_FUNCTIONS(TO, FROM) |
+function TOFromFROMJS(a) { |
+ return %TOFromFROM(a); |
+} |
+endmacro |
+ |
+SIMD_FROM_TYPES(DECLARE_FROM_FUNCTIONS) |
+ |
+macro SIMD_FROM_BITS_TYPES(FUNCTION) |
+FUNCTION(Float32x4, Int32x4) |
+FUNCTION(Float32x4, Int16x8) |
+FUNCTION(Float32x4, Int8x16) |
+FUNCTION(Int32x4, Float32x4) |
+FUNCTION(Int32x4, Int16x8) |
+FUNCTION(Int32x4, Int8x16) |
+FUNCTION(Int16x8, Float32x4) |
+FUNCTION(Int16x8, Int32x4) |
+FUNCTION(Int16x8, Int8x16) |
+FUNCTION(Int8x16, Float32x4) |
+FUNCTION(Int8x16, Int32x4) |
+FUNCTION(Int8x16, Int16x8) |
+endmacro |
+ |
+macro DECLARE_FROM_BITS_FUNCTIONS(TO, FROM) |
+function TOFromFROMBitsJS(a) { |
+ return %TOFromFROMBits(a); |
+} |
+endmacro |
+ |
+SIMD_FROM_BITS_TYPES(DECLARE_FROM_BITS_FUNCTIONS) |
+ |
//------------------------------------------------------------------- |
function Float32x4Constructor(c0, c1, c2, c3) { |
@@ -133,6 +274,51 @@ function Float32x4Splat(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), |
@@ -145,6 +331,16 @@ function Int32x4Splat(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); |
@@ -155,6 +351,15 @@ 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); |
+} |
+ |
function Int16x8Constructor(c0, c1, c2, c3, c4, c5, c6, c7) { |
if (%_IsConstructCall()) throw MakeTypeError(kNotConstructor, "Int16x8"); |
@@ -170,6 +375,16 @@ function Int16x8Splat(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); |
@@ -181,6 +396,16 @@ function Bool16x8Splat(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); |
+} |
+ |
+ |
function Int8x16Constructor(c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, |
c12, c13, c14, c15) { |
if (%_IsConstructCall()) throw MakeTypeError(kNotConstructor, "Int8x16"); |
@@ -200,6 +425,20 @@ function Int8x16Splat(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); |
+} |
+ |
+ |
function Bool8x16Constructor(c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, |
c12, c13, c14, c15) { |
if (%_IsConstructCall()) throw MakeTypeError(kNotConstructor, "Bool8x16"); |
@@ -213,6 +452,20 @@ function Bool8x16Splat(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); |
+} |
+ |
+ |
%AddNamedProperty(GlobalSIMD, symbolToStringTag, 'SIMD', READ_ONLY | DONT_ENUM); |
macro SETUP_SIMD_TYPE(NAME, TYPE, LANES) |
@@ -229,7 +482,7 @@ utils.InstallFunctions(GlobalNAME.prototype, DONT_ENUM, [ |
]); |
endmacro |
-SIMD_TYPES(SETUP_SIMD_TYPE) |
+SIMD_ALL_TYPES(SETUP_SIMD_TYPE) |
//------------------------------------------------------------------- |
@@ -238,6 +491,32 @@ utils.InstallFunctions(GlobalFloat32x4, DONT_ENUM, [ |
'check', Float32x4CheckJS, |
'extractLane', Float32x4ExtractLaneJS, |
'replaceLane', Float32x4ReplaceLaneJS, |
+ 'neg', Float32x4NegJS, |
+ 'abs', Float32x4AbsJS, |
+ 'sqrt', Float32x4SqrtJS, |
+ 'reciprocalApproximation', Float32x4RecipApproxJS, |
+ 'reciprocalSqrtApproximation', Float32x4RecipSqrtApproxJS, |
+ 'add', Float32x4AddJS, |
+ 'sub', Float32x4SubJS, |
+ 'mul', Float32x4MulJS, |
+ 'div', Float32x4DivJS, |
+ 'min', Float32x4MinJS, |
+ 'max', Float32x4MaxJS, |
+ 'minNum', Float32x4MinNumJS, |
+ 'maxNum', Float32x4MaxNumJS, |
+ 'lessThan', Float32x4LessThanJS, |
+ 'lessThanOrEqual', Float32x4LessThanOrEqualJS, |
+ 'greaterThan', Float32x4GreaterThanJS, |
+ 'greaterThanOrEqual', Float32x4GreaterThanOrEqualJS, |
+ 'equal', Float32x4EqualJS, |
+ 'notEqual', Float32x4NotEqualJS, |
+ 'select', Float32x4SelectJS, |
+ 'swizzle', Float32x4SwizzleJS, |
+ 'shuffle', Float32x4ShuffleJS, |
+ 'fromInt32x4', Float32x4FromInt32x4JS, |
+ 'fromInt32x4Bits', Float32x4FromInt32x4BitsJS, |
+ 'fromInt16x8Bits', Float32x4FromInt16x8BitsJS, |
+ 'fromInt8x16Bits', Float32x4FromInt8x16BitsJS, |
]); |
utils.InstallFunctions(GlobalInt32x4, DONT_ENUM, [ |
@@ -245,6 +524,32 @@ utils.InstallFunctions(GlobalInt32x4, DONT_ENUM, [ |
'check', Int32x4CheckJS, |
'extractLane', Int32x4ExtractLaneJS, |
'replaceLane', Int32x4ReplaceLaneJS, |
+ 'neg', Int32x4NegJS, |
+ 'add', Int32x4AddJS, |
+ 'sub', Int32x4SubJS, |
+ 'mul', Int32x4MulJS, |
+ 'min', Int32x4MinJS, |
+ 'max', Int32x4MaxJS, |
+ 'and', Int32x4AndJS, |
+ 'or', Int32x4OrJS, |
+ 'xor', Int32x4XorJS, |
+ 'not', Int32x4NotJS, |
+ 'shiftLeftByScalar', Int32x4ShiftLeftByScalarJS, |
+ 'shiftRightLogicalByScalar', Int32x4ShiftRightLogicalByScalarJS, |
+ 'shiftRightArithmeticByScalar', Int32x4ShiftRightArithmeticByScalarJS, |
+ 'lessThan', Int32x4LessThanJS, |
+ 'lessThanOrEqual', Int32x4LessThanOrEqualJS, |
+ 'greaterThan', Int32x4GreaterThanJS, |
+ 'greaterThanOrEqual', Int32x4GreaterThanOrEqualJS, |
+ 'equal', Int32x4EqualJS, |
+ 'notEqual', Int32x4NotEqualJS, |
+ 'select', Int32x4SelectJS, |
+ 'swizzle', Int32x4SwizzleJS, |
+ 'shuffle', Int32x4ShuffleJS, |
+ 'fromFloat32x4', Int32x4FromFloat32x4JS, |
+ 'fromFloat32x4Bits', Int32x4FromFloat32x4BitsJS, |
+ 'fromInt16x8Bits', Int32x4FromInt16x8BitsJS, |
+ 'fromInt8x16Bits', Int32x4FromInt8x16BitsJS, |
]); |
utils.InstallFunctions(GlobalBool32x4, DONT_ENUM, [ |
@@ -252,6 +557,16 @@ utils.InstallFunctions(GlobalBool32x4, DONT_ENUM, [ |
'check', Bool32x4CheckJS, |
'extractLane', Bool32x4ExtractLaneJS, |
'replaceLane', Bool32x4ReplaceLaneJS, |
+ 'and', Bool32x4AndJS, |
+ 'or', Bool32x4OrJS, |
+ 'xor', Bool32x4XorJS, |
+ 'not', Bool32x4NotJS, |
+ 'anyTrue', Bool32x4AnyTrueJS, |
+ 'allTrue', Bool32x4AllTrueJS, |
+ 'equal', Bool32x4EqualJS, |
+ 'notEqual', Bool32x4NotEqualJS, |
+ 'swizzle', Bool32x4SwizzleJS, |
+ 'shuffle', Bool32x4ShuffleJS, |
]); |
utils.InstallFunctions(GlobalInt16x8, DONT_ENUM, [ |
@@ -260,6 +575,31 @@ utils.InstallFunctions(GlobalInt16x8, DONT_ENUM, [ |
'extractLane', Int16x8ExtractLaneJS, |
'unsignedExtractLane', Int16x8UnsignedExtractLaneJS, |
'replaceLane', Int16x8ReplaceLaneJS, |
+ 'neg', Int16x8NegJS, |
+ 'add', Int16x8AddJS, |
+ 'sub', Int16x8SubJS, |
+ 'mul', Int16x8MulJS, |
+ 'min', Int16x8MinJS, |
+ 'max', Int16x8MaxJS, |
+ 'and', Int16x8AndJS, |
+ 'or', Int16x8OrJS, |
+ 'xor', Int16x8XorJS, |
+ 'not', Int16x8NotJS, |
+ 'shiftLeftByScalar', Int16x8ShiftLeftByScalarJS, |
+ 'shiftRightLogicalByScalar', Int16x8ShiftRightLogicalByScalarJS, |
+ 'shiftRightArithmeticByScalar', Int16x8ShiftRightArithmeticByScalarJS, |
+ 'lessThan', Int16x8LessThanJS, |
+ 'lessThanOrEqual', Int16x8LessThanOrEqualJS, |
+ 'greaterThan', Int16x8GreaterThanJS, |
+ 'greaterThanOrEqual', Int16x8GreaterThanOrEqualJS, |
+ 'equal', Int16x8EqualJS, |
+ 'notEqual', Int16x8NotEqualJS, |
+ 'select', Int16x8SelectJS, |
+ 'swizzle', Int16x8SwizzleJS, |
+ 'shuffle', Int16x8ShuffleJS, |
+ 'fromFloat32x4Bits', Int16x8FromFloat32x4BitsJS, |
+ 'fromInt32x4Bits', Int16x8FromInt32x4BitsJS, |
+ 'fromInt8x16Bits', Int16x8FromInt8x16BitsJS, |
]); |
utils.InstallFunctions(GlobalBool16x8, DONT_ENUM, [ |
@@ -267,6 +607,16 @@ utils.InstallFunctions(GlobalBool16x8, DONT_ENUM, [ |
'check', Bool16x8CheckJS, |
'extractLane', Bool16x8ExtractLaneJS, |
'replaceLane', Bool16x8ReplaceLaneJS, |
+ 'and', Bool16x8AndJS, |
+ 'or', Bool16x8OrJS, |
+ 'xor', Bool16x8XorJS, |
+ 'not', Bool16x8NotJS, |
+ 'anyTrue', Bool16x8AnyTrueJS, |
+ 'allTrue', Bool16x8AllTrueJS, |
+ 'equal', Bool16x8EqualJS, |
+ 'notEqual', Bool16x8NotEqualJS, |
+ 'swizzle', Bool16x8SwizzleJS, |
+ 'shuffle', Bool16x8ShuffleJS, |
]); |
utils.InstallFunctions(GlobalInt8x16, DONT_ENUM, [ |
@@ -275,6 +625,31 @@ utils.InstallFunctions(GlobalInt8x16, DONT_ENUM, [ |
'extractLane', Int8x16ExtractLaneJS, |
'unsignedExtractLane', Int8x16UnsignedExtractLaneJS, |
'replaceLane', Int8x16ReplaceLaneJS, |
+ 'neg', Int8x16NegJS, |
+ 'add', Int8x16AddJS, |
+ 'sub', Int8x16SubJS, |
+ 'mul', Int8x16MulJS, |
+ 'min', Int8x16MinJS, |
+ 'max', Int8x16MaxJS, |
+ 'and', Int8x16AndJS, |
+ 'or', Int8x16OrJS, |
+ 'xor', Int8x16XorJS, |
+ 'not', Int8x16NotJS, |
+ 'shiftLeftByScalar', Int8x16ShiftLeftByScalarJS, |
+ 'shiftRightLogicalByScalar', Int8x16ShiftRightLogicalByScalarJS, |
+ 'shiftRightArithmeticByScalar', Int8x16ShiftRightArithmeticByScalarJS, |
+ 'lessThan', Int8x16LessThanJS, |
+ 'lessThanOrEqual', Int8x16LessThanOrEqualJS, |
+ 'greaterThan', Int8x16GreaterThanJS, |
+ 'greaterThanOrEqual', Int8x16GreaterThanOrEqualJS, |
+ 'equal', Int8x16EqualJS, |
+ 'notEqual', Int8x16NotEqualJS, |
+ 'select', Int8x16SelectJS, |
+ 'swizzle', Int8x16SwizzleJS, |
+ 'shuffle', Int8x16ShuffleJS, |
+ 'fromFloat32x4Bits', Int8x16FromFloat32x4BitsJS, |
+ 'fromInt32x4Bits', Int8x16FromInt32x4BitsJS, |
+ 'fromInt16x8Bits', Int8x16FromInt16x8BitsJS, |
]); |
utils.InstallFunctions(GlobalBool8x16, DONT_ENUM, [ |
@@ -282,6 +657,26 @@ utils.InstallFunctions(GlobalBool8x16, DONT_ENUM, [ |
'check', Bool8x16CheckJS, |
'extractLane', Bool8x16ExtractLaneJS, |
'replaceLane', Bool8x16ReplaceLaneJS, |
+ 'and', Bool8x16AndJS, |
+ 'or', Bool8x16OrJS, |
+ 'xor', Bool8x16XorJS, |
+ 'not', Bool8x16NotJS, |
+ 'anyTrue', Bool8x16AnyTrueJS, |
+ 'allTrue', Bool8x16AllTrueJS, |
+ 'equal', Bool8x16EqualJS, |
+ 'notEqual', Bool8x16NotEqualJS, |
+ 'swizzle', Bool8x16SwizzleJS, |
+ 'shuffle', Bool8x16ShuffleJS, |
]); |
+utils.Export(function(to) { |
+ to.Float32x4ToString = Float32x4ToString; |
+ to.Int32x4ToString = Int32x4ToString; |
+ to.Bool32x4ToString = Bool32x4ToString; |
+ to.Int16x8ToString = Int16x8ToString; |
+ to.Bool16x8ToString = Bool16x8ToString; |
+ to.Int8x16ToString = Int8x16ToString; |
+ to.Bool8x16ToString = Bool8x16ToString; |
+}); |
+ |
}) |