Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp |
index d3be8ca81e647f190d10c60f348e4126e93aac1e..1a7d9559a19edecab9eeacc77f03b125200085ec 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp |
@@ -30,6 +30,7 @@ |
#include "bindings/tests/idls/core/TestPartialInterfaceImplementation.h" |
#include "core/dom/ContextFeatures.h" |
#include "core/dom/Document.h" |
+#include "core/experiments/ExperimentalFeatures.h" |
#include "core/frame/LocalFrame.h" |
#include "core/frame/UseCounter.h" |
#include "core/inspector/ConsoleMessage.h" |
@@ -92,7 +93,13 @@ static void TestInterfaceImplementationConstructorAttributeSetterCallback(v8::Lo |
static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl); |
} |
@@ -101,7 +108,13 @@ static void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCall |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionContext(info.GetIsolate()), UseCounter::V8TestInterface_TestInterfaceAttribute_AttributeGetter); |
- TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -143,7 +156,13 @@ static void testInterfaceConstructorAttributeAttributeSetterCallback(v8::Local<v |
static void doubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValue(info, impl->doubleAttribute()); |
} |
@@ -151,7 +170,13 @@ static void doubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va |
static void doubleAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::doubleAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::doubleAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -176,7 +201,13 @@ static void doubleAttributeAttributeSetterCallback(const v8::FunctionCallbackInf |
static void floatAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValue(info, impl->floatAttribute()); |
} |
@@ -184,7 +215,13 @@ static void floatAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val |
static void floatAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::floatAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::floatAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -209,7 +246,13 @@ static void floatAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo |
static void unrestrictedDoubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); |
} |
@@ -217,7 +260,13 @@ static void unrestrictedDoubleAttributeAttributeGetter(const v8::FunctionCallbac |
static void unrestrictedDoubleAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -242,7 +291,13 @@ static void unrestrictedDoubleAttributeAttributeSetterCallback(const v8::Functio |
static void unrestrictedFloatAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); |
} |
@@ -250,7 +305,13 @@ static void unrestrictedFloatAttributeAttributeGetter(const v8::FunctionCallback |
static void unrestrictedFloatAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -275,7 +336,13 @@ static void unrestrictedFloatAttributeAttributeSetterCallback(const v8::Function |
static void testEnumAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); |
} |
@@ -283,7 +350,13 @@ static void testEnumAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:: |
static void testEnumAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::testEnumAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::testEnumAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -318,7 +391,13 @@ static void testEnumAttributeAttributeSetterCallback(const v8::FunctionCallbackI |
static void stringOrDoubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
StringOrDouble result; |
impl->stringOrDoubleAttribute(result); |
@@ -328,7 +407,13 @@ static void stringOrDoubleAttributeAttributeGetter(const v8::FunctionCallbackInf |
static void stringOrDoubleAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::stringOrDoubleAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::stringOrDoubleAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -354,7 +439,13 @@ static void stringOrDoubleAttributeAttributeSetterCallback(const v8::FunctionCal |
static void conditionalLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueInt(info, impl->conditionalLongAttribute()); |
} |
@@ -362,7 +453,13 @@ static void conditionalLongAttributeAttributeGetter(const v8::FunctionCallbackIn |
static void conditionalLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::conditionalLongAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::conditionalLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -387,7 +484,13 @@ static void conditionalLongAttributeAttributeSetterCallback(const v8::FunctionCa |
static void conditionalReadOnlyLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueInt(info, impl->conditionalReadOnlyLongAttribute()); |
} |
@@ -395,19 +498,37 @@ static void conditionalReadOnlyLongAttributeAttributeGetter(const v8::FunctionCa |
static void conditionalReadOnlyLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::conditionalReadOnlyLongAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::conditionalReadOnlyLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
static void staticStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8SetReturnValueString(info, TestInterfaceImplementation::staticStringAttribute(), info.GetIsolate()); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8SetReturnValueString(info, TestInterfaceImplementation::staticStringAttribute(), info.GetIsolate()); |
} |
static void staticStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::staticStringAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::staticStringAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -429,13 +550,25 @@ static void staticStringAttributeAttributeSetterCallback(const v8::FunctionCallb |
static void staticReturnDOMWrapperAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8SetReturnValue(info, TestInterfaceImplementation::staticReturnDOMWrapperAttribute(), info.GetIsolate()->GetCurrentContext()->Global()); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8SetReturnValue(info, TestInterfaceImplementation::staticReturnDOMWrapperAttribute(), info.GetIsolate()->GetCurrentContext()->Global()); |
} |
static void staticReturnDOMWrapperAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::staticReturnDOMWrapperAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::staticReturnDOMWrapperAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -462,19 +595,37 @@ static void staticReturnDOMWrapperAttributeAttributeSetterCallback(const v8::Fun |
static void staticReadOnlyStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8SetReturnValueString(info, TestInterfaceImplementation::staticReadOnlyStringAttribute(), info.GetIsolate()); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8SetReturnValueString(info, TestInterfaceImplementation::staticReadOnlyStringAttribute(), info.GetIsolate()); |
} |
static void staticReadOnlyStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::staticReadOnlyStringAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::staticReadOnlyStringAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
static void staticReadOnlyReturnDOMWrapperAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- RefPtr<TestInterfaceImplementation> cppValue(TestInterfaceImplementation::staticReadOnlyReturnDOMWrapperAttribute()); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } RefPtr<TestInterfaceImplementation> cppValue(TestInterfaceImplementation::staticReadOnlyReturnDOMWrapperAttribute()); |
if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue.get())) |
return; |
v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())); |
@@ -487,25 +638,49 @@ static void staticReadOnlyReturnDOMWrapperAttributeAttributeGetter(const v8::Fun |
static void staticReadOnlyReturnDOMWrapperAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::staticReadOnlyReturnDOMWrapperAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::staticReadOnlyReturnDOMWrapperAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
static void staticConditionalReadOnlyLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8SetReturnValueInt(info, TestInterfaceImplementation::staticConditionalReadOnlyLongAttribute()); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8SetReturnValueInt(info, TestInterfaceImplementation::staticConditionalReadOnlyLongAttribute()); |
} |
static void staticConditionalReadOnlyLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::staticConditionalReadOnlyLongAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::staticConditionalReadOnlyLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
static void legacyInterfaceTypeCheckingAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueFast(info, WTF::getPtr(impl->legacyInterfaceTypeCheckingAttribute()), impl); |
} |
@@ -513,7 +688,13 @@ static void legacyInterfaceTypeCheckingAttributeAttributeGetter(const v8::Functi |
static void legacyInterfaceTypeCheckingAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::legacyInterfaceTypeCheckingAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::legacyInterfaceTypeCheckingAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -535,7 +716,13 @@ static void legacyInterfaceTypeCheckingAttributeAttributeSetterCallback(const v8 |
static void alwaysExposedAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueInt(info, impl->alwaysExposedAttribute()); |
} |
@@ -543,7 +730,13 @@ static void alwaysExposedAttributeAttributeGetter(const v8::FunctionCallbackInfo |
static void alwaysExposedAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -568,7 +761,13 @@ static void alwaysExposedAttributeAttributeSetterCallback(const v8::FunctionCall |
static void workerExposedAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueInt(info, impl->workerExposedAttribute()); |
} |
@@ -576,7 +775,13 @@ static void workerExposedAttributeAttributeGetter(const v8::FunctionCallbackInfo |
static void workerExposedAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -601,7 +806,13 @@ static void workerExposedAttributeAttributeSetterCallback(const v8::FunctionCall |
static void windowExposedAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueInt(info, impl->windowExposedAttribute()); |
} |
@@ -609,7 +820,13 @@ static void windowExposedAttributeAttributeGetter(const v8::FunctionCallbackInfo |
static void windowExposedAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -634,7 +851,13 @@ static void windowExposedAttributeAttributeSetterCallback(const v8::FunctionCall |
static void lenientThisAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- if (!V8TestInterface::hasInstance(info.Holder(), info.GetIsolate())) |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } if (!V8TestInterface::hasInstance(info.Holder(), info.GetIsolate())) |
return; // Return silently because of [LenientThis]. |
v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
@@ -644,7 +867,13 @@ static void lenientThisAttributeAttributeGetter(const v8::FunctionCallbackInfo<v |
static void lenientThisAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::lenientThisAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::lenientThisAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -668,25 +897,49 @@ static void lenientThisAttributeAttributeSetterCallback(const v8::FunctionCallba |
static void implementsStaticReadOnlyLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8SetReturnValueInt(info, TestInterfaceImplementation::implementsStaticReadOnlyLongAttribute()); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8SetReturnValueInt(info, TestInterfaceImplementation::implementsStaticReadOnlyLongAttribute()); |
} |
static void implementsStaticReadOnlyLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::implementsStaticReadOnlyLongAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implementsStaticReadOnlyLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
static void implementsStaticStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8SetReturnValueString(info, TestInterfaceImplementation::implementsStaticStringAttribute(), info.GetIsolate()); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8SetReturnValueString(info, TestInterfaceImplementation::implementsStaticStringAttribute(), info.GetIsolate()); |
} |
static void implementsStaticStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -708,7 +961,13 @@ static void implementsStaticStringAttributeAttributeSetterCallback(const v8::Fun |
static void implementsReadonlyStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueString(info, impl->implementsReadonlyStringAttribute(), info.GetIsolate()); |
} |
@@ -716,13 +975,25 @@ static void implementsReadonlyStringAttributeAttributeGetter(const v8::FunctionC |
static void implementsReadonlyStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::implementsReadonlyStringAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implementsReadonlyStringAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
static void implementsStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueString(info, impl->implementsStringAttribute(), info.GetIsolate()); |
} |
@@ -730,7 +1001,13 @@ static void implementsStringAttributeAttributeGetter(const v8::FunctionCallbackI |
static void implementsStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -754,7 +1031,13 @@ static void implementsStringAttributeAttributeSetterCallback(const v8::FunctionC |
static void implementsNodeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueFast(info, WTF::getPtr(impl->implementsNodeAttribute()), impl); |
} |
@@ -762,7 +1045,13 @@ static void implementsNodeAttributeAttributeGetter(const v8::FunctionCallbackInf |
static void implementsNodeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -790,7 +1079,13 @@ static void implementsNodeAttributeAttributeSetterCallback(const v8::FunctionCal |
static void implementsEventHandlerAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
EventListener* cppValue(impl->implementsEventHandlerAttribute()); |
v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListener::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8::Value>(v8::Null(info.GetIsolate()))); |
@@ -799,7 +1094,13 @@ static void implementsEventHandlerAttributeAttributeGetter(const v8::FunctionCal |
static void implementsEventHandlerAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::implementsEventHandlerAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implementsEventHandlerAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -821,7 +1122,13 @@ static void implementsEventHandlerAttributeAttributeSetterCallback(const v8::Fun |
static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueFast(info, WTF::getPtr(impl->implementsRuntimeEnabledNodeAttribute()), impl); |
} |
@@ -829,7 +1136,13 @@ static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Funct |
static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -857,13 +1170,25 @@ static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(const v |
static void implements2StaticStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8SetReturnValueString(info, TestImplements2::implements2StaticStringAttribute(), info.GetIsolate()); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8SetReturnValueString(info, TestImplements2::implements2StaticStringAttribute(), info.GetIsolate()); |
} |
static void implements2StaticStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -885,7 +1210,13 @@ static void implements2StaticStringAttributeAttributeSetterCallback(const v8::Fu |
static void implements2StringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueString(info, TestImplements2::implements2StringAttribute(*impl), info.GetIsolate()); |
} |
@@ -893,7 +1224,13 @@ static void implements2StringAttributeAttributeGetter(const v8::FunctionCallback |
static void implements2StringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -917,7 +1254,13 @@ static void implements2StringAttributeAttributeSetterCallback(const v8::Function |
static void implements3StringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueString(info, TestImplements3Implementation::implements3StringAttribute(*impl), info.GetIsolate()); |
} |
@@ -925,7 +1268,13 @@ static void implements3StringAttributeAttributeGetter(const v8::FunctionCallback |
static void implements3StringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -949,13 +1298,25 @@ static void implements3StringAttributeAttributeSetterCallback(const v8::Function |
static void implements3StaticStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8SetReturnValueString(info, TestImplements3Implementation::implements3StaticStringAttribute(), info.GetIsolate()); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8SetReturnValueString(info, TestImplements3Implementation::implements3StaticStringAttribute(), info.GetIsolate()); |
} |
static void implements3StaticStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -978,7 +1339,13 @@ static void implements3StaticStringAttributeAttributeSetterCallback(const v8::Fu |
#if ENABLE(PARTIAL_CONDITION) |
static void partialLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueInt(info, TestPartialInterface::partialLongAttribute(*impl)); |
} |
@@ -988,7 +1355,13 @@ static void partialLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v |
static void partialLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::partialLongAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::partialLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -1019,7 +1392,13 @@ static void partialLongAttributeAttributeSetterCallback(const v8::FunctionCallba |
#if ENABLE(PARTIAL_CONDITION) |
static void partialStaticLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8SetReturnValueInt(info, TestPartialInterface::partialStaticLongAttribute()); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8SetReturnValueInt(info, TestPartialInterface::partialStaticLongAttribute()); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -1027,7 +1406,13 @@ static void partialStaticLongAttributeAttributeGetter(const v8::FunctionCallback |
static void partialStaticLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -1057,7 +1442,13 @@ static void partialStaticLongAttributeAttributeSetterCallback(const v8::Function |
#if ENABLE(PARTIAL_CONDITION) |
static void partialCallWithExecutionContextLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate()); |
v8SetReturnValueInt(info, TestPartialInterface::partialCallWithExecutionContextLongAttribute(executionContext, *impl)); |
@@ -1068,7 +1459,13 @@ static void partialCallWithExecutionContextLongAttributeAttributeGetter(const v8 |
static void partialCallWithExecutionContextLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -1100,7 +1497,13 @@ static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback( |
#if ENABLE(PARTIAL_CONDITION) |
static void partialPartialEnumTypeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueString(info, TestPartialInterface::partialPartialEnumTypeAttribute(*impl), info.GetIsolate()); |
} |
@@ -1110,7 +1513,13 @@ static void partialPartialEnumTypeAttributeAttributeGetter(const v8::FunctionCal |
static void partialPartialEnumTypeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -1149,7 +1558,13 @@ static void partialPartialEnumTypeAttributeAttributeSetterCallback(const v8::Fun |
#if ENABLE(PARTIAL_CONDITION) |
static void stringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
String result; |
if (!V8TestInterface::PrivateScript::stringAttributeAttributeGetter(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) |
@@ -1162,7 +1577,13 @@ static void stringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va |
static void stringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::stringAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::stringAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -1191,7 +1612,13 @@ static void stringAttributeAttributeSetterCallback(const v8::FunctionCallbackInf |
static void partial2LongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8::Local<v8::Object> holder = info.Holder(); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2LongAttribute(*impl)); |
} |
@@ -1199,7 +1626,13 @@ static void partial2LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< |
static void partial2LongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1224,13 +1657,25 @@ static void partial2LongAttributeAttributeSetterCallback(const v8::FunctionCallb |
static void partial2StaticLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2StaticLongAttribute()); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2StaticLongAttribute()); |
} |
static void partial2StaticLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
- TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeGetter(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1273,7 +1718,13 @@ static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo |
static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1302,7 +1753,13 @@ static void voidMethodDoubleArgFloatArgMethod(const v8::FunctionCallbackInfo<v8: |
static void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1331,7 +1788,13 @@ static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8:: |
static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1366,7 +1829,13 @@ static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value |
static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::voidMethodTestEnumArgMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::voidMethodTestEnumArgMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1379,7 +1848,13 @@ static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::voidMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::voidMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1392,7 +1867,13 @@ static void voidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Valu |
static void voidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::voidMethodMethodForMainWorld(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::voidMethodMethodForMainWorld(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1405,7 +1886,13 @@ static void alwaysExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& |
static void alwaysExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::alwaysExposedMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::alwaysExposedMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1418,7 +1905,13 @@ static void workerExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& |
static void workerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::workerExposedMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::workerExposedMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1431,7 +1924,13 @@ static void windowExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& |
static void windowExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::windowExposedMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::windowExposedMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1443,7 +1942,13 @@ static void alwaysExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V |
static void alwaysExposedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::alwaysExposedStaticMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::alwaysExposedStaticMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1455,7 +1960,13 @@ static void workerExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V |
static void workerExposedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::workerExposedStaticMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::workerExposedStaticMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1467,7 +1978,13 @@ static void windowExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V |
static void windowExposedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::windowExposedStaticMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::windowExposedStaticMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1479,7 +1996,13 @@ static void staticReturnDOMWrapperMethodMethod(const v8::FunctionCallbackInfo<v8 |
static void staticReturnDOMWrapperMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::staticReturnDOMWrapperMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::staticReturnDOMWrapperMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1492,7 +2015,13 @@ static void methodWithExposedAndRuntimeEnabledFlagMethod(const v8::FunctionCallb |
static void methodWithExposedAndRuntimeEnabledFlagMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::methodWithExposedAndRuntimeEnabledFlagMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::methodWithExposedAndRuntimeEnabledFlagMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1590,7 +2119,13 @@ static void methodWithExposedHavingRuntimeEnabldFlagMethod(const v8::FunctionCal |
static void methodWithExposedHavingRuntimeEnabldFlagMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldFlagMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldFlagMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1603,7 +2138,13 @@ static void windowAndServiceWorkerExposedMethodMethod(const v8::FunctionCallback |
static void windowAndServiceWorkerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::windowAndServiceWorkerExposedMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::windowAndServiceWorkerExposedMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1673,7 +2214,13 @@ static void legacyInterfaceTypeCheckingMethodMethod(const v8::FunctionCallbackIn |
static void legacyInterfaceTypeCheckingMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::legacyInterfaceTypeCheckingMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::legacyInterfaceTypeCheckingMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1686,7 +2233,13 @@ static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> |
static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1724,14 +2277,26 @@ static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val |
static void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::implementsComplexMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implementsComplexMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
static void implementsCustomVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- V8TestInterface::implementsCustomVoidMethodMethodCustom(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } V8TestInterface::implementsCustomVoidMethodMethodCustom(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1743,7 +2308,13 @@ static void implementsStaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8:: |
static void implementsStaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::implementsStaticVoidMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implementsStaticVoidMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1756,7 +2327,13 @@ static void implements2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value |
static void implements2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::implements2VoidMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implements2VoidMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1769,7 +2346,13 @@ static void implements3VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value |
static void implements3VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::implements3VoidMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implements3VoidMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1781,7 +2364,13 @@ static void implements3StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8: |
static void implements3StaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::implements3StaticVoidMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::implements3StaticVoidMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -1797,7 +2386,13 @@ static void partialVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
static void partialVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::partialVoidMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::partialVoidMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -1813,7 +2408,13 @@ static void partialStaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val |
static void partialStaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::partialStaticVoidMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::partialStaticVoidMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -1842,7 +2443,13 @@ static void partialVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Va |
static void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::partialVoidMethodLongArgMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::partialVoidMethodLongArgMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -1865,7 +2472,13 @@ static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(const |
static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -1894,7 +2507,13 @@ static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall |
static void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeArgMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeArgMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -1926,7 +2545,13 @@ static void shortMethodWithShortArgumentImplementedInPrivateScriptMethod(const v |
static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplementedInPrivateScriptMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplementedInPrivateScriptMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -2114,7 +2739,13 @@ static void toJSONMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
static void toJSONMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::toJSONMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::toJSONMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -2127,7 +2758,13 @@ static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::toStringMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::toStringMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -2147,7 +2784,13 @@ static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
- TestInterfaceImplementationV8Internal::iteratorMethod(info); |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } TestInterfaceImplementationV8Internal::iteratorMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
@@ -2389,13 +3032,10 @@ void V8TestInterface::installV8TestInterfaceTemplate(v8::Local<v8::FunctionTempl |
functionTemplate->ReadOnlyPrototype(); |
v8::Local<v8::Signature> defaultSignature; |
- if (!RuntimeEnabledFeatures::featureNameEnabled()) |
- defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface::internalFieldCount, 0, 0, 0, 0, 0, 0); |
- else |
- defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface::internalFieldCount, |
- V8TestInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAttributes), |
- V8TestInterfaceAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceAccessors), |
- V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)); |
+ defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface::internalFieldCount, |
+ V8TestInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAttributes), |
+ V8TestInterfaceAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceAccessors), |
+ V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)); |
v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceTemplate(); |
ALLOW_UNUSED_LOCAL(instanceTemplate); |
v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->PrototypeTemplate(); |
@@ -2654,6 +3294,13 @@ bool V8TestInterface::PrivateScript::stringAttributeAttributeGetter(LocalFrame* |
if (holder.IsEmpty()) |
return false; |
+String errorMessage; |
+ if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) { |
+ v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); |
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
+ document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage)); |
+ return; |
+ } |
ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribute", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState->isolate()); |
v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(scriptState, scriptStateInUserScript, "TestInterfaceImplementation", "stringAttribute", holder); |
if (v8Value.IsEmpty()) |