| Index: Source/bindings/templates/interface.h
|
| diff --git a/Source/bindings/templates/interface.h b/Source/bindings/templates/interface.h
|
| index 891e7411845dee71e121a96f68204603f4b209bb..2871b643313b890265b5a8ecfa313c8137065d99 100644
|
| --- a/Source/bindings/templates/interface.h
|
| +++ b/Source/bindings/templates/interface.h
|
| @@ -131,16 +131,20 @@ public:
|
| {% endif %}
|
| {# Custom internal fields #}
|
| {% set custom_internal_field_counter = 0 %}
|
| - {# persistentHandleIndex must be the first field, if it is present #}
|
| - {% if is_will_be_garbage_collected %}
|
| - static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + {{custom_internal_field_counter}};
|
| - {% set custom_internal_field_counter = custom_internal_field_counter + 1 %}
|
| - {% endif %}
|
| {% if is_event_target and not is_node %}
|
| {# Event listeners on DOM nodes are explicitly supported in the GC controller. #}
|
| static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCount + {{custom_internal_field_counter}};
|
| {% set custom_internal_field_counter = custom_internal_field_counter + 1 %}
|
| {% endif %}
|
| + {# persistentHandleIndex must be the last field, if it is present.
|
| + Detailed explanation: https://codereview.chromium.org/139173012
|
| + FIXME: Remove this internal field, and share one field for either:
|
| + * a persistent handle (if the object is in oilpan) or
|
| + * a C++ pointer to the DOM object (if the object is not in oilpan) #}
|
| + {% if is_will_be_garbage_collected %}
|
| + static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + {{custom_internal_field_counter}};
|
| + {% set custom_internal_field_counter = custom_internal_field_counter + 1 %}
|
| + {% endif %}
|
| static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + {{custom_internal_field_counter}};
|
| {# End custom internal fields #}
|
| static inline void* toInternalPointer({{cpp_class}}* impl)
|
|
|