| OLD | NEW |
| 1 {% extends 'interface_base.cpp' %} | 1 {% extends 'interface_base.cpp' %} |
| 2 | 2 |
| 3 | 3 |
| 4 {##############################################################################} | 4 {##############################################################################} |
| 5 {% macro attribute_configuration(attribute) %} | 5 {% macro attribute_configuration(attribute) %} |
| 6 {% set getter_callback = | 6 {% set getter_callback = |
| 7 '%sV8Internal::%sAttributeGetterCallback' % | 7 '%sV8Internal::%sAttributeGetterCallback' % |
| 8 (cpp_class, attribute.name) | 8 (cpp_class, attribute.name) |
| 9 if not attribute.constructor_type else | 9 if not attribute.constructor_type or |
| 10 attribute.needs_constructor_callback else |
| 10 '{0}V8Internal::{0}ConstructorGetter'.format(cpp_class) %} | 11 '{0}V8Internal::{0}ConstructorGetter'.format(cpp_class) %} |
| 11 {% set getter_callback_for_main_world = | 12 {% set getter_callback_for_main_world = |
| 12 '%sV8Internal::%sAttributeGetterCallbackForMainWorld' % | 13 '%sV8Internal::%sAttributeGetterCallbackForMainWorld' % |
| 13 (cpp_class, attribute.name) | 14 (cpp_class, attribute.name) |
| 14 if attribute.is_per_world_bindings else '0' %} | 15 if attribute.is_per_world_bindings else '0' %} |
| 15 {% set setter_callback = attribute.setter_callback %} | 16 {% set setter_callback = attribute.setter_callback %} |
| 16 {% set setter_callback_for_main_world = | 17 {% set setter_callback_for_main_world = |
| 17 '%sV8Internal::%sAttributeSetterCallbackForMainWorld' % | 18 '%sV8Internal::%sAttributeSetterCallbackForMainWorld' % |
| 18 (cpp_class, attribute.name) | 19 (cpp_class, attribute.name) |
| 19 if attribute.is_per_world_bindings and | 20 if attribute.is_per_world_bindings and |
| (...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1317 {% endfilter %} | 1318 {% endfilter %} |
| 1318 } | 1319 } |
| 1319 | 1320 |
| 1320 template<> | 1321 template<> |
| 1321 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 1322 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
| 1322 { | 1323 { |
| 1323 return toV8(impl, creationContext, isolate); | 1324 return toV8(impl, creationContext, isolate); |
| 1324 } | 1325 } |
| 1325 | 1326 |
| 1326 {% endblock %} | 1327 {% endblock %} |
| OLD | NEW |