OLD | NEW |
1 {% include 'copyright_block.txt' %} | 1 {% include 'copyright_block.txt' %} |
2 #ifndef {{macro_guard}} | 2 #ifndef {{macro_guard}} |
3 #define {{macro_guard}} | 3 #define {{macro_guard}} |
4 | 4 |
5 {% for filename in header_includes %} | 5 {% for filename in header_includes %} |
6 #include "{{filename}}" | 6 #include "{{filename}}" |
7 {% endfor %} | 7 {% endfor %} |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 {# 1. null or undefined #} | 82 {# 1. null or undefined #} |
83 if (isUndefinedOrNull(v8Value)) | 83 if (isUndefinedOrNull(v8Value)) |
84 return; | 84 return; |
85 V8{{cpp_type}}::toImpl(isolate, v8Value, impl, exceptionState); | 85 V8{{cpp_type}}::toImpl(isolate, v8Value, impl, exceptionState); |
86 } | 86 } |
87 }; | 87 }; |
88 | 88 |
89 {% endfor %} | 89 {% endfor %} |
90 } // namespace blink | 90 } // namespace blink |
91 | 91 |
| 92 // We need to set canInitializeWithMemset=true because HeapVector supports |
| 93 // items that can initialize with memset or have a vtable. It is safe to |
| 94 // set canInitializeWithMemset=true for a union type object in practice. |
| 95 // See https://codereview.chromium.org/1118993002/#msg5 for more details. |
| 96 {% for container in containers %} |
| 97 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::{{container.cpp_class}}); |
| 98 {% endfor %} |
| 99 |
92 #endif // {{macro_guard}} | 100 #endif // {{macro_guard}} |
OLD | NEW |