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

Unified Diff: src/bootstrapper.cc

Issue 1250733005: SIMD.js Add the other SIMD Phase 1 types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/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());
}
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/code-stubs.cc » ('j') | src/harmony-simd.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698