Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 {% include 'copyright_block.txt' %} | 1 {% include 'copyright_block.txt' %} |
| 2 #include "{{v8_class_or_partial}}.h" | 2 #include "{{v8_class_or_partial}}.h" |
| 3 | 3 |
| 4 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} | 4 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} |
| 5 #include "{{filename}}" | 5 #include "{{filename}}" |
| 6 {% endfor %} | 6 {% endfor %} |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class | 9 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class |
| 10 if has_visit_dom_wrapper else '0' %} | 10 if has_visit_dom_wrapper else '0' %} |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 329 {% endif %} | 329 {% endif %} |
| 330 | 330 |
| 331 {%- if has_access_check_callbacks %}{{newline}} | 331 {%- if has_access_check_callbacks %}{{newline}} |
| 332 // Cross-origin access check | 332 // Cross-origin access check |
| 333 instanceTemplate->SetAccessCheckCallback({{cpp_class}}V8Internal::securityCh eck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrap perTypeInfo))); | 333 instanceTemplate->SetAccessCheckCallback({{cpp_class}}V8Internal::securityCh eck, v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrap perTypeInfo))); |
| 334 {% endif %} | 334 {% endif %} |
| 335 | 335 |
| 336 {%- if has_array_iterator %}{{newline}} | 336 {%- if has_array_iterator %}{{newline}} |
| 337 // Array iterator | 337 // Array iterator |
| 338 {% filter runtime_enabled('RuntimeEnabledFeatures::iterableCollectionsEnable d') %} | 338 {% filter runtime_enabled('RuntimeEnabledFeatures::iterableCollectionsEnable d') %} |
| 339 {% if is_global %} | 339 {% if not is_global %} |
|
Yuki
2016/03/09 04:19:30
It's better to merge this condition into line 336.
caitp (gmail)
2016/03/09 04:34:02
in fact, per spec it should be false, the indexed
| |
| 340 instanceTemplate->SetIntrinsicDataProperty(v8::Symbol::GetIterator(isolate), v8::kArrayProto_values, v8::DontEnum); | |
| 341 {% else %} | |
| 342 prototypeTemplate->SetIntrinsicDataProperty(v8::Symbol::GetIterator(isolate) , v8::kArrayProto_values, v8::DontEnum); | 340 prototypeTemplate->SetIntrinsicDataProperty(v8::Symbol::GetIterator(isolate) , v8::kArrayProto_values, v8::DontEnum); |
| 343 {% endif %} | 341 {% endif %} |
| 344 {% endfilter %} | 342 {% endfilter %} |
| 345 {% endif %} | 343 {% endif %} |
| 346 | 344 |
| 347 {%- set runtime_enabled_features = dict() %} | 345 {%- set runtime_enabled_features = dict() %} |
| 348 {% for attribute in attributes | 346 {% for attribute in attributes |
| 349 if attribute.runtime_enabled_function and | 347 if attribute.runtime_enabled_function and |
| 350 not attribute.exposed_test %} | 348 not attribute.exposed_test %} |
| 351 {% if attribute.runtime_enabled_function not in runtime_enabled_features %} | 349 {% if attribute.runtime_enabled_function not in runtime_enabled_features %} |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 438 {{method_implemented_in_private_script(method)}} | 436 {{method_implemented_in_private_script(method)}} |
| 439 {% endfor %} | 437 {% endfor %} |
| 440 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 438 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 441 {{attribute_getter_implemented_in_private_script(attribute)}} | 439 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 442 {% if attribute.has_setter %} | 440 {% if attribute.has_setter %} |
| 443 {{attribute_setter_implemented_in_private_script(attribute)}} | 441 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 444 {% endif %} | 442 {% endif %} |
| 445 {% endfor %} | 443 {% endfor %} |
| 446 {% block partial_interface %}{% endblock %} | 444 {% block partial_interface %}{% endblock %} |
| 447 } // namespace blink | 445 } // namespace blink |
| OLD | NEW |