| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // This file has been auto-generated from the Jinja2 template |
| // third_party/blink/renderer/bindings/templates/interface.cc.tmpl |
| // by the script code_generator_v8.py. |
| // DO NOT MODIFY! |
| |
| // clang-format off |
| #include "third_party/blink/renderer/bindings/tests/results/core/v8_test_object.h" |
| |
| #include "base/memory/scoped_refptr.h" |
| #include "third_party/blink/renderer/bindings/core/v8/binding_security.h" |
| #include "third_party/blink/renderer/bindings/core/v8/dictionary.h" |
| #include "third_party/blink/renderer/bindings/core/v8/idl_types.h" |
| #include "third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h" |
| #include "third_party/blink/renderer/bindings/core/v8/script_call_stack.h" |
| #include "third_party/blink/renderer/bindings/core/v8/script_promise.h" |
| #include "third_party/blink/renderer/bindings/core/v8/script_value.h" |
| #include "third_party/blink/renderer/bindings/core/v8/serialization/serialized_script_value.h" |
| #include "third_party/blink/renderer/bindings/core/v8/serialization/serialized_script_value_factory.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_array_buffer.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_array_buffer_view.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_attr.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_document.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_document_fragment.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_document_type.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_dom_configuration.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_element.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_event_listener_helper.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_event_target.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_float32_array.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_html_collection.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_html_element.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_int32_array.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_iterator.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_node.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_node_filter.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_shadow_root.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_test_callback_interface.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_test_dictionary.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_test_interface.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_test_interface_empty.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_test_node.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_test_object.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_uint8_array.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_window.h" |
| #include "third_party/blink/renderer/bindings/core/v8/v8_xpath_ns_resolver.h" |
| #include "third_party/blink/renderer/core/dom/class_collection.h" |
| #include "third_party/blink/renderer/core/dom/tag_collection.h" |
| #include "third_party/blink/renderer/core/execution_context/execution_context.h" |
| #include "third_party/blink/renderer/core/frame/deprecation.h" |
| #include "third_party/blink/renderer/core/frame/use_counter.h" |
| #include "third_party/blink/renderer/core/html/custom/ce_reactions_scope.h" |
| #include "third_party/blink/renderer/core/html/custom/v0_custom_element_processing_stack.h" |
| #include "third_party/blink/renderer/core/html/forms/html_data_list_options_collection.h" |
| #include "third_party/blink/renderer/core/html/forms/html_form_controls_collection.h" |
| #include "third_party/blink/renderer/core/html/html_collection.h" |
| #include "third_party/blink/renderer/core/html/html_table_rows_collection.h" |
| #include "third_party/blink/renderer/core/html_names.h" |
| #include "third_party/blink/renderer/core/inspector/console_message.h" |
| #include "third_party/blink/renderer/core/inspector/script_arguments.h" |
| #include "third_party/blink/renderer/core/origin_trials/origin_trials.h" |
| #include "third_party/blink/renderer/core/typed_arrays/array_buffer_view_helpers.h" |
| #include "third_party/blink/renderer/core/typed_arrays/flexible_array_buffer_view.h" |
| #include "third_party/blink/renderer/platform/bindings/exception_messages.h" |
| #include "third_party/blink/renderer/platform/bindings/exception_state.h" |
| #include "third_party/blink/renderer/platform/bindings/runtime_call_stats.h" |
| #include "third_party/blink/renderer/platform/bindings/script_state.h" |
| #include "third_party/blink/renderer/platform/bindings/v8_dom_activity_logger.h" |
| #include "third_party/blink/renderer/platform/bindings/v8_object_constructor.h" |
| #include "third_party/blink/renderer/platform/bindings/v8_per_context_data.h" |
| #include "third_party/blink/renderer/platform/bindings/v8_private_property.h" |
| #include "third_party/blink/renderer/platform/runtime_enabled_features.h" |
| #include "third_party/blink/renderer/platform/wtf/get_ptr.h" |
| |
| namespace blink { |
| |
| // Suppress warning: global constructors, because struct WrapperTypeInfo is trivial |
| // and does not depend on another global objects. |
| #if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__) |
| #pragma clang diagnostic push |
| #pragma clang diagnostic ignored "-Wglobal-constructors" |
| #endif |
| const WrapperTypeInfo v8_test_object_wrapper_type_info = { |
| gin::kEmbedderBlink, |
| V8TestObject::DomTemplate, |
| V8TestObject::InstallConditionalFeatures, |
| "TestObject", |
| nullptr, |
| WrapperTypeInfo::kWrapperTypeObjectPrototype, |
| WrapperTypeInfo::kObjectClassId, |
| WrapperTypeInfo::kNotInheritFromActiveScriptWrappable, |
| }; |
| #if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__) |
| #pragma clang diagnostic pop |
| #endif |
| |
| // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestObject.h. |
| // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| // platform/bindings/ScriptWrappable.h. |
| const WrapperTypeInfo& TestObject::wrapper_type_info_ = v8_test_object_wrapper_type_info; |
| |
| // not [ActiveScriptWrappable] |
| static_assert( |
| !std::is_base_of<ActiveScriptWrappableBase, TestObject>::value, |
| "TestObject inherits from ActiveScriptWrappable<>, but is not specifying " |
| "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| "Be consistent."); |
| static_assert( |
| std::is_same<decltype(&TestObject::HasPendingActivity), |
| decltype(&ScriptWrappable::HasPendingActivity)>::value, |
| "TestObject is overriding hasPendingActivity(), but is not specifying " |
| "[ActiveScriptWrappable] extended attribute in the IDL file. " |
| "Be consistent."); |
| |
| namespace test_object_v8_internal { |
| |
| static void StringifierAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate()); |
| } |
| |
| static void StringifierAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setStringifierAttribute(cpp_value); |
| } |
| |
| static void ReadonlyStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolate()); |
| } |
| |
| static void ReadonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| TestInterfaceEmpty* cpp_value(WTF::GetPtr(impl->readonlyTestInterfaceEmptyAttribute())); |
| |
| // Keep the wrapper object for the return value alive as long as |this| |
| // object is alive in order to save creation time of the wrapper object. |
| if (cpp_value && DOMDataStore::SetReturnValue(info.GetReturnValue(), cpp_value)) |
| return; |
| v8::Local<v8::Value> v8_value(ToV8(cpp_value, holder, info.GetIsolate())); |
| V8PrivateProperty::GetSymbol( |
| info.GetIsolate(), "KeepAlive#TestObject#readonlyTestInterfaceEmptyAttribute") |
| .Set(holder, v8_value); |
| |
| V8SetReturnValue(info, v8_value); |
| } |
| |
| static void ReadonlyLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->readonlyLongAttribute()); |
| } |
| |
| static void DateAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, v8::Date::New(info.GetIsolate()->GetCurrentContext(), impl->dateAttribute())); |
| } |
| |
| static void DateAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "dateAttribute"); |
| |
| // Prepare the value to be set. |
| double cpp_value = NativeValueTraits<IDLDate>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setDateAttribute(cpp_value); |
| } |
| |
| static void StringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); |
| } |
| |
| static void StringAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setStringAttribute(cpp_value); |
| } |
| |
| static void ByteStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate()); |
| } |
| |
| static void ByteStringAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "byteStringAttribute"); |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = NativeValueTraits<IDLByteString>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setByteStringAttribute(cpp_value); |
| } |
| |
| static void UsvStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate()); |
| } |
| |
| static void UsvStringAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "usvStringAttribute"); |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = NativeValueTraits<IDLUSVString>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setUsvStringAttribute(cpp_value); |
| } |
| |
| static void DOMTimeStampAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); |
| } |
| |
| static void DOMTimeStampAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "domTimeStampAttribute"); |
| |
| // Prepare the value to be set. |
| uint64_t cpp_value = NativeValueTraits<IDLUnsignedLongLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setDomTimeStampAttribute(cpp_value); |
| } |
| |
| static void BooleanAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueBool(info, impl->booleanAttribute()); |
| } |
| |
| static void BooleanAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "booleanAttribute"); |
| |
| // Prepare the value to be set. |
| bool cpp_value = NativeValueTraits<IDLBoolean>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setBooleanAttribute(cpp_value); |
| } |
| |
| static void ByteAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->byteAttribute()); |
| } |
| |
| static void ByteAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "byteAttribute"); |
| |
| // Prepare the value to be set. |
| int8_t cpp_value = NativeValueTraits<IDLByte>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setByteAttribute(cpp_value); |
| } |
| |
| static void DoubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, impl->doubleAttribute()); |
| } |
| |
| static void DoubleAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "doubleAttribute"); |
| |
| // Prepare the value to be set. |
| double cpp_value = NativeValueTraits<IDLDouble>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setDoubleAttribute(cpp_value); |
| } |
| |
| static void FloatAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, impl->floatAttribute()); |
| } |
| |
| static void FloatAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "floatAttribute"); |
| |
| // Prepare the value to be set. |
| float cpp_value = NativeValueTraits<IDLFloat>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setFloatAttribute(cpp_value); |
| } |
| |
| static void LongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->longAttribute()); |
| } |
| |
| static void LongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "longAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setLongAttribute(cpp_value); |
| } |
| |
| static void LongLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); |
| } |
| |
| static void LongLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "longLongAttribute"); |
| |
| // Prepare the value to be set. |
| int64_t cpp_value = NativeValueTraits<IDLLongLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setLongLongAttribute(cpp_value); |
| } |
| |
| static void OctetAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueUnsigned(info, impl->octetAttribute()); |
| } |
| |
| static void OctetAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "octetAttribute"); |
| |
| // Prepare the value to be set. |
| uint8_t cpp_value = NativeValueTraits<IDLOctet>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setOctetAttribute(cpp_value); |
| } |
| |
| static void ShortAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->shortAttribute()); |
| } |
| |
| static void ShortAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "shortAttribute"); |
| |
| // Prepare the value to be set. |
| int16_t cpp_value = NativeValueTraits<IDLShort>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setShortAttribute(cpp_value); |
| } |
| |
| static void UnrestrictedDoubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); |
| } |
| |
| static void UnrestrictedDoubleAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "unrestrictedDoubleAttribute"); |
| |
| // Prepare the value to be set. |
| double cpp_value = NativeValueTraits<IDLUnrestrictedDouble>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setUnrestrictedDoubleAttribute(cpp_value); |
| } |
| |
| static void UnrestrictedFloatAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, impl->unrestrictedFloatAttribute()); |
| } |
| |
| static void UnrestrictedFloatAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "unrestrictedFloatAttribute"); |
| |
| // Prepare the value to be set. |
| float cpp_value = NativeValueTraits<IDLUnrestrictedFloat>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setUnrestrictedFloatAttribute(cpp_value); |
| } |
| |
| static void UnsignedLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); |
| } |
| |
| static void UnsignedLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "unsignedLongAttribute"); |
| |
| // Prepare the value to be set. |
| uint32_t cpp_value = NativeValueTraits<IDLUnsignedLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setUnsignedLongAttribute(cpp_value); |
| } |
| |
| static void UnsignedLongLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute())); |
| } |
| |
| static void UnsignedLongLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "unsignedLongLongAttribute"); |
| |
| // Prepare the value to be set. |
| uint64_t cpp_value = NativeValueTraits<IDLUnsignedLongLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setUnsignedLongLongAttribute(cpp_value); |
| } |
| |
| static void UnsignedShortAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); |
| } |
| |
| static void UnsignedShortAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "unsignedShortAttribute"); |
| |
| // Prepare the value to be set. |
| uint16_t cpp_value = NativeValueTraits<IDLUnsignedShort>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setUnsignedShortAttribute(cpp_value); |
| } |
| |
| static void TestInterfaceEmptyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->testInterfaceEmptyAttribute()), impl); |
| } |
| |
| static void TestInterfaceEmptyAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "testInterfaceEmptyAttribute"); |
| |
| // Prepare the value to be set. |
| TestInterfaceEmpty* cpp_value = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'TestInterfaceEmpty'."); |
| return; |
| } |
| |
| impl->setTestInterfaceEmptyAttribute(cpp_value); |
| } |
| |
| static void TestObjectAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->testObjectAttribute()), impl); |
| } |
| |
| static void TestObjectAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "testObjectAttribute"); |
| |
| // Prepare the value to be set. |
| TestObject* cpp_value = V8TestObject::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'TestObject'."); |
| return; |
| } |
| |
| impl->setTestObjectAttribute(cpp_value); |
| } |
| |
| static void CSSAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->cssAttribute()); |
| } |
| |
| static void CSSAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "cssAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setCSSAttribute(cpp_value); |
| } |
| |
| static void ImeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->imeAttribute()); |
| } |
| |
| static void ImeAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "imeAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setIMEAttribute(cpp_value); |
| } |
| |
| static void SVGAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->svgAttribute()); |
| } |
| |
| static void SVGAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "svgAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setSVGAttribute(cpp_value); |
| } |
| |
| static void XmlAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->xmlAttribute()); |
| } |
| |
| static void XmlAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "xmlAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setXMLAttribute(cpp_value); |
| } |
| |
| static void NodeFilterAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, ToV8(WTF::GetPtr(impl->nodeFilterAttribute()), info.Holder(), info.GetIsolate())); |
| } |
| |
| static void SerializedScriptValueAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, V8Deserialize(info.GetIsolate(), WTF::GetPtr(impl->serializedScriptValueAttribute()).get())); |
| } |
| |
| static void SerializedScriptValueAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "serializedScriptValueAttribute"); |
| |
| // Prepare the value to be set. |
| scoped_refptr<SerializedScriptValue> cpp_value = NativeValueTraits<SerializedScriptValue>::NativeValue(info.GetIsolate(), v8_value, SerializedScriptValue::SerializeOptions(SerializedScriptValue::kNotForStorage), exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setSerializedScriptValueAttribute(std::move(cpp_value)); |
| } |
| |
| static void AnyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, impl->anyAttribute().V8Value()); |
| } |
| |
| static void AnyAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| ScriptValue cpp_value = ScriptValue(ScriptState::Current(info.GetIsolate()), v8_value); |
| |
| impl->setAnyAttribute(cpp_value); |
| } |
| |
| static void PromiseAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| // This attribute returns a Promise. |
| // Per https://heycam.github.io/webidl/#dfn-attribute-getter, all exceptions |
| // must be turned into a Promise rejection. |
| ExceptionState exception_state( |
| info.GetIsolate(), ExceptionState::kGetterContext, |
| "TestObject", "promiseAttribute"); |
| ExceptionToRejectPromiseScope reject_promise_scope(info, exception_state); |
| |
| // Returning a Promise type requires us to disable some of V8's type checks, |
| // so we have to manually check that info.Holder() really points to an |
| // instance of the type. |
| if (!V8TestObject::HasInstance(info.Holder(), info.GetIsolate())) { |
| exception_state.ThrowTypeError("Illegal invocation"); |
| return; |
| } |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, impl->promiseAttribute().V8Value()); |
| } |
| |
| static void PromiseAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| ScriptPromise cpp_value = ScriptPromise::Cast(ScriptState::Current(info.GetIsolate()), v8_value); |
| |
| impl->setPromiseAttribute(cpp_value); |
| } |
| |
| static void WindowAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->windowAttribute()), impl); |
| } |
| |
| static void WindowAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "windowAttribute"); |
| |
| // Prepare the value to be set. |
| DOMWindow* cpp_value = ToDOMWindow(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'Window'."); |
| return; |
| } |
| |
| impl->setWindowAttribute(cpp_value); |
| } |
| |
| static void DocumentAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->documentAttribute()), impl); |
| } |
| |
| static void DocumentAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "documentAttribute"); |
| |
| // Prepare the value to be set. |
| Document* cpp_value = V8Document::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'Document'."); |
| return; |
| } |
| |
| impl->setDocumentAttribute(cpp_value); |
| } |
| |
| static void DocumentFragmentAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->documentFragmentAttribute()), impl); |
| } |
| |
| static void DocumentFragmentAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "documentFragmentAttribute"); |
| |
| // Prepare the value to be set. |
| DocumentFragment* cpp_value = V8DocumentFragment::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'DocumentFragment'."); |
| return; |
| } |
| |
| impl->setDocumentFragmentAttribute(cpp_value); |
| } |
| |
| static void DocumentTypeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->documentTypeAttribute()), impl); |
| } |
| |
| static void DocumentTypeAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "documentTypeAttribute"); |
| |
| // Prepare the value to be set. |
| DocumentType* cpp_value = V8DocumentType::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'DocumentType'."); |
| return; |
| } |
| |
| impl->setDocumentTypeAttribute(cpp_value); |
| } |
| |
| static void ElementAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->elementAttribute()), impl); |
| } |
| |
| static void ElementAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "elementAttribute"); |
| |
| // Prepare the value to be set. |
| Element* cpp_value = V8Element::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'Element'."); |
| return; |
| } |
| |
| impl->setElementAttribute(cpp_value); |
| } |
| |
| static void NodeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->nodeAttribute()), impl); |
| } |
| |
| static void NodeAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "nodeAttribute"); |
| |
| // Prepare the value to be set. |
| Node* cpp_value = V8Node::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'Node'."); |
| return; |
| } |
| |
| impl->setNodeAttribute(cpp_value); |
| } |
| |
| static void ShadowRootAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->shadowRootAttribute()), impl); |
| } |
| |
| static void ShadowRootAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "shadowRootAttribute"); |
| |
| // Prepare the value to be set. |
| ShadowRoot* cpp_value = V8ShadowRoot::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'ShadowRoot'."); |
| return; |
| } |
| |
| impl->setShadowRootAttribute(cpp_value); |
| } |
| |
| static void ArrayBufferAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->arrayBufferAttribute()), impl); |
| } |
| |
| static void ArrayBufferAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "arrayBufferAttribute"); |
| |
| // Prepare the value to be set. |
| TestArrayBuffer* cpp_value = v8_value->IsArrayBuffer() ? V8ArrayBuffer::ToImpl(v8::Local<v8::ArrayBuffer>::Cast(v8_value)) : 0; |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'ArrayBuffer'."); |
| return; |
| } |
| |
| impl->setArrayBufferAttribute(cpp_value); |
| } |
| |
| static void Float32ArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, impl->float32ArrayAttribute(), impl); |
| } |
| |
| static void Float32ArrayAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "float32ArrayAttribute"); |
| |
| // Prepare the value to be set. |
| NotShared<DOMFloat32Array> cpp_value = ToNotShared<NotShared<DOMFloat32Array>>(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'Float32Array'."); |
| return; |
| } |
| |
| impl->setFloat32ArrayAttribute(cpp_value); |
| } |
| |
| static void Uint8ArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, impl->uint8ArrayAttribute(), impl); |
| } |
| |
| static void Uint8ArrayAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "uint8ArrayAttribute"); |
| |
| // Prepare the value to be set. |
| NotShared<DOMUint8Array> cpp_value = ToNotShared<NotShared<DOMUint8Array>>(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'Uint8Array'."); |
| return; |
| } |
| |
| impl->setUint8ArrayAttribute(cpp_value); |
| } |
| |
| static void SelfAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->self()), impl); |
| } |
| |
| static void ReadonlyEventTargetAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->readonlyEventTargetAttribute()), impl); |
| } |
| |
| static void ReadonlyEventTargetOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->readonlyEventTargetOrNullAttribute()), impl); |
| } |
| |
| static void ReadonlyWindowAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->readonlyWindowAttribute()), impl); |
| } |
| |
| static void HTMLCollectionAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->htmlCollectionAttribute()), impl); |
| } |
| |
| static void HTMLElementAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->htmlElementAttribute()), impl); |
| } |
| |
| static void StringFrozenArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, FreezeV8Object(ToV8(impl->stringFrozenArrayAttribute(), info.Holder(), info.GetIsolate()), info.GetIsolate())); |
| } |
| |
| static void StringFrozenArrayAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "stringFrozenArrayAttribute"); |
| |
| // Prepare the value to be set. |
| Vector<String> cpp_value = NativeValueTraits<IDLSequence<IDLString>>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setStringFrozenArrayAttribute(cpp_value); |
| } |
| |
| static void TestInterfaceEmptyFrozenArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, FreezeV8Object(ToV8(impl->testInterfaceEmptyFrozenArrayAttribute(), info.Holder(), info.GetIsolate()), info.GetIsolate())); |
| } |
| |
| static void TestInterfaceEmptyFrozenArrayAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "testInterfaceEmptyFrozenArrayAttribute"); |
| |
| // Prepare the value to be set. |
| HeapVector<Member<TestInterfaceEmpty>> cpp_value = NativeValueTraits<IDLSequence<TestInterfaceEmpty>>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setTestInterfaceEmptyFrozenArrayAttribute(cpp_value); |
| } |
| |
| static void BooleanOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| bool is_null = false; |
| |
| bool cpp_value(impl->booleanOrNullAttribute(is_null)); |
| |
| if (is_null) { |
| V8SetReturnValueNull(info); |
| return; |
| } |
| |
| V8SetReturnValueBool(info, cpp_value); |
| } |
| |
| static void BooleanOrNullAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "booleanOrNullAttribute"); |
| |
| // Prepare the value to be set. |
| bool cpp_value = NativeValueTraits<IDLBoolean>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| bool is_null = IsUndefinedOrNull(v8_value); |
| impl->setBooleanOrNullAttribute(cpp_value, is_null); |
| } |
| |
| static void StringOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIsolate()); |
| } |
| |
| static void StringOrNullAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| V8StringResource<kTreatNullAndUndefinedAsNullString> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setStringOrNullAttribute(cpp_value); |
| } |
| |
| static void LongOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| bool is_null = false; |
| |
| int32_t cpp_value(impl->longOrNullAttribute(is_null)); |
| |
| if (is_null) { |
| V8SetReturnValueNull(info); |
| return; |
| } |
| |
| V8SetReturnValueInt(info, cpp_value); |
| } |
| |
| static void LongOrNullAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "longOrNullAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| bool is_null = IsUndefinedOrNull(v8_value); |
| impl->setLongOrNullAttribute(cpp_value, is_null); |
| } |
| |
| static void TestInterfaceOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->testInterfaceOrNullAttribute()), impl); |
| } |
| |
| static void TestInterfaceOrNullAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "testInterfaceOrNullAttribute"); |
| |
| // Prepare the value to be set. |
| TestInterfaceImplementation* cpp_value = V8TestInterface::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value && !IsUndefinedOrNull(v8_value)) { |
| exception_state.ThrowTypeError("The provided value is not of type 'TestInterface'."); |
| return; |
| } |
| |
| impl->setTestInterfaceOrNullAttribute(cpp_value); |
| } |
| |
| static void TestEnumAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); |
| } |
| |
| static void TestEnumAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "testEnumAttribute"); |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| // Type check per: http://heycam.github.io/webidl/#dfn-attribute-setter |
| // Returns undefined without setting the value if the value is invalid. |
| DummyExceptionStateForTesting dummy_exception_state; |
| { |
| const char* kValidValues[] = { |
| "", |
| "EnumValue1", |
| "EnumValue2", |
| "EnumValue3", |
| }; |
| if (!IsValidEnum(cpp_value, kValidValues, base::size(kValidValues), |
| "TestEnum", dummy_exception_state)) { |
| ExecutionContext::ForCurrentRealm(info)->AddConsoleMessage( |
| ConsoleMessage::Create(kJSMessageSource, kWarningMessageLevel, |
| dummy_exception_state.Message())); |
| return; |
| } |
| } |
| |
| impl->setTestEnumAttribute(cpp_value); |
| } |
| |
| static void TestEnumOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueStringOrNull(info, impl->testEnumOrNullAttribute(), info.GetIsolate()); |
| } |
| |
| static void TestEnumOrNullAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "testEnumOrNullAttribute"); |
| |
| // Prepare the value to be set. |
| V8StringResource<kTreatNullAndUndefinedAsNullString> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| // Type check per: http://heycam.github.io/webidl/#dfn-attribute-setter |
| // Returns undefined without setting the value if the value is invalid. |
| DummyExceptionStateForTesting dummy_exception_state; |
| { |
| const char* kValidValues[] = { |
| nullptr, |
| "", |
| "EnumValue1", |
| "EnumValue2", |
| "EnumValue3", |
| }; |
| if (!IsValidEnum(cpp_value, kValidValues, base::size(kValidValues), |
| "TestEnum", dummy_exception_state)) { |
| ExecutionContext::ForCurrentRealm(info)->AddConsoleMessage( |
| ConsoleMessage::Create(kJSMessageSource, kWarningMessageLevel, |
| dummy_exception_state.Message())); |
| return; |
| } |
| } |
| |
| impl->setTestEnumOrNullAttribute(cpp_value); |
| } |
| |
| static void StaticStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| V8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIsolate()); |
| } |
| |
| static void StaticStringAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| TestObject::setStaticStringAttribute(cpp_value); |
| } |
| |
| static void StaticLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| V8SetReturnValueInt(info, TestObject::staticLongAttribute()); |
| } |
| |
| static void StaticLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "staticLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| TestObject::setStaticLongAttribute(cpp_value); |
| } |
| |
| static void EventHandlerAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| EventListener* cpp_value(WTF::GetPtr(impl->eventHandlerAttribute())); |
| |
| V8SetReturnValue(info, JSBasedEventListener::GetListenerOrNull(info.GetIsolate(), impl, cpp_value)); |
| } |
| |
| static void EventHandlerAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| |
| impl->setEventHandlerAttribute(V8EventListenerHelper::GetEventHandler(ScriptState::ForRelevantRealm(info), v8_value, JSEventHandler::HandlerType::kEventHandler, kListenerFindOrCreate)); |
| } |
| |
| static void DoubleOrStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| DoubleOrString result; |
| impl->doubleOrStringAttribute(result); |
| |
| V8SetReturnValue(info, result); |
| } |
| |
| static void DoubleOrStringAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "doubleOrStringAttribute"); |
| |
| // Prepare the value to be set. |
| DoubleOrString cpp_value; |
| V8DoubleOrString::ToImpl(info.GetIsolate(), v8_value, cpp_value, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setDoubleOrStringAttribute(cpp_value); |
| } |
| |
| static void DoubleOrStringOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| DoubleOrString result; |
| impl->doubleOrStringOrNullAttribute(result); |
| |
| V8SetReturnValue(info, result); |
| } |
| |
| static void DoubleOrStringOrNullAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "doubleOrStringOrNullAttribute"); |
| |
| // Prepare the value to be set. |
| DoubleOrString cpp_value; |
| V8DoubleOrString::ToImpl(info.GetIsolate(), v8_value, cpp_value, UnionTypeConversionMode::kNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setDoubleOrStringOrNullAttribute(cpp_value); |
| } |
| |
| static void DoubleOrNullStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| DoubleOrString result; |
| impl->doubleOrNullStringAttribute(result); |
| |
| V8SetReturnValue(info, result); |
| } |
| |
| static void DoubleOrNullStringAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "doubleOrNullStringAttribute"); |
| |
| // Prepare the value to be set. |
| DoubleOrString cpp_value; |
| V8DoubleOrString::ToImpl(info.GetIsolate(), v8_value, cpp_value, UnionTypeConversionMode::kNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setDoubleOrNullStringAttribute(cpp_value); |
| } |
| |
| static void StringOrStringSequenceAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| StringOrStringSequence result; |
| impl->stringOrStringSequenceAttribute(result); |
| |
| V8SetReturnValue(info, result); |
| } |
| |
| static void StringOrStringSequenceAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "stringOrStringSequenceAttribute"); |
| |
| // Prepare the value to be set. |
| StringOrStringSequence cpp_value; |
| V8StringOrStringSequence::ToImpl(info.GetIsolate(), v8_value, cpp_value, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setStringOrStringSequenceAttribute(cpp_value); |
| } |
| |
| static void TestEnumOrDoubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| TestEnumOrDouble result; |
| impl->testEnumOrDoubleAttribute(result); |
| |
| V8SetReturnValue(info, result); |
| } |
| |
| static void TestEnumOrDoubleAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "testEnumOrDoubleAttribute"); |
| |
| // Prepare the value to be set. |
| TestEnumOrDouble cpp_value; |
| V8TestEnumOrDouble::ToImpl(info.GetIsolate(), v8_value, cpp_value, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setTestEnumOrDoubleAttribute(cpp_value); |
| } |
| |
| static void UnrestrictedDoubleOrStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| UnrestrictedDoubleOrString result; |
| impl->unrestrictedDoubleOrStringAttribute(result); |
| |
| V8SetReturnValue(info, result); |
| } |
| |
| static void UnrestrictedDoubleOrStringAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "unrestrictedDoubleOrStringAttribute"); |
| |
| // Prepare the value to be set. |
| UnrestrictedDoubleOrString cpp_value; |
| V8UnrestrictedDoubleOrString::ToImpl(info.GetIsolate(), v8_value, cpp_value, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setUnrestrictedDoubleOrStringAttribute(cpp_value); |
| } |
| |
| static void NestedUnionAtributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| DoubleOrStringOrDoubleOrStringSequence result; |
| impl->nestedUnionAtribute(result); |
| |
| V8SetReturnValue(info, result); |
| } |
| |
| static void NestedUnionAtributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "nestedUnionAtribute"); |
| |
| // Prepare the value to be set. |
| DoubleOrStringOrDoubleOrStringSequence cpp_value; |
| V8DoubleOrStringOrDoubleOrStringSequence::ToImpl(info.GetIsolate(), v8_value, cpp_value, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setNestedUnionAtribute(cpp_value); |
| } |
| |
| static void ActivityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribute()); |
| } |
| |
| static void ActivityLoggingAccessForAllWorldsLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "activityLoggingAccessForAllWorldsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setActivityLoggingAccessForAllWorldsLongAttribute(cpp_value); |
| } |
| |
| static void ActivityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribute()); |
| } |
| |
| static void ActivityLoggingGetterForAllWorldsLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "activityLoggingGetterForAllWorldsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setActivityLoggingGetterForAllWorldsLongAttribute(cpp_value); |
| } |
| |
| static void ActivityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribute()); |
| } |
| |
| static void ActivityLoggingSetterForAllWorldsLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "activityLoggingSetterForAllWorldsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setActivityLoggingSetterForAllWorldsLongAttribute(cpp_value); |
| } |
| |
| static void CachedAttributeAnyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // [CachedAttribute] |
| V8PrivateProperty::Symbol property_symbol = |
| V8PrivateProperty::GetSymbol(info.GetIsolate(), |
| "TestObject#CachedAttributeAnyAttribute"); |
| if (!static_cast<const TestObject*>(impl)->isValueDirty()) { |
| v8::Local<v8::Value> v8_value; |
| if (property_symbol.GetOrUndefined(holder).ToLocal(&v8_value) && !v8_value->IsUndefined()) { |
| V8SetReturnValue(info, v8_value); |
| return; |
| } |
| } |
| |
| ScriptValue cpp_value(impl->cachedAttributeAnyAttribute()); |
| |
| // [CachedAttribute] |
| v8::Local<v8::Value> v8_value(cpp_value.V8Value()); |
| property_symbol.Set(holder, v8_value); |
| |
| V8SetReturnValue(info, v8_value); |
| } |
| |
| static void CachedAttributeAnyAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| ScriptValue cpp_value = ScriptValue(ScriptState::Current(info.GetIsolate()), v8_value); |
| |
| impl->setCachedAttributeAnyAttribute(cpp_value); |
| |
| // [CachedAttribute] |
| // Invalidate the cached value. |
| V8PrivateProperty::GetSymbol( |
| isolate, "TestObject#CachedAttributeAnyAttribute") |
| .DeleteProperty(holder, v8::Undefined(isolate)); |
| } |
| |
| static void CachedArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // [CachedAttribute] |
| V8PrivateProperty::Symbol property_symbol = |
| V8PrivateProperty::GetSymbol(info.GetIsolate(), |
| "TestObject#CachedArrayAttribute"); |
| if (!static_cast<const TestObject*>(impl)->isFrozenArrayDirty()) { |
| v8::Local<v8::Value> v8_value; |
| if (property_symbol.GetOrUndefined(holder).ToLocal(&v8_value) && !v8_value->IsUndefined()) { |
| V8SetReturnValue(info, v8_value); |
| return; |
| } |
| } |
| |
| Vector<String> cpp_value(impl->cachedArrayAttribute()); |
| |
| // [CachedAttribute] |
| v8::Local<v8::Value> v8_value(FreezeV8Object(ToV8(cpp_value, holder, info.GetIsolate()), info.GetIsolate())); |
| property_symbol.Set(holder, v8_value); |
| |
| V8SetReturnValue(info, v8_value); |
| } |
| |
| static void CachedArrayAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "cachedArrayAttribute"); |
| |
| // Prepare the value to be set. |
| Vector<String> cpp_value = NativeValueTraits<IDLSequence<IDLString>>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setCachedArrayAttribute(cpp_value); |
| |
| // [CachedAttribute] |
| // Invalidate the cached value. |
| V8PrivateProperty::GetSymbol( |
| isolate, "TestObject#CachedArrayAttribute") |
| .DeleteProperty(holder, v8::Undefined(isolate)); |
| } |
| |
| static void CachedStringOrNoneAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // [CachedAttribute] |
| V8PrivateProperty::Symbol property_symbol = |
| V8PrivateProperty::GetSymbol(info.GetIsolate(), |
| "TestObject#CachedStringOrNoneAttribute"); |
| if (!static_cast<const TestObject*>(impl)->isStringDirty()) { |
| v8::Local<v8::Value> v8_value; |
| if (property_symbol.GetOrUndefined(holder).ToLocal(&v8_value) && !v8_value->IsUndefined()) { |
| V8SetReturnValue(info, v8_value); |
| return; |
| } |
| } |
| |
| String cpp_value(impl->cachedStringOrNoneAttribute()); |
| |
| // [CachedAttribute] |
| v8::Local<v8::Value> v8_value((cpp_value.IsNull() ? v8::Null(info.GetIsolate()).As<v8::Value>() : V8String(info.GetIsolate(), cpp_value).As<v8::Value>())); |
| property_symbol.Set(holder, v8_value); |
| |
| V8SetReturnValue(info, v8_value); |
| } |
| |
| static void CachedStringOrNoneAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| V8StringResource<kTreatNullAndUndefinedAsNullString> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setCachedStringOrNoneAttribute(cpp_value); |
| |
| // [CachedAttribute] |
| // Invalidate the cached value. |
| V8PrivateProperty::GetSymbol( |
| isolate, "TestObject#CachedStringOrNoneAttribute") |
| .DeleteProperty(holder, v8::Undefined(isolate)); |
| } |
| |
| static void CallWithExecutionContextAnyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExecutionContext* execution_context = ExecutionContext::ForRelevantRealm(info); |
| |
| V8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(execution_context).V8Value()); |
| } |
| |
| static void CallWithExecutionContextAnyAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| ScriptValue cpp_value = ScriptValue(ScriptState::Current(info.GetIsolate()), v8_value); |
| |
| ExecutionContext* execution_context = ExecutionContext::ForRelevantRealm(info); |
| |
| impl->setCallWithExecutionContextAnyAttribute(execution_context, cpp_value); |
| } |
| |
| static void CallWithScriptStateAnyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| V8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(script_state).V8Value()); |
| } |
| |
| static void CallWithScriptStateAnyAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| ScriptValue cpp_value = ScriptValue(ScriptState::Current(info.GetIsolate()), v8_value); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| impl->setCallWithScriptStateAnyAttribute(script_state, cpp_value); |
| } |
| |
| static void CallWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExecutionContext* execution_context = ExecutionContext::ForRelevantRealm(info); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| V8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttribute(script_state, execution_context).V8Value()); |
| } |
| |
| static void CallWithExecutionContextAndScriptStateAnyAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| ScriptValue cpp_value = ScriptValue(ScriptState::Current(info.GetIsolate()), v8_value); |
| |
| ExecutionContext* execution_context = ExecutionContext::ForRelevantRealm(info); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| impl->setCallWithExecutionContextAndScriptStateAnyAttribute(script_state, execution_context, cpp_value); |
| } |
| |
| static void CheckSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Perform a security check for the returned object. |
| ExceptionState exception_state( |
| info.GetIsolate(), ExceptionState::kGetterContext, |
| "TestObject", "checkSecurityForNodeReadonlyDocumentAttribute"); |
| if (!BindingSecurity::ShouldAllowAccessTo(CurrentDOMWindow(info.GetIsolate()), WTF::GetPtr(impl->checkSecurityForNodeReadonlyDocumentAttribute()), BindingSecurity::ErrorReportOption::kDoNotReport)) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), |
| WebFeature::kCrossOriginTestObjectCheckSecurityForNodeReadonlyDocumentAttribute); |
| V8SetReturnValueNull(info); |
| return; |
| } |
| |
| V8SetReturnValue(info, ToV8(WTF::GetPtr(impl->checkSecurityForNodeReadonlyDocumentAttribute()), ToV8(impl->contentWindow(), v8::Local<v8::Object>(), info.GetIsolate()).As<v8::Object>(), info.GetIsolate())); |
| } |
| |
| static void CustomGetterLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "customGetterLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setCustomGetterLongAttribute(cpp_value); |
| } |
| |
| static void CustomSetterLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->customSetterLongAttribute()); |
| } |
| |
| static void DeprecatedLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->deprecatedLongAttribute()); |
| } |
| |
| static void DeprecatedLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "deprecatedLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setDeprecatedLongAttribute(cpp_value); |
| } |
| |
| static void EnforceRangeLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->enforceRangeLongAttribute()); |
| } |
| |
| static void EnforceRangeLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "enforceRangeLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLongEnforceRange>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setEnforceRangeLongAttribute(cpp_value); |
| } |
| |
| static void ImplementedAsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->implementedAsName()); |
| } |
| |
| static void ImplementedAsLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "implementedAsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setImplementedAsName(cpp_value); |
| } |
| |
| static void CustomGetterImplementedAsLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "customGetterImplementedAsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setImplementedAsNameWithCustomGetter(cpp_value); |
| } |
| |
| static void CustomSetterImplementedAsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->implementedAsNameWithCustomGetter()); |
| } |
| |
| static void MeasureAsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->measureAsLongAttribute()); |
| } |
| |
| static void MeasureAsLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "measureAsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setMeasureAsLongAttribute(cpp_value); |
| } |
| |
| static void NotEnumerableLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->notEnumerableLongAttribute()); |
| } |
| |
| static void NotEnumerableLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "notEnumerableLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setNotEnumerableLongAttribute(cpp_value); |
| } |
| |
| static void OriginTrialEnabledLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->originTrialEnabledLongAttribute()); |
| } |
| |
| static void OriginTrialEnabledLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "originTrialEnabledLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setOriginTrialEnabledLongAttribute(cpp_value); |
| } |
| |
| static void PerWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| TestInterfaceEmpty* cpp_value(WTF::GetPtr(impl->perWorldBindingsReadonlyTestInterfaceEmptyAttribute())); |
| |
| // Keep the wrapper object for the return value alive as long as |this| |
| // object is alive in order to save creation time of the wrapper object. |
| if (cpp_value && DOMDataStore::SetReturnValue(info.GetReturnValue(), cpp_value)) |
| return; |
| v8::Local<v8::Value> v8_value(ToV8(cpp_value, holder, info.GetIsolate())); |
| V8PrivateProperty::GetSymbol( |
| info.GetIsolate(), "KeepAlive#TestObject#perWorldBindingsReadonlyTestInterfaceEmptyAttribute") |
| .Set(holder, v8_value); |
| |
| V8SetReturnValue(info, v8_value); |
| } |
| |
| static void PerWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| TestInterfaceEmpty* cpp_value(WTF::GetPtr(impl->perWorldBindingsReadonlyTestInterfaceEmptyAttribute())); |
| |
| // Keep the wrapper object for the return value alive as long as |this| |
| // object is alive in order to save creation time of the wrapper object. |
| if (cpp_value && DOMDataStore::SetReturnValueForMainWorld(info.GetReturnValue(), cpp_value)) |
| return; |
| v8::Local<v8::Value> v8_value(ToV8(cpp_value, holder, info.GetIsolate())); |
| V8PrivateProperty::GetSymbol( |
| info.GetIsolate(), "KeepAlive#TestObject#perWorldBindingsReadonlyTestInterfaceEmptyAttribute") |
| .Set(holder, v8_value); |
| |
| V8SetReturnValue(info, v8_value); |
| } |
| |
| static void ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAttribute()); |
| } |
| |
| static void ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "activityLoggingAccessPerWorldBindingsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cpp_value); |
| } |
| |
| static void ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAttribute()); |
| } |
| |
| static void ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterForMainWorld( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "activityLoggingAccessPerWorldBindingsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cpp_value); |
| } |
| |
| static void ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute()); |
| } |
| |
| static void ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute(cpp_value); |
| } |
| |
| static void ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute()); |
| } |
| |
| static void ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterForMainWorld( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute(cpp_value); |
| } |
| |
| static void ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAttribute()); |
| } |
| |
| static void ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "activityLoggingGetterPerWorldBindingsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cpp_value); |
| } |
| |
| static void ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAttribute()); |
| } |
| |
| static void ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterForMainWorld( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "activityLoggingGetterPerWorldBindingsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cpp_value); |
| } |
| |
| static void ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute()); |
| } |
| |
| static void ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute(cpp_value); |
| } |
| |
| static void ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute()); |
| } |
| |
| static void ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterForMainWorld( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute(cpp_value); |
| } |
| |
| static void LocationAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->location()), impl); |
| } |
| |
| static void LocationAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| // [PutForwards] => location.href |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "location"); |
| v8::Local<v8::Value> target; |
| if (!holder->Get(isolate->GetCurrentContext(), V8AtomicString(isolate, "location")) |
| .ToLocal(&target)) { |
| return; |
| } |
| if (!target->IsObject()) { |
| exception_state.ThrowTypeError("The attribute value is not an object"); |
| return; |
| } |
| bool result; |
| if (!target.As<v8::Object>()->Set( |
| isolate->GetCurrentContext(), |
| V8AtomicString(isolate, "href"), |
| v8_value).To(&result)) { |
| return; |
| } |
| if (!result) |
| return; |
| } |
| |
| static void LocationWithExceptionAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->locationWithException()), impl); |
| } |
| |
| static void LocationWithExceptionAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| // [PutForwards] => locationWithException.hrefThrows |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "locationWithException"); |
| v8::Local<v8::Value> target; |
| if (!holder->Get(isolate->GetCurrentContext(), V8AtomicString(isolate, "locationWithException")) |
| .ToLocal(&target)) { |
| return; |
| } |
| if (!target->IsObject()) { |
| exception_state.ThrowTypeError("The attribute value is not an object"); |
| return; |
| } |
| bool result; |
| if (!target.As<v8::Object>()->Set( |
| isolate->GetCurrentContext(), |
| V8AtomicString(isolate, "hrefThrows"), |
| v8_value).To(&result)) { |
| return; |
| } |
| if (!result) |
| return; |
| } |
| |
| static void LocationWithCallWithAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->locationWithCallWith()), impl); |
| } |
| |
| static void LocationWithCallWithAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| // [PutForwards] => locationWithCallWith.hrefCallWith |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "locationWithCallWith"); |
| v8::Local<v8::Value> target; |
| if (!holder->Get(isolate->GetCurrentContext(), V8AtomicString(isolate, "locationWithCallWith")) |
| .ToLocal(&target)) { |
| return; |
| } |
| if (!target->IsObject()) { |
| exception_state.ThrowTypeError("The attribute value is not an object"); |
| return; |
| } |
| bool result; |
| if (!target.As<v8::Object>()->Set( |
| isolate->GetCurrentContext(), |
| V8AtomicString(isolate, "hrefCallWith"), |
| v8_value).To(&result)) { |
| return; |
| } |
| if (!result) |
| return; |
| } |
| |
| static void LocationByteStringAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->locationByteString()), impl); |
| } |
| |
| static void LocationByteStringAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| // [PutForwards] => locationByteString.hrefByteString |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "locationByteString"); |
| v8::Local<v8::Value> target; |
| if (!holder->Get(isolate->GetCurrentContext(), V8AtomicString(isolate, "locationByteString")) |
| .ToLocal(&target)) { |
| return; |
| } |
| if (!target->IsObject()) { |
| exception_state.ThrowTypeError("The attribute value is not an object"); |
| return; |
| } |
| bool result; |
| if (!target.As<v8::Object>()->Set( |
| isolate->GetCurrentContext(), |
| V8AtomicString(isolate, "hrefByteString"), |
| v8_value).To(&result)) { |
| return; |
| } |
| if (!result) |
| return; |
| } |
| |
| static void LocationWithPerWorldBindingsAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->locationWithPerWorldBindings()), impl); |
| } |
| |
| static void LocationWithPerWorldBindingsAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| // [PutForwards] => locationWithPerWorldBindings.href |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "locationWithPerWorldBindings"); |
| v8::Local<v8::Value> target; |
| if (!holder->Get(isolate->GetCurrentContext(), V8AtomicString(isolate, "locationWithPerWorldBindings")) |
| .ToLocal(&target)) { |
| return; |
| } |
| if (!target->IsObject()) { |
| exception_state.ThrowTypeError("The attribute value is not an object"); |
| return; |
| } |
| bool result; |
| if (!target.As<v8::Object>()->Set( |
| isolate->GetCurrentContext(), |
| V8AtomicString(isolate, "href"), |
| v8_value).To(&result)) { |
| return; |
| } |
| if (!result) |
| return; |
| } |
| |
| static void LocationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueForMainWorld(info, WTF::GetPtr(impl->locationWithPerWorldBindings())); |
| } |
| |
| static void LocationWithPerWorldBindingsAttributeSetterForMainWorld( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| // [PutForwards] => locationWithPerWorldBindings.href |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "locationWithPerWorldBindings"); |
| v8::Local<v8::Value> target; |
| if (!holder->Get(isolate->GetCurrentContext(), V8AtomicString(isolate, "locationWithPerWorldBindings")) |
| .ToLocal(&target)) { |
| return; |
| } |
| if (!target->IsObject()) { |
| exception_state.ThrowTypeError("The attribute value is not an object"); |
| return; |
| } |
| bool result; |
| if (!target.As<v8::Object>()->Set( |
| isolate->GetCurrentContext(), |
| V8AtomicString(isolate, "href"), |
| v8_value).To(&result)) { |
| return; |
| } |
| if (!result) |
| return; |
| } |
| |
| static void LocationLegacyInterfaceTypeCheckingAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->locationLegacyInterfaceTypeChecking()), impl); |
| } |
| |
| static void LocationLegacyInterfaceTypeCheckingAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| // [PutForwards] => locationLegacyInterfaceTypeChecking.href |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "locationLegacyInterfaceTypeChecking"); |
| v8::Local<v8::Value> target; |
| if (!holder->Get(isolate->GetCurrentContext(), V8AtomicString(isolate, "locationLegacyInterfaceTypeChecking")) |
| .ToLocal(&target)) { |
| return; |
| } |
| if (!target->IsObject()) { |
| exception_state.ThrowTypeError("The attribute value is not an object"); |
| return; |
| } |
| bool result; |
| if (!target.As<v8::Object>()->Set( |
| isolate->GetCurrentContext(), |
| V8AtomicString(isolate, "href"), |
| v8_value).To(&result)) { |
| return; |
| } |
| if (!result) |
| return; |
| } |
| |
| static void RaisesExceptionLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state( |
| info.GetIsolate(), ExceptionState::kGetterContext, |
| "TestObject", "raisesExceptionLongAttribute"); |
| |
| int32_t cpp_value(impl->raisesExceptionLongAttribute(exception_state)); |
| |
| if (UNLIKELY(exception_state.HadException())) |
| return; |
| |
| V8SetReturnValueInt(info, cpp_value); |
| } |
| |
| static void RaisesExceptionLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "raisesExceptionLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setRaisesExceptionLongAttribute(cpp_value, exception_state); |
| } |
| |
| static void RaisesExceptionGetterLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state( |
| info.GetIsolate(), ExceptionState::kGetterContext, |
| "TestObject", "raisesExceptionGetterLongAttribute"); |
| |
| int32_t cpp_value(impl->raisesExceptionGetterLongAttribute(exception_state)); |
| |
| if (UNLIKELY(exception_state.HadException())) |
| return; |
| |
| V8SetReturnValueInt(info, cpp_value); |
| } |
| |
| static void RaisesExceptionGetterLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "raisesExceptionGetterLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setRaisesExceptionGetterLongAttribute(cpp_value); |
| } |
| |
| static void SetterRaisesExceptionLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); |
| } |
| |
| static void SetterRaisesExceptionLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "setterRaisesExceptionLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setSetterRaisesExceptionLongAttribute(cpp_value, exception_state); |
| } |
| |
| static void RaisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state( |
| info.GetIsolate(), ExceptionState::kGetterContext, |
| "TestObject", "raisesExceptionTestInterfaceEmptyAttribute"); |
| |
| TestInterfaceEmpty* cpp_value(impl->raisesExceptionTestInterfaceEmptyAttribute(exception_state)); |
| |
| if (UNLIKELY(exception_state.HadException())) |
| return; |
| |
| V8SetReturnValueFast(info, cpp_value, impl); |
| } |
| |
| static void RaisesExceptionTestInterfaceEmptyAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "raisesExceptionTestInterfaceEmptyAttribute"); |
| |
| // Prepare the value to be set. |
| TestInterfaceEmpty* cpp_value = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'TestInterfaceEmpty'."); |
| return; |
| } |
| |
| impl->setRaisesExceptionTestInterfaceEmptyAttribute(cpp_value, exception_state); |
| } |
| |
| static void CachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // [CachedAttribute] |
| V8PrivateProperty::Symbol property_symbol = |
| V8PrivateProperty::GetSymbol(info.GetIsolate(), |
| "TestObject#CachedAttributeRaisesExceptionGetterAnyAttribute"); |
| if (!static_cast<const TestObject*>(impl)->isValueDirty()) { |
| v8::Local<v8::Value> v8_value; |
| if (property_symbol.GetOrUndefined(holder).ToLocal(&v8_value) && !v8_value->IsUndefined()) { |
| V8SetReturnValue(info, v8_value); |
| return; |
| } |
| } |
| |
| ExceptionState exception_state( |
| info.GetIsolate(), ExceptionState::kGetterContext, |
| "TestObject", "cachedAttributeRaisesExceptionGetterAnyAttribute"); |
| |
| ScriptValue cpp_value(impl->cachedAttributeRaisesExceptionGetterAnyAttribute(exception_state)); |
| |
| if (UNLIKELY(exception_state.HadException())) |
| return; |
| |
| // [CachedAttribute] |
| v8::Local<v8::Value> v8_value(cpp_value.V8Value()); |
| property_symbol.Set(holder, v8_value); |
| |
| V8SetReturnValue(info, v8_value); |
| } |
| |
| static void CachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "cachedAttributeRaisesExceptionGetterAnyAttribute"); |
| |
| // Prepare the value to be set. |
| ScriptValue cpp_value = ScriptValue(ScriptState::Current(info.GetIsolate()), v8_value); |
| |
| impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cpp_value, exception_state); |
| |
| // [CachedAttribute] |
| // Invalidate the cached value. |
| V8PrivateProperty::GetSymbol( |
| isolate, "TestObject#CachedAttributeRaisesExceptionGetterAnyAttribute") |
| .DeleteProperty(holder, v8::Undefined(isolate)); |
| } |
| |
| static void ReflectTestInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, impl->FastGetAttribute(html_names::kReflecttestinterfaceattributeAttr), impl); |
| } |
| |
| static void ReflectTestInterfaceAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "reflectTestInterfaceAttribute"); |
| |
| // Prepare the value to be set. |
| TestInterfaceImplementation* cpp_value = V8TestInterface::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'TestInterface'."); |
| return; |
| } |
| |
| impl->setAttribute(html_names::kReflecttestinterfaceattributeAttr, cpp_value); |
| } |
| |
| static void ReflectReflectedNameAttributeTestAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, impl->FastGetAttribute(html_names::kReflectedNameAttributeAttr), impl); |
| } |
| |
| static void ReflectReflectedNameAttributeTestAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "reflectReflectedNameAttributeTestAttribute"); |
| |
| // Prepare the value to be set. |
| TestInterfaceImplementation* cpp_value = V8TestInterface::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'TestInterface'."); |
| return; |
| } |
| |
| impl->setAttribute(html_names::kReflectedNameAttributeAttr, cpp_value); |
| } |
| |
| static void ReflectBooleanAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueBool(info, impl->FastHasAttribute(html_names::kReflectbooleanattributeAttr)); |
| } |
| |
| static void ReflectBooleanAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "reflectBooleanAttribute"); |
| |
| // Prepare the value to be set. |
| bool cpp_value = NativeValueTraits<IDLBoolean>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->SetBooleanAttribute(html_names::kReflectbooleanattributeAttr, cpp_value); |
| } |
| |
| static void ReflectLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->GetIntegralAttribute(html_names::kReflectlongattributeAttr)); |
| } |
| |
| static void ReflectLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "reflectLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->SetIntegralAttribute(html_names::kReflectlongattributeAttr, cpp_value); |
| } |
| |
| static void ReflectUnsignedShortAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->FastGetAttribute(html_names::kReflectunsignedshortattributeAttr)))); |
| } |
| |
| static void ReflectUnsignedShortAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "reflectUnsignedShortAttribute"); |
| |
| // Prepare the value to be set. |
| uint16_t cpp_value = NativeValueTraits<IDLUnsignedShort>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setAttribute(html_names::kReflectunsignedshortattributeAttr, cpp_value); |
| } |
| |
| static void ReflectUnsignedLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->GetIntegralAttribute(html_names::kReflectunsignedlongattributeAttr)))); |
| } |
| |
| static void ReflectUnsignedLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "reflectUnsignedLongAttribute"); |
| |
| // Prepare the value to be set. |
| uint32_t cpp_value = NativeValueTraits<IDLUnsignedLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->SetUnsignedIntegralAttribute(html_names::kReflectunsignedlongattributeAttr, cpp_value); |
| } |
| |
| static void IdAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->GetIdAttribute(), info.GetIsolate()); |
| } |
| |
| static void IdAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kIdAttr, cpp_value); |
| } |
| |
| static void NameAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->GetNameAttribute(), info.GetIsolate()); |
| } |
| |
| static void NameAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kNameAttr, cpp_value); |
| } |
| |
| static void ClassAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->GetClassAttribute(), info.GetIsolate()); |
| } |
| |
| static void ClassAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kClassAttr, cpp_value); |
| } |
| |
| static void ReflectedIdAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->GetIdAttribute(), info.GetIsolate()); |
| } |
| |
| static void ReflectedIdAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kIdAttr, cpp_value); |
| } |
| |
| static void ReflectedNameAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->GetNameAttribute(), info.GetIsolate()); |
| } |
| |
| static void ReflectedNameAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kNameAttr, cpp_value); |
| } |
| |
| static void ReflectedClassAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->GetClassAttribute(), info.GetIsolate()); |
| } |
| |
| static void ReflectedClassAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kClassAttr, cpp_value); |
| } |
| |
| static void LimitedToOnlyOneAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| String cpp_value(impl->FastGetAttribute(html_names::kLimitedtoonlyoneattributeAttr)); |
| |
| if (cpp_value.IsEmpty()) { |
| ; |
| } else if (EqualIgnoringASCIICase(cpp_value, "unique")) { |
| cpp_value = "unique"; |
| } else { |
| cpp_value = ""; |
| } |
| |
| V8SetReturnValueString(info, cpp_value, info.GetIsolate()); |
| } |
| |
| static void LimitedToOnlyOneAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kLimitedtoonlyoneattributeAttr, cpp_value); |
| } |
| |
| static void LimitedToOnlyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| String cpp_value(impl->FastGetAttribute(html_names::kLimitedtoonlyattributeAttr)); |
| |
| if (cpp_value.IsEmpty()) { |
| ; |
| } else if (EqualIgnoringASCIICase(cpp_value, "Per")) { |
| cpp_value = "Per"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "Paal")) { |
| cpp_value = "Paal"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "Espen")) { |
| cpp_value = "Espen"; |
| } else { |
| cpp_value = ""; |
| } |
| |
| V8SetReturnValueString(info, cpp_value, info.GetIsolate()); |
| } |
| |
| static void LimitedToOnlyAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kLimitedtoonlyattributeAttr, cpp_value); |
| } |
| |
| static void LimitedToOnlyOtherAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| String cpp_value(impl->FastGetAttribute(html_names::kOtherAttr)); |
| |
| if (cpp_value.IsEmpty()) { |
| ; |
| } else if (EqualIgnoringASCIICase(cpp_value, "Value1")) { |
| cpp_value = "Value1"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "Value2")) { |
| cpp_value = "Value2"; |
| } else { |
| cpp_value = ""; |
| } |
| |
| V8SetReturnValueString(info, cpp_value, info.GetIsolate()); |
| } |
| |
| static void LimitedToOnlyOtherAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kOtherAttr, cpp_value); |
| } |
| |
| static void LimitedWithMissingDefaultAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| String cpp_value(impl->FastGetAttribute(html_names::kLimitedwithmissingdefaultattributeAttr)); |
| |
| if (cpp_value.IsEmpty()) { |
| cpp_value = "rsa"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "rsa")) { |
| cpp_value = "rsa"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "dsa")) { |
| cpp_value = "dsa"; |
| } else { |
| cpp_value = ""; |
| } |
| |
| V8SetReturnValueString(info, cpp_value, info.GetIsolate()); |
| } |
| |
| static void LimitedWithMissingDefaultAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kLimitedwithmissingdefaultattributeAttr, cpp_value); |
| } |
| |
| static void LimitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| String cpp_value(impl->FastGetAttribute(html_names::kLimitedwithinvalidmissingdefaultattributeAttr)); |
| |
| if (cpp_value.IsEmpty()) { |
| cpp_value = "auto"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "ltr")) { |
| cpp_value = "ltr"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "rtl")) { |
| cpp_value = "rtl"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "auto")) { |
| cpp_value = "auto"; |
| } else { |
| cpp_value = "ltr"; |
| } |
| |
| V8SetReturnValueString(info, cpp_value, info.GetIsolate()); |
| } |
| |
| static void LimitedWithInvalidMissingDefaultAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kLimitedwithinvalidmissingdefaultattributeAttr, cpp_value); |
| } |
| |
| static void CorsSettingAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| String cpp_value(impl->FastGetAttribute(html_names::kCorssettingattributeAttr)); |
| |
| if (cpp_value.IsNull()) { |
| ; |
| } else if (cpp_value.IsEmpty()) { |
| cpp_value = "anonymous"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "anonymous")) { |
| cpp_value = "anonymous"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "use-credentials")) { |
| cpp_value = "use-credentials"; |
| } else { |
| cpp_value = "anonymous"; |
| } |
| |
| V8SetReturnValueString(info, cpp_value, info.GetIsolate()); |
| } |
| |
| static void LimitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| String cpp_value(impl->FastGetAttribute(html_names::kLimitedwithemptymissinginvalidattributeAttr)); |
| |
| if (cpp_value.IsNull()) { |
| cpp_value = "missing"; |
| } else if (cpp_value.IsEmpty()) { |
| cpp_value = "empty"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "empty")) { |
| cpp_value = "empty"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "missing")) { |
| cpp_value = "missing"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "invalid")) { |
| cpp_value = "invalid"; |
| } else if (EqualIgnoringASCIICase(cpp_value, "a-normal")) { |
| cpp_value = "a-normal"; |
| } else { |
| cpp_value = "invalid"; |
| } |
| |
| V8SetReturnValueString(info, cpp_value, info.GetIsolate()); |
| } |
| |
| static void RuntimeCallStatsCounterAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->runtimeCallStatsCounterAttribute()); |
| } |
| |
| static void RuntimeCallStatsCounterAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "RuntimeCallStatsCounterAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setRuntimeCallStatsCounterAttribute(cpp_value); |
| } |
| |
| static void RuntimeCallStatsCounterReadOnlyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, impl->runtimeCallStatsCounterReadOnlyAttribute()); |
| } |
| |
| static void ReplaceableReadonlyLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute()); |
| } |
| |
| static void ReplaceableReadonlyLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| // Prepare the value to be set. |
| |
| v8::Local<v8::String> property_name = V8AtomicString(isolate, "replaceableReadonlyLongAttribute"); |
| if (info.Holder()->CreateDataProperty(info.GetIsolate()->GetCurrentContext(), property_name, v8_value).IsNothing()) |
| return; |
| } |
| |
| static void LocationPutForwardsAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->locationPutForwards()), impl); |
| } |
| |
| static void LocationPutForwardsAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| // [PutForwards] => locationPutForwards.href |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "locationPutForwards"); |
| v8::Local<v8::Value> target; |
| if (!holder->Get(isolate->GetCurrentContext(), V8AtomicString(isolate, "locationPutForwards")) |
| .ToLocal(&target)) { |
| return; |
| } |
| if (!target->IsObject()) { |
| exception_state.ThrowTypeError("The attribute value is not an object"); |
| return; |
| } |
| bool result; |
| if (!target.As<v8::Object>()->Set( |
| isolate->GetCurrentContext(), |
| V8AtomicString(isolate, "href"), |
| v8_value).To(&result)) { |
| return; |
| } |
| if (!result) |
| return; |
| } |
| |
| static void RuntimeEnabledLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); |
| } |
| |
| static void RuntimeEnabledLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "runtimeEnabledLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setRuntimeEnabledLongAttribute(cpp_value); |
| } |
| |
| static void SetterCallWithCurrentWindowAndEnteredWindowStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->setterCallWithCurrentWindowAndEnteredWindowStringAttribute(), info.GetIsolate()); |
| } |
| |
| static void SetterCallWithCurrentWindowAndEnteredWindowStringAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setSetterCallWithCurrentWindowAndEnteredWindowStringAttribute(CurrentDOMWindow(info.GetIsolate()), EnteredDOMWindow(info.GetIsolate()), cpp_value); |
| } |
| |
| static void SetterCallWithExecutionContextStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttribute(), info.GetIsolate()); |
| } |
| |
| static void SetterCallWithExecutionContextStringAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| ExecutionContext* execution_context = ExecutionContext::ForRelevantRealm(info); |
| |
| impl->setSetterCallWithExecutionContextStringAttribute(execution_context, cpp_value); |
| } |
| |
| static void TreatNullAsEmptyStringStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(), info.GetIsolate()); |
| } |
| |
| static void TreatNullAsEmptyStringStringAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| V8StringResource<kTreatNullAsEmptyString> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setTreatNullAsEmptyStringStringAttribute(cpp_value); |
| } |
| |
| static void LegacyInterfaceTypeCheckingFloatAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValue(info, impl->legacyInterfaceTypeCheckingFloatAttribute()); |
| } |
| |
| static void LegacyInterfaceTypeCheckingFloatAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "legacyInterfaceTypeCheckingFloatAttribute"); |
| |
| // Prepare the value to be set. |
| float cpp_value = NativeValueTraits<IDLFloat>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setLegacyInterfaceTypeCheckingFloatAttribute(cpp_value); |
| } |
| |
| static void LegacyInterfaceTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->legacyInterfaceTypeCheckingTestInterfaceAttribute()), impl); |
| } |
| |
| static void LegacyInterfaceTypeCheckingTestInterfaceAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| TestInterfaceImplementation* cpp_value = V8TestInterface::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| impl->setLegacyInterfaceTypeCheckingTestInterfaceAttribute(cpp_value); |
| } |
| |
| static void LegacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->legacyInterfaceTypeCheckingTestInterfaceOrNullAttribute()), impl); |
| } |
| |
| static void LegacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| // Prepare the value to be set. |
| TestInterfaceImplementation* cpp_value = V8TestInterface::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| impl->setLegacyInterfaceTypeCheckingTestInterfaceOrNullAttribute(cpp_value); |
| } |
| |
| static void UrlStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->GetURLAttribute(html_names::kUrlstringattributeAttr), info.GetIsolate()); |
| } |
| |
| static void UrlStringAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kUrlstringattributeAttr, cpp_value); |
| } |
| |
| static void UrlStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueString(info, impl->GetURLAttribute(html_names::kReflectUrlAttributeAttr), info.GetIsolate()); |
| } |
| |
| static void UrlStringAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V0CustomElementProcessingStack::CallbackDeliveryScope delivery_scope; |
| |
| // Prepare the value to be set. |
| V8StringResource<> cpp_value = v8_value; |
| if (!cpp_value.Prepare()) |
| return; |
| |
| impl->setAttribute(html_names::kReflectUrlAttributeAttr, cpp_value); |
| } |
| |
| static void UnforgeableLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->unforgeableLongAttribute()); |
| } |
| |
| static void UnforgeableLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "unforgeableLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setUnforgeableLongAttribute(cpp_value); |
| } |
| |
| static void MeasuredLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->measuredLongAttribute()); |
| } |
| |
| static void MeasuredLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "measuredLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setMeasuredLongAttribute(cpp_value); |
| } |
| |
| static void SameObjectAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| TestInterfaceImplementation* cpp_value(WTF::GetPtr(impl->sameObjectAttribute())); |
| |
| // Keep the wrapper object for the return value alive as long as |this| |
| // object is alive in order to save creation time of the wrapper object. |
| if (cpp_value && DOMDataStore::SetReturnValue(info.GetReturnValue(), cpp_value)) |
| return; |
| v8::Local<v8::Value> v8_value(ToV8(cpp_value, holder, info.GetIsolate())); |
| V8PrivateProperty::GetSymbol( |
| info.GetIsolate(), "KeepAlive#TestObject#sameObjectAttribute") |
| .Set(holder, v8_value); |
| |
| V8SetReturnValue(info, v8_value); |
| } |
| |
| static void SaveSameObjectAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| // [SaveSameObject] |
| // If you see a compile error that |
| // V8PrivateProperty::GetSameObjectTestObjectSaveSameObjectAttribute |
| // is not defined, then you need to register your attribute at |
| // V8_PRIVATE_PROPERTY_FOR_EACH defined in V8PrivateProperty.h as |
| // X(SameObject, TestObjectSaveSameObjectAttribute) |
| auto privateSameObject = V8PrivateProperty::GetSameObjectTestObjectSaveSameObjectAttribute(info.GetIsolate()); |
| { |
| v8::Local<v8::Value> v8_value; |
| if (privateSameObject.GetOrUndefined(holder).ToLocal(&v8_value) && !v8_value->IsUndefined()) { |
| V8SetReturnValue(info, v8_value); |
| return; |
| } |
| } |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| TestInterfaceImplementation* cpp_value(WTF::GetPtr(impl->saveSameObjectAttribute())); |
| |
| // Keep the wrapper object for the return value alive as long as |this| |
| // object is alive in order to save creation time of the wrapper object. |
| if (cpp_value && DOMDataStore::SetReturnValue(info.GetReturnValue(), cpp_value)) |
| return; |
| v8::Local<v8::Value> v8_value(ToV8(cpp_value, holder, info.GetIsolate())); |
| V8PrivateProperty::GetSymbol( |
| info.GetIsolate(), "KeepAlive#TestObject#saveSameObjectAttribute") |
| .Set(holder, v8_value); |
| |
| V8SetReturnValue(info, v8_value); |
| |
| // [SaveSameObject] |
| privateSameObject.Set(holder, info.GetReturnValue().Get()); |
| } |
| |
| static void StaticSaveSameObjectAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| // [SaveSameObject] |
| // If you see a compile error that |
| // V8PrivateProperty::GetSameObjectTestObjectStaticSaveSameObjectAttribute |
| // is not defined, then you need to register your attribute at |
| // V8_PRIVATE_PROPERTY_FOR_EACH defined in V8PrivateProperty.h as |
| // X(SameObject, TestObjectStaticSaveSameObjectAttribute) |
| auto privateSameObject = V8PrivateProperty::GetSameObjectTestObjectStaticSaveSameObjectAttribute(info.GetIsolate()); |
| { |
| v8::Local<v8::Value> v8_value; |
| if (privateSameObject.GetOrUndefined(holder).ToLocal(&v8_value) && !v8_value->IsUndefined()) { |
| V8SetReturnValue(info, v8_value); |
| return; |
| } |
| } |
| |
| V8SetReturnValue(info, WTF::GetPtr(TestObject::staticSaveSameObjectAttribute()), info.GetIsolate()->GetCurrentContext()->Global()); |
| |
| // [SaveSameObject] |
| privateSameObject.Set(holder, info.GetReturnValue().Get()); |
| } |
| |
| static void UnscopableLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->unscopableLongAttribute()); |
| } |
| |
| static void UnscopableLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "unscopableLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setUnscopableLongAttribute(cpp_value); |
| } |
| |
| static void UnscopableOriginTrialEnabledLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->unscopableOriginTrialEnabledLongAttribute()); |
| } |
| |
| static void UnscopableOriginTrialEnabledLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "unscopableOriginTrialEnabledLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setUnscopableOriginTrialEnabledLongAttribute(cpp_value); |
| } |
| |
| static void UnscopableRuntimeEnabledLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueInt(info, impl->unscopableRuntimeEnabledLongAttribute()); |
| } |
| |
| static void UnscopableRuntimeEnabledLongAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "unscopableRuntimeEnabledLongAttribute"); |
| |
| // Prepare the value to be set. |
| int32_t cpp_value = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8_value, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->setUnscopableRuntimeEnabledLongAttribute(cpp_value); |
| } |
| |
| static void TestInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueFast(info, WTF::GetPtr(impl->testInterfaceAttribute()), impl); |
| } |
| |
| static void TestInterfaceAttributeAttributeSetter( |
| v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Isolate* isolate = info.GetIsolate(); |
| ALLOW_UNUSED_LOCAL(isolate); |
| |
| v8::Local<v8::Object> holder = info.Holder(); |
| ALLOW_UNUSED_LOCAL(holder); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| ExceptionState exception_state(isolate, ExceptionState::kSetterContext, "TestObject", "testInterfaceAttribute"); |
| |
| // Prepare the value to be set. |
| TestInterfaceImplementation* cpp_value = V8TestInterface::ToImplWithTypeCheck(info.GetIsolate(), v8_value); |
| |
| // Type check per: http://heycam.github.io/webidl/#es-interface |
| if (!cpp_value) { |
| exception_state.ThrowTypeError("The provided value is not of type 'TestInterface'."); |
| return; |
| } |
| |
| impl->setTestInterfaceAttribute(cpp_value); |
| } |
| |
| static void SizeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| v8::Local<v8::Object> holder = info.Holder(); |
| |
| TestObject* impl = V8TestObject::ToImpl(holder); |
| |
| V8SetReturnValueUnsigned(info, impl->size()); |
| } |
| |
| static void UnscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->unscopableVoidMethod(); |
| } |
| |
| static void UnscopableRuntimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->unscopableRuntimeEnabledVoidMethod(); |
| } |
| |
| static void VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->voidMethod(); |
| } |
| |
| static void StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject::staticVoidMethod(); |
| } |
| |
| static void DateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, v8::Date::New(info.GetIsolate()->GetCurrentContext(), impl->dateMethod())); |
| } |
| |
| static void StringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueString(info, impl->stringMethod(), info.GetIsolate()); |
| } |
| |
| static void ByteStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueString(info, impl->byteStringMethod(), info.GetIsolate()); |
| } |
| |
| static void UsvStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueString(info, impl->usvStringMethod(), info.GetIsolate()); |
| } |
| |
| static void ReadonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampMethod())); |
| } |
| |
| static void BooleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueBool(info, impl->booleanMethod()); |
| } |
| |
| static void ByteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueInt(info, impl->byteMethod()); |
| } |
| |
| static void DoubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->doubleMethod()); |
| } |
| |
| static void FloatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->floatMethod()); |
| } |
| |
| static void LongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueInt(info, impl->longMethod()); |
| } |
| |
| static void LongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, static_cast<double>(impl->longLongMethod())); |
| } |
| |
| static void OctetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueUnsigned(info, impl->octetMethod()); |
| } |
| |
| static void ShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueInt(info, impl->shortMethod()); |
| } |
| |
| static void UnsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueUnsigned(info, impl->unsignedLongMethod()); |
| } |
| |
| static void UnsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongMethod())); |
| } |
| |
| static void UnsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueUnsigned(info, impl->unsignedShortMethod()); |
| } |
| |
| static void VoidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDateArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| double date_arg; |
| date_arg = NativeValueTraits<IDLDate>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodDateArg(date_arg); |
| } |
| |
| static void VoidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodStringArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| V8StringResource<> string_arg; |
| string_arg = info[0]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| impl->voidMethodStringArg(string_arg); |
| } |
| |
| static void VoidMethodByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodByteStringArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| V8StringResource<> string_arg; |
| string_arg = NativeValueTraits<IDLByteString>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodByteStringArg(string_arg); |
| } |
| |
| static void VoidMethodUSVStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodUSVStringArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| V8StringResource<> usv_string_arg; |
| usv_string_arg = NativeValueTraits<IDLUSVString>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodUSVStringArg(usv_string_arg); |
| } |
| |
| static void VoidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDOMTimeStampArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| uint64_t dom_time_stamp_arg; |
| dom_time_stamp_arg = NativeValueTraits<IDLUnsignedLongLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodDOMTimeStampArg(dom_time_stamp_arg); |
| } |
| |
| static void VoidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodBooleanArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| bool boolean_arg; |
| boolean_arg = NativeValueTraits<IDLBoolean>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodBooleanArg(boolean_arg); |
| } |
| |
| static void VoidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodByteArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| int8_t byte_arg; |
| byte_arg = NativeValueTraits<IDLByte>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodByteArg(byte_arg); |
| } |
| |
| static void VoidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDoubleArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| double double_arg; |
| double_arg = NativeValueTraits<IDLDouble>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodDoubleArg(double_arg); |
| } |
| |
| static void VoidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodFloatArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| float float_arg; |
| float_arg = NativeValueTraits<IDLFloat>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodFloatArg(float_arg); |
| } |
| |
| static void VoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| int32_t long_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodLongArg(long_arg); |
| } |
| |
| static void VoidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodLongLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| int64_t long_long_arg; |
| long_long_arg = NativeValueTraits<IDLLongLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodLongLongArg(long_long_arg); |
| } |
| |
| static void VoidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodOctetArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| uint8_t octet_arg; |
| octet_arg = NativeValueTraits<IDLOctet>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodOctetArg(octet_arg); |
| } |
| |
| static void VoidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodShortArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| int16_t short_arg; |
| short_arg = NativeValueTraits<IDLShort>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodShortArg(short_arg); |
| } |
| |
| static void VoidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodUnsignedLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| uint32_t unsigned_long_arg; |
| unsigned_long_arg = NativeValueTraits<IDLUnsignedLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodUnsignedLongArg(unsigned_long_arg); |
| } |
| |
| static void VoidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodUnsignedLongLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| uint64_t unsigned_long_long_arg; |
| unsigned_long_long_arg = NativeValueTraits<IDLUnsignedLongLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodUnsignedLongLongArg(unsigned_long_long_arg); |
| } |
| |
| static void VoidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodUnsignedShortArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| uint16_t unsigned_short_arg; |
| unsigned_short_arg = NativeValueTraits<IDLUnsignedShort>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodUnsignedShortArg(unsigned_short_arg); |
| } |
| |
| static void TestInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->testInterfaceEmptyMethod()); |
| } |
| |
| static void VoidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| TestInterfaceEmpty* test_interface_empty_arg; |
| test_interface_empty_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!test_interface_empty_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); |
| return; |
| } |
| |
| impl->voidMethodTestInterfaceEmptyArg(test_interface_empty_arg); |
| } |
| |
| static void VoidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodLongArgTestInterfaceEmptyArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 2)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(2, info.Length())); |
| return; |
| } |
| |
| int32_t long_arg; |
| TestInterfaceEmpty* test_interface_empty_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| test_interface_empty_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[1]); |
| if (!test_interface_empty_arg) { |
| exception_state.ThrowTypeError("parameter 2 is not of type 'TestInterfaceEmpty'."); |
| return; |
| } |
| |
| impl->voidMethodLongArgTestInterfaceEmptyArg(long_arg, test_interface_empty_arg); |
| } |
| |
| static void AnyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->anyMethod().V8Value()); |
| } |
| |
| static void VoidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodEventTargetArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| EventTarget* event_target_arg; |
| event_target_arg = V8EventTarget::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!event_target_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodEventTargetArg", "TestObject", "parameter 1 is not of type 'EventTarget'.")); |
| return; |
| } |
| |
| impl->voidMethodEventTargetArg(event_target_arg); |
| } |
| |
| static void VoidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodAnyArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| ScriptValue any_arg; |
| any_arg = ScriptValue(ScriptState::Current(info.GetIsolate()), info[0]); |
| |
| impl->voidMethodAnyArg(any_arg); |
| } |
| |
| static void VoidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodAttrArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| Attr* attr_arg; |
| attr_arg = V8Attr::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!attr_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodAttrArg", "TestObject", "parameter 1 is not of type 'Attr'.")); |
| return; |
| } |
| |
| impl->voidMethodAttrArg(attr_arg); |
| } |
| |
| static void VoidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodDocumentArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| Document* document_arg; |
| document_arg = V8Document::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!document_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodDocumentArg", "TestObject", "parameter 1 is not of type 'Document'.")); |
| return; |
| } |
| |
| impl->voidMethodDocumentArg(document_arg); |
| } |
| |
| static void VoidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodDocumentTypeArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| DocumentType* document_type_arg; |
| document_type_arg = V8DocumentType::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!document_type_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodDocumentTypeArg", "TestObject", "parameter 1 is not of type 'DocumentType'.")); |
| return; |
| } |
| |
| impl->voidMethodDocumentTypeArg(document_type_arg); |
| } |
| |
| static void VoidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodElementArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| Element* element_arg; |
| element_arg = V8Element::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!element_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodElementArg", "TestObject", "parameter 1 is not of type 'Element'.")); |
| return; |
| } |
| |
| impl->voidMethodElementArg(element_arg); |
| } |
| |
| static void VoidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodNodeArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| Node* node_arg; |
| node_arg = V8Node::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!node_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodNodeArg", "TestObject", "parameter 1 is not of type 'Node'.")); |
| return; |
| } |
| |
| impl->voidMethodNodeArg(node_arg); |
| } |
| |
| static void ArrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->arrayBufferMethod()); |
| } |
| |
| static void ArrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->arrayBufferViewMethod()); |
| } |
| |
| static void ArrayBufferViewMethodRaisesExceptionMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "arrayBufferViewMethodRaisesException"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| NotShared<TestArrayBufferView> result = impl->arrayBufferViewMethodRaisesException(exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| V8SetReturnValue(info, result); |
| } |
| |
| static void Float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->float32ArrayMethod()); |
| } |
| |
| static void Int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->int32ArrayMethod()); |
| } |
| |
| static void Uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->uint8ArrayMethod()); |
| } |
| |
| static void VoidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodArrayBufferArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| TestArrayBuffer* array_buffer_arg; |
| array_buffer_arg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::ToImpl(v8::Local<v8::ArrayBuffer>::Cast(info[0])) : 0; |
| if (!array_buffer_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodArrayBufferArg", "TestObject", "parameter 1 is not of type 'ArrayBuffer'.")); |
| return; |
| } |
| |
| impl->voidMethodArrayBufferArg(array_buffer_arg); |
| } |
| |
| static void VoidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodArrayBufferOrNullArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| TestArrayBuffer* array_buffer_arg; |
| array_buffer_arg = V8ArrayBuffer::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!array_buffer_arg && !IsUndefinedOrNull(info[0])) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodArrayBufferOrNullArg", "TestObject", "parameter 1 is not of type 'ArrayBuffer'.")); |
| return; |
| } |
| |
| impl->voidMethodArrayBufferOrNullArg(array_buffer_arg); |
| } |
| |
| static void VoidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodArrayBufferViewArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| NotShared<TestArrayBufferView> array_buffer_view_arg; |
| array_buffer_view_arg = ToNotShared<NotShared<TestArrayBufferView>>(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| if (!array_buffer_view_arg) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'ArrayBufferView'."); |
| return; |
| } |
| |
| impl->voidMethodArrayBufferViewArg(array_buffer_view_arg); |
| } |
| |
| static void VoidMethodFlexibleArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodFlexibleArrayBufferViewArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| FlexibleArrayBufferView array_buffer_view_arg; |
| ToFlexibleArrayBufferView(info.GetIsolate(), info[0], array_buffer_view_arg, allocateFlexibleArrayBufferViewStorage(info[0])); |
| if (!array_buffer_view_arg) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'ArrayBufferView'."); |
| return; |
| } |
| |
| impl->voidMethodFlexibleArrayBufferViewArg(array_buffer_view_arg); |
| } |
| |
| static void VoidMethodFlexibleArrayBufferViewTypedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodFlexibleArrayBufferViewTypedArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| FlexibleFloat32ArrayView typed_array_buffer_view_arg; |
| ToFlexibleArrayBufferView(info.GetIsolate(), info[0], typed_array_buffer_view_arg, allocateFlexibleArrayBufferViewStorage(info[0])); |
| if (!typed_array_buffer_view_arg) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'Float32Array'."); |
| return; |
| } |
| |
| impl->voidMethodFlexibleArrayBufferViewTypedArg(typed_array_buffer_view_arg); |
| } |
| |
| static void VoidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodFloat32ArrayArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| NotShared<DOMFloat32Array> float32_array_arg; |
| float32_array_arg = ToNotShared<NotShared<DOMFloat32Array>>(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| if (!float32_array_arg) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'Float32Array'."); |
| return; |
| } |
| |
| impl->voidMethodFloat32ArrayArg(float32_array_arg); |
| } |
| |
| static void VoidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodInt32ArrayArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| NotShared<DOMInt32Array> int32_array_arg; |
| int32_array_arg = ToNotShared<NotShared<DOMInt32Array>>(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| if (!int32_array_arg) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'Int32Array'."); |
| return; |
| } |
| |
| impl->voidMethodInt32ArrayArg(int32_array_arg); |
| } |
| |
| static void VoidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodUint8ArrayArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| NotShared<DOMUint8Array> uint8_array_arg; |
| uint8_array_arg = ToNotShared<NotShared<DOMUint8Array>>(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| if (!uint8_array_arg) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'Uint8Array'."); |
| return; |
| } |
| |
| impl->voidMethodUint8ArrayArg(uint8_array_arg); |
| } |
| |
| static void VoidMethodAllowSharedArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodAllowSharedArrayBufferViewArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| MaybeShared<TestArrayBufferView> array_buffer_view_arg; |
| array_buffer_view_arg = ToMaybeShared<MaybeShared<TestArrayBufferView>>(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| if (!array_buffer_view_arg) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'ArrayBufferView'."); |
| return; |
| } |
| |
| impl->voidMethodAllowSharedArrayBufferViewArg(array_buffer_view_arg); |
| } |
| |
| static void VoidMethodAllowSharedUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodAllowSharedUint8ArrayArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| MaybeShared<DOMUint8Array> uint8_array_arg; |
| uint8_array_arg = ToMaybeShared<MaybeShared<DOMUint8Array>>(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| if (!uint8_array_arg) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'Uint8Array'."); |
| return; |
| } |
| |
| impl->voidMethodAllowSharedUint8ArrayArg(uint8_array_arg); |
| } |
| |
| static void LongSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, ToV8(impl->longSequenceMethod(), info.Holder(), info.GetIsolate())); |
| } |
| |
| static void StringSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, ToV8(impl->stringSequenceMethod(), info.Holder(), info.GetIsolate())); |
| } |
| |
| static void TestInterfaceEmptySequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, ToV8(impl->testInterfaceEmptySequenceMethod(), info.Holder(), info.GetIsolate())); |
| } |
| |
| static void VoidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodSequenceLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| Vector<int32_t> long_sequence_arg; |
| long_sequence_arg = NativeValueTraits<IDLSequence<IDLLong>>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodSequenceLongArg(long_sequence_arg); |
| } |
| |
| static void VoidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodSequenceStringArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| Vector<String> string_sequence_arg; |
| string_sequence_arg = NativeValueTraits<IDLSequence<IDLString>>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodSequenceStringArg(string_sequence_arg); |
| } |
| |
| static void VoidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodSequenceTestInterfaceEmptyArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| HeapVector<Member<TestInterfaceEmpty>> test_interface_empty_sequence_arg; |
| test_interface_empty_sequence_arg = NativeValueTraits<IDLSequence<TestInterfaceEmpty>>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodSequenceTestInterfaceEmptyArg(test_interface_empty_sequence_arg); |
| } |
| |
| static void VoidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodSequenceSequenceDOMStringArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| Vector<Vector<String>> string_sequence_sequence_arg; |
| string_sequence_sequence_arg = NativeValueTraits<IDLSequence<IDLSequence<IDLString>>>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodSequenceSequenceDOMStringArg(string_sequence_sequence_arg); |
| } |
| |
| static void VoidMethodNullableSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodNullableSequenceLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| base::Optional<Vector<int32_t>> long_sequence_arg; |
| if (!info[0]->IsNullOrUndefined()) { |
| long_sequence_arg = NativeValueTraits<IDLSequence<IDLLong>>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| } |
| |
| impl->voidMethodNullableSequenceLongArg(long_sequence_arg); |
| } |
| |
| static void LongFrozenArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, FreezeV8Object(ToV8(impl->longFrozenArrayMethod(), info.Holder(), info.GetIsolate()), info.GetIsolate())); |
| } |
| |
| static void VoidMethodStringFrozenArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodStringFrozenArrayMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| Vector<String> string_frozen_array_arg; |
| string_frozen_array_arg = NativeValueTraits<IDLSequence<IDLString>>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodStringFrozenArrayMethod(string_frozen_array_arg); |
| } |
| |
| static void VoidMethodTestInterfaceEmptyFrozenArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodTestInterfaceEmptyFrozenArrayMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| HeapVector<Member<TestInterfaceEmpty>> test_interface_empty_frozen_array_arg; |
| test_interface_empty_frozen_array_arg = NativeValueTraits<IDLSequence<TestInterfaceEmpty>>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodTestInterfaceEmptyFrozenArrayMethod(test_interface_empty_frozen_array_arg); |
| } |
| |
| static void NullableLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| base::Optional<int32_t> result = impl->nullableLongMethod(); |
| if (!result) |
| V8SetReturnValueNull(info); |
| else |
| V8SetReturnValueInt(info, result.value()); |
| } |
| |
| static void NullableStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueStringOrNull(info, impl->nullableStringMethod(), info.GetIsolate()); |
| } |
| |
| static void NullableTestInterfaceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->nullableTestInterfaceMethod()); |
| } |
| |
| static void NullableLongSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| base::Optional<Vector<int32_t>> result = impl->nullableLongSequenceMethod(); |
| if (!result) |
| V8SetReturnValueNull(info); |
| else |
| V8SetReturnValue(info, ToV8(result.value(), info.Holder(), info.GetIsolate())); |
| } |
| |
| static void BooleanOrDOMStringOrUnrestrictedDoubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| BooleanOrStringOrUnrestrictedDouble result; |
| impl->booleanOrDOMStringOrUnrestrictedDoubleMethod(result); |
| V8SetReturnValue(info, result); |
| } |
| |
| static void TestInterfaceOrLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceOrLong result; |
| impl->testInterfaceOrLongMethod(result); |
| V8SetReturnValue(info, result); |
| } |
| |
| static void VoidMethodDoubleOrDOMStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDoubleOrDOMStringArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| DoubleOrString arg; |
| V8DoubleOrString::ToImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodDoubleOrDOMStringArg(arg); |
| } |
| |
| static void VoidMethodDoubleOrDOMStringOrNullArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDoubleOrDOMStringOrNullArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| DoubleOrString arg; |
| V8DoubleOrString::ToImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::kNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodDoubleOrDOMStringOrNullArg(arg); |
| } |
| |
| static void VoidMethodDoubleOrNullOrDOMStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDoubleOrNullOrDOMStringArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| DoubleOrString arg; |
| V8DoubleOrString::ToImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::kNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodDoubleOrNullOrDOMStringArg(arg); |
| } |
| |
| static void VoidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| StringOrArrayBufferOrArrayBufferView arg; |
| V8StringOrArrayBufferOrArrayBufferView::ToImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg(arg); |
| } |
| |
| static void VoidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| ArrayBufferOrArrayBufferViewOrDictionary arg; |
| V8ArrayBufferOrArrayBufferViewOrDictionary::ToImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg); |
| } |
| |
| static void VoidMethodBooleanOrElementSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodBooleanOrElementSequenceArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| BooleanOrElementSequence arg; |
| V8BooleanOrElementSequence::ToImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodBooleanOrElementSequenceArg(arg); |
| } |
| |
| static void VoidMethodDoubleOrLongOrBooleanSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDoubleOrLongOrBooleanSequenceArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| DoubleOrLongOrBooleanSequence arg; |
| V8DoubleOrLongOrBooleanSequence::ToImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodDoubleOrLongOrBooleanSequenceArg(arg); |
| } |
| |
| static void VoidMethodElementSequenceOrByteStringDoubleOrStringRecordMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodElementSequenceOrByteStringDoubleOrStringRecord"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| ElementSequenceOrByteStringDoubleOrStringRecord arg; |
| V8ElementSequenceOrByteStringDoubleOrStringRecord::ToImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodElementSequenceOrByteStringDoubleOrStringRecord(arg); |
| } |
| |
| static void VoidMethodArrayOfDoubleOrDOMStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodArrayOfDoubleOrDOMStringArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| HeapVector<DoubleOrString> arg; |
| arg = ToImplArguments<DoubleOrString>(info, 0, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodArrayOfDoubleOrDOMStringArg(arg); |
| } |
| |
| static void VoidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodTestInterfaceEmptyOrNullArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| TestInterfaceEmpty* nullable_test_interface_empty_arg; |
| nullable_test_interface_empty_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!nullable_test_interface_empty_arg && !IsUndefinedOrNull(info[0])) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); |
| return; |
| } |
| |
| impl->voidMethodTestInterfaceEmptyOrNullArg(nullable_test_interface_empty_arg); |
| } |
| |
| static void VoidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodTestCallbackInterfaceArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| V8TestCallbackInterface* test_callback_interface_arg; |
| if (info[0]->IsObject()) { |
| test_callback_interface_arg = V8TestCallbackInterface::Create(info[0].As<v8::Object>()); |
| } else { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodTestCallbackInterfaceArg", "TestObject", "The callback provided as parameter 1 is not an object.")); |
| return; |
| } |
| |
| impl->voidMethodTestCallbackInterfaceArg(test_callback_interface_arg); |
| } |
| |
| static void VoidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8TestCallbackInterface* optional_test_callback_interface_arg; |
| if (info[0]->IsObject()) { |
| optional_test_callback_interface_arg = V8TestCallbackInterface::Create(info[0].As<v8::Object>()); |
| } else if (info[0]->IsUndefined()) { |
| optional_test_callback_interface_arg = nullptr; |
| } else { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodOptionalTestCallbackInterfaceArg", "TestObject", "The callback provided as parameter 1 is not an object.")); |
| return; |
| } |
| |
| impl->voidMethodOptionalTestCallbackInterfaceArg(optional_test_callback_interface_arg); |
| } |
| |
| static void VoidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodTestCallbackInterfaceOrNullArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| V8TestCallbackInterface* test_callback_interface_arg; |
| if (info[0]->IsObject()) { |
| test_callback_interface_arg = V8TestCallbackInterface::Create(info[0].As<v8::Object>()); |
| } else if (info[0]->IsNullOrUndefined()) { |
| test_callback_interface_arg = nullptr; |
| } else { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodTestCallbackInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not an object.")); |
| return; |
| } |
| |
| impl->voidMethodTestCallbackInterfaceOrNullArg(test_callback_interface_arg); |
| } |
| |
| static void TestEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueString(info, impl->testEnumMethod(), info.GetIsolate()); |
| } |
| |
| static void VoidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodTestEnumArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| V8StringResource<> test_enum_type_arg; |
| test_enum_type_arg = info[0]; |
| if (!test_enum_type_arg.Prepare()) |
| return; |
| const char* kValidTestEnumTypeArgValues[] = { |
| "", |
| "EnumValue1", |
| "EnumValue2", |
| "EnumValue3", |
| }; |
| if (!IsValidEnum(test_enum_type_arg, kValidTestEnumTypeArgValues, base::size(kValidTestEnumTypeArgValues), "TestEnum", exception_state)) { |
| return; |
| } |
| |
| impl->voidMethodTestEnumArg(test_enum_type_arg); |
| } |
| |
| static void VoidMethodTestMultipleEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodTestMultipleEnumArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 2)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(2, info.Length())); |
| return; |
| } |
| |
| V8StringResource<> test_enum_type_arg; |
| V8StringResource<> test_enum_type_arg_2; |
| test_enum_type_arg = info[0]; |
| if (!test_enum_type_arg.Prepare()) |
| return; |
| const char* kValidTestEnumTypeArgValues[] = { |
| "", |
| "EnumValue1", |
| "EnumValue2", |
| "EnumValue3", |
| }; |
| if (!IsValidEnum(test_enum_type_arg, kValidTestEnumTypeArgValues, base::size(kValidTestEnumTypeArgValues), "TestEnum", exception_state)) { |
| return; |
| } |
| |
| test_enum_type_arg_2 = info[1]; |
| if (!test_enum_type_arg_2.Prepare()) |
| return; |
| const char* kValidTestEnumTypeArg2Values[] = { |
| "", |
| "EnumValue1", |
| "EnumValue2", |
| "EnumValue3", |
| }; |
| if (!IsValidEnum(test_enum_type_arg_2, kValidTestEnumTypeArg2Values, base::size(kValidTestEnumTypeArg2Values), "TestEnum2", exception_state)) { |
| return; |
| } |
| |
| impl->voidMethodTestMultipleEnumArg(test_enum_type_arg, test_enum_type_arg_2); |
| } |
| |
| static void DictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->dictionaryMethod()); |
| } |
| |
| static void TestDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestDictionary* result = impl->testDictionaryMethod(); |
| V8SetReturnValue(info, result); |
| } |
| |
| static void NullableTestDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestDictionary* result = impl->nullableTestDictionaryMethod(); |
| V8SetReturnValue(info, result); |
| } |
| |
| static void StaticTestDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestDictionary* result = TestObject::staticTestDictionaryMethod(); |
| V8SetReturnValue(info, result, info.GetIsolate()->GetCurrentContext()->Global()); |
| } |
| |
| static void StaticNullableTestDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestDictionary* result = TestObject::staticNullableTestDictionaryMethod(); |
| V8SetReturnValue(info, result, info.GetIsolate()->GetCurrentContext()->Global()); |
| } |
| |
| static void PassPermissiveDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "passPermissiveDictionaryMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestDictionary* arg; |
| arg = NativeValueTraits<TestDictionary>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->passPermissiveDictionaryMethod(arg); |
| } |
| |
| static void NodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, ToV8(impl->nodeFilterMethod(), info.Holder(), info.GetIsolate())); |
| } |
| |
| static void PromiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "promiseMethod"); |
| ExceptionToRejectPromiseScope reject_promise_scope(info, exception_state); |
| |
| // V8DOMConfiguration::kDoNotCheckHolder |
| // Make sure that info.Holder() really points to an instance of the type. |
| if (!V8TestObject::HasInstance(info.Holder(), info.GetIsolate())) { |
| exception_state.ThrowTypeError("Illegal invocation"); |
| return; |
| } |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 3)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(3, info.Length())); |
| return; |
| } |
| |
| int32_t arg_1; |
| Dictionary arg_2; |
| V8StringResource<> arg_3; |
| Vector<String> variadic; |
| arg_1 = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| if (!info[1]->IsNullOrUndefined() && !info[1]->IsObject()) { |
| exception_state.ThrowTypeError("parameter 2 ('arg2') is not an object."); |
| return; |
| } |
| arg_2 = NativeValueTraits<Dictionary>::NativeValue(info.GetIsolate(), info[1], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| arg_3 = info[2]; |
| if (!arg_3.Prepare(exception_state)) |
| return; |
| |
| variadic = ToImplArguments<IDLString>(info, 3, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| V8SetReturnValue(info, impl->promiseMethod(arg_1, arg_2, arg_3, variadic).V8Value()); |
| } |
| |
| static void PromiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "promiseMethodWithoutExceptionState"); |
| ExceptionToRejectPromiseScope reject_promise_scope(info, exception_state); |
| |
| // V8DOMConfiguration::kDoNotCheckHolder |
| // Make sure that info.Holder() really points to an instance of the type. |
| if (!V8TestObject::HasInstance(info.Holder(), info.GetIsolate())) { |
| exception_state.ThrowTypeError("Illegal invocation"); |
| return; |
| } |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| Dictionary arg_1; |
| if (!info[0]->IsNullOrUndefined() && !info[0]->IsObject()) { |
| exception_state.ThrowTypeError("parameter 1 ('arg1') is not an object."); |
| return; |
| } |
| arg_1 = NativeValueTraits<Dictionary>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| V8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg_1).V8Value()); |
| } |
| |
| static void SerializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, V8Deserialize(info.GetIsolate(), impl->serializedScriptValueMethod().get())); |
| } |
| |
| static void XPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->xPathNSResolverMethod()); |
| } |
| |
| static void VoidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDictionaryArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| Dictionary dictionary_arg; |
| if (!info[0]->IsNullOrUndefined() && !info[0]->IsObject()) { |
| exception_state.ThrowTypeError("parameter 1 ('dictionaryArg') is not an object."); |
| return; |
| } |
| dictionary_arg = NativeValueTraits<Dictionary>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodDictionaryArg(dictionary_arg); |
| } |
| |
| static void VoidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodNodeFilterArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| V8NodeFilter* node_filter_arg; |
| if (info[0]->IsObject()) { |
| node_filter_arg = V8NodeFilter::Create(info[0].As<v8::Object>()); |
| } else { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodNodeFilterArg", "TestObject", "The callback provided as parameter 1 is not an object.")); |
| return; |
| } |
| |
| impl->voidMethodNodeFilterArg(node_filter_arg); |
| } |
| |
| static void VoidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodPromiseArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| ScriptPromise promise_arg; |
| promise_arg = ScriptPromise::Cast(ScriptState::Current(info.GetIsolate()), info[0]); |
| if (!promise_arg.IsUndefinedOrNull() && !promise_arg.IsObject()) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodPromiseArg", "TestObject", "parameter 1 ('promiseArg') is not an object.")); |
| return; |
| } |
| |
| impl->voidMethodPromiseArg(promise_arg); |
| } |
| |
| static void VoidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodSerializedScriptValueArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| scoped_refptr<SerializedScriptValue> serialized_script_value_arg; |
| serialized_script_value_arg = NativeValueTraits<SerializedScriptValue>::NativeValue(info.GetIsolate(), info[0], SerializedScriptValue::SerializeOptions(SerializedScriptValue::kNotForStorage), exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodSerializedScriptValueArg(std::move(serialized_script_value_arg)); |
| } |
| |
| static void VoidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodXPathNSResolverArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| XPathNSResolver* x_path_ns_resolver_arg; |
| x_path_ns_resolver_arg = ToXPathNSResolver(ScriptState::Current(info.GetIsolate()), info[0]); |
| if (!x_path_ns_resolver_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodXPathNSResolverArg", "TestObject", "parameter 1 is not of type 'XPathNSResolver'.")); |
| return; |
| } |
| |
| impl->voidMethodXPathNSResolverArg(x_path_ns_resolver_arg); |
| } |
| |
| static void VoidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDictionarySequenceArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| Vector<Dictionary> dictionary_sequence_arg; |
| dictionary_sequence_arg = NativeValueTraits<IDLSequence<Dictionary>>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodDictionarySequenceArg(dictionary_sequence_arg); |
| } |
| |
| static void VoidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodStringArgLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 2)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(2, info.Length())); |
| return; |
| } |
| |
| V8StringResource<> string_arg; |
| int32_t long_arg; |
| string_arg = info[0]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[1], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodStringArgLongArg(string_arg, long_arg); |
| } |
| |
| static void VoidMethodByteStringOrNullOptionalUSVStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodByteStringOrNullOptionalUSVStringArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| V8StringResource<kTreatNullAndUndefinedAsNullString> byte_string_arg; |
| V8StringResource<> usv_string_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| byte_string_arg = NativeValueTraits<IDLByteStringOrNull>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| if (UNLIKELY(num_args_passed <= 1)) { |
| impl->voidMethodByteStringOrNullOptionalUSVStringArg(byte_string_arg); |
| return; |
| } |
| usv_string_arg = NativeValueTraits<IDLUSVString>::NativeValue(info.GetIsolate(), info[1], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodByteStringOrNullOptionalUSVStringArg(byte_string_arg, usv_string_arg); |
| } |
| |
| static void VoidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<> optional_string_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| if (UNLIKELY(num_args_passed <= 0)) { |
| impl->voidMethodOptionalStringArg(); |
| return; |
| } |
| optional_string_arg = info[0]; |
| if (!optional_string_arg.Prepare()) |
| return; |
| |
| impl->voidMethodOptionalStringArg(optional_string_arg); |
| } |
| |
| static void VoidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceEmpty* optional_test_interface_empty_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| if (UNLIKELY(num_args_passed <= 0)) { |
| impl->voidMethodOptionalTestInterfaceEmptyArg(); |
| return; |
| } |
| optional_test_interface_empty_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!optional_test_interface_empty_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodOptionalTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); |
| return; |
| } |
| |
| impl->voidMethodOptionalTestInterfaceEmptyArg(optional_test_interface_empty_arg); |
| } |
| |
| static void VoidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodOptionalLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t optional_long_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| if (UNLIKELY(num_args_passed <= 0)) { |
| impl->voidMethodOptionalLongArg(); |
| return; |
| } |
| optional_long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodOptionalLongArg(optional_long_arg); |
| } |
| |
| static void StringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "stringMethodOptionalLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t optional_long_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| if (UNLIKELY(num_args_passed <= 0)) { |
| V8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.GetIsolate()); |
| return; |
| } |
| optional_long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| V8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optional_long_arg), info.GetIsolate()); |
| } |
| |
| static void TestInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "testInterfaceEmptyMethodOptionalLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t optional_long_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| if (UNLIKELY(num_args_passed <= 0)) { |
| V8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg()); |
| return; |
| } |
| optional_long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| V8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optional_long_arg)); |
| } |
| |
| static void LongMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "longMethodOptionalLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t optional_long_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| if (UNLIKELY(num_args_passed <= 0)) { |
| V8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); |
| return; |
| } |
| optional_long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| V8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optional_long_arg)); |
| } |
| |
| static void VoidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodLongArgOptionalLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| int32_t long_arg; |
| int32_t optional_long_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| if (UNLIKELY(num_args_passed <= 1)) { |
| impl->voidMethodLongArgOptionalLongArg(long_arg); |
| return; |
| } |
| optional_long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[1], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodLongArgOptionalLongArg(long_arg, optional_long_arg); |
| } |
| |
| static void VoidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodLongArgOptionalLongArgOptionalLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| int32_t long_arg; |
| int32_t optional_long_arg_1; |
| int32_t optional_long_arg_2; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| if (UNLIKELY(num_args_passed <= 1)) { |
| impl->voidMethodLongArgOptionalLongArgOptionalLongArg(long_arg); |
| return; |
| } |
| optional_long_arg_1 = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[1], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| if (UNLIKELY(num_args_passed <= 2)) { |
| impl->voidMethodLongArgOptionalLongArgOptionalLongArg(long_arg, optional_long_arg_1); |
| return; |
| } |
| optional_long_arg_2 = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[2], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodLongArgOptionalLongArgOptionalLongArg(long_arg, optional_long_arg_1, optional_long_arg_2); |
| } |
| |
| static void VoidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodLongArgOptionalTestInterfaceEmptyArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| int32_t long_arg; |
| TestInterfaceEmpty* optional_test_interface_empty; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| if (UNLIKELY(num_args_passed <= 1)) { |
| impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(long_arg); |
| return; |
| } |
| optional_test_interface_empty = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[1]); |
| if (!optional_test_interface_empty) { |
| exception_state.ThrowTypeError("parameter 2 is not of type 'TestInterfaceEmpty'."); |
| return; |
| } |
| |
| impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(long_arg, optional_test_interface_empty); |
| } |
| |
| static void VoidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodTestInterfaceEmptyArgOptionalLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| TestInterfaceEmpty* optional_test_interface_empty; |
| int32_t long_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| optional_test_interface_empty = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!optional_test_interface_empty) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'TestInterfaceEmpty'."); |
| return; |
| } |
| |
| if (UNLIKELY(num_args_passed <= 1)) { |
| impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optional_test_interface_empty); |
| return; |
| } |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[1], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optional_test_interface_empty, long_arg); |
| } |
| |
| static void VoidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodOptionalDictionaryArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| Dictionary optional_dictionary_arg; |
| if (!info[0]->IsNullOrUndefined() && !info[0]->IsObject()) { |
| exception_state.ThrowTypeError("parameter 1 ('optionalDictionaryArg') is not an object."); |
| return; |
| } |
| optional_dictionary_arg = NativeValueTraits<Dictionary>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodOptionalDictionaryArg(optional_dictionary_arg); |
| } |
| |
| static void VoidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDefaultByteStringArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<> default_byte_string_arg; |
| if (!info[0]->IsUndefined()) { |
| default_byte_string_arg = NativeValueTraits<IDLByteString>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| } else { |
| default_byte_string_arg = "foo"; |
| } |
| |
| impl->voidMethodDefaultByteStringArg(default_byte_string_arg); |
| } |
| |
| static void VoidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<> default_string_arg; |
| if (!info[0]->IsUndefined()) { |
| default_string_arg = info[0]; |
| if (!default_string_arg.Prepare()) |
| return; |
| } else { |
| default_string_arg = "foo"; |
| } |
| |
| impl->voidMethodDefaultStringArg(default_string_arg); |
| } |
| |
| static void VoidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDefaultIntegerArgs"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t default_long_arg; |
| int64_t default_long_long_arg; |
| uint32_t default_unsigned_arg; |
| if (!info[0]->IsUndefined()) { |
| default_long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| } else { |
| default_long_arg = 10; |
| } |
| if (!info[1]->IsUndefined()) { |
| default_long_long_arg = NativeValueTraits<IDLLongLong>::NativeValue(info.GetIsolate(), info[1], exception_state); |
| if (exception_state.HadException()) |
| return; |
| } else { |
| default_long_long_arg = -10; |
| } |
| if (!info[2]->IsUndefined()) { |
| default_unsigned_arg = NativeValueTraits<IDLUnsignedLong>::NativeValue(info.GetIsolate(), info[2], exception_state); |
| if (exception_state.HadException()) |
| return; |
| } else { |
| default_unsigned_arg = 4294967295u; |
| } |
| |
| impl->voidMethodDefaultIntegerArgs(default_long_arg, default_long_long_arg, default_unsigned_arg); |
| } |
| |
| static void VoidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDefaultDoubleArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| double default_double_arg; |
| if (!info[0]->IsUndefined()) { |
| default_double_arg = NativeValueTraits<IDLDouble>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| } else { |
| default_double_arg = 0.5; |
| } |
| |
| impl->voidMethodDefaultDoubleArg(default_double_arg); |
| } |
| |
| static void VoidMethodDefaultTrueBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDefaultTrueBooleanArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| bool default_boolean_arg; |
| if (!info[0]->IsUndefined()) { |
| default_boolean_arg = NativeValueTraits<IDLBoolean>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| } else { |
| default_boolean_arg = true; |
| } |
| |
| impl->voidMethodDefaultTrueBooleanArg(default_boolean_arg); |
| } |
| |
| static void VoidMethodDefaultFalseBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDefaultFalseBooleanArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| bool default_boolean_arg; |
| if (!info[0]->IsUndefined()) { |
| default_boolean_arg = NativeValueTraits<IDLBoolean>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| } else { |
| default_boolean_arg = false; |
| } |
| |
| impl->voidMethodDefaultFalseBooleanArg(default_boolean_arg); |
| } |
| |
| static void VoidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDefaultNullableByteStringArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<kTreatNullAndUndefinedAsNullString> default_string_arg; |
| if (!info[0]->IsUndefined()) { |
| default_string_arg = NativeValueTraits<IDLByteStringOrNull>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| } else { |
| default_string_arg = nullptr; |
| } |
| |
| impl->voidMethodDefaultNullableByteStringArg(default_string_arg); |
| } |
| |
| static void VoidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<kTreatNullAndUndefinedAsNullString> default_string_arg; |
| if (!info[0]->IsUndefined()) { |
| default_string_arg = info[0]; |
| if (!default_string_arg.Prepare()) |
| return; |
| } else { |
| default_string_arg = nullptr; |
| } |
| |
| impl->voidMethodDefaultNullableStringArg(default_string_arg); |
| } |
| |
| static void VoidMethodDefaultNullableTestInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceImplementation* default_test_interface_arg; |
| if (!info[0]->IsUndefined()) { |
| default_test_interface_arg = V8TestInterface::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!default_test_interface_arg && !IsUndefinedOrNull(info[0])) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodDefaultNullableTestInterfaceArg", "TestObject", "parameter 1 is not of type 'TestInterface'.")); |
| return; |
| } |
| } else { |
| default_test_interface_arg = nullptr; |
| } |
| |
| impl->voidMethodDefaultNullableTestInterfaceArg(default_test_interface_arg); |
| } |
| |
| static void VoidMethodDefaultDoubleOrStringArgsMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDefaultDoubleOrStringArgs"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| DoubleOrString default_long_arg; |
| DoubleOrString default_string_arg; |
| DoubleOrString default_null_arg; |
| if (!info[0]->IsUndefined()) { |
| V8DoubleOrString::ToImpl(info.GetIsolate(), info[0], default_long_arg, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| } else { |
| default_long_arg.SetDouble(10); |
| } |
| if (!info[1]->IsUndefined()) { |
| V8DoubleOrString::ToImpl(info.GetIsolate(), info[1], default_string_arg, UnionTypeConversionMode::kNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| } else { |
| default_string_arg.SetString("foo"); |
| } |
| if (!info[2]->IsUndefined()) { |
| V8DoubleOrString::ToImpl(info.GetIsolate(), info[2], default_null_arg, UnionTypeConversionMode::kNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| } else { |
| /* null default value */; |
| } |
| |
| impl->voidMethodDefaultDoubleOrStringArgs(default_long_arg, default_string_arg, default_null_arg); |
| } |
| |
| static void VoidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDefaultStringSequenceArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| Vector<String> default_string_sequence_arg; |
| if (!info[0]->IsUndefined()) { |
| default_string_sequence_arg = NativeValueTraits<IDLSequence<IDLString>>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| } else { |
| /* Nothing to do */; |
| } |
| |
| impl->voidMethodDefaultStringSequenceArg(default_string_sequence_arg); |
| } |
| |
| static void VoidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodVariadicStringArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| Vector<String> variadic_string_args; |
| variadic_string_args = ToImplArguments<IDLString>(info, 0, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodVariadicStringArg(variadic_string_args); |
| } |
| |
| static void VoidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodStringArgVariadicStringArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| V8StringResource<> string_arg; |
| Vector<String> variadic_string_args; |
| string_arg = info[0]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| variadic_string_args = ToImplArguments<IDLString>(info, 1, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodStringArgVariadicStringArg(string_arg, variadic_string_args); |
| } |
| |
| static void VoidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodVariadicTestInterfaceEmptyArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| HeapVector<Member<TestInterfaceEmpty>> variadic_test_interface_empty_args; |
| for (int i = 0; i < info.Length(); ++i) { |
| if (!V8TestInterfaceEmpty::HasInstance(info[i], info.GetIsolate())) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'TestInterfaceEmpty'."); |
| return; |
| } |
| variadic_test_interface_empty_args.push_back(V8TestInterfaceEmpty::ToImpl(v8::Local<v8::Object>::Cast(info[i]))); |
| } |
| |
| impl->voidMethodVariadicTestInterfaceEmptyArg(variadic_test_interface_empty_args); |
| } |
| |
| static void VoidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| TestInterfaceEmpty* test_interface_empty_arg; |
| HeapVector<Member<TestInterfaceEmpty>> variadic_test_interface_empty_args; |
| test_interface_empty_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!test_interface_empty_arg) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'TestInterfaceEmpty'."); |
| return; |
| } |
| |
| for (int i = 1; i < info.Length(); ++i) { |
| if (!V8TestInterfaceEmpty::HasInstance(info[i], info.GetIsolate())) { |
| exception_state.ThrowTypeError("parameter 2 is not of type 'TestInterfaceEmpty'."); |
| return; |
| } |
| variadic_test_interface_empty_args.push_back(V8TestInterfaceEmpty::ToImpl(v8::Local<v8::Object>::Cast(info[i]))); |
| } |
| |
| impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(test_interface_empty_arg, variadic_test_interface_empty_args); |
| } |
| |
| static void OverloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodA"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodA(long_arg); |
| } |
| |
| static void OverloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodA"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg_1; |
| int32_t long_arg_2; |
| long_arg_1 = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| long_arg_2 = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[1], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodA(long_arg_1, long_arg_2); |
| } |
| |
| static void OverloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(2, info.Length())) { |
| case 1: |
| if (true) { |
| OverloadedMethodA1Method(info); |
| return; |
| } |
| break; |
| case 2: |
| if (true) { |
| OverloadedMethodA2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodA"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodB"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodB(long_arg); |
| } |
| |
| static void OverloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodB"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<> string_arg; |
| int32_t long_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| string_arg = info[0]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| if (UNLIKELY(num_args_passed <= 1)) { |
| impl->overloadedMethodB(string_arg); |
| return; |
| } |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[1], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodB(string_arg, long_arg); |
| } |
| |
| static void OverloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(2, info.Length())) { |
| case 1: |
| if (info[0]->IsNumber()) { |
| OverloadedMethodB1Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodB2Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodB1Method(info); |
| return; |
| } |
| break; |
| case 2: |
| if (true) { |
| OverloadedMethodB2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodB"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodC"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodC(long_arg); |
| } |
| |
| static void OverloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceEmpty* test_interface_empty_arg; |
| test_interface_empty_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!test_interface_empty_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("overloadedMethodC", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); |
| return; |
| } |
| |
| impl->overloadedMethodC(test_interface_empty_arg); |
| } |
| |
| static void OverloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 1: |
| if (V8TestInterfaceEmpty::HasInstance(info[0], info.GetIsolate())) { |
| OverloadedMethodC2Method(info); |
| return; |
| } |
| if (info[0]->IsNumber()) { |
| OverloadedMethodC1Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodC1Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodC"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodD"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodD(long_arg); |
| } |
| |
| static void OverloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodD"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| Vector<int32_t> long_array_sequence; |
| long_array_sequence = NativeValueTraits<IDLSequence<IDLLong>>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodD(long_array_sequence); |
| } |
| |
| static void OverloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 1: |
| if (info[0]->IsArray()) { |
| OverloadedMethodD2Method(info); |
| return; |
| } |
| { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, |
| "TestObject", "overloadedMethodD"); |
| if (HasCallableIteratorSymbol(info.GetIsolate(), info[0], exception_state)) { |
| OverloadedMethodD2Method(info); |
| return; |
| } |
| if (exception_state.HadException()) { |
| exception_state.RethrowV8Exception(exception_state.GetException()); |
| return; |
| } |
| } |
| if (info[0]->IsNumber()) { |
| OverloadedMethodD1Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodD1Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodD"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodE"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodE(long_arg); |
| } |
| |
| static void OverloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceEmpty* test_interface_empty_or_null_arg; |
| test_interface_empty_or_null_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!test_interface_empty_or_null_arg && !IsUndefinedOrNull(info[0])) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("overloadedMethodE", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); |
| return; |
| } |
| |
| impl->overloadedMethodE(test_interface_empty_or_null_arg); |
| } |
| |
| static void OverloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 1: |
| if (IsUndefinedOrNull(info[0])) { |
| OverloadedMethodE2Method(info); |
| return; |
| } |
| if (V8TestInterfaceEmpty::HasInstance(info[0], info.GetIsolate())) { |
| OverloadedMethodE2Method(info); |
| return; |
| } |
| if (info[0]->IsNumber()) { |
| OverloadedMethodE1Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodE1Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodE"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<> string_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| if (UNLIKELY(num_args_passed <= 0)) { |
| impl->overloadedMethodF(); |
| return; |
| } |
| string_arg = info[0]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| impl->overloadedMethodF(string_arg); |
| } |
| |
| static void OverloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodF"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| double double_arg; |
| double_arg = NativeValueTraits<IDLDouble>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodF(double_arg); |
| } |
| |
| static void OverloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| OverloadedMethodF1Method(info); |
| return; |
| } |
| break; |
| case 1: |
| if (info[0]->IsUndefined()) { |
| OverloadedMethodF1Method(info); |
| return; |
| } |
| if (info[0]->IsNumber()) { |
| OverloadedMethodF2Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodF1Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodF2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodF"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodG"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodG(long_arg); |
| } |
| |
| static void OverloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceEmpty* test_interface_empty_or_null_arg; |
| if (!info[0]->IsUndefined()) { |
| test_interface_empty_or_null_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!test_interface_empty_or_null_arg && !IsUndefinedOrNull(info[0])) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("overloadedMethodG", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); |
| return; |
| } |
| } else { |
| test_interface_empty_or_null_arg = nullptr; |
| } |
| |
| impl->overloadedMethodG(test_interface_empty_or_null_arg); |
| } |
| |
| static void OverloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| OverloadedMethodG2Method(info); |
| return; |
| } |
| break; |
| case 1: |
| if (info[0]->IsUndefined()) { |
| OverloadedMethodG2Method(info); |
| return; |
| } |
| if (IsUndefinedOrNull(info[0])) { |
| OverloadedMethodG2Method(info); |
| return; |
| } |
| if (V8TestInterfaceEmpty::HasInstance(info[0], info.GetIsolate())) { |
| OverloadedMethodG2Method(info); |
| return; |
| } |
| if (info[0]->IsNumber()) { |
| OverloadedMethodG1Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodG1Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodG"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceImplementation* test_interface_arg; |
| test_interface_arg = V8TestInterface::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!test_interface_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("overloadedMethodH", "TestObject", "parameter 1 is not of type 'TestInterface'.")); |
| return; |
| } |
| |
| impl->overloadedMethodH(test_interface_arg); |
| } |
| |
| static void OverloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceEmpty* test_interface_empty_arg; |
| test_interface_empty_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!test_interface_empty_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("overloadedMethodH", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); |
| return; |
| } |
| |
| impl->overloadedMethodH(test_interface_empty_arg); |
| } |
| |
| static void OverloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 1: |
| if (V8TestInterface::HasInstance(info[0], info.GetIsolate())) { |
| OverloadedMethodH1Method(info); |
| return; |
| } |
| if (V8TestInterfaceEmpty::HasInstance(info[0], info.GetIsolate())) { |
| OverloadedMethodH2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodH"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<> string_arg; |
| string_arg = info[0]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| impl->overloadedMethodI(string_arg); |
| } |
| |
| static void OverloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodI"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| double double_arg; |
| double_arg = NativeValueTraits<IDLDouble>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodI(double_arg); |
| } |
| |
| static void OverloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 1: |
| if (info[0]->IsNumber()) { |
| OverloadedMethodI2Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodI1Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodI2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodI"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<> string_arg; |
| string_arg = info[0]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| impl->overloadedMethodJ(string_arg); |
| } |
| |
| static void OverloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodJ"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestDictionary* test_dictionary_arg; |
| if (!info[0]->IsNullOrUndefined() && !info[0]->IsObject()) { |
| exception_state.ThrowTypeError("parameter 1 ('testDictionaryArg') is not an object."); |
| return; |
| } |
| test_dictionary_arg = NativeValueTraits<TestDictionary>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodJ(test_dictionary_arg); |
| } |
| |
| static void OverloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 1: |
| if (IsUndefinedOrNull(info[0])) { |
| OverloadedMethodJ2Method(info); |
| return; |
| } |
| if (info[0]->IsObject()) { |
| OverloadedMethodJ2Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodJ1Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodJ"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedMethodK1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptValue function_arg; |
| if (info[0]->IsFunction()) { |
| function_arg = ScriptValue(ScriptState::Current(info.GetIsolate()), info[0]); |
| } else { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("overloadedMethodK", "TestObject", "The callback provided as parameter 1 is not a function.")); |
| return; |
| } |
| |
| impl->overloadedMethodK(function_arg); |
| } |
| |
| static void OverloadedMethodK2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<> string_arg; |
| string_arg = info[0]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| impl->overloadedMethodK(string_arg); |
| } |
| |
| static void OverloadedMethodKMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 1: |
| if (info[0]->IsFunction()) { |
| OverloadedMethodK1Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodK2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodK"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodL"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg; |
| Vector<ScriptValue> rest_args; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| rest_args = ToImplArguments<ScriptValue>(info, 1, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodL(long_arg, rest_args); |
| } |
| |
| static void OverloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodL"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<> string_arg; |
| Vector<ScriptValue> rest_args; |
| string_arg = info[0]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| rest_args = ToImplArguments<ScriptValue>(info, 1, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedMethodL(string_arg, rest_args); |
| } |
| |
| static void OverloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(2, info.Length())) { |
| case 1: |
| if (info[0]->IsNumber()) { |
| OverloadedMethodL1Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodL2Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodL1Method(info); |
| return; |
| } |
| break; |
| case 2: |
| if (info[0]->IsNumber()) { |
| OverloadedMethodL1Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodL2Method(info); |
| return; |
| } |
| if (true) { |
| OverloadedMethodL1Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodL"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedMethodN1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceImplementation* test_interface_arg; |
| test_interface_arg = V8TestInterface::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!test_interface_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("overloadedMethodN", "TestObject", "parameter 1 is not of type 'TestInterface'.")); |
| return; |
| } |
| |
| impl->overloadedMethodN(test_interface_arg); |
| } |
| |
| static void OverloadedMethodN2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8TestCallbackInterface* test_callback_interface_arg; |
| if (info[0]->IsObject()) { |
| test_callback_interface_arg = V8TestCallbackInterface::Create(info[0].As<v8::Object>()); |
| } else { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("overloadedMethodN", "TestObject", "The callback provided as parameter 1 is not an object.")); |
| return; |
| } |
| |
| impl->overloadedMethodN(test_callback_interface_arg); |
| } |
| |
| static void OverloadedMethodNMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 1: |
| if (V8TestInterface::HasInstance(info[0], info.GetIsolate())) { |
| OverloadedMethodN1Method(info); |
| return; |
| } |
| if (info[0]->IsObject()) { |
| OverloadedMethodN2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedMethodN"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void PromiseOverloadMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "promiseOverloadMethod"); |
| ExceptionToRejectPromiseScope reject_promise_scope(info, exception_state); |
| |
| // V8DOMConfiguration::kDoNotCheckHolder |
| // Make sure that info.Holder() really points to an instance of the type. |
| if (!V8TestObject::HasInstance(info.Holder(), info.GetIsolate())) { |
| exception_state.ThrowTypeError("Illegal invocation"); |
| return; |
| } |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValue(info, impl->promiseOverloadMethod().V8Value()); |
| } |
| |
| static void PromiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "promiseOverloadMethod"); |
| ExceptionToRejectPromiseScope reject_promise_scope(info, exception_state); |
| |
| // V8DOMConfiguration::kDoNotCheckHolder |
| // Make sure that info.Holder() really points to an instance of the type. |
| if (!V8TestObject::HasInstance(info.Holder(), info.GetIsolate())) { |
| exception_state.ThrowTypeError("Illegal invocation"); |
| return; |
| } |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| DOMWindow* arg_1; |
| double arg_2; |
| arg_1 = ToDOMWindow(info.GetIsolate(), info[0]); |
| if (!arg_1) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'Window'."); |
| return; |
| } |
| |
| arg_2 = NativeValueTraits<IDLDouble>::NativeValue(info.GetIsolate(), info[1], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| V8SetReturnValue(info, impl->promiseOverloadMethod(arg_1, arg_2).V8Value()); |
| } |
| |
| static void PromiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "promiseOverloadMethod"); |
| ExceptionToRejectPromiseScope reject_promise_scope(info, exception_state); |
| |
| // V8DOMConfiguration::kDoNotCheckHolder |
| // Make sure that info.Holder() really points to an instance of the type. |
| if (!V8TestObject::HasInstance(info.Holder(), info.GetIsolate())) { |
| exception_state.ThrowTypeError("Illegal invocation"); |
| return; |
| } |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| Document* arg_1; |
| double arg_2; |
| arg_1 = V8Document::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!arg_1) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'Document'."); |
| return; |
| } |
| |
| arg_2 = NativeValueTraits<IDLDouble>::NativeValue(info.GetIsolate(), info[1], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| V8SetReturnValue(info, impl->promiseOverloadMethod(arg_1, arg_2).V8Value()); |
| } |
| |
| static void PromiseOverloadMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(2, info.Length())) { |
| case 0: |
| if (true) { |
| PromiseOverloadMethod1Method(info); |
| return; |
| } |
| break; |
| case 2: |
| if (V8Window::HasInstance(info[0], info.GetIsolate())) { |
| PromiseOverloadMethod2Method(info); |
| return; |
| } |
| if (V8Document::HasInstance(info[0], info.GetIsolate())) { |
| PromiseOverloadMethod3Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "promiseOverloadMethod"); |
| ExceptionToRejectPromiseScope reject_promise_scope(info, exception_state); |
| if (is_arity_error) { |
| if (info.Length() >= 0) { |
| exception_state.ThrowTypeError(ExceptionMessages::InvalidArity("[0, 2]", info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->overloadedPerWorldBindingsMethod(); |
| } |
| |
| static void OverloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->overloadedPerWorldBindingsMethod(); |
| } |
| |
| static void OverloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedPerWorldBindingsMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedPerWorldBindingsMethod(long_arg); |
| } |
| |
| static void OverloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| OverloadedPerWorldBindingsMethod1Method(info); |
| return; |
| } |
| break; |
| case 1: |
| if (true) { |
| OverloadedPerWorldBindingsMethod2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedPerWorldBindingsMethod"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedPerWorldBindingsMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->overloadedPerWorldBindingsMethod(long_arg); |
| } |
| |
| static void OverloadedPerWorldBindingsMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| OverloadedPerWorldBindingsMethod1MethodForMainWorld(info); |
| return; |
| } |
| break; |
| case 1: |
| if (true) { |
| OverloadedPerWorldBindingsMethod2MethodForMainWorld(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedPerWorldBindingsMethod"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void OverloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedStaticMethod"); |
| |
| int32_t long_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| TestObject::overloadedStaticMethod(long_arg); |
| } |
| |
| static void OverloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedStaticMethod"); |
| |
| int32_t long_arg_1; |
| int32_t long_arg_2; |
| long_arg_1 = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| long_arg_2 = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[1], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| TestObject::overloadedStaticMethod(long_arg_1, long_arg_2); |
| } |
| |
| static void OverloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(2, info.Length())) { |
| case 1: |
| if (true) { |
| OverloadedStaticMethod1Method(info); |
| return; |
| } |
| break; |
| case 2: |
| if (true) { |
| OverloadedStaticMethod2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "overloadedStaticMethod"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void ItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "item"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| uint32_t index; |
| index = NativeValueTraits<IDLUnsignedLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| ScriptValue result = impl->item(script_state, index); |
| V8SetReturnValue(info, result.V8Value()); |
| } |
| |
| static void SetItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "setItem"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| if (UNLIKELY(info.Length() < 2)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(2, info.Length())); |
| return; |
| } |
| |
| uint32_t index; |
| V8StringResource<> value; |
| index = NativeValueTraits<IDLUnsignedLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| value = info[1]; |
| if (!value.Prepare()) |
| return; |
| |
| String result = impl->setItem(script_state, index, value); |
| V8SetReturnValueString(info, result, info.GetIsolate()); |
| } |
| |
| static void VoidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodClampUnsignedShortArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| uint16_t clamp_unsigned_short_arg; |
| clamp_unsigned_short_arg = NativeValueTraits<IDLUnsignedShortClamp>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodClampUnsignedShortArg(clamp_unsigned_short_arg); |
| } |
| |
| static void VoidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodClampUnsignedLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| uint32_t clamp_unsigned_long_arg; |
| clamp_unsigned_long_arg = NativeValueTraits<IDLUnsignedLongClamp>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodClampUnsignedLongArg(clamp_unsigned_long_arg); |
| } |
| |
| static void VoidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceEmpty* default_undefined_test_interface_empty_arg; |
| default_undefined_test_interface_empty_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!default_undefined_test_interface_empty_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodDefaultUndefinedTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); |
| return; |
| } |
| |
| impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(default_undefined_test_interface_empty_arg); |
| } |
| |
| static void VoidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodDefaultUndefinedLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t default_undefined_long_arg; |
| default_undefined_long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodDefaultUndefinedLongArg(default_undefined_long_arg); |
| } |
| |
| static void VoidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<> default_undefined_string_arg; |
| default_undefined_string_arg = info[0]; |
| if (!default_undefined_string_arg.Prepare()) |
| return; |
| |
| impl->voidMethodDefaultUndefinedStringArg(default_undefined_string_arg); |
| } |
| |
| static void VoidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "voidMethodEnforceRangeLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| int32_t enforce_range_long_arg; |
| enforce_range_long_arg = NativeValueTraits<IDLLongEnforceRange>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->voidMethodEnforceRangeLongArg(enforce_range_long_arg); |
| } |
| |
| static void VoidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("voidMethodTreatNullAsEmptyStringStringArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| V8StringResource<kTreatNullAsEmptyString> treat_null_as_empty_string_string_arg; |
| treat_null_as_empty_string_string_arg = info[0]; |
| if (!treat_null_as_empty_string_string_arg.Prepare()) |
| return; |
| |
| impl->voidMethodTreatNullAsEmptyStringStringArg(treat_null_as_empty_string_string_arg); |
| } |
| |
| static void ActivityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->activityLoggingAccessForAllWorldsMethod(); |
| } |
| |
| static void CallWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ExecutionContext* execution_context = ExecutionContext::ForRelevantRealm(info); |
| impl->callWithExecutionContextVoidMethod(execution_context); |
| } |
| |
| static void CallWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| impl->callWithScriptStateVoidMethod(script_state); |
| } |
| |
| static void CallWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| int32_t result = impl->callWithScriptStateLongMethod(script_state); |
| V8SetReturnValueInt(info, result); |
| } |
| |
| static void CallWithScriptStateExecutionContextVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| ExecutionContext* execution_context = ExecutionContext::ForRelevantRealm(info); |
| impl->callWithScriptStateExecutionContextVoidMethod(script_state, execution_context); |
| } |
| |
| static void CallWithScriptStateScriptArgumentsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| ScriptArguments* scriptArguments(ScriptArguments::Create(script_state, info, 0)); |
| impl->callWithScriptStateScriptArgumentsVoidMethod(script_state, script_arguments); |
| } |
| |
| static void CallWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| bool optional_boolean_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| if (UNLIKELY(num_args_passed <= 0)) { |
| ScriptArguments* scriptArguments(ScriptArguments::Create(script_state, info, 1)); |
| impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(script_state, script_arguments); |
| return; |
| } |
| optional_boolean_arg = NativeValueTraits<IDLBoolean>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| ScriptArguments* scriptArguments(ScriptArguments::Create(script_state, info, 1)); |
| impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(script_state, script_arguments, optional_boolean_arg); |
| } |
| |
| static void CallWithCurrentWindowMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->callWithCurrentWindow(CurrentDOMWindow(info.GetIsolate())); |
| } |
| |
| static void CallWithCurrentWindowScriptWindowMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->callWithCurrentWindowScriptWindow(CurrentDOMWindow(info.GetIsolate()), EnteredDOMWindow(info.GetIsolate())); |
| } |
| |
| static void CallWithThisValueMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| impl->callWithThisValue(ScriptValue(script_state, info.Holder())); |
| } |
| |
| static void CheckSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "checkSecurityForNodeVoidMethod"); |
| if (!BindingSecurity::ShouldAllowAccessTo( |
| CurrentDOMWindow(info.GetIsolate()), impl->checkSecurityForNodeVoidMethod(), |
| BindingSecurity::ErrorReportOption::kDoNotReport)) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), |
| WebFeature::kCrossOriginTestObjectCheckSecurityForNodeVoidMethod); |
| V8SetReturnValueNull(info); |
| return; |
| } |
| |
| impl->checkSecurityForNodeVoidMethod(); |
| } |
| |
| static void CustomCallPrologueVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8TestObject::CustomCallPrologueVoidMethodMethodPrologueCustom(info, impl); |
| impl->customCallPrologueVoidMethod(); |
| } |
| |
| static void CustomCallEpilogueVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->customCallEpilogueVoidMethod(); |
| V8TestObject::CustomCallEpilogueVoidMethodMethodEpilogueCustom(info, impl); |
| } |
| |
| static void DeprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->deprecatedVoidMethod(); |
| } |
| |
| static void ImplementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->implementedAsMethodName(); |
| } |
| |
| static void MeasureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->measureAsVoidMethod(); |
| } |
| |
| static void MeasureMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->measureMethod(); |
| } |
| |
| static void MeasureOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->measureOverloadedMethod(); |
| } |
| |
| static void MeasureOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "measureOverloadedMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t arg; |
| arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->measureOverloadedMethod(arg); |
| } |
| |
| static void MeasureOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kV8TestObject_MeasureOverloadedMethod_Method); |
| MeasureOverloadedMethod1Method(info); |
| return; |
| } |
| break; |
| case 1: |
| if (true) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kV8TestObject_MeasureOverloadedMethod_Method); |
| MeasureOverloadedMethod2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "measureOverloadedMethod"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void DeprecateAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->DeprecateAsOverloadedMethod(); |
| } |
| |
| static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "DeprecateAsOverloadedMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t arg; |
| arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->DeprecateAsOverloadedMethod(arg); |
| } |
| |
| static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| Deprecation::CountDeprecation(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeatureA); |
| DeprecateAsOverloadedMethod1Method(info); |
| return; |
| } |
| break; |
| case 1: |
| if (true) { |
| Deprecation::CountDeprecation(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeatureB); |
| DeprecateAsOverloadedMethod2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "DeprecateAsOverloadedMethod"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->DeprecateAsSameValueOverloadedMethod(); |
| } |
| |
| static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "DeprecateAsSameValueOverloadedMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t arg; |
| arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->DeprecateAsSameValueOverloadedMethod(arg); |
| } |
| |
| static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| Deprecation::CountDeprecation(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeature); |
| |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| DeprecateAsSameValueOverloadedMethod1Method(info); |
| return; |
| } |
| break; |
| case 1: |
| if (true) { |
| DeprecateAsSameValueOverloadedMethod2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "DeprecateAsSameValueOverloadedMethod"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void MeasureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->measureAsOverloadedMethod(); |
| } |
| |
| static void MeasureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "measureAsOverloadedMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t arg; |
| arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->measureAsOverloadedMethod(arg); |
| } |
| |
| static void MeasureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeatureA); |
| MeasureAsOverloadedMethod1Method(info); |
| return; |
| } |
| break; |
| case 1: |
| if (true) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeatureB); |
| MeasureAsOverloadedMethod2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "measureAsOverloadedMethod"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void MeasureAsSameValueOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->measureAsSameValueOverloadedMethod(); |
| } |
| |
| static void MeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "measureAsSameValueOverloadedMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t arg; |
| arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->measureAsSameValueOverloadedMethod(arg); |
| } |
| |
| static void MeasureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeature); |
| MeasureAsSameValueOverloadedMethod1Method(info); |
| return; |
| } |
| break; |
| case 1: |
| if (true) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeature); |
| MeasureAsSameValueOverloadedMethod2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "measureAsSameValueOverloadedMethod"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void CeReactionsNotOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "ceReactionsNotOverloadedMethod"); |
| CEReactionsScope ce_reactions_scope; |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| bool arg; |
| arg = NativeValueTraits<IDLBoolean>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->ceReactionsNotOverloadedMethod(arg); |
| } |
| |
| static void CeReactionsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->ceReactionsOverloadedMethod(); |
| } |
| |
| static void CeReactionsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "ceReactionsOverloadedMethod"); |
| CEReactionsScope ce_reactions_scope; |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t arg; |
| arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->ceReactionsOverloadedMethod(arg); |
| } |
| |
| static void CeReactionsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| CeReactionsOverloadedMethod1Method(info); |
| return; |
| } |
| break; |
| case 1: |
| if (true) { |
| CeReactionsOverloadedMethod2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "ceReactionsOverloadedMethod"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void DeprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->deprecateAsMeasureAsSameValueOverloadedMethod(); |
| } |
| |
| static void DeprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "deprecateAsMeasureAsSameValueOverloadedMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t arg; |
| arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); |
| } |
| |
| static void DeprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeature); |
| Deprecation::CountDeprecation(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeatureA); |
| DeprecateAsMeasureAsSameValueOverloadedMethod1Method(info); |
| return; |
| } |
| break; |
| case 1: |
| if (true) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeature); |
| Deprecation::CountDeprecation(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeatureB); |
| DeprecateAsMeasureAsSameValueOverloadedMethod2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "deprecateAsMeasureAsSameValueOverloadedMethod"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void DeprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->deprecateAsSameValueMeasureAsOverloadedMethod(); |
| } |
| |
| static void DeprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "deprecateAsSameValueMeasureAsOverloadedMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t arg; |
| arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); |
| } |
| |
| static void DeprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| Deprecation::CountDeprecation(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeature); |
| |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeatureA); |
| DeprecateAsSameValueMeasureAsOverloadedMethod1Method(info); |
| return; |
| } |
| break; |
| case 1: |
| if (true) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeatureB); |
| DeprecateAsSameValueMeasureAsOverloadedMethod2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "deprecateAsSameValueMeasureAsOverloadedMethod"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void DeprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); |
| } |
| |
| static void DeprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "deprecateAsSameValueMeasureAsSameValueOverloadedMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t arg; |
| arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); |
| } |
| |
| static void DeprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| Deprecation::CountDeprecation(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeatureA); |
| |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 0: |
| if (true) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeatureB); |
| DeprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); |
| return; |
| } |
| break; |
| case 1: |
| if (true) { |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeatureB); |
| DeprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "deprecateAsSameValueMeasureAsSameValueOverloadedMethod"); |
| if (is_arity_error) { |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void NotEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->notEnumerableVoidMethod(); |
| } |
| |
| static void OriginTrialEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->originTrialEnabledVoidMethod(); |
| } |
| |
| static void PerWorldBindingsOriginTrialEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->perWorldBindingsOriginTrialEnabledVoidMethod(); |
| } |
| |
| static void PerWorldBindingsOriginTrialEnabledVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->perWorldBindingsOriginTrialEnabledVoidMethod(); |
| } |
| |
| static void PerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->perWorldBindingsVoidMethod(); |
| } |
| |
| static void PerWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->perWorldBindingsVoidMethod(); |
| } |
| |
| static void PerWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| TestInterfaceEmpty* test_interface_empty_arg; |
| test_interface_empty_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!test_interface_empty_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); |
| return; |
| } |
| |
| impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(test_interface_empty_arg); |
| } |
| |
| static void PerWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| TestInterfaceEmpty* test_interface_empty_arg; |
| test_interface_empty_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!test_interface_empty_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'.")); |
| return; |
| } |
| |
| impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(test_interface_empty_arg); |
| } |
| |
| static void ActivityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
| } |
| |
| static void ActivityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
| } |
| |
| static void ActivityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
| } |
| |
| static void ActivityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
| } |
| |
| static void RaisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "raisesExceptionVoidMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->raisesExceptionVoidMethod(exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| } |
| |
| static void RaisesExceptionStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "raisesExceptionStringMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| String result = impl->raisesExceptionStringMethod(exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| V8SetReturnValueString(info, result, info.GetIsolate()); |
| } |
| |
| static void RaisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "raisesExceptionVoidMethodOptionalLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t optional_long_arg; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| if (UNLIKELY(num_args_passed <= 0)) { |
| impl->raisesExceptionVoidMethodOptionalLongArg(exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| return; |
| } |
| optional_long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->raisesExceptionVoidMethodOptionalLongArg(optional_long_arg, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| } |
| |
| static void RaisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "raisesExceptionVoidMethodTestCallbackInterfaceArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| V8TestCallbackInterface* test_callback_interface_arg; |
| if (info[0]->IsObject()) { |
| test_callback_interface_arg = V8TestCallbackInterface::Create(info[0].As<v8::Object>()); |
| } else { |
| exception_state.ThrowTypeError("The callback provided as parameter 1 is not an object."); |
| return; |
| } |
| |
| impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(test_callback_interface_arg, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| } |
| |
| static void RaisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8TestCallbackInterface* optional_test_callback_interface_arg; |
| if (info[0]->IsObject()) { |
| optional_test_callback_interface_arg = V8TestCallbackInterface::Create(info[0].As<v8::Object>()); |
| } else if (info[0]->IsUndefined()) { |
| optional_test_callback_interface_arg = nullptr; |
| } else { |
| exception_state.ThrowTypeError("The callback provided as parameter 1 is not an object."); |
| return; |
| } |
| |
| impl->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optional_test_callback_interface_arg, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| } |
| |
| static void RaisesExceptionTestInterfaceEmptyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "raisesExceptionTestInterfaceEmptyVoidMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceEmpty* result = impl->raisesExceptionTestInterfaceEmptyVoidMethod(exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| V8SetReturnValue(info, result); |
| } |
| |
| static void RaisesExceptionXPathNSResolverVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "raisesExceptionXPathNSResolverVoidMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| XPathNSResolver* result = impl->raisesExceptionXPathNSResolverVoidMethod(exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| V8SetReturnValue(info, result); |
| } |
| |
| static void CallWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "callWithExecutionContextRaisesExceptionVoidMethodLongArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| int32_t long_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| ExecutionContext* execution_context = ExecutionContext::ForRelevantRealm(info); |
| impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(execution_context, long_arg, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| } |
| |
| static void RuntimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->runtimeEnabledVoidMethod(); |
| } |
| |
| static void PerWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->perWorldBindingsRuntimeEnabledVoidMethod(); |
| } |
| |
| static void PerWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->perWorldBindingsRuntimeEnabledVoidMethod(); |
| } |
| |
| static void RuntimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<> string_arg; |
| string_arg = info[0]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| impl->runtimeEnabledOverloadedVoidMethod(string_arg); |
| } |
| |
| static void RuntimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "runtimeEnabledOverloadedVoidMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| impl->runtimeEnabledOverloadedVoidMethod(long_arg); |
| } |
| |
| static void RuntimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(1, info.Length())) { |
| case 1: |
| if (info[0]->IsNumber()) { |
| RuntimeEnabledOverloadedVoidMethod2Method(info); |
| return; |
| } |
| if (true) { |
| RuntimeEnabledOverloadedVoidMethod1Method(info); |
| return; |
| } |
| if (true) { |
| RuntimeEnabledOverloadedVoidMethod2Method(info); |
| return; |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "runtimeEnabledOverloadedVoidMethod"); |
| if (is_arity_error) { |
| if (info.Length() < 1) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void PartiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8StringResource<> string_arg; |
| string_arg = info[0]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| impl->partiallyRuntimeEnabledOverloadedVoidMethod(string_arg); |
| } |
| |
| static void PartiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceImplementation* test_interface_arg; |
| test_interface_arg = V8TestInterface::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!test_interface_arg) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("partiallyRuntimeEnabledOverloadedVoidMethod", "TestObject", "parameter 1 is not of type 'TestInterface'.")); |
| return; |
| } |
| |
| impl->partiallyRuntimeEnabledOverloadedVoidMethod(test_interface_arg); |
| } |
| |
| static void PartiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "partiallyRuntimeEnabledOverloadedVoidMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg; |
| V8StringResource<> string_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| string_arg = info[1]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| impl->partiallyRuntimeEnabledOverloadedVoidMethod(long_arg, string_arg); |
| } |
| |
| static void PartiallyRuntimeEnabledOverloadedVoidMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "partiallyRuntimeEnabledOverloadedVoidMethod"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| int32_t long_arg; |
| V8StringResource<> string_arg; |
| TestInterfaceImplementation* test_interface_arg; |
| long_arg = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| string_arg = info[1]; |
| if (!string_arg.Prepare()) |
| return; |
| |
| test_interface_arg = V8TestInterface::ToImplWithTypeCheck(info.GetIsolate(), info[2]); |
| if (!test_interface_arg) { |
| exception_state.ThrowTypeError("parameter 3 is not of type 'TestInterface'."); |
| return; |
| } |
| |
| impl->partiallyRuntimeEnabledOverloadedVoidMethod(long_arg, string_arg, test_interface_arg); |
| } |
| |
| static int PartiallyRuntimeEnabledOverloadedVoidMethodMethodLength() { |
| if (RuntimeEnabledFeatures::FeatureName1Enabled()) { |
| return 1; |
| } |
| if (RuntimeEnabledFeatures::FeatureName2Enabled()) { |
| return 1; |
| } |
| return 2; |
| } |
| |
| static int PartiallyRuntimeEnabledOverloadedVoidMethodMethodMaxArg() { |
| if (RuntimeEnabledFeatures::FeatureName3Enabled()) { |
| return 3; |
| } |
| return 2; |
| } |
| |
| static void PartiallyRuntimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| bool is_arity_error = false; |
| |
| switch (std::min(test_object_v8_internal::PartiallyRuntimeEnabledOverloadedVoidMethodMethodMaxArg(), info.Length())) { |
| case 1: |
| if (RuntimeEnabledFeatures::FeatureName2Enabled()) { |
| if (V8TestInterface::HasInstance(info[0], info.GetIsolate())) { |
| PartiallyRuntimeEnabledOverloadedVoidMethod2Method(info); |
| return; |
| } |
| } |
| if (RuntimeEnabledFeatures::FeatureName1Enabled()) { |
| if (true) { |
| PartiallyRuntimeEnabledOverloadedVoidMethod1Method(info); |
| return; |
| } |
| } |
| break; |
| case 2: |
| if (true) { |
| PartiallyRuntimeEnabledOverloadedVoidMethod3Method(info); |
| return; |
| } |
| break; |
| case 3: |
| if (RuntimeEnabledFeatures::FeatureName3Enabled()) { |
| if (true) { |
| PartiallyRuntimeEnabledOverloadedVoidMethod4Method(info); |
| return; |
| } |
| } |
| break; |
| default: |
| is_arity_error = true; |
| } |
| |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "partiallyRuntimeEnabledOverloadedVoidMethod"); |
| if (is_arity_error) { |
| if (info.Length() < test_object_v8_internal::PartiallyRuntimeEnabledOverloadedVoidMethodMethodLength()) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(test_object_v8_internal::PartiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), info.Length())); |
| return; |
| } |
| } |
| exception_state.ThrowTypeError("No function was found that matched the signature provided."); |
| } |
| |
| static void LegacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| TestInterfaceEmpty* test_interface_empty_arg; |
| test_interface_empty_arg = V8TestInterfaceEmpty::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| |
| impl->legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArg(test_interface_empty_arg); |
| } |
| |
| static void LegacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArg"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| HeapVector<Member<TestInterfaceEmpty>> test_interface_empty_arg; |
| for (int i = 0; i < info.Length(); ++i) { |
| if (!V8TestInterfaceEmpty::HasInstance(info[i], info.GetIsolate())) { |
| exception_state.ThrowTypeError("parameter 1 is not of type 'TestInterfaceEmpty'."); |
| return; |
| } |
| test_interface_empty_arg.push_back(V8TestInterfaceEmpty::ToImpl(v8::Local<v8::Object>::Cast(info[i]))); |
| } |
| |
| impl->legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArg(test_interface_empty_arg); |
| } |
| |
| static void UseToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| Node* node_1; |
| Node* node_2; |
| int num_args_passed = info.Length(); |
| while (num_args_passed > 0) { |
| if (!info[num_args_passed - 1]->IsUndefined()) |
| break; |
| --num_args_passed; |
| } |
| node_1 = V8Node::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!node_1) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObject", "parameter 1 is not of type 'Node'.")); |
| return; |
| } |
| |
| if (UNLIKELY(num_args_passed <= 1)) { |
| impl->useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg(node_1); |
| return; |
| } |
| node_2 = V8Node::ToImplWithTypeCheck(info.GetIsolate(), info[1]); |
| if (!node_2) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObject", "parameter 2 is not of type 'Node'.")); |
| return; |
| } |
| |
| impl->useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg(node_1, node_2); |
| } |
| |
| static void UseToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 2)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", ExceptionMessages::NotEnoughArguments(2, info.Length()))); |
| return; |
| } |
| |
| Node* node_1; |
| Node* node_2; |
| node_1 = V8Node::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!node_1) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", "parameter 1 is not of type 'Node'.")); |
| return; |
| } |
| |
| node_2 = V8Node::ToImplWithTypeCheck(info.GetIsolate(), info[1]); |
| if (!node_2 && !IsUndefinedOrNull(info[1])) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", "parameter 2 is not of type 'Node'.")); |
| return; |
| } |
| |
| impl->useToImpl4ArgumentsCheckingIfPossibleWithNullableArg(node_1, node_2); |
| } |
| |
| static void UseToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObject", ExceptionMessages::NotEnoughArguments(1, info.Length()))); |
| return; |
| } |
| |
| Node* node_1; |
| Node* node_2; |
| node_1 = V8Node::ToImplWithTypeCheck(info.GetIsolate(), info[0]); |
| if (!node_1) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObject", "parameter 1 is not of type 'Node'.")); |
| return; |
| } |
| |
| node_2 = V8Node::ToImplWithTypeCheck(info.GetIsolate(), info[1]); |
| if (!node_2) { |
| V8ThrowException::ThrowTypeError(info.GetIsolate(), ExceptionMessages::FailedToExecute("useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObject", "parameter 2 is not of type 'Node'.")); |
| return; |
| } |
| |
| impl->useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg(node_1, node_2); |
| } |
| |
| static void UnforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->unforgeableVoidMethod(); |
| } |
| |
| static void NewObjectTestInterfaceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| TestInterfaceImplementation* result = impl->newObjectTestInterfaceMethod(); |
| // [NewObject] must always create a new wrapper. Check that a wrapper |
| // does not exist yet. |
| DCHECK(!result || DOMDataStore::GetWrapper(result, info.GetIsolate()).IsEmpty()); |
| V8SetReturnValue(info, result); |
| } |
| |
| static void NewObjectTestInterfacePromiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "newObjectTestInterfacePromiseMethod"); |
| ExceptionToRejectPromiseScope reject_promise_scope(info, exception_state); |
| |
| // V8DOMConfiguration::kDoNotCheckHolder |
| // Make sure that info.Holder() really points to an instance of the type. |
| if (!V8TestObject::HasInstance(info.Holder(), info.GetIsolate())) { |
| exception_state.ThrowTypeError("Illegal invocation"); |
| return; |
| } |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptPromise result = impl->newObjectTestInterfacePromiseMethod(); |
| V8SetReturnValue(info, result.V8Value()); |
| } |
| |
| static void RuntimeCallStatsCounterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| impl->RuntimeCallStatsCounterMethod(); |
| } |
| |
| static void ClearMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "clear"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| bool result = impl->myMaplikeClear(script_state, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| V8SetReturnValueBool(info, result); |
| } |
| |
| static void KeysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "keys"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| Iterator* result = impl->keysForBinding(script_state, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| V8SetReturnValue(info, result); |
| } |
| |
| static void ValuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "values"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| Iterator* result = impl->valuesForBinding(script_state, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| V8SetReturnValue(info, result); |
| } |
| |
| static void ForEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "forEach"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| ScriptValue callback; |
| ScriptValue this_arg; |
| if (info[0]->IsFunction()) { |
| callback = ScriptValue(ScriptState::Current(info.GetIsolate()), info[0]); |
| } else { |
| exception_state.ThrowTypeError("The callback provided as parameter 1 is not a function."); |
| return; |
| } |
| |
| this_arg = ScriptValue(ScriptState::Current(info.GetIsolate()), info[1]); |
| |
| impl->forEachForBinding(script_state, ScriptValue(script_state, info.Holder()), callback, this_arg, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| } |
| |
| static void HasMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "has"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| int32_t key; |
| key = NativeValueTraits<IDLLongEnforceRange>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| bool result = impl->hasForBinding(script_state, key, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| V8SetReturnValueBool(info, result); |
| } |
| |
| static void GetMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "get"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| int32_t key; |
| key = NativeValueTraits<IDLLongEnforceRange>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| ScriptValue result = impl->getForBinding(script_state, key, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| V8SetReturnValue(info, result.V8Value()); |
| } |
| |
| static void DeleteMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "delete"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| if (UNLIKELY(info.Length() < 1)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(1, info.Length())); |
| return; |
| } |
| |
| int32_t key; |
| key = NativeValueTraits<IDLLongEnforceRange>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| bool result = impl->deleteForBinding(script_state, key, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| V8SetReturnValueBool(info, result); |
| } |
| |
| static void SetMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "set"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| if (UNLIKELY(info.Length() < 2)) { |
| exception_state.ThrowTypeError(ExceptionMessages::NotEnoughArguments(2, info.Length())); |
| return; |
| } |
| |
| int32_t key; |
| StringOrDouble value; |
| key = NativeValueTraits<IDLLongEnforceRange>::NativeValue(info.GetIsolate(), info[0], exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| V8StringOrDouble::ToImpl(info.GetIsolate(), info[1], value, UnionTypeConversionMode::kNotNullable, exception_state); |
| if (exception_state.HadException()) |
| return; |
| |
| TestObject* result = impl->setForBinding(script_state, key, value, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| V8SetReturnValue(info, result); |
| } |
| |
| static void ToJSONMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| ScriptValue result = impl->toJSONForBinding(script_state); |
| V8SetReturnValue(info, result.V8Value()); |
| } |
| |
| static void ToStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| V8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate()); |
| } |
| |
| static void IteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| ExceptionState exception_state(info.GetIsolate(), ExceptionState::kExecutionContext, "TestObject", "iterator"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| Iterator* result = impl->GetIterator(script_state, exception_state); |
| if (exception_state.HadException()) { |
| return; |
| } |
| V8SetReturnValue(info, result); |
| } |
| |
| static void NamedPropertyGetter(const AtomicString& name, |
| const v8::PropertyCallbackInfo<v8::Value>& info) { |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| ScriptValue result = impl->AnonymousNamedGetter(script_state, name); |
| if (result.IsEmpty()) |
| return; |
| V8SetReturnValue(info, result.V8Value()); |
| } |
| |
| static void NamedPropertySetter( |
| const AtomicString& name, |
| v8::Local<v8::Value> v8_value, |
| const v8::PropertyCallbackInfo<v8::Value>& info) { |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| V8StringResource<> property_value = v8_value; |
| if (!property_value.Prepare()) |
| return; |
| |
| bool result = impl->AnonymousNamedSetter(script_state, name, property_value); |
| if (!result) |
| return; |
| V8SetReturnValue(info, v8_value); |
| } |
| |
| static void NamedPropertyDeleter( |
| const AtomicString& name, const v8::PropertyCallbackInfo<v8::Boolean>& info) { |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| DeleteResult result = impl->AnonymousNamedDeleter(script_state, name); |
| if (result == kDeleteUnknownProperty) |
| return; |
| V8SetReturnValue(info, result == kDeleteSuccess); |
| } |
| |
| static void NamedPropertyQuery( |
| const AtomicString& name, const v8::PropertyCallbackInfo<v8::Integer>& info) { |
| const CString& name_in_utf8 = name.Utf8(); |
| ExceptionState exception_state( |
| info.GetIsolate(), |
| ExceptionState::kGetterContext, |
| "TestObject", |
| name_in_utf8.data()); |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| bool result = impl->NamedPropertyQuery(script_state, name, exception_state); |
| if (!result) |
| return; |
| // https://heycam.github.io/webidl/#LegacyPlatformObjectGetOwnProperty |
| // 2.7. If |O| implements an interface with a named property setter, then set |
| // desc.[[Writable]] to true, otherwise set it to false. |
| // 2.8. If |O| implements an interface with the |
| // [LegacyUnenumerableNamedProperties] extended attribute, then set |
| // desc.[[Enumerable]] to false, otherwise set it to true. |
| V8SetReturnValueInt(info, v8::None); |
| } |
| |
| static void NamedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& info) { |
| ExceptionState exception_state( |
| info.GetIsolate(), |
| ExceptionState::kEnumerationContext, |
| "TestObject"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| Vector<String> names; |
| impl->NamedPropertyEnumerator(names, exception_state); |
| if (exception_state.HadException()) |
| return; |
| V8SetReturnValue(info, ToV8(names, info.Holder(), info.GetIsolate()).As<v8::Array>()); |
| } |
| |
| static void IndexedPropertyGetter( |
| uint32_t index, |
| const v8::PropertyCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| // We assume that all the implementations support length() method, although |
| // the spec doesn't require that length() must exist. It's okay that |
| // the interface does not have length attribute as long as the |
| // implementation supports length() member function. |
| if (index >= impl->length()) |
| return; // Returns undefined due to out-of-range. |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| ScriptValue result = impl->item(script_state, index); |
| V8SetReturnValue(info, result.V8Value()); |
| } |
| |
| static void IndexedPropertyDescriptor( |
| uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info) { |
| // https://heycam.github.io/webidl/#LegacyPlatformObjectGetOwnProperty |
| // Steps 1.1 to 1.2.4 are covered here: we rely on indexedPropertyGetter() to |
| // call the getter function and check that |index| is a valid property index, |
| // in which case it will have set info.GetReturnValue() to something other |
| // than undefined. |
| V8TestObject::IndexedPropertyGetterCallback(index, info); |
| v8::Local<v8::Value> getter_value = info.GetReturnValue().Get(); |
| if (!getter_value->IsUndefined()) { |
| // 1.2.5. Let |desc| be a newly created Property Descriptor with no fields. |
| // 1.2.6. Set desc.[[Value]] to the result of converting value to an |
| // ECMAScript value. |
| // 1.2.7. If O implements an interface with an indexed property setter, |
| // then set desc.[[Writable]] to true, otherwise set it to false. |
| v8::PropertyDescriptor desc(getter_value, true); |
| // 1.2.8. Set desc.[[Enumerable]] and desc.[[Configurable]] to true. |
| desc.set_enumerable(true); |
| desc.set_configurable(true); |
| // 1.2.9. Return |desc|. |
| V8SetReturnValue(info, desc); |
| } |
| } |
| |
| static void IndexedPropertySetter( |
| uint32_t index, |
| v8::Local<v8::Value> v8_value, |
| const v8::PropertyCallbackInfo<v8::Value>& info) { |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| V8StringResource<> property_value = v8_value; |
| if (!property_value.Prepare()) |
| return; |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| bool result = impl->setItem(script_state, index, property_value); |
| if (!result) |
| return; |
| V8SetReturnValue(info, v8_value); |
| } |
| |
| static void IndexedPropertyDeleter( |
| uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean>& info) { |
| ExceptionState exception_state( |
| info.GetIsolate(), |
| ExceptionState::kIndexedDeletionContext, |
| "TestObject"); |
| |
| TestObject* impl = V8TestObject::ToImpl(info.Holder()); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| DeleteResult result = impl->AnonymousIndexedDeleter(script_state, index, exception_state); |
| if (exception_state.HadException()) |
| return; |
| if (result == kDeleteUnknownProperty) |
| return; |
| V8SetReturnValue(info, result == kDeleteSuccess); |
| } |
| |
| } // namespace test_object_v8_internal |
| |
| void V8TestObject::StringifierAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringifierAttribute_Getter"); |
| |
| test_object_v8_internal::StringifierAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::StringifierAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringifierAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::StringifierAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ReadonlyStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_readonlyStringAttribute_Getter"); |
| |
| test_object_v8_internal::ReadonlyStringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_readonlyTestInterfaceEmptyAttribute_Getter"); |
| |
| test_object_v8_internal::ReadonlyTestInterfaceEmptyAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReadonlyLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_readonlyLongAttribute_Getter"); |
| |
| test_object_v8_internal::ReadonlyLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::DateAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_dateAttribute_Getter"); |
| |
| test_object_v8_internal::DateAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::DateAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_dateAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::DateAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::StringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringAttribute_Getter"); |
| |
| test_object_v8_internal::StringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::StringAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::StringAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ByteStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_byteStringAttribute_Getter"); |
| |
| test_object_v8_internal::ByteStringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ByteStringAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_byteStringAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ByteStringAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::UsvStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_usvStringAttribute_Getter"); |
| |
| test_object_v8_internal::UsvStringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UsvStringAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_usvStringAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UsvStringAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::DOMTimeStampAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_domTimeStampAttribute_Getter"); |
| |
| test_object_v8_internal::DOMTimeStampAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::DOMTimeStampAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_domTimeStampAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::DOMTimeStampAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::BooleanAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_booleanAttribute_Getter"); |
| |
| test_object_v8_internal::BooleanAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::BooleanAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_booleanAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::BooleanAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ByteAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_byteAttribute_Getter"); |
| |
| test_object_v8_internal::ByteAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ByteAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_byteAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ByteAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::DoubleAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_doubleAttribute_Getter"); |
| |
| test_object_v8_internal::DoubleAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::DoubleAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_doubleAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::DoubleAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::FloatAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_floatAttribute_Getter"); |
| |
| test_object_v8_internal::FloatAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::FloatAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_floatAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::FloatAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_longAttribute_Getter"); |
| |
| test_object_v8_internal::LongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::LongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_longAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LongLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_longLongAttribute_Getter"); |
| |
| test_object_v8_internal::LongLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::LongLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_longLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LongLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::OctetAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_octetAttribute_Getter"); |
| |
| test_object_v8_internal::OctetAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::OctetAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_octetAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::OctetAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ShortAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_shortAttribute_Getter"); |
| |
| test_object_v8_internal::ShortAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ShortAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_shortAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ShortAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::UnrestrictedDoubleAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unrestrictedDoubleAttribute_Getter"); |
| |
| test_object_v8_internal::UnrestrictedDoubleAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UnrestrictedDoubleAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unrestrictedDoubleAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UnrestrictedDoubleAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::UnrestrictedFloatAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unrestrictedFloatAttribute_Getter"); |
| |
| test_object_v8_internal::UnrestrictedFloatAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UnrestrictedFloatAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unrestrictedFloatAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UnrestrictedFloatAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::UnsignedLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unsignedLongAttribute_Getter"); |
| |
| test_object_v8_internal::UnsignedLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UnsignedLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unsignedLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UnsignedLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::UnsignedLongLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unsignedLongLongAttribute_Getter"); |
| |
| test_object_v8_internal::UnsignedLongLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UnsignedLongLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unsignedLongLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UnsignedLongLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::UnsignedShortAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unsignedShortAttribute_Getter"); |
| |
| test_object_v8_internal::UnsignedShortAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UnsignedShortAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unsignedShortAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UnsignedShortAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::TestInterfaceEmptyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceEmptyAttribute_Getter"); |
| |
| test_object_v8_internal::TestInterfaceEmptyAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::TestInterfaceEmptyAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceEmptyAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::TestInterfaceEmptyAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::TestObjectAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testObjectAttribute_Getter"); |
| |
| test_object_v8_internal::TestObjectAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::TestObjectAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testObjectAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::TestObjectAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CSSAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_cssAttribute_Getter"); |
| |
| test_object_v8_internal::CSSAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::CSSAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_cssAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::CSSAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ImeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_imeAttribute_Getter"); |
| |
| test_object_v8_internal::ImeAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ImeAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_imeAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ImeAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::SVGAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_svgAttribute_Getter"); |
| |
| test_object_v8_internal::SVGAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::SVGAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_svgAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::SVGAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::XmlAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_xmlAttribute_Getter"); |
| |
| test_object_v8_internal::XmlAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::XmlAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_xmlAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::XmlAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::NodeFilterAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_nodeFilterAttribute_Getter"); |
| |
| test_object_v8_internal::NodeFilterAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::SerializedScriptValueAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_serializedScriptValueAttribute_Getter"); |
| |
| test_object_v8_internal::SerializedScriptValueAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::SerializedScriptValueAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_serializedScriptValueAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::SerializedScriptValueAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::AnyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_anyAttribute_Getter"); |
| |
| test_object_v8_internal::AnyAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::AnyAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_anyAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::AnyAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::PromiseAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_promiseAttribute_Getter"); |
| |
| test_object_v8_internal::PromiseAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::PromiseAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_promiseAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::PromiseAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::WindowAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_windowAttribute_Getter"); |
| |
| test_object_v8_internal::WindowAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::WindowAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_windowAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::WindowAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::DocumentAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_documentAttribute_Getter"); |
| |
| test_object_v8_internal::DocumentAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::DocumentAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_documentAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::DocumentAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::DocumentFragmentAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_documentFragmentAttribute_Getter"); |
| |
| test_object_v8_internal::DocumentFragmentAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::DocumentFragmentAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_documentFragmentAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::DocumentFragmentAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::DocumentTypeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_documentTypeAttribute_Getter"); |
| |
| test_object_v8_internal::DocumentTypeAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::DocumentTypeAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_documentTypeAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::DocumentTypeAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ElementAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_elementAttribute_Getter"); |
| |
| test_object_v8_internal::ElementAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ElementAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_elementAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ElementAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::NodeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_nodeAttribute_Getter"); |
| |
| test_object_v8_internal::NodeAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::NodeAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_nodeAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::NodeAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ShadowRootAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_shadowRootAttribute_Getter"); |
| |
| test_object_v8_internal::ShadowRootAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ShadowRootAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_shadowRootAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ShadowRootAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ArrayBufferAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_arrayBufferAttribute_Getter"); |
| |
| test_object_v8_internal::ArrayBufferAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ArrayBufferAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_arrayBufferAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ArrayBufferAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::Float32ArrayAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_float32ArrayAttribute_Getter"); |
| |
| test_object_v8_internal::Float32ArrayAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::Float32ArrayAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_float32ArrayAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::Float32ArrayAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::Uint8ArrayAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_uint8ArrayAttribute_Getter"); |
| |
| test_object_v8_internal::Uint8ArrayAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::Uint8ArrayAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_uint8ArrayAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::Uint8ArrayAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::SelfAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_self_Getter"); |
| |
| test_object_v8_internal::SelfAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReadonlyEventTargetAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_readonlyEventTargetAttribute_Getter"); |
| |
| test_object_v8_internal::ReadonlyEventTargetAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReadonlyEventTargetOrNullAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_readonlyEventTargetOrNullAttribute_Getter"); |
| |
| test_object_v8_internal::ReadonlyEventTargetOrNullAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReadonlyWindowAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_readonlyWindowAttribute_Getter"); |
| |
| test_object_v8_internal::ReadonlyWindowAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::HTMLCollectionAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_htmlCollectionAttribute_Getter"); |
| |
| test_object_v8_internal::HTMLCollectionAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::HTMLElementAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_htmlElementAttribute_Getter"); |
| |
| test_object_v8_internal::HTMLElementAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::StringFrozenArrayAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringFrozenArrayAttribute_Getter"); |
| |
| test_object_v8_internal::StringFrozenArrayAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::StringFrozenArrayAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringFrozenArrayAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::StringFrozenArrayAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::TestInterfaceEmptyFrozenArrayAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceEmptyFrozenArrayAttribute_Getter"); |
| |
| test_object_v8_internal::TestInterfaceEmptyFrozenArrayAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::TestInterfaceEmptyFrozenArrayAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceEmptyFrozenArrayAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::TestInterfaceEmptyFrozenArrayAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::BooleanOrNullAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_booleanOrNullAttribute_Getter"); |
| |
| test_object_v8_internal::BooleanOrNullAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::BooleanOrNullAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_booleanOrNullAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::BooleanOrNullAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::StringOrNullAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringOrNullAttribute_Getter"); |
| |
| test_object_v8_internal::StringOrNullAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::StringOrNullAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringOrNullAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::StringOrNullAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LongOrNullAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_longOrNullAttribute_Getter"); |
| |
| test_object_v8_internal::LongOrNullAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::LongOrNullAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_longOrNullAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LongOrNullAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::TestInterfaceOrNullAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceOrNullAttribute_Getter"); |
| |
| test_object_v8_internal::TestInterfaceOrNullAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::TestInterfaceOrNullAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceOrNullAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::TestInterfaceOrNullAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::TestEnumAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testEnumAttribute_Getter"); |
| |
| test_object_v8_internal::TestEnumAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::TestEnumAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testEnumAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::TestEnumAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::TestEnumOrNullAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testEnumOrNullAttribute_Getter"); |
| |
| test_object_v8_internal::TestEnumOrNullAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::TestEnumOrNullAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testEnumOrNullAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::TestEnumOrNullAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::StaticStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_staticStringAttribute_Getter"); |
| |
| test_object_v8_internal::StaticStringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::StaticStringAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_staticStringAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::StaticStringAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::StaticLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_staticLongAttribute_Getter"); |
| |
| test_object_v8_internal::StaticLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::StaticLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_staticLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::StaticLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::EventHandlerAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_eventHandlerAttribute_Getter"); |
| |
| test_object_v8_internal::EventHandlerAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::EventHandlerAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_eventHandlerAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::EventHandlerAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::DoubleOrStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_doubleOrStringAttribute_Getter"); |
| |
| test_object_v8_internal::DoubleOrStringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::DoubleOrStringAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_doubleOrStringAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::DoubleOrStringAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::DoubleOrStringOrNullAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_doubleOrStringOrNullAttribute_Getter"); |
| |
| test_object_v8_internal::DoubleOrStringOrNullAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::DoubleOrStringOrNullAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_doubleOrStringOrNullAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::DoubleOrStringOrNullAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::DoubleOrNullStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_doubleOrNullStringAttribute_Getter"); |
| |
| test_object_v8_internal::DoubleOrNullStringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::DoubleOrNullStringAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_doubleOrNullStringAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::DoubleOrNullStringAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::StringOrStringSequenceAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringOrStringSequenceAttribute_Getter"); |
| |
| test_object_v8_internal::StringOrStringSequenceAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::StringOrStringSequenceAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringOrStringSequenceAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::StringOrStringSequenceAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::TestEnumOrDoubleAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testEnumOrDoubleAttribute_Getter"); |
| |
| test_object_v8_internal::TestEnumOrDoubleAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::TestEnumOrDoubleAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testEnumOrDoubleAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::TestEnumOrDoubleAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::UnrestrictedDoubleOrStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unrestrictedDoubleOrStringAttribute_Getter"); |
| |
| test_object_v8_internal::UnrestrictedDoubleOrStringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UnrestrictedDoubleOrStringAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unrestrictedDoubleOrStringAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UnrestrictedDoubleOrStringAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::NestedUnionAtributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_nestedUnionAtribute_Getter"); |
| |
| test_object_v8_internal::NestedUnionAtributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::NestedUnionAtributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_nestedUnionAtribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::NestedUnionAtributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ActivityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingAccessForAllWorldsLongAttribute_Getter"); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogGetter("TestObject.activityLoggingAccessForAllWorldsLongAttribute"); |
| } |
| |
| test_object_v8_internal::ActivityLoggingAccessForAllWorldsLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ActivityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingAccessForAllWorldsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogSetter("TestObject.activityLoggingAccessForAllWorldsLongAttribute", v8_value); |
| } |
| |
| test_object_v8_internal::ActivityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ActivityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingGetterForAllWorldsLongAttribute_Getter"); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogGetter("TestObject.activityLoggingGetterForAllWorldsLongAttribute"); |
| } |
| |
| test_object_v8_internal::ActivityLoggingGetterForAllWorldsLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ActivityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingGetterForAllWorldsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ActivityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ActivityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingSetterForAllWorldsLongAttribute_Getter"); |
| |
| test_object_v8_internal::ActivityLoggingSetterForAllWorldsLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ActivityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingSetterForAllWorldsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogSetter("TestObject.activityLoggingSetterForAllWorldsLongAttribute", v8_value); |
| } |
| |
| test_object_v8_internal::ActivityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CachedAttributeAnyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_cachedAttributeAnyAttribute_Getter"); |
| |
| test_object_v8_internal::CachedAttributeAnyAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::CachedAttributeAnyAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_cachedAttributeAnyAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::CachedAttributeAnyAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CachedArrayAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_cachedArrayAttribute_Getter"); |
| |
| test_object_v8_internal::CachedArrayAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::CachedArrayAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_cachedArrayAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::CachedArrayAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CachedStringOrNoneAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_cachedStringOrNoneAttribute_Getter"); |
| |
| test_object_v8_internal::CachedStringOrNoneAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::CachedStringOrNoneAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_cachedStringOrNoneAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::CachedStringOrNoneAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CallWithExecutionContextAnyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithExecutionContextAnyAttribute_Getter"); |
| |
| test_object_v8_internal::CallWithExecutionContextAnyAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::CallWithExecutionContextAnyAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithExecutionContextAnyAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::CallWithExecutionContextAnyAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CallWithScriptStateAnyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithScriptStateAnyAttribute_Getter"); |
| |
| test_object_v8_internal::CallWithScriptStateAnyAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::CallWithScriptStateAnyAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithScriptStateAnyAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::CallWithScriptStateAnyAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CallWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithExecutionContextAndScriptStateAnyAttribute_Getter"); |
| |
| test_object_v8_internal::CallWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::CallWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithExecutionContextAndScriptStateAnyAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::CallWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CheckSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_checkSecurityForNodeReadonlyDocumentAttribute_Getter"); |
| |
| test_object_v8_internal::CheckSecurityForNodeReadonlyDocumentAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::TestInterfaceEmptyConstructorAttributeConstructorGetterCallback( |
| v8::Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceEmptyConstructorAttribute_ConstructorGetterCallback"); |
| |
| V8ConstructorAttributeGetter(property, info, V8TestInterfaceEmpty::GetWrapperTypeInfo()); |
| } |
| |
| void V8TestObject::TestInterfaceEmptyConstructorAttributeConstructorGetterCallback( |
| v8::Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceEmptyConstructorAttribute_ConstructorGetterCallback"); |
| |
| Deprecation::CountDeprecation(CurrentExecutionContext(info.GetIsolate()), WebFeature::kdeprecatedTestInterfaceEmptyConstructorAttribute); |
| |
| V8ConstructorAttributeGetter(property, info, V8TestInterfaceEmpty::GetWrapperTypeInfo()); |
| } |
| |
| void V8TestObject::MeasureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGetterCallback( |
| v8::Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_measureAsFeatureNameTestInterfaceEmptyConstructorAttribute_ConstructorGetterCallback"); |
| |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kFeatureName); |
| |
| V8ConstructorAttributeGetter(property, info, V8TestInterfaceEmpty::GetWrapperTypeInfo()); |
| } |
| |
| void V8TestObject::CustomObjectAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customObjectAttribute_Getter"); |
| |
| V8TestObject::CustomObjectAttributeAttributeGetterCustom(info); |
| } |
| |
| void V8TestObject::CustomObjectAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customObjectAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| V8TestObject::CustomObjectAttributeAttributeSetterCustom(v8_value, info); |
| } |
| |
| void V8TestObject::CustomGetterLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customGetterLongAttribute_Getter"); |
| |
| V8TestObject::CustomGetterLongAttributeAttributeGetterCustom(info); |
| } |
| |
| void V8TestObject::CustomGetterLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customGetterLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::CustomGetterLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CustomGetterReadonlyObjectAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customGetterReadonlyObjectAttribute_Getter"); |
| |
| V8TestObject::CustomGetterReadonlyObjectAttributeAttributeGetterCustom(info); |
| } |
| |
| void V8TestObject::CustomSetterLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customSetterLongAttribute_Getter"); |
| |
| test_object_v8_internal::CustomSetterLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::CustomSetterLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customSetterLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| V8TestObject::CustomSetterLongAttributeAttributeSetterCustom(v8_value, info); |
| } |
| |
| void V8TestObject::DeprecatedLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_deprecatedLongAttribute_Getter"); |
| |
| Deprecation::CountDeprecation(CurrentExecutionContext(info.GetIsolate()), WebFeature::kLongAttribute); |
| |
| test_object_v8_internal::DeprecatedLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::DeprecatedLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_deprecatedLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| Deprecation::CountDeprecation(CurrentExecutionContext(info.GetIsolate()), WebFeature::kLongAttribute); |
| |
| test_object_v8_internal::DeprecatedLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::EnforceRangeLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_enforceRangeLongAttribute_Getter"); |
| |
| test_object_v8_internal::EnforceRangeLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::EnforceRangeLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_enforceRangeLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::EnforceRangeLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ImplementedAsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_implementedAsLongAttribute_Getter"); |
| |
| test_object_v8_internal::ImplementedAsLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ImplementedAsLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_implementedAsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ImplementedAsLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CustomImplementedAsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customImplementedAsLongAttribute_Getter"); |
| |
| V8TestObject::CustomImplementedAsLongAttributeAttributeGetterCustom(info); |
| } |
| |
| void V8TestObject::CustomImplementedAsLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customImplementedAsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| V8TestObject::CustomImplementedAsLongAttributeAttributeSetterCustom(v8_value, info); |
| } |
| |
| void V8TestObject::CustomGetterImplementedAsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customGetterImplementedAsLongAttribute_Getter"); |
| |
| V8TestObject::CustomGetterImplementedAsLongAttributeAttributeGetterCustom(info); |
| } |
| |
| void V8TestObject::CustomGetterImplementedAsLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customGetterImplementedAsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::CustomGetterImplementedAsLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CustomSetterImplementedAsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customSetterImplementedAsLongAttribute_Getter"); |
| |
| test_object_v8_internal::CustomSetterImplementedAsLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::CustomSetterImplementedAsLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customSetterImplementedAsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| V8TestObject::CustomSetterImplementedAsLongAttributeAttributeSetterCustom(v8_value, info); |
| } |
| |
| void V8TestObject::MeasureAsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_measureAsLongAttribute_Getter"); |
| |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeature); |
| |
| test_object_v8_internal::MeasureAsLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::MeasureAsLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_measureAsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeature); |
| |
| test_object_v8_internal::MeasureAsLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::NotEnumerableLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_notEnumerableLongAttribute_Getter"); |
| |
| test_object_v8_internal::NotEnumerableLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::NotEnumerableLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_notEnumerableLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::NotEnumerableLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::OriginTrialEnabledLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_originTrialEnabledLongAttribute_Getter"); |
| |
| test_object_v8_internal::OriginTrialEnabledLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::OriginTrialEnabledLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_originTrialEnabledLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::OriginTrialEnabledLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::PerWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_perWorldBindingsReadonlyTestInterfaceEmptyAttribute_Getter"); |
| |
| test_object_v8_internal::PerWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::PerWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_perWorldBindingsReadonlyTestInterfaceEmptyAttribute_Getter"); |
| |
| test_object_v8_internal::PerWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterForMainWorld(info); |
| } |
| |
| void V8TestObject::ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingAccessPerWorldBindingsLongAttribute_Getter"); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogGetter("TestObject.activityLoggingAccessPerWorldBindingsLongAttribute"); |
| } |
| |
| test_object_v8_internal::ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingAccessPerWorldBindingsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogSetter("TestObject.activityLoggingAccessPerWorldBindingsLongAttribute", v8_value); |
| } |
| |
| test_object_v8_internal::ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingAccessPerWorldBindingsLongAttribute_Getter"); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogGetter("TestObject.activityLoggingAccessPerWorldBindingsLongAttribute"); |
| } |
| |
| test_object_v8_internal::ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterForMainWorld(info); |
| } |
| |
| void V8TestObject::ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingAccessPerWorldBindingsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogSetter("TestObject.activityLoggingAccessPerWorldBindingsLongAttribute", v8_value); |
| } |
| |
| test_object_v8_internal::ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterForMainWorld(v8_value, info); |
| } |
| |
| void V8TestObject::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute_Getter"); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogGetter("TestObject.activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute"); |
| } |
| |
| test_object_v8_internal::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogSetter("TestObject.activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", v8_value); |
| } |
| |
| test_object_v8_internal::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute_Getter"); |
| |
| test_object_v8_internal::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterForMainWorld(info); |
| } |
| |
| void V8TestObject::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterForMainWorld(v8_value, info); |
| } |
| |
| void V8TestObject::ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingGetterPerWorldBindingsLongAttribute_Getter"); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogGetter("TestObject.activityLoggingGetterPerWorldBindingsLongAttribute"); |
| } |
| |
| test_object_v8_internal::ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingGetterPerWorldBindingsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingGetterPerWorldBindingsLongAttribute_Getter"); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogGetter("TestObject.activityLoggingGetterPerWorldBindingsLongAttribute"); |
| } |
| |
| test_object_v8_internal::ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterForMainWorld(info); |
| } |
| |
| void V8TestObject::ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingGetterPerWorldBindingsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterForMainWorld(v8_value, info); |
| } |
| |
| void V8TestObject::ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute_Getter"); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogGetter("TestObject.activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute"); |
| } |
| |
| test_object_v8_internal::ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute_Getter"); |
| |
| test_object_v8_internal::ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterForMainWorld(info); |
| } |
| |
| void V8TestObject::ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterForMainWorld(v8_value, info); |
| } |
| |
| void V8TestObject::LocationAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_location_Getter"); |
| |
| test_object_v8_internal::LocationAttributeGetter(info); |
| } |
| |
| void V8TestObject::LocationAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_location_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LocationAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LocationWithExceptionAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationWithException_Getter"); |
| |
| test_object_v8_internal::LocationWithExceptionAttributeGetter(info); |
| } |
| |
| void V8TestObject::LocationWithExceptionAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationWithException_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LocationWithExceptionAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LocationWithCallWithAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationWithCallWith_Getter"); |
| |
| test_object_v8_internal::LocationWithCallWithAttributeGetter(info); |
| } |
| |
| void V8TestObject::LocationWithCallWithAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationWithCallWith_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LocationWithCallWithAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LocationByteStringAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationByteString_Getter"); |
| |
| test_object_v8_internal::LocationByteStringAttributeGetter(info); |
| } |
| |
| void V8TestObject::LocationByteStringAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationByteString_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LocationByteStringAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LocationWithPerWorldBindingsAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationWithPerWorldBindings_Getter"); |
| |
| test_object_v8_internal::LocationWithPerWorldBindingsAttributeGetter(info); |
| } |
| |
| void V8TestObject::LocationWithPerWorldBindingsAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationWithPerWorldBindings_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LocationWithPerWorldBindingsAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LocationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationWithPerWorldBindings_Getter"); |
| |
| test_object_v8_internal::LocationWithPerWorldBindingsAttributeGetterForMainWorld(info); |
| } |
| |
| void V8TestObject::LocationWithPerWorldBindingsAttributeSetterCallbackForMainWorld( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationWithPerWorldBindings_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LocationWithPerWorldBindingsAttributeSetterForMainWorld(v8_value, info); |
| } |
| |
| void V8TestObject::LocationLegacyInterfaceTypeCheckingAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationLegacyInterfaceTypeChecking_Getter"); |
| |
| test_object_v8_internal::LocationLegacyInterfaceTypeCheckingAttributeGetter(info); |
| } |
| |
| void V8TestObject::LocationLegacyInterfaceTypeCheckingAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationLegacyInterfaceTypeChecking_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LocationLegacyInterfaceTypeCheckingAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::RaisesExceptionLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionLongAttribute_Getter"); |
| |
| test_object_v8_internal::RaisesExceptionLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::RaisesExceptionLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::RaisesExceptionLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::RaisesExceptionGetterLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionGetterLongAttribute_Getter"); |
| |
| test_object_v8_internal::RaisesExceptionGetterLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::RaisesExceptionGetterLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionGetterLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::RaisesExceptionGetterLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::SetterRaisesExceptionLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_setterRaisesExceptionLongAttribute_Getter"); |
| |
| test_object_v8_internal::SetterRaisesExceptionLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::SetterRaisesExceptionLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_setterRaisesExceptionLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::SetterRaisesExceptionLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::RaisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionTestInterfaceEmptyAttribute_Getter"); |
| |
| test_object_v8_internal::RaisesExceptionTestInterfaceEmptyAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::RaisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionTestInterfaceEmptyAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::RaisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_cachedAttributeRaisesExceptionGetterAnyAttribute_Getter"); |
| |
| test_object_v8_internal::CachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::CachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_cachedAttributeRaisesExceptionGetterAnyAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::CachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ReflectTestInterfaceAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectTestInterfaceAttribute_Getter"); |
| |
| test_object_v8_internal::ReflectTestInterfaceAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReflectTestInterfaceAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectTestInterfaceAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ReflectTestInterfaceAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ReflectReflectedNameAttributeTestAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectReflectedNameAttributeTestAttribute_Getter"); |
| |
| test_object_v8_internal::ReflectReflectedNameAttributeTestAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReflectReflectedNameAttributeTestAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectReflectedNameAttributeTestAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ReflectReflectedNameAttributeTestAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ReflectBooleanAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectBooleanAttribute_Getter"); |
| |
| test_object_v8_internal::ReflectBooleanAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReflectBooleanAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectBooleanAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ReflectBooleanAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ReflectLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectLongAttribute_Getter"); |
| |
| test_object_v8_internal::ReflectLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReflectLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ReflectLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ReflectUnsignedShortAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectUnsignedShortAttribute_Getter"); |
| |
| test_object_v8_internal::ReflectUnsignedShortAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReflectUnsignedShortAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectUnsignedShortAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ReflectUnsignedShortAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ReflectUnsignedLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectUnsignedLongAttribute_Getter"); |
| |
| test_object_v8_internal::ReflectUnsignedLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReflectUnsignedLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectUnsignedLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ReflectUnsignedLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::IdAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_id_Getter"); |
| |
| test_object_v8_internal::IdAttributeGetter(info); |
| } |
| |
| void V8TestObject::IdAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_id_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::IdAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::NameAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_name_Getter"); |
| |
| test_object_v8_internal::NameAttributeGetter(info); |
| } |
| |
| void V8TestObject::NameAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_name_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::NameAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ClassAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_class_Getter"); |
| |
| test_object_v8_internal::ClassAttributeGetter(info); |
| } |
| |
| void V8TestObject::ClassAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_class_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ClassAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ReflectedIdAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectedId_Getter"); |
| |
| test_object_v8_internal::ReflectedIdAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReflectedIdAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectedId_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ReflectedIdAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ReflectedNameAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectedName_Getter"); |
| |
| test_object_v8_internal::ReflectedNameAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReflectedNameAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectedName_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ReflectedNameAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::ReflectedClassAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectedClass_Getter"); |
| |
| test_object_v8_internal::ReflectedClassAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReflectedClassAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_reflectedClass_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ReflectedClassAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LimitedToOnlyOneAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_limitedToOnlyOneAttribute_Getter"); |
| |
| test_object_v8_internal::LimitedToOnlyOneAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::LimitedToOnlyOneAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_limitedToOnlyOneAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LimitedToOnlyOneAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LimitedToOnlyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_limitedToOnlyAttribute_Getter"); |
| |
| test_object_v8_internal::LimitedToOnlyAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::LimitedToOnlyAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_limitedToOnlyAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LimitedToOnlyAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LimitedToOnlyOtherAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_limitedToOnlyOtherAttribute_Getter"); |
| |
| test_object_v8_internal::LimitedToOnlyOtherAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::LimitedToOnlyOtherAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_limitedToOnlyOtherAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LimitedToOnlyOtherAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LimitedWithMissingDefaultAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_limitedWithMissingDefaultAttribute_Getter"); |
| |
| test_object_v8_internal::LimitedWithMissingDefaultAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::LimitedWithMissingDefaultAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_limitedWithMissingDefaultAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LimitedWithMissingDefaultAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LimitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_limitedWithInvalidMissingDefaultAttribute_Getter"); |
| |
| test_object_v8_internal::LimitedWithInvalidMissingDefaultAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::LimitedWithInvalidMissingDefaultAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_limitedWithInvalidMissingDefaultAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LimitedWithInvalidMissingDefaultAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::CorsSettingAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_corsSettingAttribute_Getter"); |
| |
| test_object_v8_internal::CorsSettingAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::LimitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_limitedWithEmptyMissingInvalidAttribute_Getter"); |
| |
| test_object_v8_internal::LimitedWithEmptyMissingInvalidAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::RuntimeCallStatsCounterAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE(info.GetIsolate(), RuntimeCallStats::CounterId::kRuntimeCallStatsCounterAttribute_Getter); |
| |
| test_object_v8_internal::RuntimeCallStatsCounterAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::RuntimeCallStatsCounterAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE(info.GetIsolate(), RuntimeCallStats::CounterId::kRuntimeCallStatsCounterAttribute_Setter); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::RuntimeCallStatsCounterAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::RuntimeCallStatsCounterReadOnlyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE(info.GetIsolate(), RuntimeCallStats::CounterId::kRuntimeCallStatsCounterReadOnlyAttribute_Getter); |
| |
| test_object_v8_internal::RuntimeCallStatsCounterReadOnlyAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReplaceableReadonlyLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_replaceableReadonlyLongAttribute_Getter"); |
| |
| test_object_v8_internal::ReplaceableReadonlyLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::ReplaceableReadonlyLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_replaceableReadonlyLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::ReplaceableReadonlyLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LocationPutForwardsAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationPutForwards_Getter"); |
| |
| test_object_v8_internal::LocationPutForwardsAttributeGetter(info); |
| } |
| |
| void V8TestObject::LocationPutForwardsAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_locationPutForwards_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LocationPutForwardsAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::RuntimeEnabledLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_runtimeEnabledLongAttribute_Getter"); |
| |
| test_object_v8_internal::RuntimeEnabledLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::RuntimeEnabledLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_runtimeEnabledLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::RuntimeEnabledLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::SetterCallWithCurrentWindowAndEnteredWindowStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_setterCallWithCurrentWindowAndEnteredWindowStringAttribute_Getter"); |
| |
| test_object_v8_internal::SetterCallWithCurrentWindowAndEnteredWindowStringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::SetterCallWithCurrentWindowAndEnteredWindowStringAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_setterCallWithCurrentWindowAndEnteredWindowStringAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::SetterCallWithCurrentWindowAndEnteredWindowStringAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::SetterCallWithExecutionContextStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_setterCallWithExecutionContextStringAttribute_Getter"); |
| |
| test_object_v8_internal::SetterCallWithExecutionContextStringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::SetterCallWithExecutionContextStringAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_setterCallWithExecutionContextStringAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::SetterCallWithExecutionContextStringAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::TreatNullAsEmptyStringStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_treatNullAsEmptyStringStringAttribute_Getter"); |
| |
| test_object_v8_internal::TreatNullAsEmptyStringStringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::TreatNullAsEmptyStringStringAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_treatNullAsEmptyStringStringAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::TreatNullAsEmptyStringStringAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LegacyInterfaceTypeCheckingFloatAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_legacyInterfaceTypeCheckingFloatAttribute_Getter"); |
| |
| test_object_v8_internal::LegacyInterfaceTypeCheckingFloatAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::LegacyInterfaceTypeCheckingFloatAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_legacyInterfaceTypeCheckingFloatAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LegacyInterfaceTypeCheckingFloatAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LegacyInterfaceTypeCheckingTestInterfaceAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_legacyInterfaceTypeCheckingTestInterfaceAttribute_Getter"); |
| |
| test_object_v8_internal::LegacyInterfaceTypeCheckingTestInterfaceAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::LegacyInterfaceTypeCheckingTestInterfaceAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_legacyInterfaceTypeCheckingTestInterfaceAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LegacyInterfaceTypeCheckingTestInterfaceAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::LegacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_legacyInterfaceTypeCheckingTestInterfaceOrNullAttribute_Getter"); |
| |
| test_object_v8_internal::LegacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::LegacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_legacyInterfaceTypeCheckingTestInterfaceOrNullAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::LegacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::UrlStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_urlStringAttribute_Getter"); |
| |
| test_object_v8_internal::UrlStringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UrlStringAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_urlStringAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UrlStringAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::UrlStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_urlStringAttribute_Getter"); |
| |
| test_object_v8_internal::UrlStringAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UrlStringAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_urlStringAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UrlStringAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::UnforgeableLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unforgeableLongAttribute_Getter"); |
| |
| test_object_v8_internal::UnforgeableLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UnforgeableLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unforgeableLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UnforgeableLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::MeasuredLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_measuredLongAttribute_Getter"); |
| |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kV8TestObject_MeasuredLongAttribute_AttributeGetter); |
| |
| test_object_v8_internal::MeasuredLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::MeasuredLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_measuredLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kV8TestObject_MeasuredLongAttribute_AttributeSetter); |
| |
| test_object_v8_internal::MeasuredLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::SameObjectAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_sameObjectAttribute_Getter"); |
| |
| test_object_v8_internal::SameObjectAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::SaveSameObjectAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_saveSameObjectAttribute_Getter"); |
| |
| test_object_v8_internal::SaveSameObjectAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::StaticSaveSameObjectAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_staticSaveSameObjectAttribute_Getter"); |
| |
| test_object_v8_internal::StaticSaveSameObjectAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UnscopableLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unscopableLongAttribute_Getter"); |
| |
| test_object_v8_internal::UnscopableLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UnscopableLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unscopableLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UnscopableLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::UnscopableOriginTrialEnabledLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unscopableOriginTrialEnabledLongAttribute_Getter"); |
| |
| test_object_v8_internal::UnscopableOriginTrialEnabledLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UnscopableOriginTrialEnabledLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unscopableOriginTrialEnabledLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UnscopableOriginTrialEnabledLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::UnscopableRuntimeEnabledLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unscopableRuntimeEnabledLongAttribute_Getter"); |
| |
| test_object_v8_internal::UnscopableRuntimeEnabledLongAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UnscopableRuntimeEnabledLongAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unscopableRuntimeEnabledLongAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::UnscopableRuntimeEnabledLongAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::TestInterfaceAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceAttribute_Getter"); |
| |
| test_object_v8_internal::TestInterfaceAttributeAttributeGetter(info); |
| } |
| |
| void V8TestObject::TestInterfaceAttributeAttributeSetterCallback( |
| const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceAttribute_Setter"); |
| |
| v8::Local<v8::Value> v8_value = info[0]; |
| |
| test_object_v8_internal::TestInterfaceAttributeAttributeSetter(v8_value, info); |
| } |
| |
| void V8TestObject::SizeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_size_Getter"); |
| |
| test_object_v8_internal::SizeAttributeGetter(info); |
| } |
| |
| void V8TestObject::UnscopableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unscopableVoidMethod"); |
| |
| test_object_v8_internal::UnscopableVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::UnscopableRuntimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unscopableRuntimeEnabledVoidMethod"); |
| |
| test_object_v8_internal::UnscopableRuntimeEnabledVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethod"); |
| |
| test_object_v8_internal::VoidMethodMethod(info); |
| } |
| |
| void V8TestObject::StaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_staticVoidMethod"); |
| |
| test_object_v8_internal::StaticVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::DateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_dateMethod"); |
| |
| test_object_v8_internal::DateMethodMethod(info); |
| } |
| |
| void V8TestObject::StringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringMethod"); |
| |
| test_object_v8_internal::StringMethodMethod(info); |
| } |
| |
| void V8TestObject::ByteStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_byteStringMethod"); |
| |
| test_object_v8_internal::ByteStringMethodMethod(info); |
| } |
| |
| void V8TestObject::UsvStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_usvStringMethod"); |
| |
| test_object_v8_internal::UsvStringMethodMethod(info); |
| } |
| |
| void V8TestObject::ReadonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_readonlyDOMTimeStampMethod"); |
| |
| test_object_v8_internal::ReadonlyDOMTimeStampMethodMethod(info); |
| } |
| |
| void V8TestObject::BooleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_booleanMethod"); |
| |
| test_object_v8_internal::BooleanMethodMethod(info); |
| } |
| |
| void V8TestObject::ByteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_byteMethod"); |
| |
| test_object_v8_internal::ByteMethodMethod(info); |
| } |
| |
| void V8TestObject::DoubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_doubleMethod"); |
| |
| test_object_v8_internal::DoubleMethodMethod(info); |
| } |
| |
| void V8TestObject::FloatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_floatMethod"); |
| |
| test_object_v8_internal::FloatMethodMethod(info); |
| } |
| |
| void V8TestObject::LongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_longMethod"); |
| |
| test_object_v8_internal::LongMethodMethod(info); |
| } |
| |
| void V8TestObject::LongLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_longLongMethod"); |
| |
| test_object_v8_internal::LongLongMethodMethod(info); |
| } |
| |
| void V8TestObject::OctetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_octetMethod"); |
| |
| test_object_v8_internal::OctetMethodMethod(info); |
| } |
| |
| void V8TestObject::ShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_shortMethod"); |
| |
| test_object_v8_internal::ShortMethodMethod(info); |
| } |
| |
| void V8TestObject::UnsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unsignedLongMethod"); |
| |
| test_object_v8_internal::UnsignedLongMethodMethod(info); |
| } |
| |
| void V8TestObject::UnsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unsignedLongLongMethod"); |
| |
| test_object_v8_internal::UnsignedLongLongMethodMethod(info); |
| } |
| |
| void V8TestObject::UnsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unsignedShortMethod"); |
| |
| test_object_v8_internal::UnsignedShortMethodMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDateArg"); |
| |
| test_object_v8_internal::VoidMethodDateArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodStringArg"); |
| |
| test_object_v8_internal::VoidMethodStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodByteStringArg"); |
| |
| test_object_v8_internal::VoidMethodByteStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodUSVStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodUSVStringArg"); |
| |
| test_object_v8_internal::VoidMethodUSVStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDOMTimeStampArg"); |
| |
| test_object_v8_internal::VoidMethodDOMTimeStampArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodBooleanArg"); |
| |
| test_object_v8_internal::VoidMethodBooleanArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodByteArg"); |
| |
| test_object_v8_internal::VoidMethodByteArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDoubleArg"); |
| |
| test_object_v8_internal::VoidMethodDoubleArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodFloatArg"); |
| |
| test_object_v8_internal::VoidMethodFloatArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodLongArg"); |
| |
| test_object_v8_internal::VoidMethodLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodLongLongArg"); |
| |
| test_object_v8_internal::VoidMethodLongLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodOctetArg"); |
| |
| test_object_v8_internal::VoidMethodOctetArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodShortArg"); |
| |
| test_object_v8_internal::VoidMethodShortArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodUnsignedLongArg"); |
| |
| test_object_v8_internal::VoidMethodUnsignedLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodUnsignedLongLongArg"); |
| |
| test_object_v8_internal::VoidMethodUnsignedLongLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodUnsignedShortArg"); |
| |
| test_object_v8_internal::VoidMethodUnsignedShortArgMethod(info); |
| } |
| |
| void V8TestObject::TestInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceEmptyMethod"); |
| |
| test_object_v8_internal::TestInterfaceEmptyMethodMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodTestInterfaceEmptyArg"); |
| |
| test_object_v8_internal::VoidMethodTestInterfaceEmptyArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodLongArgTestInterfaceEmptyArg"); |
| |
| test_object_v8_internal::VoidMethodLongArgTestInterfaceEmptyArgMethod(info); |
| } |
| |
| void V8TestObject::AnyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_anyMethod"); |
| |
| test_object_v8_internal::AnyMethodMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodEventTargetArg"); |
| |
| test_object_v8_internal::VoidMethodEventTargetArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodAnyArg"); |
| |
| test_object_v8_internal::VoidMethodAnyArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodAttrArg"); |
| |
| test_object_v8_internal::VoidMethodAttrArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDocumentArg"); |
| |
| test_object_v8_internal::VoidMethodDocumentArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDocumentTypeArg"); |
| |
| test_object_v8_internal::VoidMethodDocumentTypeArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodElementArg"); |
| |
| test_object_v8_internal::VoidMethodElementArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodNodeArg"); |
| |
| test_object_v8_internal::VoidMethodNodeArgMethod(info); |
| } |
| |
| void V8TestObject::ArrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_arrayBufferMethod"); |
| |
| test_object_v8_internal::ArrayBufferMethodMethod(info); |
| } |
| |
| void V8TestObject::ArrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_arrayBufferViewMethod"); |
| |
| test_object_v8_internal::ArrayBufferViewMethodMethod(info); |
| } |
| |
| void V8TestObject::ArrayBufferViewMethodRaisesExceptionMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_arrayBufferViewMethodRaisesException"); |
| |
| test_object_v8_internal::ArrayBufferViewMethodRaisesExceptionMethod(info); |
| } |
| |
| void V8TestObject::Float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_float32ArrayMethod"); |
| |
| test_object_v8_internal::Float32ArrayMethodMethod(info); |
| } |
| |
| void V8TestObject::Int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_int32ArrayMethod"); |
| |
| test_object_v8_internal::Int32ArrayMethodMethod(info); |
| } |
| |
| void V8TestObject::Uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_uint8ArrayMethod"); |
| |
| test_object_v8_internal::Uint8ArrayMethodMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodArrayBufferArg"); |
| |
| test_object_v8_internal::VoidMethodArrayBufferArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodArrayBufferOrNullArg"); |
| |
| test_object_v8_internal::VoidMethodArrayBufferOrNullArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodArrayBufferViewArg"); |
| |
| test_object_v8_internal::VoidMethodArrayBufferViewArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodFlexibleArrayBufferViewArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodFlexibleArrayBufferViewArg"); |
| |
| test_object_v8_internal::VoidMethodFlexibleArrayBufferViewArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodFlexibleArrayBufferViewTypedArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodFlexibleArrayBufferViewTypedArg"); |
| |
| test_object_v8_internal::VoidMethodFlexibleArrayBufferViewTypedArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodFloat32ArrayArg"); |
| |
| test_object_v8_internal::VoidMethodFloat32ArrayArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodInt32ArrayArg"); |
| |
| test_object_v8_internal::VoidMethodInt32ArrayArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodUint8ArrayArg"); |
| |
| test_object_v8_internal::VoidMethodUint8ArrayArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodAllowSharedArrayBufferViewArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodAllowSharedArrayBufferViewArg"); |
| |
| test_object_v8_internal::VoidMethodAllowSharedArrayBufferViewArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodAllowSharedUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodAllowSharedUint8ArrayArg"); |
| |
| test_object_v8_internal::VoidMethodAllowSharedUint8ArrayArgMethod(info); |
| } |
| |
| void V8TestObject::LongSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_longSequenceMethod"); |
| |
| test_object_v8_internal::LongSequenceMethodMethod(info); |
| } |
| |
| void V8TestObject::StringSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringSequenceMethod"); |
| |
| test_object_v8_internal::StringSequenceMethodMethod(info); |
| } |
| |
| void V8TestObject::TestInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceEmptySequenceMethod"); |
| |
| test_object_v8_internal::TestInterfaceEmptySequenceMethodMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodSequenceLongArg"); |
| |
| test_object_v8_internal::VoidMethodSequenceLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodSequenceStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodSequenceStringArg"); |
| |
| test_object_v8_internal::VoidMethodSequenceStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodSequenceTestInterfaceEmptyArg"); |
| |
| test_object_v8_internal::VoidMethodSequenceTestInterfaceEmptyArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodSequenceSequenceDOMStringArg"); |
| |
| test_object_v8_internal::VoidMethodSequenceSequenceDOMStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodNullableSequenceLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodNullableSequenceLongArg"); |
| |
| test_object_v8_internal::VoidMethodNullableSequenceLongArgMethod(info); |
| } |
| |
| void V8TestObject::LongFrozenArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_longFrozenArrayMethod"); |
| |
| test_object_v8_internal::LongFrozenArrayMethodMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodStringFrozenArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodStringFrozenArrayMethod"); |
| |
| test_object_v8_internal::VoidMethodStringFrozenArrayMethodMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodTestInterfaceEmptyFrozenArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodTestInterfaceEmptyFrozenArrayMethod"); |
| |
| test_object_v8_internal::VoidMethodTestInterfaceEmptyFrozenArrayMethodMethod(info); |
| } |
| |
| void V8TestObject::NullableLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_nullableLongMethod"); |
| |
| test_object_v8_internal::NullableLongMethodMethod(info); |
| } |
| |
| void V8TestObject::NullableStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_nullableStringMethod"); |
| |
| test_object_v8_internal::NullableStringMethodMethod(info); |
| } |
| |
| void V8TestObject::NullableTestInterfaceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_nullableTestInterfaceMethod"); |
| |
| test_object_v8_internal::NullableTestInterfaceMethodMethod(info); |
| } |
| |
| void V8TestObject::NullableLongSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_nullableLongSequenceMethod"); |
| |
| test_object_v8_internal::NullableLongSequenceMethodMethod(info); |
| } |
| |
| void V8TestObject::BooleanOrDOMStringOrUnrestrictedDoubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_booleanOrDOMStringOrUnrestrictedDoubleMethod"); |
| |
| test_object_v8_internal::BooleanOrDOMStringOrUnrestrictedDoubleMethodMethod(info); |
| } |
| |
| void V8TestObject::TestInterfaceOrLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceOrLongMethod"); |
| |
| test_object_v8_internal::TestInterfaceOrLongMethodMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDoubleOrDOMStringArg"); |
| |
| test_object_v8_internal::VoidMethodDoubleOrDOMStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDoubleOrDOMStringOrNullArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDoubleOrDOMStringOrNullArg"); |
| |
| test_object_v8_internal::VoidMethodDoubleOrDOMStringOrNullArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDoubleOrNullOrDOMStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDoubleOrNullOrDOMStringArg"); |
| |
| test_object_v8_internal::VoidMethodDoubleOrNullOrDOMStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg"); |
| |
| test_object_v8_internal::VoidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg"); |
| |
| test_object_v8_internal::VoidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodBooleanOrElementSequenceArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodBooleanOrElementSequenceArg"); |
| |
| test_object_v8_internal::VoidMethodBooleanOrElementSequenceArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDoubleOrLongOrBooleanSequenceArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDoubleOrLongOrBooleanSequenceArg"); |
| |
| test_object_v8_internal::VoidMethodDoubleOrLongOrBooleanSequenceArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodElementSequenceOrByteStringDoubleOrStringRecordMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodElementSequenceOrByteStringDoubleOrStringRecord"); |
| |
| test_object_v8_internal::VoidMethodElementSequenceOrByteStringDoubleOrStringRecordMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodArrayOfDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodArrayOfDoubleOrDOMStringArg"); |
| |
| test_object_v8_internal::VoidMethodArrayOfDoubleOrDOMStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodTestInterfaceEmptyOrNullArg"); |
| |
| test_object_v8_internal::VoidMethodTestInterfaceEmptyOrNullArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodTestCallbackInterfaceArg"); |
| |
| test_object_v8_internal::VoidMethodTestCallbackInterfaceArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodOptionalTestCallbackInterfaceArg"); |
| |
| test_object_v8_internal::VoidMethodOptionalTestCallbackInterfaceArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodTestCallbackInterfaceOrNullArg"); |
| |
| test_object_v8_internal::VoidMethodTestCallbackInterfaceOrNullArgMethod(info); |
| } |
| |
| void V8TestObject::TestEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testEnumMethod"); |
| |
| test_object_v8_internal::TestEnumMethodMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodTestEnumArg"); |
| |
| test_object_v8_internal::VoidMethodTestEnumArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodTestMultipleEnumArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodTestMultipleEnumArg"); |
| |
| test_object_v8_internal::VoidMethodTestMultipleEnumArgMethod(info); |
| } |
| |
| void V8TestObject::DictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_dictionaryMethod"); |
| |
| test_object_v8_internal::DictionaryMethodMethod(info); |
| } |
| |
| void V8TestObject::TestDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testDictionaryMethod"); |
| |
| test_object_v8_internal::TestDictionaryMethodMethod(info); |
| } |
| |
| void V8TestObject::NullableTestDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_nullableTestDictionaryMethod"); |
| |
| test_object_v8_internal::NullableTestDictionaryMethodMethod(info); |
| } |
| |
| void V8TestObject::StaticTestDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_staticTestDictionaryMethod"); |
| |
| test_object_v8_internal::StaticTestDictionaryMethodMethod(info); |
| } |
| |
| void V8TestObject::StaticNullableTestDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_staticNullableTestDictionaryMethod"); |
| |
| test_object_v8_internal::StaticNullableTestDictionaryMethodMethod(info); |
| } |
| |
| void V8TestObject::PassPermissiveDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_passPermissiveDictionaryMethod"); |
| |
| test_object_v8_internal::PassPermissiveDictionaryMethodMethod(info); |
| } |
| |
| void V8TestObject::NodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_nodeFilterMethod"); |
| |
| test_object_v8_internal::NodeFilterMethodMethod(info); |
| } |
| |
| void V8TestObject::PromiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_promiseMethod"); |
| |
| test_object_v8_internal::PromiseMethodMethod(info); |
| } |
| |
| void V8TestObject::PromiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_promiseMethodWithoutExceptionState"); |
| |
| test_object_v8_internal::PromiseMethodWithoutExceptionStateMethod(info); |
| } |
| |
| void V8TestObject::SerializedScriptValueMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_serializedScriptValueMethod"); |
| |
| test_object_v8_internal::SerializedScriptValueMethodMethod(info); |
| } |
| |
| void V8TestObject::XPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_xPathNSResolverMethod"); |
| |
| test_object_v8_internal::XPathNSResolverMethodMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDictionaryArg"); |
| |
| test_object_v8_internal::VoidMethodDictionaryArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodNodeFilterArg"); |
| |
| test_object_v8_internal::VoidMethodNodeFilterArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodPromiseArg"); |
| |
| test_object_v8_internal::VoidMethodPromiseArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodSerializedScriptValueArg"); |
| |
| test_object_v8_internal::VoidMethodSerializedScriptValueArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodXPathNSResolverArg"); |
| |
| test_object_v8_internal::VoidMethodXPathNSResolverArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDictionarySequenceArg"); |
| |
| test_object_v8_internal::VoidMethodDictionarySequenceArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodStringArgLongArg"); |
| |
| test_object_v8_internal::VoidMethodStringArgLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodByteStringOrNullOptionalUSVStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodByteStringOrNullOptionalUSVStringArg"); |
| |
| test_object_v8_internal::VoidMethodByteStringOrNullOptionalUSVStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodOptionalStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodOptionalStringArg"); |
| |
| test_object_v8_internal::VoidMethodOptionalStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodOptionalTestInterfaceEmptyArg"); |
| |
| test_object_v8_internal::VoidMethodOptionalTestInterfaceEmptyArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodOptionalLongArg"); |
| |
| test_object_v8_internal::VoidMethodOptionalLongArgMethod(info); |
| } |
| |
| void V8TestObject::StringMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_stringMethodOptionalLongArg"); |
| |
| test_object_v8_internal::StringMethodOptionalLongArgMethod(info); |
| } |
| |
| void V8TestObject::TestInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_testInterfaceEmptyMethodOptionalLongArg"); |
| |
| test_object_v8_internal::TestInterfaceEmptyMethodOptionalLongArgMethod(info); |
| } |
| |
| void V8TestObject::LongMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_longMethodOptionalLongArg"); |
| |
| test_object_v8_internal::LongMethodOptionalLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodLongArgOptionalLongArg"); |
| |
| test_object_v8_internal::VoidMethodLongArgOptionalLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodLongArgOptionalLongArgOptionalLongArg"); |
| |
| test_object_v8_internal::VoidMethodLongArgOptionalLongArgOptionalLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodLongArgOptionalTestInterfaceEmptyArg"); |
| |
| test_object_v8_internal::VoidMethodLongArgOptionalTestInterfaceEmptyArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodTestInterfaceEmptyArgOptionalLongArg"); |
| |
| test_object_v8_internal::VoidMethodTestInterfaceEmptyArgOptionalLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodOptionalDictionaryArg"); |
| |
| test_object_v8_internal::VoidMethodOptionalDictionaryArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultByteStringArg"); |
| |
| test_object_v8_internal::VoidMethodDefaultByteStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultStringArg"); |
| |
| test_object_v8_internal::VoidMethodDefaultStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultIntegerArgs"); |
| |
| test_object_v8_internal::VoidMethodDefaultIntegerArgsMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultDoubleArg"); |
| |
| test_object_v8_internal::VoidMethodDefaultDoubleArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultTrueBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultTrueBooleanArg"); |
| |
| test_object_v8_internal::VoidMethodDefaultTrueBooleanArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultFalseBooleanArg"); |
| |
| test_object_v8_internal::VoidMethodDefaultFalseBooleanArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultNullableByteStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultNullableByteStringArg"); |
| |
| test_object_v8_internal::VoidMethodDefaultNullableByteStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultNullableStringArg"); |
| |
| test_object_v8_internal::VoidMethodDefaultNullableStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultNullableTestInterfaceArg"); |
| |
| test_object_v8_internal::VoidMethodDefaultNullableTestInterfaceArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultDoubleOrStringArgsMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultDoubleOrStringArgs"); |
| |
| test_object_v8_internal::VoidMethodDefaultDoubleOrStringArgsMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultStringSequenceArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultStringSequenceArg"); |
| |
| test_object_v8_internal::VoidMethodDefaultStringSequenceArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodVariadicStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodVariadicStringArg"); |
| |
| test_object_v8_internal::VoidMethodVariadicStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodStringArgVariadicStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodStringArgVariadicStringArg"); |
| |
| test_object_v8_internal::VoidMethodStringArgVariadicStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodVariadicTestInterfaceEmptyArg"); |
| |
| test_object_v8_internal::VoidMethodVariadicTestInterfaceEmptyArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg"); |
| |
| test_object_v8_internal::VoidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodA"); |
| |
| test_object_v8_internal::OverloadedMethodAMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodB"); |
| |
| test_object_v8_internal::OverloadedMethodBMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodC"); |
| |
| test_object_v8_internal::OverloadedMethodCMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodD"); |
| |
| test_object_v8_internal::OverloadedMethodDMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodE"); |
| |
| test_object_v8_internal::OverloadedMethodEMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodF"); |
| |
| test_object_v8_internal::OverloadedMethodFMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodG"); |
| |
| test_object_v8_internal::OverloadedMethodGMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodH"); |
| |
| test_object_v8_internal::OverloadedMethodHMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodI"); |
| |
| test_object_v8_internal::OverloadedMethodIMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodJ"); |
| |
| test_object_v8_internal::OverloadedMethodJMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodK"); |
| |
| test_object_v8_internal::OverloadedMethodKMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodL"); |
| |
| test_object_v8_internal::OverloadedMethodLMethod(info); |
| } |
| |
| void V8TestObject::OverloadedMethodNMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedMethodN"); |
| |
| test_object_v8_internal::OverloadedMethodNMethod(info); |
| } |
| |
| void V8TestObject::PromiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_promiseOverloadMethod"); |
| |
| test_object_v8_internal::PromiseOverloadMethodMethod(info); |
| } |
| |
| void V8TestObject::OverloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedPerWorldBindingsMethod"); |
| |
| test_object_v8_internal::OverloadedPerWorldBindingsMethodMethod(info); |
| } |
| |
| void V8TestObject::OverloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedPerWorldBindingsMethod"); |
| |
| test_object_v8_internal::OverloadedPerWorldBindingsMethodMethodForMainWorld(info); |
| } |
| |
| void V8TestObject::OverloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_overloadedStaticMethod"); |
| |
| test_object_v8_internal::OverloadedStaticMethodMethod(info); |
| } |
| |
| void V8TestObject::ItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_item"); |
| |
| test_object_v8_internal::ItemMethod(info); |
| } |
| |
| void V8TestObject::SetItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_setItem"); |
| |
| test_object_v8_internal::SetItemMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodClampUnsignedShortArg"); |
| |
| test_object_v8_internal::VoidMethodClampUnsignedShortArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodClampUnsignedLongArg"); |
| |
| test_object_v8_internal::VoidMethodClampUnsignedLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultUndefinedTestInterfaceEmptyArg"); |
| |
| test_object_v8_internal::VoidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultUndefinedLongArg"); |
| |
| test_object_v8_internal::VoidMethodDefaultUndefinedLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodDefaultUndefinedStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultUndefinedStringArg"); |
| |
| test_object_v8_internal::VoidMethodDefaultUndefinedStringArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodEnforceRangeLongArg"); |
| |
| test_object_v8_internal::VoidMethodEnforceRangeLongArgMethod(info); |
| } |
| |
| void V8TestObject::VoidMethodTreatNullAsEmptyStringStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodTreatNullAsEmptyStringStringArg"); |
| |
| test_object_v8_internal::VoidMethodTreatNullAsEmptyStringStringArgMethod(info); |
| } |
| |
| void V8TestObject::ActivityLoggingAccessForAllWorldsMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingAccessForAllWorldsMethod"); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogMethod("TestObject.activityLoggingAccessForAllWorldsMethod", info); |
| } |
| test_object_v8_internal::ActivityLoggingAccessForAllWorldsMethodMethod(info); |
| } |
| |
| void V8TestObject::CallWithExecutionContextVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithExecutionContextVoidMethod"); |
| |
| test_object_v8_internal::CallWithExecutionContextVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::CallWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithScriptStateVoidMethod"); |
| |
| test_object_v8_internal::CallWithScriptStateVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::CallWithScriptStateLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithScriptStateLongMethod"); |
| |
| test_object_v8_internal::CallWithScriptStateLongMethodMethod(info); |
| } |
| |
| void V8TestObject::CallWithScriptStateExecutionContextVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithScriptStateExecutionContextVoidMethod"); |
| |
| test_object_v8_internal::CallWithScriptStateExecutionContextVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::CallWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithScriptStateScriptArgumentsVoidMethod"); |
| |
| test_object_v8_internal::CallWithScriptStateScriptArgumentsVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::CallWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg"); |
| |
| test_object_v8_internal::CallWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod(info); |
| } |
| |
| void V8TestObject::CallWithCurrentWindowMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithCurrentWindow"); |
| |
| test_object_v8_internal::CallWithCurrentWindowMethod(info); |
| } |
| |
| void V8TestObject::CallWithCurrentWindowScriptWindowMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithCurrentWindowScriptWindow"); |
| |
| test_object_v8_internal::CallWithCurrentWindowScriptWindowMethod(info); |
| } |
| |
| void V8TestObject::CallWithThisValueMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithThisValue"); |
| |
| test_object_v8_internal::CallWithThisValueMethod(info); |
| } |
| |
| void V8TestObject::CheckSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_checkSecurityForNodeVoidMethod"); |
| |
| test_object_v8_internal::CheckSecurityForNodeVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::CustomVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customVoidMethod"); |
| |
| V8TestObject::CustomVoidMethodMethodCustom(info); |
| } |
| |
| void V8TestObject::CustomCallPrologueVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customCallPrologueVoidMethod"); |
| |
| test_object_v8_internal::CustomCallPrologueVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::CustomCallEpilogueVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_customCallEpilogueVoidMethod"); |
| |
| test_object_v8_internal::CustomCallEpilogueVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::DeprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_deprecatedVoidMethod"); |
| |
| Deprecation::CountDeprecation(CurrentExecutionContext(info.GetIsolate()), WebFeature::kvoidMethod); |
| test_object_v8_internal::DeprecatedVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::ImplementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_implementedAsVoidMethod"); |
| |
| test_object_v8_internal::ImplementedAsVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::MeasureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_measureAsVoidMethod"); |
| |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kTestFeature); |
| test_object_v8_internal::MeasureAsVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::MeasureMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_measureMethod"); |
| |
| UseCounter::Count(CurrentExecutionContext(info.GetIsolate()), WebFeature::kV8TestObject_MeasureMethod_Method); |
| test_object_v8_internal::MeasureMethodMethod(info); |
| } |
| |
| void V8TestObject::MeasureOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_measureOverloadedMethod"); |
| |
| test_object_v8_internal::MeasureOverloadedMethodMethod(info); |
| } |
| |
| void V8TestObject::DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_DeprecateAsOverloadedMethod"); |
| |
| test_object_v8_internal::DeprecateAsOverloadedMethodMethod(info); |
| } |
| |
| void V8TestObject::DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_DeprecateAsSameValueOverloadedMethod"); |
| |
| test_object_v8_internal::DeprecateAsSameValueOverloadedMethodMethod(info); |
| } |
| |
| void V8TestObject::MeasureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_measureAsOverloadedMethod"); |
| |
| test_object_v8_internal::MeasureAsOverloadedMethodMethod(info); |
| } |
| |
| void V8TestObject::MeasureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_measureAsSameValueOverloadedMethod"); |
| |
| test_object_v8_internal::MeasureAsSameValueOverloadedMethodMethod(info); |
| } |
| |
| void V8TestObject::CeReactionsNotOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_ceReactionsNotOverloadedMethod"); |
| |
| test_object_v8_internal::CeReactionsNotOverloadedMethodMethod(info); |
| } |
| |
| void V8TestObject::CeReactionsOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_ceReactionsOverloadedMethod"); |
| |
| test_object_v8_internal::CeReactionsOverloadedMethodMethod(info); |
| } |
| |
| void V8TestObject::DeprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_deprecateAsMeasureAsSameValueOverloadedMethod"); |
| |
| test_object_v8_internal::DeprecateAsMeasureAsSameValueOverloadedMethodMethod(info); |
| } |
| |
| void V8TestObject::DeprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_deprecateAsSameValueMeasureAsOverloadedMethod"); |
| |
| test_object_v8_internal::DeprecateAsSameValueMeasureAsOverloadedMethodMethod(info); |
| } |
| |
| void V8TestObject::DeprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_deprecateAsSameValueMeasureAsSameValueOverloadedMethod"); |
| |
| test_object_v8_internal::DeprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(info); |
| } |
| |
| void V8TestObject::NotEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_notEnumerableVoidMethod"); |
| |
| test_object_v8_internal::NotEnumerableVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::OriginTrialEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_originTrialEnabledVoidMethod"); |
| |
| test_object_v8_internal::OriginTrialEnabledVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::PerWorldBindingsOriginTrialEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_perWorldBindingsOriginTrialEnabledVoidMethod"); |
| |
| test_object_v8_internal::PerWorldBindingsOriginTrialEnabledVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::PerWorldBindingsOriginTrialEnabledVoidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_perWorldBindingsOriginTrialEnabledVoidMethod"); |
| |
| test_object_v8_internal::PerWorldBindingsOriginTrialEnabledVoidMethodMethodForMainWorld(info); |
| } |
| |
| void V8TestObject::PerWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_perWorldBindingsVoidMethod"); |
| |
| test_object_v8_internal::PerWorldBindingsVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::PerWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_perWorldBindingsVoidMethod"); |
| |
| test_object_v8_internal::PerWorldBindingsVoidMethodMethodForMainWorld(info); |
| } |
| |
| void V8TestObject::PerWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_perWorldBindingsVoidMethodTestInterfaceEmptyArg"); |
| |
| test_object_v8_internal::PerWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(info); |
| } |
| |
| void V8TestObject::PerWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_perWorldBindingsVoidMethodTestInterfaceEmptyArg"); |
| |
| test_object_v8_internal::PerWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(info); |
| } |
| |
| void V8TestObject::ActivityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingForAllWorldsPerWorldBindingsVoidMethod"); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogMethod("TestObject.activityLoggingForAllWorldsPerWorldBindingsVoidMethod", info); |
| } |
| test_object_v8_internal::ActivityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::ActivityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingForAllWorldsPerWorldBindingsVoidMethod"); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogMethod("TestObject.activityLoggingForAllWorldsPerWorldBindingsVoidMethod", info); |
| } |
| test_object_v8_internal::ActivityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWorld(info); |
| } |
| |
| void V8TestObject::ActivityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod"); |
| |
| ScriptState* script_state = ScriptState::ForRelevantRealm(info); |
| V8PerContextData* context_data = script_state->PerContextData(); |
| if (context_data && context_data->ActivityLogger()) { |
| context_data->ActivityLogger()->LogMethod("TestObject.activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", info); |
| } |
| test_object_v8_internal::ActivityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::ActivityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod"); |
| |
| test_object_v8_internal::ActivityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForMainWorld(info); |
| } |
| |
| void V8TestObject::RaisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionVoidMethod"); |
| |
| test_object_v8_internal::RaisesExceptionVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::RaisesExceptionStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionStringMethod"); |
| |
| test_object_v8_internal::RaisesExceptionStringMethodMethod(info); |
| } |
| |
| void V8TestObject::RaisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionVoidMethodOptionalLongArg"); |
| |
| test_object_v8_internal::RaisesExceptionVoidMethodOptionalLongArgMethod(info); |
| } |
| |
| void V8TestObject::RaisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionVoidMethodTestCallbackInterfaceArg"); |
| |
| test_object_v8_internal::RaisesExceptionVoidMethodTestCallbackInterfaceArgMethod(info); |
| } |
| |
| void V8TestObject::RaisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg"); |
| |
| test_object_v8_internal::RaisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(info); |
| } |
| |
| void V8TestObject::RaisesExceptionTestInterfaceEmptyVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionTestInterfaceEmptyVoidMethod"); |
| |
| test_object_v8_internal::RaisesExceptionTestInterfaceEmptyVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::RaisesExceptionXPathNSResolverVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_raisesExceptionXPathNSResolverVoidMethod"); |
| |
| test_object_v8_internal::RaisesExceptionXPathNSResolverVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::CallWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithExecutionContextRaisesExceptionVoidMethodLongArg"); |
| |
| test_object_v8_internal::CallWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(info); |
| } |
| |
| void V8TestObject::RuntimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_runtimeEnabledVoidMethod"); |
| |
| test_object_v8_internal::RuntimeEnabledVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::PerWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_perWorldBindingsRuntimeEnabledVoidMethod"); |
| |
| test_object_v8_internal::PerWorldBindingsRuntimeEnabledVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::PerWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_perWorldBindingsRuntimeEnabledVoidMethod"); |
| |
| test_object_v8_internal::PerWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(info); |
| } |
| |
| void V8TestObject::RuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_runtimeEnabledOverloadedVoidMethod"); |
| |
| test_object_v8_internal::RuntimeEnabledOverloadedVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::PartiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_partiallyRuntimeEnabledOverloadedVoidMethod"); |
| |
| test_object_v8_internal::PartiallyRuntimeEnabledOverloadedVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::LegacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArg"); |
| |
| test_object_v8_internal::LegacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(info); |
| } |
| |
| void V8TestObject::LegacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArg"); |
| |
| test_object_v8_internal::LegacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArgMethod(info); |
| } |
| |
| void V8TestObject::UseToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg"); |
| |
| test_object_v8_internal::UseToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethod(info); |
| } |
| |
| void V8TestObject::UseToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_useToImpl4ArgumentsCheckingIfPossibleWithNullableArg"); |
| |
| test_object_v8_internal::UseToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethod(info); |
| } |
| |
| void V8TestObject::UseToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg"); |
| |
| test_object_v8_internal::UseToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethod(info); |
| } |
| |
| void V8TestObject::UnforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_unforgeableVoidMethod"); |
| |
| test_object_v8_internal::UnforgeableVoidMethodMethod(info); |
| } |
| |
| void V8TestObject::NewObjectTestInterfaceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_newObjectTestInterfaceMethod"); |
| |
| test_object_v8_internal::NewObjectTestInterfaceMethodMethod(info); |
| } |
| |
| void V8TestObject::NewObjectTestInterfacePromiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_newObjectTestInterfacePromiseMethod"); |
| |
| test_object_v8_internal::NewObjectTestInterfacePromiseMethodMethod(info); |
| } |
| |
| void V8TestObject::RuntimeCallStatsCounterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE(info.GetIsolate(), RuntimeCallStats::CounterId::kRuntimeCallStatsCounterMethod); |
| test_object_v8_internal::RuntimeCallStatsCounterMethodMethod(info); |
| } |
| |
| void V8TestObject::ClearMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_clear"); |
| |
| test_object_v8_internal::ClearMethod(info); |
| } |
| |
| void V8TestObject::KeysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_keys"); |
| |
| test_object_v8_internal::KeysMethod(info); |
| } |
| |
| void V8TestObject::ValuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_values"); |
| |
| test_object_v8_internal::ValuesMethod(info); |
| } |
| |
| void V8TestObject::ForEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_forEach"); |
| |
| test_object_v8_internal::ForEachMethod(info); |
| } |
| |
| void V8TestObject::HasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_has"); |
| |
| test_object_v8_internal::HasMethod(info); |
| } |
| |
| void V8TestObject::GetMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_get"); |
| |
| test_object_v8_internal::GetMethod(info); |
| } |
| |
| void V8TestObject::DeleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_delete"); |
| |
| test_object_v8_internal::DeleteMethod(info); |
| } |
| |
| void V8TestObject::SetMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_set"); |
| |
| test_object_v8_internal::SetMethod(info); |
| } |
| |
| void V8TestObject::ToJSONMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_toJSON"); |
| |
| test_object_v8_internal::ToJSONMethod(info); |
| } |
| |
| void V8TestObject::ToStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_toString"); |
| |
| test_object_v8_internal::ToStringMethod(info); |
| } |
| |
| void V8TestObject::IteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_iterator"); |
| |
| test_object_v8_internal::IteratorMethod(info); |
| } |
| |
| void V8TestObject::NamedPropertyGetterCallback( |
| v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_NamedPropertyGetter"); |
| |
| if (!name->IsString()) |
| return; |
| const AtomicString& property_name = ToCoreAtomicString(name.As<v8::String>()); |
| |
| test_object_v8_internal::NamedPropertyGetter(property_name, info); |
| } |
| |
| void V8TestObject::NamedPropertySetterCallback( |
| v8::Local<v8::Name> name, |
| v8::Local<v8::Value> v8_value, |
| const v8::PropertyCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_NamedPropertySetter"); |
| |
| if (!name->IsString()) |
| return; |
| const AtomicString& property_name = ToCoreAtomicString(name.As<v8::String>()); |
| |
| test_object_v8_internal::NamedPropertySetter(property_name, v8_value, info); |
| } |
| |
| void V8TestObject::NamedPropertyDeleterCallback( |
| v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Boolean>& info) { |
| if (!name->IsString()) |
| return; |
| const AtomicString& property_name = ToCoreAtomicString(name.As<v8::String>()); |
| |
| test_object_v8_internal::NamedPropertyDeleter(property_name, info); |
| } |
| |
| void V8TestObject::NamedPropertyQueryCallback( |
| v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Integer>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_NamedPropertyQuery"); |
| |
| if (!name->IsString()) |
| return; |
| const AtomicString& property_name = ToCoreAtomicString(name.As<v8::String>()); |
| |
| test_object_v8_internal::NamedPropertyQuery(property_name, info); |
| } |
| |
| void V8TestObject::NamedPropertyEnumeratorCallback( |
| const v8::PropertyCallbackInfo<v8::Array>& info) { |
| test_object_v8_internal::NamedPropertyEnumerator(info); |
| } |
| |
| void V8TestObject::IndexedPropertyGetterCallback( |
| uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info) { |
| RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_IndexedPropertyGetter"); |
| |
| test_object_v8_internal::IndexedPropertyGetter(index, info); |
| } |
| |
| void V8TestObject::IndexedPropertyDescriptorCallback( |
| uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info) { |
| test_object_v8_internal::IndexedPropertyDescriptor(index, info); |
| } |
| |
| void V8TestObject::IndexedPropertySetterCallback( |
| uint32_t index, |
| v8::Local<v8::Value> v8_value, |
| const v8::PropertyCallbackInfo<v8::Value>& info) { |
| test_object_v8_internal::IndexedPropertySetter(index, v8_value, info); |
| } |
| |
| void V8TestObject::IndexedPropertyDeleterCallback( |
| uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean>& info) { |
| test_object_v8_internal::IndexedPropertyDeleter(index, info); |
| } |
| |
| void V8TestObject::IndexedPropertyDefinerCallback( |
| uint32_t index, |
| const v8::PropertyDescriptor& desc, |
| const v8::PropertyCallbackInfo<v8::Value>& info) { |
| // https://heycam.github.io/webidl/#legacy-platform-object-defineownproperty |
| // 3.9.3. [[DefineOwnProperty]] |
| // step 1.1. If the result of calling IsDataDescriptor(Desc) is false, then |
| // return false. |
| if (desc.has_get() || desc.has_set()) { |
| V8SetReturnValue(info, v8::Null(info.GetIsolate())); |
| if (info.ShouldThrowOnError()) { |
| ExceptionState exception_state(info.GetIsolate(), |
| ExceptionState::kIndexedSetterContext, |
| "TestObject"); |
| exception_state.ThrowTypeError("Accessor properties are not allowed."); |
| } |
| return; |
| } |
| |
| // Return nothing and fall back to indexedPropertySetterCallback. |
| } |
| |
| // Suppress warning: global constructors, because AttributeConfiguration is trivial |
| // and does not depend on another global objects. |
| #if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__) |
| #pragma clang diagnostic push |
| #pragma clang diagnostic ignored "-Wglobal-constructors" |
| #endif |
| static constexpr V8DOMConfiguration::AttributeConfiguration kV8TestObjectAttributes[] = { |
| { "testInterfaceEmptyConstructorAttribute", V8TestObject::TestInterfaceEmptyConstructorAttributeConstructorGetterCallback, nullptr, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::kOnInstance, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kReplaceWithDataProperty, V8DOMConfiguration::kAllWorlds }, |
| { "testInterfaceEmptyConstructorAttribute", V8TestObject::TestInterfaceEmptyConstructorAttributeConstructorGetterCallback, nullptr, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::kOnInstance, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", V8TestObject::MeasureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGetterCallback, nullptr, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::kOnInstance, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| }; |
| #if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__) |
| #pragma clang diagnostic pop |
| #endif |
| |
| static constexpr V8DOMConfiguration::AccessorConfiguration kV8TestObjectAccessors[] = { |
| { "stringifierAttribute", V8TestObject::StringifierAttributeAttributeGetterCallback, V8TestObject::StringifierAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "readonlyStringAttribute", V8TestObject::ReadonlyStringAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "readonlyTestInterfaceEmptyAttribute", V8TestObject::ReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "readonlyLongAttribute", V8TestObject::ReadonlyLongAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "dateAttribute", V8TestObject::DateAttributeAttributeGetterCallback, V8TestObject::DateAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "stringAttribute", V8TestObject::StringAttributeAttributeGetterCallback, V8TestObject::StringAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "byteStringAttribute", V8TestObject::ByteStringAttributeAttributeGetterCallback, V8TestObject::ByteStringAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "usvStringAttribute", V8TestObject::UsvStringAttributeAttributeGetterCallback, V8TestObject::UsvStringAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "domTimeStampAttribute", V8TestObject::DOMTimeStampAttributeAttributeGetterCallback, V8TestObject::DOMTimeStampAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "booleanAttribute", V8TestObject::BooleanAttributeAttributeGetterCallback, V8TestObject::BooleanAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "byteAttribute", V8TestObject::ByteAttributeAttributeGetterCallback, V8TestObject::ByteAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "doubleAttribute", V8TestObject::DoubleAttributeAttributeGetterCallback, V8TestObject::DoubleAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "floatAttribute", V8TestObject::FloatAttributeAttributeGetterCallback, V8TestObject::FloatAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "longAttribute", V8TestObject::LongAttributeAttributeGetterCallback, V8TestObject::LongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "longLongAttribute", V8TestObject::LongLongAttributeAttributeGetterCallback, V8TestObject::LongLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "octetAttribute", V8TestObject::OctetAttributeAttributeGetterCallback, V8TestObject::OctetAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "shortAttribute", V8TestObject::ShortAttributeAttributeGetterCallback, V8TestObject::ShortAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "unrestrictedDoubleAttribute", V8TestObject::UnrestrictedDoubleAttributeAttributeGetterCallback, V8TestObject::UnrestrictedDoubleAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "unrestrictedFloatAttribute", V8TestObject::UnrestrictedFloatAttributeAttributeGetterCallback, V8TestObject::UnrestrictedFloatAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "unsignedLongAttribute", V8TestObject::UnsignedLongAttributeAttributeGetterCallback, V8TestObject::UnsignedLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "unsignedLongLongAttribute", V8TestObject::UnsignedLongLongAttributeAttributeGetterCallback, V8TestObject::UnsignedLongLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "unsignedShortAttribute", V8TestObject::UnsignedShortAttributeAttributeGetterCallback, V8TestObject::UnsignedShortAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "testInterfaceEmptyAttribute", V8TestObject::TestInterfaceEmptyAttributeAttributeGetterCallback, V8TestObject::TestInterfaceEmptyAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "testObjectAttribute", V8TestObject::TestObjectAttributeAttributeGetterCallback, V8TestObject::TestObjectAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "cssAttribute", V8TestObject::CSSAttributeAttributeGetterCallback, V8TestObject::CSSAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "imeAttribute", V8TestObject::ImeAttributeAttributeGetterCallback, V8TestObject::ImeAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "svgAttribute", V8TestObject::SVGAttributeAttributeGetterCallback, V8TestObject::SVGAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "xmlAttribute", V8TestObject::XmlAttributeAttributeGetterCallback, V8TestObject::XmlAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "nodeFilterAttribute", V8TestObject::NodeFilterAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "serializedScriptValueAttribute", V8TestObject::SerializedScriptValueAttributeAttributeGetterCallback, V8TestObject::SerializedScriptValueAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "anyAttribute", V8TestObject::AnyAttributeAttributeGetterCallback, V8TestObject::AnyAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "promiseAttribute", V8TestObject::PromiseAttributeAttributeGetterCallback, V8TestObject::PromiseAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kDoNotCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "windowAttribute", V8TestObject::WindowAttributeAttributeGetterCallback, V8TestObject::WindowAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "documentAttribute", V8TestObject::DocumentAttributeAttributeGetterCallback, V8TestObject::DocumentAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "documentFragmentAttribute", V8TestObject::DocumentFragmentAttributeAttributeGetterCallback, V8TestObject::DocumentFragmentAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "documentTypeAttribute", V8TestObject::DocumentTypeAttributeAttributeGetterCallback, V8TestObject::DocumentTypeAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "elementAttribute", V8TestObject::ElementAttributeAttributeGetterCallback, V8TestObject::ElementAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "nodeAttribute", V8TestObject::NodeAttributeAttributeGetterCallback, V8TestObject::NodeAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "shadowRootAttribute", V8TestObject::ShadowRootAttributeAttributeGetterCallback, V8TestObject::ShadowRootAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "arrayBufferAttribute", V8TestObject::ArrayBufferAttributeAttributeGetterCallback, V8TestObject::ArrayBufferAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "float32ArrayAttribute", V8TestObject::Float32ArrayAttributeAttributeGetterCallback, V8TestObject::Float32ArrayAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "uint8ArrayAttribute", V8TestObject::Uint8ArrayAttributeAttributeGetterCallback, V8TestObject::Uint8ArrayAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "self", V8TestObject::SelfAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "readonlyEventTargetAttribute", V8TestObject::ReadonlyEventTargetAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "readonlyEventTargetOrNullAttribute", V8TestObject::ReadonlyEventTargetOrNullAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "readonlyWindowAttribute", V8TestObject::ReadonlyWindowAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "htmlCollectionAttribute", V8TestObject::HTMLCollectionAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "htmlElementAttribute", V8TestObject::HTMLElementAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "stringFrozenArrayAttribute", V8TestObject::StringFrozenArrayAttributeAttributeGetterCallback, V8TestObject::StringFrozenArrayAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "testInterfaceEmptyFrozenArrayAttribute", V8TestObject::TestInterfaceEmptyFrozenArrayAttributeAttributeGetterCallback, V8TestObject::TestInterfaceEmptyFrozenArrayAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "booleanOrNullAttribute", V8TestObject::BooleanOrNullAttributeAttributeGetterCallback, V8TestObject::BooleanOrNullAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "stringOrNullAttribute", V8TestObject::StringOrNullAttributeAttributeGetterCallback, V8TestObject::StringOrNullAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "longOrNullAttribute", V8TestObject::LongOrNullAttributeAttributeGetterCallback, V8TestObject::LongOrNullAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "testInterfaceOrNullAttribute", V8TestObject::TestInterfaceOrNullAttributeAttributeGetterCallback, V8TestObject::TestInterfaceOrNullAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "testEnumAttribute", V8TestObject::TestEnumAttributeAttributeGetterCallback, V8TestObject::TestEnumAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "testEnumOrNullAttribute", V8TestObject::TestEnumOrNullAttributeAttributeGetterCallback, V8TestObject::TestEnumOrNullAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "staticStringAttribute", V8TestObject::StaticStringAttributeAttributeGetterCallback, V8TestObject::StaticStringAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnInterface, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "staticLongAttribute", V8TestObject::StaticLongAttributeAttributeGetterCallback, V8TestObject::StaticLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnInterface, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "eventHandlerAttribute", V8TestObject::EventHandlerAttributeAttributeGetterCallback, V8TestObject::EventHandlerAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "doubleOrStringAttribute", V8TestObject::DoubleOrStringAttributeAttributeGetterCallback, V8TestObject::DoubleOrStringAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "doubleOrStringOrNullAttribute", V8TestObject::DoubleOrStringOrNullAttributeAttributeGetterCallback, V8TestObject::DoubleOrStringOrNullAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "doubleOrNullStringAttribute", V8TestObject::DoubleOrNullStringAttributeAttributeGetterCallback, V8TestObject::DoubleOrNullStringAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "stringOrStringSequenceAttribute", V8TestObject::StringOrStringSequenceAttributeAttributeGetterCallback, V8TestObject::StringOrStringSequenceAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "testEnumOrDoubleAttribute", V8TestObject::TestEnumOrDoubleAttributeAttributeGetterCallback, V8TestObject::TestEnumOrDoubleAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "unrestrictedDoubleOrStringAttribute", V8TestObject::UnrestrictedDoubleOrStringAttributeAttributeGetterCallback, V8TestObject::UnrestrictedDoubleOrStringAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "nestedUnionAtribute", V8TestObject::NestedUnionAtributeAttributeGetterCallback, V8TestObject::NestedUnionAtributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "activityLoggingAccessForAllWorldsLongAttribute", V8TestObject::ActivityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, V8TestObject::ActivityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "activityLoggingGetterForAllWorldsLongAttribute", V8TestObject::ActivityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, V8TestObject::ActivityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "activityLoggingSetterForAllWorldsLongAttribute", V8TestObject::ActivityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, V8TestObject::ActivityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "cachedAttributeAnyAttribute", V8TestObject::CachedAttributeAnyAttributeAttributeGetterCallback, V8TestObject::CachedAttributeAnyAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "cachedArrayAttribute", V8TestObject::CachedArrayAttributeAttributeGetterCallback, V8TestObject::CachedArrayAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "cachedStringOrNoneAttribute", V8TestObject::CachedStringOrNoneAttributeAttributeGetterCallback, V8TestObject::CachedStringOrNoneAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "callWithExecutionContextAnyAttribute", V8TestObject::CallWithExecutionContextAnyAttributeAttributeGetterCallback, V8TestObject::CallWithExecutionContextAnyAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "callWithScriptStateAnyAttribute", V8TestObject::CallWithScriptStateAnyAttributeAttributeGetterCallback, V8TestObject::CallWithScriptStateAnyAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "callWithExecutionContextAndScriptStateAnyAttribute", V8TestObject::CallWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCallback, V8TestObject::CallWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "checkSecurityForNodeReadonlyDocumentAttribute", V8TestObject::CheckSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "customObjectAttribute", V8TestObject::CustomObjectAttributeAttributeGetterCallback, V8TestObject::CustomObjectAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "customGetterLongAttribute", V8TestObject::CustomGetterLongAttributeAttributeGetterCallback, V8TestObject::CustomGetterLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "customGetterReadonlyObjectAttribute", V8TestObject::CustomGetterReadonlyObjectAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "customSetterLongAttribute", V8TestObject::CustomSetterLongAttributeAttributeGetterCallback, V8TestObject::CustomSetterLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "deprecatedLongAttribute", V8TestObject::DeprecatedLongAttributeAttributeGetterCallback, V8TestObject::DeprecatedLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "enforceRangeLongAttribute", V8TestObject::EnforceRangeLongAttributeAttributeGetterCallback, V8TestObject::EnforceRangeLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "implementedAsLongAttribute", V8TestObject::ImplementedAsLongAttributeAttributeGetterCallback, V8TestObject::ImplementedAsLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "customImplementedAsLongAttribute", V8TestObject::CustomImplementedAsLongAttributeAttributeGetterCallback, V8TestObject::CustomImplementedAsLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "customGetterImplementedAsLongAttribute", V8TestObject::CustomGetterImplementedAsLongAttributeAttributeGetterCallback, V8TestObject::CustomGetterImplementedAsLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "customSetterImplementedAsLongAttribute", V8TestObject::CustomSetterImplementedAsLongAttributeAttributeGetterCallback, V8TestObject::CustomSetterImplementedAsLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "measureAsLongAttribute", V8TestObject::MeasureAsLongAttributeAttributeGetterCallback, V8TestObject::MeasureAsLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "notEnumerableLongAttribute", V8TestObject::NotEnumerableLongAttributeAttributeGetterCallback, V8TestObject::NotEnumerableLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "perWorldBindingsReadonlyTestInterfaceEmptyAttribute", V8TestObject::PerWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallbackForMainWorld, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kMainWorld }, |
| { "perWorldBindingsReadonlyTestInterfaceEmptyAttribute", V8TestObject::PerWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kNonMainWorlds }, |
| { "activityLoggingAccessPerWorldBindingsLongAttribute", V8TestObject::ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld, V8TestObject::ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kMainWorld }, |
| { "activityLoggingAccessPerWorldBindingsLongAttribute", V8TestObject::ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback, V8TestObject::ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kNonMainWorlds }, |
| { "activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", V8TestObject::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld, V8TestObject::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kMainWorld }, |
| { "activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", V8TestObject::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterCallback, V8TestObject::ActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kNonMainWorlds }, |
| { "activityLoggingGetterPerWorldBindingsLongAttribute", V8TestObject::ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld, V8TestObject::ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kMainWorld }, |
| { "activityLoggingGetterPerWorldBindingsLongAttribute", V8TestObject::ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback, V8TestObject::ActivityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kNonMainWorlds }, |
| { "activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", V8TestObject::ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld, V8TestObject::ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kMainWorld }, |
| { "activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", V8TestObject::ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterCallback, V8TestObject::ActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kNonMainWorlds }, |
| { "location", V8TestObject::LocationAttributeGetterCallback, V8TestObject::LocationAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "locationWithException", V8TestObject::LocationWithExceptionAttributeGetterCallback, V8TestObject::LocationWithExceptionAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "locationWithCallWith", V8TestObject::LocationWithCallWithAttributeGetterCallback, V8TestObject::LocationWithCallWithAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "locationByteString", V8TestObject::LocationByteStringAttributeGetterCallback, V8TestObject::LocationByteStringAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "locationWithPerWorldBindings", V8TestObject::LocationWithPerWorldBindingsAttributeGetterCallbackForMainWorld, V8TestObject::LocationWithPerWorldBindingsAttributeSetterCallbackForMainWorld, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kMainWorld }, |
| { "locationWithPerWorldBindings", V8TestObject::LocationWithPerWorldBindingsAttributeGetterCallback, V8TestObject::LocationWithPerWorldBindingsAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kNonMainWorlds }, |
| { "locationLegacyInterfaceTypeChecking", V8TestObject::LocationLegacyInterfaceTypeCheckingAttributeGetterCallback, V8TestObject::LocationLegacyInterfaceTypeCheckingAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "raisesExceptionLongAttribute", V8TestObject::RaisesExceptionLongAttributeAttributeGetterCallback, V8TestObject::RaisesExceptionLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "raisesExceptionGetterLongAttribute", V8TestObject::RaisesExceptionGetterLongAttributeAttributeGetterCallback, V8TestObject::RaisesExceptionGetterLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "setterRaisesExceptionLongAttribute", V8TestObject::SetterRaisesExceptionLongAttributeAttributeGetterCallback, V8TestObject::SetterRaisesExceptionLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "raisesExceptionTestInterfaceEmptyAttribute", V8TestObject::RaisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback, V8TestObject::RaisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "cachedAttributeRaisesExceptionGetterAnyAttribute", V8TestObject::CachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallback, V8TestObject::CachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "reflectTestInterfaceAttribute", V8TestObject::ReflectTestInterfaceAttributeAttributeGetterCallback, V8TestObject::ReflectTestInterfaceAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "reflectReflectedNameAttributeTestAttribute", V8TestObject::ReflectReflectedNameAttributeTestAttributeAttributeGetterCallback, V8TestObject::ReflectReflectedNameAttributeTestAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "reflectBooleanAttribute", V8TestObject::ReflectBooleanAttributeAttributeGetterCallback, V8TestObject::ReflectBooleanAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "reflectLongAttribute", V8TestObject::ReflectLongAttributeAttributeGetterCallback, V8TestObject::ReflectLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "reflectUnsignedShortAttribute", V8TestObject::ReflectUnsignedShortAttributeAttributeGetterCallback, V8TestObject::ReflectUnsignedShortAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "reflectUnsignedLongAttribute", V8TestObject::ReflectUnsignedLongAttributeAttributeGetterCallback, V8TestObject::ReflectUnsignedLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "id", V8TestObject::IdAttributeGetterCallback, V8TestObject::IdAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "name", V8TestObject::NameAttributeGetterCallback, V8TestObject::NameAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "class", V8TestObject::ClassAttributeGetterCallback, V8TestObject::ClassAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "reflectedId", V8TestObject::ReflectedIdAttributeGetterCallback, V8TestObject::ReflectedIdAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "reflectedName", V8TestObject::ReflectedNameAttributeGetterCallback, V8TestObject::ReflectedNameAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "reflectedClass", V8TestObject::ReflectedClassAttributeGetterCallback, V8TestObject::ReflectedClassAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "limitedToOnlyOneAttribute", V8TestObject::LimitedToOnlyOneAttributeAttributeGetterCallback, V8TestObject::LimitedToOnlyOneAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "limitedToOnlyAttribute", V8TestObject::LimitedToOnlyAttributeAttributeGetterCallback, V8TestObject::LimitedToOnlyAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "limitedToOnlyOtherAttribute", V8TestObject::LimitedToOnlyOtherAttributeAttributeGetterCallback, V8TestObject::LimitedToOnlyOtherAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "limitedWithMissingDefaultAttribute", V8TestObject::LimitedWithMissingDefaultAttributeAttributeGetterCallback, V8TestObject::LimitedWithMissingDefaultAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "limitedWithInvalidMissingDefaultAttribute", V8TestObject::LimitedWithInvalidMissingDefaultAttributeAttributeGetterCallback, V8TestObject::LimitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "corsSettingAttribute", V8TestObject::CorsSettingAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "limitedWithEmptyMissingInvalidAttribute", V8TestObject::LimitedWithEmptyMissingInvalidAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "RuntimeCallStatsCounterAttribute", V8TestObject::RuntimeCallStatsCounterAttributeAttributeGetterCallback, V8TestObject::RuntimeCallStatsCounterAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "RuntimeCallStatsCounterReadOnlyAttribute", V8TestObject::RuntimeCallStatsCounterReadOnlyAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "replaceableReadonlyLongAttribute", V8TestObject::ReplaceableReadonlyLongAttributeAttributeGetterCallback, V8TestObject::ReplaceableReadonlyLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "locationPutForwards", V8TestObject::LocationPutForwardsAttributeGetterCallback, V8TestObject::LocationPutForwardsAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "setterCallWithCurrentWindowAndEnteredWindowStringAttribute", V8TestObject::SetterCallWithCurrentWindowAndEnteredWindowStringAttributeAttributeGetterCallback, V8TestObject::SetterCallWithCurrentWindowAndEnteredWindowStringAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "setterCallWithExecutionContextStringAttribute", V8TestObject::SetterCallWithExecutionContextStringAttributeAttributeGetterCallback, V8TestObject::SetterCallWithExecutionContextStringAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "treatNullAsEmptyStringStringAttribute", V8TestObject::TreatNullAsEmptyStringStringAttributeAttributeGetterCallback, V8TestObject::TreatNullAsEmptyStringStringAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "legacyInterfaceTypeCheckingFloatAttribute", V8TestObject::LegacyInterfaceTypeCheckingFloatAttributeAttributeGetterCallback, V8TestObject::LegacyInterfaceTypeCheckingFloatAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "legacyInterfaceTypeCheckingTestInterfaceAttribute", V8TestObject::LegacyInterfaceTypeCheckingTestInterfaceAttributeAttributeGetterCallback, V8TestObject::LegacyInterfaceTypeCheckingTestInterfaceAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "legacyInterfaceTypeCheckingTestInterfaceOrNullAttribute", V8TestObject::LegacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeGetterCallback, V8TestObject::LegacyInterfaceTypeCheckingTestInterfaceOrNullAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "urlStringAttribute", V8TestObject::UrlStringAttributeAttributeGetterCallback, V8TestObject::UrlStringAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "urlStringAttribute", V8TestObject::UrlStringAttributeAttributeGetterCallback, V8TestObject::UrlStringAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "unforgeableLongAttribute", V8TestObject::UnforgeableLongAttributeAttributeGetterCallback, V8TestObject::UnforgeableLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::kOnInstance, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "measuredLongAttribute", V8TestObject::MeasuredLongAttributeAttributeGetterCallback, V8TestObject::MeasuredLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "sameObjectAttribute", V8TestObject::SameObjectAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "saveSameObjectAttribute", V8TestObject::SaveSameObjectAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "staticSaveSameObjectAttribute", V8TestObject::StaticSaveSameObjectAttributeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::kOnInterface, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "unscopableLongAttribute", V8TestObject::UnscopableLongAttributeAttributeGetterCallback, V8TestObject::UnscopableLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "testInterfaceAttribute", V8TestObject::TestInterfaceAttributeAttributeGetterCallback, V8TestObject::TestInterfaceAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "size", V8TestObject::SizeAttributeGetterCallback, nullptr, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::DontEnum | v8::ReadOnly), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| }; |
| |
| static constexpr V8DOMConfiguration::MethodConfiguration kV8TestObjectMethods[] = { |
| {"unscopableVoidMethod", V8TestObject::UnscopableVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethod", V8TestObject::VoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"staticVoidMethod", V8TestObject::StaticVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnInterface, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"dateMethod", V8TestObject::DateMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"stringMethod", V8TestObject::StringMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"byteStringMethod", V8TestObject::ByteStringMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"usvStringMethod", V8TestObject::UsvStringMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"readonlyDOMTimeStampMethod", V8TestObject::ReadonlyDOMTimeStampMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"booleanMethod", V8TestObject::BooleanMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"byteMethod", V8TestObject::ByteMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"doubleMethod", V8TestObject::DoubleMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"floatMethod", V8TestObject::FloatMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"longMethod", V8TestObject::LongMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"longLongMethod", V8TestObject::LongLongMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"octetMethod", V8TestObject::OctetMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"shortMethod", V8TestObject::ShortMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"unsignedLongMethod", V8TestObject::UnsignedLongMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"unsignedLongLongMethod", V8TestObject::UnsignedLongLongMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"unsignedShortMethod", V8TestObject::UnsignedShortMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDateArg", V8TestObject::VoidMethodDateArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodStringArg", V8TestObject::VoidMethodStringArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodByteStringArg", V8TestObject::VoidMethodByteStringArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodUSVStringArg", V8TestObject::VoidMethodUSVStringArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDOMTimeStampArg", V8TestObject::VoidMethodDOMTimeStampArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodBooleanArg", V8TestObject::VoidMethodBooleanArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodByteArg", V8TestObject::VoidMethodByteArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDoubleArg", V8TestObject::VoidMethodDoubleArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodFloatArg", V8TestObject::VoidMethodFloatArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodLongArg", V8TestObject::VoidMethodLongArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodLongLongArg", V8TestObject::VoidMethodLongLongArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodOctetArg", V8TestObject::VoidMethodOctetArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodShortArg", V8TestObject::VoidMethodShortArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodUnsignedLongArg", V8TestObject::VoidMethodUnsignedLongArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodUnsignedLongLongArg", V8TestObject::VoidMethodUnsignedLongLongArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodUnsignedShortArg", V8TestObject::VoidMethodUnsignedShortArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"testInterfaceEmptyMethod", V8TestObject::TestInterfaceEmptyMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodTestInterfaceEmptyArg", V8TestObject::VoidMethodTestInterfaceEmptyArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodLongArgTestInterfaceEmptyArg", V8TestObject::VoidMethodLongArgTestInterfaceEmptyArgMethodCallback, 2, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"anyMethod", V8TestObject::AnyMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodEventTargetArg", V8TestObject::VoidMethodEventTargetArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodAnyArg", V8TestObject::VoidMethodAnyArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodAttrArg", V8TestObject::VoidMethodAttrArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDocumentArg", V8TestObject::VoidMethodDocumentArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDocumentTypeArg", V8TestObject::VoidMethodDocumentTypeArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodElementArg", V8TestObject::VoidMethodElementArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodNodeArg", V8TestObject::VoidMethodNodeArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"arrayBufferMethod", V8TestObject::ArrayBufferMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"arrayBufferViewMethod", V8TestObject::ArrayBufferViewMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"arrayBufferViewMethodRaisesException", V8TestObject::ArrayBufferViewMethodRaisesExceptionMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"float32ArrayMethod", V8TestObject::Float32ArrayMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"int32ArrayMethod", V8TestObject::Int32ArrayMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"uint8ArrayMethod", V8TestObject::Uint8ArrayMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodArrayBufferArg", V8TestObject::VoidMethodArrayBufferArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodArrayBufferOrNullArg", V8TestObject::VoidMethodArrayBufferOrNullArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodArrayBufferViewArg", V8TestObject::VoidMethodArrayBufferViewArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodFlexibleArrayBufferViewArg", V8TestObject::VoidMethodFlexibleArrayBufferViewArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodFlexibleArrayBufferViewTypedArg", V8TestObject::VoidMethodFlexibleArrayBufferViewTypedArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodFloat32ArrayArg", V8TestObject::VoidMethodFloat32ArrayArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodInt32ArrayArg", V8TestObject::VoidMethodInt32ArrayArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodUint8ArrayArg", V8TestObject::VoidMethodUint8ArrayArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodAllowSharedArrayBufferViewArg", V8TestObject::VoidMethodAllowSharedArrayBufferViewArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodAllowSharedUint8ArrayArg", V8TestObject::VoidMethodAllowSharedUint8ArrayArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"longSequenceMethod", V8TestObject::LongSequenceMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"stringSequenceMethod", V8TestObject::StringSequenceMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"testInterfaceEmptySequenceMethod", V8TestObject::TestInterfaceEmptySequenceMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodSequenceLongArg", V8TestObject::VoidMethodSequenceLongArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodSequenceStringArg", V8TestObject::VoidMethodSequenceStringArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodSequenceTestInterfaceEmptyArg", V8TestObject::VoidMethodSequenceTestInterfaceEmptyArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodSequenceSequenceDOMStringArg", V8TestObject::VoidMethodSequenceSequenceDOMStringArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodNullableSequenceLongArg", V8TestObject::VoidMethodNullableSequenceLongArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"longFrozenArrayMethod", V8TestObject::LongFrozenArrayMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodStringFrozenArrayMethod", V8TestObject::VoidMethodStringFrozenArrayMethodMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodTestInterfaceEmptyFrozenArrayMethod", V8TestObject::VoidMethodTestInterfaceEmptyFrozenArrayMethodMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"nullableLongMethod", V8TestObject::NullableLongMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"nullableStringMethod", V8TestObject::NullableStringMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"nullableTestInterfaceMethod", V8TestObject::NullableTestInterfaceMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"nullableLongSequenceMethod", V8TestObject::NullableLongSequenceMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"booleanOrDOMStringOrUnrestrictedDoubleMethod", V8TestObject::BooleanOrDOMStringOrUnrestrictedDoubleMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"testInterfaceOrLongMethod", V8TestObject::TestInterfaceOrLongMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDoubleOrDOMStringArg", V8TestObject::VoidMethodDoubleOrDOMStringArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDoubleOrDOMStringOrNullArg", V8TestObject::VoidMethodDoubleOrDOMStringOrNullArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDoubleOrNullOrDOMStringArg", V8TestObject::VoidMethodDoubleOrNullOrDOMStringArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg", V8TestObject::VoidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg", V8TestObject::VoidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodBooleanOrElementSequenceArg", V8TestObject::VoidMethodBooleanOrElementSequenceArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDoubleOrLongOrBooleanSequenceArg", V8TestObject::VoidMethodDoubleOrLongOrBooleanSequenceArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodElementSequenceOrByteStringDoubleOrStringRecord", V8TestObject::VoidMethodElementSequenceOrByteStringDoubleOrStringRecordMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodArrayOfDoubleOrDOMStringArg", V8TestObject::VoidMethodArrayOfDoubleOrDOMStringArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodTestInterfaceEmptyOrNullArg", V8TestObject::VoidMethodTestInterfaceEmptyOrNullArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodTestCallbackInterfaceArg", V8TestObject::VoidMethodTestCallbackInterfaceArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodOptionalTestCallbackInterfaceArg", V8TestObject::VoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodTestCallbackInterfaceOrNullArg", V8TestObject::VoidMethodTestCallbackInterfaceOrNullArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"testEnumMethod", V8TestObject::TestEnumMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodTestEnumArg", V8TestObject::VoidMethodTestEnumArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodTestMultipleEnumArg", V8TestObject::VoidMethodTestMultipleEnumArgMethodCallback, 2, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"dictionaryMethod", V8TestObject::DictionaryMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"testDictionaryMethod", V8TestObject::TestDictionaryMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"nullableTestDictionaryMethod", V8TestObject::NullableTestDictionaryMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"staticTestDictionaryMethod", V8TestObject::StaticTestDictionaryMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnInterface, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"staticNullableTestDictionaryMethod", V8TestObject::StaticNullableTestDictionaryMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnInterface, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"passPermissiveDictionaryMethod", V8TestObject::PassPermissiveDictionaryMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"nodeFilterMethod", V8TestObject::NodeFilterMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"promiseMethod", V8TestObject::PromiseMethodMethodCallback, 3, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kDoNotCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"promiseMethodWithoutExceptionState", V8TestObject::PromiseMethodWithoutExceptionStateMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kDoNotCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"serializedScriptValueMethod", V8TestObject::SerializedScriptValueMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"xPathNSResolverMethod", V8TestObject::XPathNSResolverMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDictionaryArg", V8TestObject::VoidMethodDictionaryArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodNodeFilterArg", V8TestObject::VoidMethodNodeFilterArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodPromiseArg", V8TestObject::VoidMethodPromiseArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodSerializedScriptValueArg", V8TestObject::VoidMethodSerializedScriptValueArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodXPathNSResolverArg", V8TestObject::VoidMethodXPathNSResolverArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDictionarySequenceArg", V8TestObject::VoidMethodDictionarySequenceArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodStringArgLongArg", V8TestObject::VoidMethodStringArgLongArgMethodCallback, 2, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodByteStringOrNullOptionalUSVStringArg", V8TestObject::VoidMethodByteStringOrNullOptionalUSVStringArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodOptionalStringArg", V8TestObject::VoidMethodOptionalStringArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodOptionalTestInterfaceEmptyArg", V8TestObject::VoidMethodOptionalTestInterfaceEmptyArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodOptionalLongArg", V8TestObject::VoidMethodOptionalLongArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"stringMethodOptionalLongArg", V8TestObject::StringMethodOptionalLongArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"testInterfaceEmptyMethodOptionalLongArg", V8TestObject::TestInterfaceEmptyMethodOptionalLongArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"longMethodOptionalLongArg", V8TestObject::LongMethodOptionalLongArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodLongArgOptionalLongArg", V8TestObject::VoidMethodLongArgOptionalLongArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodLongArgOptionalLongArgOptionalLongArg", V8TestObject::VoidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodLongArgOptionalTestInterfaceEmptyArg", V8TestObject::VoidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodTestInterfaceEmptyArgOptionalLongArg", V8TestObject::VoidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodOptionalDictionaryArg", V8TestObject::VoidMethodOptionalDictionaryArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultByteStringArg", V8TestObject::VoidMethodDefaultByteStringArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultStringArg", V8TestObject::VoidMethodDefaultStringArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultIntegerArgs", V8TestObject::VoidMethodDefaultIntegerArgsMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultDoubleArg", V8TestObject::VoidMethodDefaultDoubleArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultTrueBooleanArg", V8TestObject::VoidMethodDefaultTrueBooleanArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultFalseBooleanArg", V8TestObject::VoidMethodDefaultFalseBooleanArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultNullableByteStringArg", V8TestObject::VoidMethodDefaultNullableByteStringArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultNullableStringArg", V8TestObject::VoidMethodDefaultNullableStringArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultNullableTestInterfaceArg", V8TestObject::VoidMethodDefaultNullableTestInterfaceArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultDoubleOrStringArgs", V8TestObject::VoidMethodDefaultDoubleOrStringArgsMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultStringSequenceArg", V8TestObject::VoidMethodDefaultStringSequenceArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodVariadicStringArg", V8TestObject::VoidMethodVariadicStringArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodStringArgVariadicStringArg", V8TestObject::VoidMethodStringArgVariadicStringArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodVariadicTestInterfaceEmptyArg", V8TestObject::VoidMethodVariadicTestInterfaceEmptyArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", V8TestObject::VoidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodA", V8TestObject::OverloadedMethodAMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodB", V8TestObject::OverloadedMethodBMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodC", V8TestObject::OverloadedMethodCMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodD", V8TestObject::OverloadedMethodDMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodE", V8TestObject::OverloadedMethodEMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodF", V8TestObject::OverloadedMethodFMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodG", V8TestObject::OverloadedMethodGMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodH", V8TestObject::OverloadedMethodHMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodI", V8TestObject::OverloadedMethodIMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodJ", V8TestObject::OverloadedMethodJMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodK", V8TestObject::OverloadedMethodKMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodL", V8TestObject::OverloadedMethodLMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedMethodN", V8TestObject::OverloadedMethodNMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"promiseOverloadMethod", V8TestObject::PromiseOverloadMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kDoNotCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"overloadedPerWorldBindingsMethod", V8TestObject::OverloadedPerWorldBindingsMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kMainWorld}, |
| {"overloadedPerWorldBindingsMethod", V8TestObject::OverloadedPerWorldBindingsMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kNonMainWorlds}, |
| {"overloadedStaticMethod", V8TestObject::OverloadedStaticMethodMethodCallback, 1, v8::None, V8DOMConfiguration::kOnInterface, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"item", V8TestObject::ItemMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"setItem", V8TestObject::SetItemMethodCallback, 2, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodClampUnsignedShortArg", V8TestObject::VoidMethodClampUnsignedShortArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodClampUnsignedLongArg", V8TestObject::VoidMethodClampUnsignedLongArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", V8TestObject::VoidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultUndefinedLongArg", V8TestObject::VoidMethodDefaultUndefinedLongArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodDefaultUndefinedStringArg", V8TestObject::VoidMethodDefaultUndefinedStringArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodEnforceRangeLongArg", V8TestObject::VoidMethodEnforceRangeLongArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"voidMethodTreatNullAsEmptyStringStringArg", V8TestObject::VoidMethodTreatNullAsEmptyStringStringArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"activityLoggingAccessForAllWorldsMethod", V8TestObject::ActivityLoggingAccessForAllWorldsMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"callWithExecutionContextVoidMethod", V8TestObject::CallWithExecutionContextVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"callWithScriptStateVoidMethod", V8TestObject::CallWithScriptStateVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"callWithScriptStateLongMethod", V8TestObject::CallWithScriptStateLongMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"callWithScriptStateExecutionContextVoidMethod", V8TestObject::CallWithScriptStateExecutionContextVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"callWithScriptStateScriptArgumentsVoidMethod", V8TestObject::CallWithScriptStateScriptArgumentsVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", V8TestObject::CallWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"callWithCurrentWindow", V8TestObject::CallWithCurrentWindowMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"callWithCurrentWindowScriptWindow", V8TestObject::CallWithCurrentWindowScriptWindowMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"callWithThisValue", V8TestObject::CallWithThisValueMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"checkSecurityForNodeVoidMethod", V8TestObject::CheckSecurityForNodeVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"customVoidMethod", V8TestObject::CustomVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"customCallPrologueVoidMethod", V8TestObject::CustomCallPrologueVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"customCallEpilogueVoidMethod", V8TestObject::CustomCallEpilogueVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"deprecatedVoidMethod", V8TestObject::DeprecatedVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"implementedAsVoidMethod", V8TestObject::ImplementedAsVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"measureAsVoidMethod", V8TestObject::MeasureAsVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"measureMethod", V8TestObject::MeasureMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"measureOverloadedMethod", V8TestObject::MeasureOverloadedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"DeprecateAsOverloadedMethod", V8TestObject::DeprecateAsOverloadedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"DeprecateAsSameValueOverloadedMethod", V8TestObject::DeprecateAsSameValueOverloadedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"measureAsOverloadedMethod", V8TestObject::MeasureAsOverloadedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"measureAsSameValueOverloadedMethod", V8TestObject::MeasureAsSameValueOverloadedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"ceReactionsNotOverloadedMethod", V8TestObject::CeReactionsNotOverloadedMethodMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"ceReactionsOverloadedMethod", V8TestObject::CeReactionsOverloadedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"deprecateAsMeasureAsSameValueOverloadedMethod", V8TestObject::DeprecateAsMeasureAsSameValueOverloadedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"deprecateAsSameValueMeasureAsOverloadedMethod", V8TestObject::DeprecateAsSameValueMeasureAsOverloadedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"deprecateAsSameValueMeasureAsSameValueOverloadedMethod", V8TestObject::DeprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"notEnumerableVoidMethod", V8TestObject::NotEnumerableVoidMethodMethodCallback, 0, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"perWorldBindingsVoidMethod", V8TestObject::PerWorldBindingsVoidMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kMainWorld}, |
| {"perWorldBindingsVoidMethod", V8TestObject::PerWorldBindingsVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kNonMainWorlds}, |
| {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", V8TestObject::PerWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kMainWorld}, |
| {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", V8TestObject::PerWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kNonMainWorlds}, |
| {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", V8TestObject::ActivityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kMainWorld}, |
| {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", V8TestObject::ActivityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kNonMainWorlds}, |
| {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", V8TestObject::ActivityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kMainWorld}, |
| {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", V8TestObject::ActivityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kNonMainWorlds}, |
| {"raisesExceptionVoidMethod", V8TestObject::RaisesExceptionVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"raisesExceptionStringMethod", V8TestObject::RaisesExceptionStringMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"raisesExceptionVoidMethodOptionalLongArg", V8TestObject::RaisesExceptionVoidMethodOptionalLongArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"raisesExceptionVoidMethodTestCallbackInterfaceArg", V8TestObject::RaisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", V8TestObject::RaisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"raisesExceptionTestInterfaceEmptyVoidMethod", V8TestObject::RaisesExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"raisesExceptionXPathNSResolverVoidMethod", V8TestObject::RaisesExceptionXPathNSResolverVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", V8TestObject::CallWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArg", V8TestObject::LegacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArg", V8TestObject::LegacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArgMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", V8TestObject::UseToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", V8TestObject::UseToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback, 2, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", V8TestObject::UseToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"unforgeableVoidMethod", V8TestObject::UnforgeableVoidMethodMethodCallback, 0, static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete), V8DOMConfiguration::kOnInstance, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"newObjectTestInterfaceMethod", V8TestObject::NewObjectTestInterfaceMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"newObjectTestInterfacePromiseMethod", V8TestObject::NewObjectTestInterfacePromiseMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kDoNotCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"RuntimeCallStatsCounterMethod", V8TestObject::RuntimeCallStatsCounterMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"keys", V8TestObject::KeysMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"values", V8TestObject::ValuesMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"forEach", V8TestObject::ForEachMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"has", V8TestObject::HasMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"get", V8TestObject::GetMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"delete", V8TestObject::DeleteMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"set", V8TestObject::SetMethodCallback, 2, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"toJSON", V8TestObject::ToJSONMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| {"toString", V8TestObject::ToStringMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds}, |
| }; |
| |
| static void InstallV8TestObjectTemplate( |
| v8::Isolate* isolate, |
| const DOMWrapperWorld& world, |
| v8::Local<v8::FunctionTemplate> interface_template) { |
| // Initialize the interface object's template. |
| V8DOMConfiguration::InitializeDOMInterfaceTemplate(isolate, interface_template, V8TestObject::GetWrapperTypeInfo()->interface_name, v8::Local<v8::FunctionTemplate>(), V8TestObject::kInternalFieldCount); |
| |
| v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interface_template); |
| ALLOW_UNUSED_LOCAL(signature); |
| v8::Local<v8::ObjectTemplate> instance_template = interface_template->InstanceTemplate(); |
| ALLOW_UNUSED_LOCAL(instance_template); |
| v8::Local<v8::ObjectTemplate> prototype_template = interface_template->PrototypeTemplate(); |
| ALLOW_UNUSED_LOCAL(prototype_template); |
| |
| // Register IDL constants, attributes and operations. |
| V8DOMConfiguration::InstallAttributes( |
| isolate, world, instance_template, prototype_template, |
| kV8TestObjectAttributes, base::size(kV8TestObjectAttributes)); |
| V8DOMConfiguration::InstallAccessors( |
| isolate, world, instance_template, prototype_template, interface_template, |
| signature, kV8TestObjectAccessors, base::size(kV8TestObjectAccessors)); |
| V8DOMConfiguration::InstallMethods( |
| isolate, world, instance_template, prototype_template, interface_template, |
| signature, kV8TestObjectMethods, base::size(kV8TestObjectMethods)); |
| |
| // Indexed properties |
| v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig( |
| V8TestObject::IndexedPropertyGetterCallback, |
| V8TestObject::IndexedPropertySetterCallback, |
| V8TestObject::IndexedPropertyDescriptorCallback, |
| V8TestObject::IndexedPropertyDeleterCallback, |
| IndexedPropertyEnumerator<TestObject>, |
| V8TestObject::IndexedPropertyDefinerCallback, |
| v8::Local<v8::Value>(), |
| v8::PropertyHandlerFlags::kNone); |
| instance_template->SetHandler(indexedPropertyHandlerConfig); |
| // Named properties |
| v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(V8TestObject::NamedPropertyGetterCallback, V8TestObject::NamedPropertySetterCallback, V8TestObject::NamedPropertyQueryCallback, V8TestObject::NamedPropertyDeleterCallback, V8TestObject::NamedPropertyEnumeratorCallback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(int(v8::PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFlags::kNonMasking))); |
| instance_template->SetHandler(namedPropertyHandlerConfig); |
| |
| // Iterator (@@iterator) |
| static const V8DOMConfiguration::SymbolKeyedMethodConfiguration |
| kSymbolKeyedIteratorConfiguration = { |
| v8::Symbol::GetIterator, |
| "entries", |
| V8TestObject::IteratorMethodCallback, |
| 0, |
| v8::DontEnum, |
| V8DOMConfiguration::kOnPrototype, |
| V8DOMConfiguration::kCheckHolder, |
| V8DOMConfiguration::kDoNotCheckAccess, |
| V8DOMConfiguration::kHasSideEffect |
| }; |
| V8DOMConfiguration::InstallMethod( |
| isolate, world, prototype_template, signature, |
| kSymbolKeyedIteratorConfiguration); |
| |
| // Custom signature |
| { |
| // Install partiallyRuntimeEnabledOverloadedVoidMethod configuration |
| constexpr V8DOMConfiguration::MethodConfiguration kConfigurations[] = { |
| {"partiallyRuntimeEnabledOverloadedVoidMethod", V8TestObject::PartiallyRuntimeEnabledOverloadedVoidMethodMethodCallback, test_object_v8_internal::PartiallyRuntimeEnabledOverloadedVoidMethodMethodLength(), v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds} |
| }; |
| for (const auto& config : kConfigurations) { |
| V8DOMConfiguration::InstallMethod( |
| isolate, world, instance_template, prototype_template, |
| interface_template, signature, config); |
| } |
| } |
| |
| V8TestObject::InstallRuntimeEnabledFeaturesOnTemplate( |
| isolate, world, interface_template); |
| } |
| |
| void V8TestObject::InstallRuntimeEnabledFeaturesOnTemplate( |
| v8::Isolate* isolate, |
| const DOMWrapperWorld& world, |
| v8::Local<v8::FunctionTemplate> interface_template) { |
| v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interface_template); |
| ALLOW_UNUSED_LOCAL(signature); |
| v8::Local<v8::ObjectTemplate> instance_template = interface_template->InstanceTemplate(); |
| ALLOW_UNUSED_LOCAL(instance_template); |
| v8::Local<v8::ObjectTemplate> prototype_template = interface_template->PrototypeTemplate(); |
| ALLOW_UNUSED_LOCAL(prototype_template); |
| |
| // Register IDL constants, attributes and operations. |
| |
| if (RuntimeEnabledFeatures::FeatureNameEnabled()) { |
| static constexpr V8DOMConfiguration::AccessorConfiguration kConfigurations[] = { |
| { "runtimeEnabledLongAttribute", V8TestObject::RuntimeEnabledLongAttributeAttributeGetterCallback, V8TestObject::RuntimeEnabledLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| { "unscopableRuntimeEnabledLongAttribute", V8TestObject::UnscopableRuntimeEnabledLongAttributeAttributeGetterCallback, V8TestObject::UnscopableRuntimeEnabledLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds }, |
| }; |
| V8DOMConfiguration::InstallAccessors( |
| isolate, world, instance_template, prototype_template, interface_template, |
| signature, kConfigurations, base::size(kConfigurations)); |
| } |
| |
| // Custom signature |
| if (RuntimeEnabledFeatures::FeatureNameEnabled()) { |
| { |
| // Install unscopableRuntimeEnabledVoidMethod configuration |
| constexpr V8DOMConfiguration::MethodConfiguration kConfigurations[] = { |
| {"unscopableRuntimeEnabledVoidMethod", V8TestObject::UnscopableRuntimeEnabledVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds} |
| }; |
| for (const auto& config : kConfigurations) { |
| V8DOMConfiguration::InstallMethod( |
| isolate, world, instance_template, prototype_template, |
| interface_template, signature, config); |
| } |
| } |
| } |
| if (RuntimeEnabledFeatures::FeatureNameEnabled()) { |
| { |
| // Install runtimeEnabledVoidMethod configuration |
| constexpr V8DOMConfiguration::MethodConfiguration kConfigurations[] = { |
| {"runtimeEnabledVoidMethod", V8TestObject::RuntimeEnabledVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds} |
| }; |
| for (const auto& config : kConfigurations) { |
| V8DOMConfiguration::InstallMethod( |
| isolate, world, instance_template, prototype_template, |
| interface_template, signature, config); |
| } |
| } |
| } |
| if (RuntimeEnabledFeatures::FeatureNameEnabled()) { |
| { |
| // Install perWorldBindingsRuntimeEnabledVoidMethod configuration |
| constexpr V8DOMConfiguration::MethodConfiguration kConfigurations[] = { |
| {"perWorldBindingsRuntimeEnabledVoidMethod", V8TestObject::PerWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kMainWorld}, |
| {"perWorldBindingsRuntimeEnabledVoidMethod", V8TestObject::PerWorldBindingsRuntimeEnabledVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kNonMainWorlds} |
| }; |
| for (const auto& config : kConfigurations) { |
| V8DOMConfiguration::InstallMethod( |
| isolate, world, instance_template, prototype_template, |
| interface_template, signature, config); |
| } |
| } |
| } |
| if (RuntimeEnabledFeatures::FeatureNameEnabled()) { |
| { |
| // Install runtimeEnabledOverloadedVoidMethod configuration |
| constexpr V8DOMConfiguration::MethodConfiguration kConfigurations[] = { |
| {"runtimeEnabledOverloadedVoidMethod", V8TestObject::RuntimeEnabledOverloadedVoidMethodMethodCallback, 1, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds} |
| }; |
| for (const auto& config : kConfigurations) { |
| V8DOMConfiguration::InstallMethod( |
| isolate, world, instance_template, prototype_template, |
| interface_template, signature, config); |
| } |
| } |
| } |
| if (RuntimeEnabledFeatures::FeatureNameEnabled()) { |
| { |
| // Install clear configuration |
| constexpr V8DOMConfiguration::MethodConfiguration kConfigurations[] = { |
| {"clear", V8TestObject::ClearMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds} |
| }; |
| for (const auto& config : kConfigurations) { |
| V8DOMConfiguration::InstallMethod( |
| isolate, world, instance_template, prototype_template, |
| interface_template, signature, config); |
| } |
| } |
| } |
| } |
| |
| void V8TestObject::InstallFeatureName( |
| v8::Isolate* isolate, |
| const DOMWrapperWorld& world, |
| v8::Local<v8::Object> instance, |
| v8::Local<v8::Object> prototype, |
| v8::Local<v8::Function> interface) { |
| v8::Local<v8::FunctionTemplate> interface_template = |
| V8TestObject::GetWrapperTypeInfo()->DomTemplate(isolate, world); |
| v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interface_template); |
| ALLOW_UNUSED_LOCAL(signature); |
| static constexpr V8DOMConfiguration::AccessorConfiguration |
| koriginTrialEnabledLongAttributeConfigurations[] = { |
| { "originTrialEnabledLongAttribute", V8TestObject::OriginTrialEnabledLongAttributeAttributeGetterCallback, V8TestObject::OriginTrialEnabledLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds } |
| }; |
| for (const auto& config : koriginTrialEnabledLongAttributeConfigurations) { |
| V8DOMConfiguration::InstallAccessor(isolate, world, instance, prototype, |
| interface, signature, config); |
| } |
| static constexpr V8DOMConfiguration::AccessorConfiguration |
| kunscopableOriginTrialEnabledLongAttributeConfigurations[] = { |
| { "unscopableOriginTrialEnabledLongAttribute", V8TestObject::UnscopableOriginTrialEnabledLongAttributeAttributeGetterCallback, V8TestObject::UnscopableOriginTrialEnabledLongAttributeAttributeSetterCallback, V8PrivateProperty::kNoCachedAccessor, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAlwaysCallGetter, V8DOMConfiguration::kAllWorlds } |
| }; |
| for (const auto& config : kunscopableOriginTrialEnabledLongAttributeConfigurations) { |
| V8DOMConfiguration::InstallAccessor(isolate, world, instance, prototype, |
| interface, signature, config); |
| } |
| static constexpr V8DOMConfiguration::MethodConfiguration |
| kOriginTrialEnabledVoidMethodConfigurations[] = { |
| {"originTrialEnabledVoidMethod", V8TestObject::OriginTrialEnabledVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kAllWorlds} |
| }; |
| for (const auto& config : kOriginTrialEnabledVoidMethodConfigurations) { |
| V8DOMConfiguration::InstallMethod( |
| isolate, world, instance, prototype, |
| interface, signature, config); |
| } |
| static constexpr V8DOMConfiguration::MethodConfiguration |
| kPerWorldBindingsOriginTrialEnabledVoidMethodConfigurations[] = { |
| {"perWorldBindingsOriginTrialEnabledVoidMethod", V8TestObject::PerWorldBindingsOriginTrialEnabledVoidMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kMainWorld}, |
| {"perWorldBindingsOriginTrialEnabledVoidMethod", V8TestObject::PerWorldBindingsOriginTrialEnabledVoidMethodMethodCallback, 0, v8::None, V8DOMConfiguration::kOnPrototype, V8DOMConfiguration::kCheckHolder, V8DOMConfiguration::kDoNotCheckAccess, V8DOMConfiguration::kHasSideEffect, V8DOMConfiguration::kNonMainWorlds} |
| }; |
| for (const auto& config : kPerWorldBindingsOriginTrialEnabledVoidMethodConfigurations) { |
| V8DOMConfiguration::InstallMethod( |
| isolate, world, instance, prototype, |
| interface, signature, config); |
| } |
| } |
| |
| void V8TestObject::InstallFeatureName( |
| ScriptState* script_state, v8::Local<v8::Object> instance) { |
| V8PerContextData* per_context_data = script_state->PerContextData(); |
| v8::Local<v8::Object> prototype = per_context_data->PrototypeForType( |
| V8TestObject::GetWrapperTypeInfo()); |
| v8::Local<v8::Function> interface = per_context_data->ConstructorForType( |
| V8TestObject::GetWrapperTypeInfo()); |
| ALLOW_UNUSED_LOCAL(interface); |
| InstallFeatureName(script_state->GetIsolate(), script_state->World(), instance, prototype, interface); |
| } |
| |
| void V8TestObject::InstallFeatureName(ScriptState* script_state) { |
| InstallFeatureName(script_state, v8::Local<v8::Object>()); |
| } |
| |
| v8::Local<v8::FunctionTemplate> V8TestObject::DomTemplate( |
| v8::Isolate* isolate, const DOMWrapperWorld& world) { |
| return V8DOMConfiguration::DomClassTemplate( |
| isolate, world, const_cast<WrapperTypeInfo*>(V8TestObject::GetWrapperTypeInfo()), |
| InstallV8TestObjectTemplate); |
| } |
| |
| bool V8TestObject::HasInstance(v8::Local<v8::Value> v8_value, v8::Isolate* isolate) { |
| return V8PerIsolateData::From(isolate)->HasInstance(V8TestObject::GetWrapperTypeInfo(), v8_value); |
| } |
| |
| v8::Local<v8::Object> V8TestObject::FindInstanceInPrototypeChain( |
| v8::Local<v8::Value> v8_value, v8::Isolate* isolate) { |
| return V8PerIsolateData::From(isolate)->FindInstanceInPrototypeChain( |
| V8TestObject::GetWrapperTypeInfo(), v8_value); |
| } |
| |
| TestObject* V8TestObject::ToImplWithTypeCheck( |
| v8::Isolate* isolate, v8::Local<v8::Value> value) { |
| return HasInstance(value, isolate) ? ToImpl(v8::Local<v8::Object>::Cast(value)) : nullptr; |
| } |
| |
| TestObject* NativeValueTraits<TestObject>::NativeValue( |
| v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exception_state) { |
| TestObject* native_value = V8TestObject::ToImplWithTypeCheck(isolate, value); |
| if (!native_value) { |
| exception_state.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( |
| "TestObject")); |
| } |
| return native_value; |
| } |
| |
| void V8TestObject::InstallConditionalFeatures( |
| v8::Local<v8::Context> context, |
| const DOMWrapperWorld& world, |
| v8::Local<v8::Object> instance_object, |
| v8::Local<v8::Object> prototype_object, |
| v8::Local<v8::Function> interface_object, |
| v8::Local<v8::FunctionTemplate> interface_template) { |
| CHECK(!interface_template.IsEmpty()); |
| DCHECK((!prototype_object.IsEmpty() && !interface_object.IsEmpty()) || |
| !instance_object.IsEmpty()); |
| |
| v8::Isolate* isolate = context->GetIsolate(); |
| |
| if (!prototype_object.IsEmpty()) { |
| v8::Local<v8::Name> unscopables_symbol(v8::Symbol::GetUnscopables(isolate)); |
| v8::Local<v8::Object> unscopables; |
| bool has_unscopables; |
| if (prototype_object->HasOwnProperty(context, unscopables_symbol) |
| .To(&has_unscopables) && has_unscopables) { |
| unscopables = prototype_object->Get(context, unscopables_symbol) |
| .ToLocalChecked().As<v8::Object>(); |
| } else { |
| // Web IDL 3.6.3. Interface prototype object |
| // https://heycam.github.io/webidl/#create-an-interface-prototype-object |
| // step 8.1. Let unscopableObject be the result of performing |
| // ! ObjectCreate(null). |
| unscopables = v8::Object::New(isolate); |
| unscopables->SetPrototype(context, v8::Null(isolate)).ToChecked(); |
| } |
| unscopables->CreateDataProperty( |
| context, V8AtomicString(isolate, "unscopableLongAttribute"), v8::True(isolate)) |
| .FromJust(); |
| unscopables->CreateDataProperty( |
| context, V8AtomicString(isolate, "unscopableOriginTrialEnabledLongAttribute"), v8::True(isolate)) |
| .FromJust(); |
| if (RuntimeEnabledFeatures::FeatureNameEnabled()) { |
| unscopables->CreateDataProperty( |
| context, V8AtomicString(isolate, "unscopableRuntimeEnabledLongAttribute"), v8::True(isolate)) |
| .FromJust(); |
| } |
| if (RuntimeEnabledFeatures::FeatureNameEnabled()) { |
| unscopables->CreateDataProperty( |
| context, V8AtomicString(isolate, "unscopableRuntimeEnabledVoidMethod"), v8::True(isolate)) |
| .FromJust(); |
| } |
| unscopables->CreateDataProperty( |
| context, V8AtomicString(isolate, "unscopableVoidMethod"), v8::True(isolate)) |
| .FromJust(); |
| prototype_object->CreateDataProperty( |
| context, unscopables_symbol, unscopables).FromJust(); |
| } |
| } |
| |
| } // namespace blink |