OLD | NEW |
1 {% from 'utilities.cpp.tmpl' import declare_enum_validation_variable, v8_value_t
o_local_cpp_value %} | 1 {% from 'utilities.cpp.tmpl' import declare_enum_validation_variable, v8_value_t
o_local_cpp_value %} |
2 | 2 |
3 {##############################################################################} | 3 {##############################################################################} |
4 {% macro attribute_getter(attribute, world_suffix) %} | 4 {% macro attribute_getter(attribute, world_suffix) %} |
5 static void {{attribute.name}}AttributeGetter{{world_suffix}}( | 5 static void {{attribute.name}}AttributeGetter{{world_suffix}}( |
6 {%- if attribute.is_data_type_property %} | 6 {%- if attribute.is_data_type_property %} |
7 const v8::PropertyCallbackInfo<v8::Value>& info | 7 const v8::PropertyCallbackInfo<v8::Value>& info |
8 {%- else %} | 8 {%- else %} |
9 const v8::FunctionCallbackInfo<v8::Value>& info | 9 const v8::FunctionCallbackInfo<v8::Value>& info |
10 {%- endif %}) { | 10 {%- endif %}) { |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 {{v8_class}}::{{attribute.name}}AttributeGetterCustom(info); | 222 {{v8_class}}::{{attribute.name}}AttributeGetterCustom(info); |
223 {% else %} | 223 {% else %} |
224 {{cpp_class_or_partial}}V8Internal::{{attribute.name}}AttributeGetter{{world_s
uffix}}(info); | 224 {{cpp_class_or_partial}}V8Internal::{{attribute.name}}AttributeGetter{{world_s
uffix}}(info); |
225 {% endif %} | 225 {% endif %} |
226 } | 226 } |
227 {% endmacro %} | 227 {% endmacro %} |
228 | 228 |
229 | 229 |
230 {##############################################################################} | 230 {##############################################################################} |
231 {% macro attribute_cache_property_callback(attribute) %} | 231 {% macro attribute_cache_property_callback(attribute) %} |
232 static v8::Local<v8::Private> {{attribute.name}}CachedAccessorCallback(v8::Isola
te* isolate) | 232 v8::Local<v8::Private> {{attribute.name}}CachedAccessorCallback(v8::Isolate* iso
late) |
233 { | 233 { |
234 return V8PrivateProperty::get{{attribute.cached_accessor_name}}(isolate).get
Private(); | 234 return V8PrivateProperty::get{{attribute.cached_accessor_name}}(isolate).get
Private(); |
235 } | 235 } |
236 {% endmacro %} | 236 {% endmacro %} |
237 | 237 |
238 | 238 |
239 {##############################################################################} | 239 {##############################################################################} |
240 {% macro constructor_getter_callback(attribute, world_suffix) %} | 240 {% macro constructor_getter_callback(attribute, world_suffix) %} |
241 void {{attribute.name}}ConstructorGetterCallback{{world_suffix}}(v8::Local<v8::N
ame> property, const v8::PropertyCallbackInfo<v8::Value>& info) { | 241 void {{attribute.name}}ConstructorGetterCallback{{world_suffix}}(v8::Local<v8::N
ame> property, const v8::PropertyCallbackInfo<v8::Value>& info) { |
242 {% if attribute.deprecate_as %} | 242 {% if attribute.deprecate_as %} |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 setter_callback_for_main_world, | 467 setter_callback_for_main_world, |
468 cached_accessor_callback, | 468 cached_accessor_callback, |
469 wrapper_type_info, | 469 wrapper_type_info, |
470 access_control, | 470 access_control, |
471 property_attribute, | 471 property_attribute, |
472 property_location(attribute), | 472 property_location(attribute), |
473 holder_check, | 473 holder_check, |
474 ] %} | 474 ] %} |
475 {{'{'}}{{attribute_configuration_list | join(', ')}}{{'}'}} | 475 {{'{'}}{{attribute_configuration_list | join(', ')}}{{'}'}} |
476 {%- endmacro %} | 476 {%- endmacro %} |
OLD | NEW |