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

Unified Diff: src/runtime.js

Issue 90643003: Experimental implementation: Exposing SIMD instructions into JavaScript Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/runtime.cc ('k') | src/simd128.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.js
diff --git a/src/runtime.js b/src/runtime.js
index 35bc07a10e8c26f37ccb96dc5ce5dc2d6cbac625..52375301b01ce72da08f328187190b04454ec20f 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -539,6 +539,8 @@ function NonNumberToNumber(x) {
if (IS_BOOLEAN(x)) return x ? 1 : 0;
if (IS_UNDEFINED(x)) return NAN;
if (IS_SYMBOL(x)) return NAN;
+ if (IS_FLOAT32x4(x)) return NaN;
+ if (IS_INT32x4(x)) return NaN;
return (IS_NULL(x)) ? 0 : ToNumber(%DefaultNumber(x));
}
« no previous file with comments | « src/runtime.cc ('k') | src/simd128.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698