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

Unified Diff: src/objects.cc

Issue 1160443009: Add SIMD.Float32x4 functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile. Created 5 years, 6 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
« src/harmony-simd.js ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 249597bc1ccf0fc30556043634c6ce48927de3c4..ff219fecd85b549e26d675d8c9ae6e12f956a034 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -81,6 +81,8 @@ MaybeHandle<JSReceiver> Object::ToObject(Isolate* isolate,
constructor = handle(native_context->string_function(), isolate);
} else if (object->IsSymbol()) {
constructor = handle(native_context->symbol_function(), isolate);
+ } else if (object->IsFloat32x4()) {
+ constructor = handle(native_context->float32x4_function(), isolate);
} else {
return MaybeHandle<JSReceiver>();
}
@@ -701,6 +703,9 @@ Map* Object::GetRootMap(Isolate* isolate) {
if (heap_object->IsBoolean()) {
return context->boolean_function()->initial_map();
}
+ if (heap_object->IsFloat32x4()) {
+ return context->float32x4_function()->initial_map();
+ }
return isolate->heap()->null_value()->map();
}
« src/harmony-simd.js ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698