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

Unified Diff: src/ast/ast-types.cc

Issue 2695653005: Revert of Remove SIMD.js from V8. (Closed)
Patch Set: Created 3 years, 10 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/ast/ast-types.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast-types.cc
diff --git a/src/ast/ast-types.cc b/src/ast/ast-types.cc
index c5cdc8701fce5fc39b90155f18263153a625c7d9..c50ae272916d70ea386fc9e37ccd23e0fd41d029 100644
--- a/src/ast/ast-types.cc
+++ b/src/ast/ast-types.cc
@@ -195,6 +195,8 @@
}
case HEAP_NUMBER_TYPE:
return kNumber & kTaggedPointer;
+ case SIMD128_VALUE_TYPE:
+ return kSimd;
case JS_OBJECT_TYPE:
case JS_ARGUMENTS_TYPE:
case JS_ERROR_TYPE:
@@ -1296,6 +1298,13 @@
return i::SmiValuesAre31Bits() ? kUnsigned30 : kUnsigned31;
}
+#define CONSTRUCT_SIMD_TYPE(NAME, Name, name, lane_count, lane_type) \
+ AstType* AstType::Name(Isolate* isolate, Zone* zone) { \
+ return Class(i::handle(isolate->heap()->name##_map()), zone); \
+ }
+SIMD128_TYPES(CONSTRUCT_SIMD_TYPE)
+#undef CONSTRUCT_SIMD_TYPE
+
// -----------------------------------------------------------------------------
// Instantiations.
« no previous file with comments | « src/ast/ast-types.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698