Index: src/macros.py |
diff --git a/src/macros.py b/src/macros.py |
index 91b4132563911144361c1e9b41e995601113bdf3..ff787820ebb37ca1dba9d13c8160a71bd8b32474 100644 |
--- a/src/macros.py |
+++ b/src/macros.py |
@@ -90,7 +90,6 @@ macro IS_NULL(arg) = (arg === null); |
macro IS_NULL_OR_UNDEFINED(arg) = (arg == null); |
macro IS_UNDEFINED(arg) = (arg === (void 0)); |
macro IS_NUMBER(arg) = (typeof(arg) === 'number'); |
-macro IS_FLOAT32X4(arg) = (typeof(arg) === 'float32x4'); |
macro IS_STRING(arg) = (typeof(arg) === 'string'); |
macro IS_BOOLEAN(arg) = (typeof(arg) === 'boolean'); |
macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol'); |
@@ -99,12 +98,12 @@ macro IS_ARRAY(arg) = (%_IsArray(arg)); |
macro IS_DATE(arg) = (%_IsDate(arg)); |
macro IS_FUNCTION(arg) = (%_IsFunction(arg)); |
macro IS_REGEXP(arg) = (%_IsRegExp(arg)); |
+macro IS_SIMD_VALUE(arg) = (%_IsSimdValue(arg)); |
rossberg
2015/07/30 15:12:24
I'm surprised this actually works! See above, you
adamk
2015/07/30 15:34:58
Drive-by explanation of why this works: since a re
bbudge
2015/07/30 23:27:01
Added the intrinsic, at least for fullcodegen. I t
|
macro IS_SET(arg) = (%_ClassOf(arg) === 'Set'); |
macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map'); |
macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap'); |
macro IS_WEAKSET(arg) = (%_ClassOf(arg) === 'WeakSet'); |
macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number'); |
-macro IS_FLOAT32X4_WRAPPER(arg) = (%_ClassOf(arg) === 'Float32x4'); |
macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String'); |
macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol'); |
macro IS_BOOLEAN_WRAPPER(arg) = (%_ClassOf(arg) === 'Boolean'); |