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

Unified Diff: src/bootstrapper.cc

Issue 1273353003: [simd.js] Single SIMD128_VALUE_TYPE for all Simd128Values. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow check failures. REBASE. Created 5 years, 4 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
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 12a64d9eb7d3a809256402791b744ee57af1c630..e954a268f651e888378f4e40c608b19854a4c0a5 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1981,14 +1981,14 @@ void Genesis::InitializeGlobal_harmony_simd() {
// Install SIMD type functions. Set the instance class names since
// InstallFunction only does this when we install on the GlobalObject.
-#define SIMD128_INSTALL_FUNCTION(name, type, lane_count, lane_type) \
- Handle<JSFunction> type##_function = InstallFunction( \
- simd_object, #name, JS_VALUE_TYPE, JSValue::kSize, \
- isolate->initial_object_prototype(), Builtins::kIllegal); \
- native_context()->set_##type##_function(*type##_function); \
- type##_function->SetInstanceClassName(*factory->name##_string());
-
+#define SIMD128_INSTALL_FUNCTION(TYPE, Type, type, lane_count, lane_type) \
+ Handle<JSFunction> type##_function = InstallFunction( \
+ simd_object, #Type, JS_VALUE_TYPE, JSValue::kSize, \
+ isolate->initial_object_prototype(), Builtins::kIllegal); \
+ native_context()->set_##type##_function(*type##_function); \
+ type##_function->SetInstanceClassName(*factory->Type##_string());
SIMD128_TYPES(SIMD128_INSTALL_FUNCTION)
+#undef SIMD128_INSTALL_FUNCTION
}
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698