Index: Source/build/scripts/templates/MakeNames.cpp.tmpl |
diff --git a/Source/build/scripts/templates/MakeNames.cpp.tmpl b/Source/build/scripts/templates/MakeNames.cpp.tmpl |
index f6a939c3fd5f0f042541c096f7128feef527e15b..42fbf9af12e52053d9fb2ce388926a5927566907 100644 |
--- a/Source/build/scripts/templates/MakeNames.cpp.tmpl |
+++ b/Source/build/scripts/templates/MakeNames.cpp.tmpl |
@@ -17,22 +17,28 @@ namespace {{namespace}}Names { |
using namespace WTF; |
{% for entry in entries|sort %} |
+{% filter enable_conditional(entry.Conditional) %} |
{% if export %} |
DEFINE_GLOBAL(AtomicString, {{entry|symbol}}Storage) |
{{export}} const AtomicString& {{entry|symbol}} = *reinterpret_cast<const AtomicString*>(&{{entry|symbol}}Storage); |
{% else %} |
DEFINE_GLOBAL(AtomicString, {{entry|symbol}}) |
{% endif %} |
+{% endfilter %} |
{% endfor %} |
void init{{suffix}}() |
{ |
{% for entry in entries|sort %} |
+ {% filter enable_conditional(entry.Conditional) %} |
StringImpl* {{entry|symbol}}Impl = StringImpl::createStatic("{{entry|cpp_name}}", {{entry|cpp_name|length}}, {{entry|cpp_name|hash}}); |
+ {% endfilter %} |
{% endfor %} |
{% for entry in entries|sort %} |
+ {% filter enable_conditional(entry.Conditional) %} |
new ((void*)&{{entry|symbol}}) AtomicString({{entry|symbol}}Impl); |
+ {% endfilter %} |
{% endfor %} |
} |