Index: src/messages.js |
diff --git a/src/messages.js b/src/messages.js |
index 3829eda26ceff462e5ceecc307c6c2cbf9edd281..2101f79b990dbad7e1c6e47472e8571537b77a85 100644 |
--- a/src/messages.js |
+++ b/src/messages.js |
@@ -86,7 +86,17 @@ function NoSideEffectToString(obj) { |
return str; |
} |
if (IS_SYMBOL(obj)) return %_CallFunction(obj, $symbolToString); |
- if (IS_FLOAT32X4(obj)) return %_CallFunction(obj, $float32x4ToString); |
+ if (IS_SIMD_OBJECT(obj)) { |
+ switch (typeof(obj)) { |
+ case 'float32x4': return %_CallFunction(obj, $float32x4ToString); |
+ case 'int32x4': return %_CallFunction(obj, $int32x4ToString); |
+ case 'bool32x4': return %_CallFunction(obj, $bool32x4ToString); |
+ case 'int16x8': return %_CallFunction(obj, $int16x8ToString); |
+ case 'bool16x8': return %_CallFunction(obj, $bool16x8ToString); |
+ case 'int16x8': return %_CallFunction(obj, $int16x8ToString); |
+ case 'bool16x8': return %_CallFunction(obj, $bool16x8ToString); |
+ } |
+ } |
if (IS_OBJECT(obj) |
&& %GetDataProperty(obj, "toString") === ObjectToString) { |
var constructor = %GetDataProperty(obj, "constructor"); |