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

Unified Diff: src/messages.js

Issue 1230343003: V8: Add SIMD functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove name table size hack. 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/harmony-simd.js ('k') | src/objects.h » ('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 29fa97873c929d1ff14a80130ffbeef814377b9c..ad1f4c227aeb233b193b89d67e4330a0f0511726 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -45,12 +45,28 @@ var StringCharAt;
var StringIndexOf;
var StringSubstring;
+var Float32x4ToString;
+var Int32x4ToString;
+var Bool32x4ToString;
+var Int16x8ToString;
+var Bool16x8ToString;
+var Int8x16ToString;
+var Bool8x16ToString;
+
+
utils.Import(function(from) {
ArrayJoin = from.ArrayJoin;
ObjectToString = from.ObjectToString;
StringCharAt = from.StringCharAt;
StringIndexOf = from.StringIndexOf;
StringSubstring = from.StringSubstring;
+ Float32x4ToString = from.Float32x4ToString;
+ Int32x4ToString = from.Int32x4ToString;
+ Bool32x4ToString = from.Bool32x4ToString;
+ Int16x8ToString = from.Int16x8ToString;
+ Bool16x8ToString = from.Bool16x8ToString;
+ Int8x16ToString = from.Int8x16ToString;
+ Bool8x16ToString = from.Bool8x16ToString;
});
// -------------------------------------------------------------------
@@ -88,13 +104,13 @@ function NoSideEffectToString(obj) {
if (IS_SYMBOL(obj)) return %_CallFunction(obj, $symbolToString);
if (IS_SIMD_VALUE(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);
+ 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)
« no previous file with comments | « src/harmony-simd.js ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698