OLD | NEW |
1 {##############################################################################} | 1 {##############################################################################} |
2 {% macro attribute_getter(attribute, world_suffix) %} | 2 {% macro attribute_getter(attribute, world_suffix) %} |
3 {% filter conditional(attribute.conditional_string) %} | 3 {% filter conditional(attribute.conditional_string) %} |
4 static void {{attribute.name}}AttributeGetter{{world_suffix}}( | 4 static void {{attribute.name}}AttributeGetter{{world_suffix}}( |
5 {%- if attribute.is_expose_js_accessors %} | 5 {%- if attribute.is_expose_js_accessors %} |
6 const v8::FunctionCallbackInfo<v8::Value>& info | 6 const v8::FunctionCallbackInfo<v8::Value>& info |
7 {%- else %} | 7 {%- else %} |
8 const v8::PropertyCallbackInfo<v8::Value>& info | 8 const v8::PropertyCallbackInfo<v8::Value>& info |
9 {%- endif %}) | 9 {%- endif %}) |
10 { | 10 { |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 {% else %} | 177 {% else %} |
178 {{cpp_class}}V8Internal::{{attribute.name}}AttributeGetter{{world_suffix}}(i
nfo); | 178 {{cpp_class}}V8Internal::{{attribute.name}}AttributeGetter{{world_suffix}}(i
nfo); |
179 {% endif %} | 179 {% endif %} |
180 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 180 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
181 } | 181 } |
182 {% endfilter %} | 182 {% endfilter %} |
183 {% endmacro %} | 183 {% endmacro %} |
184 | 184 |
185 | 185 |
186 {##############################################################################} | 186 {##############################################################################} |
| 187 {% macro constructor_getter_callback(attribute, world_suffix) %} |
| 188 {% filter conditional(attribute.conditional_string) %} |
| 189 static void {{attribute.name}}ConstructorGetterCallback{{world_suffix}}(v8::Loca
l<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 190 { |
| 191 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 192 {% if attribute.deprecate_as %} |
| 193 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::{{attribute.deprecate_as}}); |
| 194 {% endif %} |
| 195 {% if attribute.measure_as %} |
| 196 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::{{
attribute.measure_as}}); |
| 197 {% endif %} |
| 198 {{cpp_class}}V8Internal::{{cpp_class}}ConstructorGetter{{world_suffix}}(prop
erty, info); |
| 199 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 200 } |
| 201 {% endfilter %} |
| 202 {% endmacro %} |
| 203 |
| 204 |
| 205 {##############################################################################} |
187 {% macro attribute_setter(attribute, world_suffix) %} | 206 {% macro attribute_setter(attribute, world_suffix) %} |
188 {% filter conditional(attribute.conditional_string) %} | 207 {% filter conditional(attribute.conditional_string) %} |
189 static void {{attribute.name}}AttributeSetter{{world_suffix}}( | 208 static void {{attribute.name}}AttributeSetter{{world_suffix}}( |
190 {%- if attribute.is_expose_js_accessors %} | 209 {%- if attribute.is_expose_js_accessors %} |
191 v8::Local<v8::Value> jsValue, const v8::FunctionCallbackInfo<v8::Value>& info | 210 v8::Local<v8::Value> jsValue, const v8::FunctionCallbackInfo<v8::Value>& info |
192 {%- else %} | 211 {%- else %} |
193 v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info | 212 v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info |
194 {%- endif %}) | 213 {%- endif %}) |
195 { | 214 { |
196 {% if attribute.is_reflect and attribute.idl_type == 'DOMString' and | 215 {% if attribute.is_reflect and attribute.idl_type == 'DOMString' and |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 {% endif %} | 315 {% endif %} |
297 {% if attribute.has_custom_setter %} | 316 {% if attribute.has_custom_setter %} |
298 {{v8_class}}::{{attribute.name}}AttributeSetterCustom(jsValue, info); | 317 {{v8_class}}::{{attribute.name}}AttributeSetterCustom(jsValue, info); |
299 {% else %} | 318 {% else %} |
300 {{cpp_class}}V8Internal::{{attribute.name}}AttributeSetter{{world_suffix}}(j
sValue, info); | 319 {{cpp_class}}V8Internal::{{attribute.name}}AttributeSetter{{world_suffix}}(j
sValue, info); |
301 {% endif %} | 320 {% endif %} |
302 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
303 } | 322 } |
304 {% endfilter %} | 323 {% endfilter %} |
305 {% endmacro %} | 324 {% endmacro %} |
OLD | NEW |