Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(778)

Unified Diff: src/messages.js

Issue 1250733005: SIMD.js Add the other SIMD Phase 1 types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Don't run downloaded SIMD value type tests. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/macros.py ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « src/macros.py ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698