| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index c50eda3433f3d9e33ae8670929681b852d3d1878..5684c2569ede43e7a108dc4bb17ddf50a5ea3a9e 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>();
|
| }
|
| @@ -608,7 +610,7 @@ Map* Object::GetRootMap(Isolate* isolate) {
|
|
|
| HeapObject* heap_object = HeapObject::cast(this);
|
|
|
| - // The object is either a number, a string, a boolean,
|
| + // The object is either a number, a string, a symbol, a boolean, a SIMD value,
|
| // a real JS object, or a Harmony proxy.
|
| if (heap_object->IsJSReceiver()) {
|
| return heap_object->map();
|
| @@ -627,6 +629,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();
|
| }
|
|
|
|
|