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

Unified Diff: src/factory.cc

Issue 2692933002: 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/factory.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 20bc5ac3ef311088cd12a0e834a9c81cf0d92af1..1c38193a5634f7fcbb3af1b405540b87649d5d66 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1340,6 +1340,16 @@
HeapNumber);
}
+#define SIMD128_NEW_DEF(TYPE, Type, type, lane_count, lane_type) \
+ Handle<Type> Factory::New##Type(lane_type lanes[lane_count], \
+ PretenureFlag pretenure) { \
+ CALL_HEAP_FUNCTION( \
+ isolate(), isolate()->heap()->Allocate##Type(lanes, pretenure), Type); \
+ }
+SIMD128_TYPES(SIMD128_NEW_DEF)
+#undef SIMD128_NEW_DEF
+
+
Handle<Object> Factory::NewError(Handle<JSFunction> constructor,
MessageTemplate::Template template_index,
Handle<Object> arg0, Handle<Object> arg1,
« no previous file with comments | « src/factory.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698