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

Unified Diff: src/factory.cc

Issue 1153373003: Add new Float32x4 type for SIMD.js. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: A few more tests. Created 5 years, 7 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
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index d0e0b83f5605f0f00ff8964263768a3b5cac2b72..4755665a888e910475f1bb9e19a1d92399439143 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1051,6 +1051,14 @@ Handle<HeapNumber> Factory::NewHeapNumber(double value,
}
+Handle<Float32x4> Factory::NewFloat32x4(double w, double x, double y, double z,
+ PretenureFlag pretenure) {
+ CALL_HEAP_FUNCTION(
+ isolate(), isolate()->heap()->AllocateFloat32x4(w, x, y, z, pretenure),
+ Float32x4);
+}
+
+
Handle<Object> Factory::NewError(const char* maker,
MessageTemplate::Template template_index,
Handle<Object> arg0, Handle<Object> arg1,

Powered by Google App Engine
This is Rietveld 408576698