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

Side by Side Diff: Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl

Issue 311803003: [oilpan]: Avoid refcounting QualifiedName's nullQName when tracing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/animation/AnimationTimelineTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% from "macros.tmpl" import license %} 1 {% from "macros.tmpl" import license %}
2 {{ license() }} 2 {{ license() }}
3 3
4 #include "config.h" 4 #include "config.h"
5 5
6 #ifdef SKIP_STATIC_CONSTRUCTORS_ON_GCC 6 #ifdef SKIP_STATIC_CONSTRUCTORS_ON_GCC
7 #define {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS 1 7 #define {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS 1
8 #else 8 #else
9 #define QNAME_DEFAULT_CONSTRUCTOR 1 9 #define QNAME_DEFAULT_CONSTRUCTOR 1
10 #endif 10 #endif
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 AtomicString {{namespace_prefix}}NS("{{namespace_uri}}", AtomicString::Const ructFromLiteral); 57 AtomicString {{namespace_prefix}}NS("{{namespace_uri}}", AtomicString::Const ructFromLiteral);
58 58
59 // Namespace 59 // Namespace
60 new ((void*)&{{namespace_prefix}}NamespaceURI) AtomicString({{namespace_pref ix}}NS); 60 new ((void*)&{{namespace_prefix}}NamespaceURI) AtomicString({{namespace_pref ix}}NS);
61 {% for name, tag_list in (tags + attrs)|groupby('name')|sort %} 61 {% for name, tag_list in (tags + attrs)|groupby('name')|sort %}
62 StringImpl* {{tag_list[0]|symbol}}Impl = StringImpl::createStatic("{{name}}" , {{name|length}}, {{name|hash}}); 62 StringImpl* {{tag_list[0]|symbol}}Impl = StringImpl::createStatic("{{name}}" , {{name|length}}, {{name|hash}});
63 {% endfor %} 63 {% endfor %}
64 64
65 // Tags 65 // Tags
66 {% for tag in tags|sort %} 66 {% for tag in tags|sort %}
67 createQualifiedName((void*)&{{tag|symbol}}Tag, {{tag|symbol}}Impl, {{namespa ce_prefix}}NS); 67 QualifiedName::createStatic((void*)&{{tag|symbol}}Tag, {{tag|symbol}}Impl, { {namespace_prefix}}NS);
68 {% endfor %} 68 {% endfor %}
69 69
70 // Attrs 70 // Attrs
71 {% for attr in attrs|sort %} 71 {% for attr in attrs|sort %}
72 {% if use_namespace_for_attrs %} 72 {% if use_namespace_for_attrs %}
73 createQualifiedName((void*)&{{attr|symbol}}Attr, {{attr|symbol}}Impl, {{name space_prefix}}NS); 73 QualifiedName::createStatic((void*)&{{attr|symbol}}Attr, {{attr|symbol}}Impl , {{namespace_prefix}}NS);
74 {% else %} 74 {% else %}
75 createQualifiedName((void*)&{{attr|symbol}}Attr, {{attr|symbol}}Impl); 75 QualifiedName::createStatic((void*)&{{attr|symbol}}Attr, {{attr|symbol}}Impl );
76 {% endif %} 76 {% endif %}
77 {% endfor %} 77 {% endfor %}
78 } 78 }
79 79
80 } // {{namespace}} 80 } // {{namespace}}
81 } // WebCore 81 } // WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/AnimationTimelineTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698