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

Unified Diff: src/types.cc

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/types.h ('k') | src/v8globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/types.cc
diff --git a/src/types.cc b/src/types.cc
index 485ba885187364ed2b99098865eec3197b2c47dc..6d7aac732b300b6d1a52f7ef4270ea7969a07340 100644
--- a/src/types.cc
+++ b/src/types.cc
@@ -180,6 +180,10 @@ int Type::LubBitset(i::Map* map) {
return kOddball;
case HEAP_NUMBER_TYPE:
return kDouble;
+ case FLOAT32x4_TYPE:
+ return kFloat32x4;
+ case INT32x4_TYPE:
+ return kInt32x4;
case JS_VALUE_TYPE:
case JS_DATE_TYPE:
case JS_OBJECT_TYPE:
@@ -521,6 +525,8 @@ Representation Representation::FromType(Handle<Type> type) {
if (type->Is(Type::Smi())) return Representation::Smi();
if (type->Is(Type::Signed32())) return Representation::Integer32();
if (type->Is(Type::Number())) return Representation::Double();
+ if (type->Is(Type::Float32x4())) return Representation::Float32x4();
+ if (type->Is(Type::Int32x4())) return Representation::Int32x4();
return Representation::Tagged();
}
« no previous file with comments | « src/types.h ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698