Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 5f2f9d3cd58010d086804aabb2b20921fe0a3231..99be07f75d2d4c7f73d7996b5db26e149b60343c 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1995,10 +1995,47 @@ void Genesis::InitializeGlobal_harmony_simd() { |
Handle<JSFunction> float32x4_function = |
InstallFunction(simd_object, "Float32x4", JS_VALUE_TYPE, JSValue::kSize, |
isolate->initial_object_prototype(), Builtins::kIllegal); |
- // Set the instance class name since InstallFunction only does this when |
+ native_context()->set_float32x4_function(*float32x4_function); |
+ |
+ Handle<JSFunction> int32x4_function = |
+ InstallFunction(simd_object, "Int32x4", JS_VALUE_TYPE, JSValue::kSize, |
+ isolate->initial_object_prototype(), Builtins::kIllegal); |
+ native_context()->set_int32x4_function(*int32x4_function); |
+ |
+ Handle<JSFunction> bool32x4_function = |
+ InstallFunction(simd_object, "Bool32x4", JS_VALUE_TYPE, JSValue::kSize, |
+ isolate->initial_object_prototype(), Builtins::kIllegal); |
+ native_context()->set_bool32x4_function(*bool32x4_function); |
+ |
+ Handle<JSFunction> int16x8_function = |
+ InstallFunction(simd_object, "Int16x8", JS_VALUE_TYPE, JSValue::kSize, |
+ isolate->initial_object_prototype(), Builtins::kIllegal); |
+ native_context()->set_int16x8_function(*int16x8_function); |
+ |
+ Handle<JSFunction> bool16x8_function = |
+ InstallFunction(simd_object, "Bool16x8", JS_VALUE_TYPE, JSValue::kSize, |
+ isolate->initial_object_prototype(), Builtins::kIllegal); |
+ native_context()->set_bool16x8_function(*bool16x8_function); |
+ |
+ Handle<JSFunction> int8x16_function = |
+ InstallFunction(simd_object, "Int8x16", JS_VALUE_TYPE, JSValue::kSize, |
+ isolate->initial_object_prototype(), Builtins::kIllegal); |
+ native_context()->set_int8x16_function(*int8x16_function); |
+ |
+ Handle<JSFunction> bool8x16_function = |
+ InstallFunction(simd_object, "Bool8x16", JS_VALUE_TYPE, JSValue::kSize, |
+ isolate->initial_object_prototype(), Builtins::kIllegal); |
+ native_context()->set_bool8x16_function(*bool8x16_function); |
+ |
+ // Set the instance class names since InstallFunction only does this when |
// we install on the GlobalObject. |
float32x4_function->SetInstanceClassName(*factory->Float32x4_string()); |
- native_context()->set_float32x4_function(*float32x4_function); |
+ int32x4_function->SetInstanceClassName(*factory->Int32x4_string()); |
+ bool32x4_function->SetInstanceClassName(*factory->Bool32x4_string()); |
+ int16x8_function->SetInstanceClassName(*factory->Int16x8_string()); |
+ bool16x8_function->SetInstanceClassName(*factory->Bool16x8_string()); |
+ int8x16_function->SetInstanceClassName(*factory->Int8x16_string()); |
+ bool8x16_function->SetInstanceClassName(*factory->Bool8x16_string()); |
} |