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

Unified Diff: Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl

Issue 45173005: Move *Tags / *Attrs arrays from .data to .data.rel.ro section (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 | « no previous file | Source/build/scripts/templates/MakeQualifiedNames.h.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl
diff --git a/Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl b/Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl
index 5f9dc2d9aba29b9d4c0c993e1da1f2dd4fc223bb..e6ff66955bfff4326bb67f4bfa05baa0da80727e 100644
--- a/Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl
+++ b/Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl
@@ -28,9 +28,9 @@ DEFINE_GLOBAL(QualifiedName, {{tag|symbol}}Tag)
{%- endfor %}
-WebCore::QualifiedName** get{{namespace}}Tags()
+const WebCore::QualifiedName* const* get{{namespace}}Tags()
{
- static WebCore::QualifiedName* {{namespace}}Tags[] = {
+ static const WebCore::QualifiedName* const {{namespace}}Tags[] = {
{%- for tag in tags|sort %}
(WebCore::QualifiedName*)&{{tag|symbol}}Tag,
{%- endfor %}
@@ -45,9 +45,9 @@ WebCore::QualifiedName** get{{namespace}}Tags()
DEFINE_GLOBAL(QualifiedName, {{attr|symbol}}Attr)
{%- endfor %}
-WebCore::QualifiedName** get{{namespace}}Attrs()
+const WebCore::QualifiedName* const* get{{namespace}}Attrs()
{
- static WebCore::QualifiedName* {{namespace}}Attrs[] = {
+ static const WebCore::QualifiedName* const {{namespace}}Attrs[] = {
{%- for attr in attrs|sort %}
(WebCore::QualifiedName*)&{{attr|symbol}}Attr,
{%- endfor %}
« no previous file with comments | « no previous file | Source/build/scripts/templates/MakeQualifiedNames.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698