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

Unified Diff: src/factory.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/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 01f58544e308c7d22d8e7f37694b1af802ecffcc..5c54c9b5a76dc12120621d83b5e15ca619c854e6 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -797,6 +797,22 @@ Handle<HeapNumber> Factory::NewHeapNumber(double value,
}
+Handle<Float32x4> Factory::NewFloat32x4(float32x4_value_t value,
+ PretenureFlag pretenure) {
+ CALL_HEAP_FUNCTION(
+ isolate(),
+ isolate()->heap()->AllocateFloat32x4(value, pretenure), Float32x4);
+}
+
+
+Handle<Int32x4> Factory::NewInt32x4(int32x4_value_t value,
+ PretenureFlag pretenure) {
+ CALL_HEAP_FUNCTION(
+ isolate(),
+ isolate()->heap()->AllocateInt32x4(value, pretenure), Int32x4);
+}
+
+
Handle<JSObject> Factory::NewNeanderObject() {
CALL_HEAP_FUNCTION(
isolate(),
@@ -1294,6 +1310,12 @@ static JSFunction* GetTypedArrayFun(ExternalArrayType type,
case kExternalFloatArray:
return native_context->float_array_fun();
+ case kExternalFloat32x4Array:
+ return native_context->float32x4_array_fun();
+
+ case kExternalInt32x4Array:
+ return native_context->int32x4_array_fun();
+
case kExternalDoubleArray:
return native_context->double_array_fun();
« 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