Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(789)

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.cpp

Issue 1324643005: bindings: Makes installV8FooTemplate thread-safe. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 1769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 } 1780 }
1781 1781
1782 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 1782 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1783 { 1783 {
1784 v8::Local<v8::Object> holder = info.Holder(); 1784 v8::Local<v8::Object> holder = info.Holder();
1785 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumAttrib ute", "TestObject", holder, info.GetIsolate()); 1785 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumAttrib ute", "TestObject", holder, info.GetIsolate());
1786 TestObject* impl = V8TestObject::toImpl(holder); 1786 TestObject* impl = V8TestObject::toImpl(holder);
1787 V8StringResource<> cppValue = v8Value; 1787 V8StringResource<> cppValue = v8Value;
1788 if (!cppValue.prepare()) 1788 if (!cppValue.prepare())
1789 return; 1789 return;
1790 static const char* validValues[] = { 1790 const char* validValues[] = {
1791 "", 1791 "",
1792 "EnumValue1", 1792 "EnumValue1",
1793 "EnumValue2", 1793 "EnumValue2",
1794 "EnumValue3", 1794 "EnumValue3",
1795 }; 1795 };
1796 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) { 1796 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) {
1797 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); 1797 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message()));
1798 return; 1798 return;
1799 } 1799 }
1800 impl->setTestEnumAttribute(cppValue); 1800 impl->setTestEnumAttribute(cppValue);
(...skipping 22 matching lines...) Expand all
1823 } 1823 }
1824 1824
1825 static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 1825 static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
1826 { 1826 {
1827 v8::Local<v8::Object> holder = info.Holder(); 1827 v8::Local<v8::Object> holder = info.Holder();
1828 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrNull Attribute", "TestObject", holder, info.GetIsolate()); 1828 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrNull Attribute", "TestObject", holder, info.GetIsolate());
1829 TestObject* impl = V8TestObject::toImpl(holder); 1829 TestObject* impl = V8TestObject::toImpl(holder);
1830 V8StringResource<TreatNullAsNullString> cppValue = v8Value; 1830 V8StringResource<TreatNullAsNullString> cppValue = v8Value;
1831 if (!cppValue.prepare()) 1831 if (!cppValue.prepare())
1832 return; 1832 return;
1833 static const char* validValues[] = { 1833 const char* validValues[] = {
1834 "", 1834 "",
1835 "EnumValue1", 1835 "EnumValue1",
1836 "EnumValue2", 1836 "EnumValue2",
1837 "EnumValue3", 1837 "EnumValue3",
1838 }; 1838 };
1839 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) { 1839 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) {
1840 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); 1840 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message()));
1841 return; 1841 return;
1842 } 1842 }
1843 impl->setTestEnumOrNullAttribute(cppValue); 1843 impl->setTestEnumOrNullAttribute(cppValue);
(...skipping 3811 matching lines...) Expand 10 before | Expand all | Expand 10 after
5655 } 5655 }
5656 5656
5657 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info) 5657 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::FunctionCallbackInfo<v8::Value>& info)
5658 { 5658 {
5659 v8::Local<v8::Object> holder = info.Holder(); 5659 v8::Local<v8::Object> holder = info.Holder();
5660 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", holder, info.GetIsolate()); 5660 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", holder, info.GetIsolate());
5661 TestObject* impl = V8TestObject::toImpl(holder); 5661 TestObject* impl = V8TestObject::toImpl(holder);
5662 V8StringResource<> cppValue = v8Value; 5662 V8StringResource<> cppValue = v8Value;
5663 if (!cppValue.prepare()) 5663 if (!cppValue.prepare())
5664 return; 5664 return;
5665 static const char* validValues[] = { 5665 const char* validValues[] = {
5666 "", 5666 "",
5667 "EnumValue1", 5667 "EnumValue1",
5668 "EnumValue2", 5668 "EnumValue2",
5669 "EnumValue3", 5669 "EnumValue3",
5670 }; 5670 };
5671 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) { 5671 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test Enum", exceptionState)) {
5672 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); 5672 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message()));
5673 return; 5673 return;
5674 } 5674 }
5675 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue) ; 5675 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue) ;
(...skipping 1944 matching lines...) Expand 10 before | Expand all | Expand 10 after
7620 setMinimumArityTypeError(exceptionState, 1, info.Length()); 7620 setMinimumArityTypeError(exceptionState, 1, info.Length());
7621 exceptionState.throwIfNeeded(); 7621 exceptionState.throwIfNeeded();
7622 return; 7622 return;
7623 } 7623 }
7624 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7624 TestObject* impl = V8TestObject::toImpl(info.Holder());
7625 V8StringResource<> testEnumTypeArg; 7625 V8StringResource<> testEnumTypeArg;
7626 { 7626 {
7627 testEnumTypeArg = info[0]; 7627 testEnumTypeArg = info[0];
7628 if (!testEnumTypeArg.prepare()) 7628 if (!testEnumTypeArg.prepare())
7629 return; 7629 return;
7630 static const char* validValues[] = { 7630 const char* validValues[] = {
7631 "", 7631 "",
7632 "EnumValue1", 7632 "EnumValue1",
7633 "EnumValue2", 7633 "EnumValue2",
7634 "EnumValue3", 7634 "EnumValue3",
7635 }; 7635 };
7636 if (!isValidEnum(testEnumTypeArg, validValues, WTF_ARRAY_LENGTH(validVal ues), "TestEnum", exceptionState)) { 7636 if (!isValidEnum(testEnumTypeArg, validValues, WTF_ARRAY_LENGTH(validVal ues), "TestEnum", exceptionState)) {
7637 exceptionState.throwIfNeeded(); 7637 exceptionState.throwIfNeeded();
7638 return; 7638 return;
7639 } 7639 }
7640 } 7640 }
(...skipping 4815 matching lines...) Expand 10 before | Expand all | Expand 10 after
12456 } 12456 }
12457 12457
12458 } // namespace TestObjectV8Internal 12458 } // namespace TestObjectV8Internal
12459 12459
12460 // Suppress warning: global constructors, because AttributeConfiguration is triv ial 12460 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
12461 // and does not depend on another global objects. 12461 // and does not depend on another global objects.
12462 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 12462 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
12463 #pragma clang diagnostic push 12463 #pragma clang diagnostic push
12464 #pragma clang diagnostic ignored "-Wglobal-constructors" 12464 #pragma clang diagnostic ignored "-Wglobal-constructors"
12465 #endif 12465 #endif
12466 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = { 12466 const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = {
12467 {"testInterfaceEmptyConstructorAttribute", v8ConstructorAttributeGetter, Tes tObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetterCallback , 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInst ance, V8DOMConfiguration::CheckHolder}, 12467 {"testInterfaceEmptyConstructorAttribute", v8ConstructorAttributeGetter, Tes tObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetterCallback , 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInst ance, V8DOMConfiguration::CheckHolder},
12468 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::test InterfaceEmptyConstructorAttributeAttributeSetterCallback, 0, 0, const_cast<Wrap perTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguratio n::CheckHolder}, 12468 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::test InterfaceEmptyConstructorAttributeAttributeSetterCallback, 0, 0, const_cast<Wrap perTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguratio n::CheckHolder},
12469 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe tterCallback, TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstr uctorAttributeAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8Tes tInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}, 12469 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe tterCallback, TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstr uctorAttributeAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8Tes tInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder},
12470 }; 12470 };
12471 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 12471 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
12472 #pragma clang diagnostic pop 12472 #pragma clang diagnostic pop
12473 #endif 12473 #endif
12474 12474
12475 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = { 12475 const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = {
12476 {"stringifierAttribute", TestObjectV8Internal::stringifierAttributeAttribute GetterCallback, TestObjectV8Internal::stringifierAttributeAttributeSetterCallbac k, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurat ion::CheckHolder}, 12476 {"stringifierAttribute", TestObjectV8Internal::stringifierAttributeAttribute GetterCallback, TestObjectV8Internal::stringifierAttributeAttributeSetterCallbac k, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurat ion::CheckHolder},
12477 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute >(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProt otype, V8DOMConfiguration::CheckHolder}, 12477 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute >(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProt otype, V8DOMConfiguration::CheckHolder},
12478 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_ca st<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12478 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_ca st<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12479 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp e, V8DOMConfiguration::CheckHolder}, 12479 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp e, V8DOMConfiguration::CheckHolder},
12480 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAU LT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12480 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAU LT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12481 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, v8: :DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r}, 12481 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, v8: :DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r},
12482 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration ::CheckHolder}, 12482 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu ration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration ::CheckHolder},
12483 {"usvStringAttribute", TestObjectV8Internal::usvStringAttributeAttributeGett erCallback, TestObjectV8Internal::usvStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::C heckHolder}, 12483 {"usvStringAttribute", TestObjectV8Internal::usvStringAttributeAttributeGett erCallback, TestObjectV8Internal::usvStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::C heckHolder},
12484 {"domTimeStampAttribute", TestObjectV8Internal::domTimeStampAttributeAttribu teGetterCallback, TestObjectV8Internal::domTimeStampAttributeAttributeSetterCall back, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMC onfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigu ration::CheckHolder}, 12484 {"domTimeStampAttribute", TestObjectV8Internal::domTimeStampAttributeAttribu teGetterCallback, TestObjectV8Internal::domTimeStampAttributeAttributeSetterCall back, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMC onfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigu ration::CheckHolder},
12485 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHo lder}, 12485 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E xposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHo lder},
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
12634 {"testInterfaceWillBeGarbageCollectedAttribute", TestObjectV8Internal::testI nterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Inte rnal::testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che ckHolder}, 12634 {"testInterfaceWillBeGarbageCollectedAttribute", TestObjectV8Internal::testI nterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Inte rnal::testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che ckHolder},
12635 {"testInterfaceWillBeGarbageCollectedOrNullAttribute", TestObjectV8Internal: :testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCallback, Test ObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSet terCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOM Configuration::CheckHolder}, 12635 {"testInterfaceWillBeGarbageCollectedOrNullAttribute", TestObjectV8Internal: :testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCallback, Test ObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSet terCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOM Configuration::CheckHolder},
12636 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri buteGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProtot ype, V8DOMConfiguration::CheckHolder}, 12636 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri buteGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProtot ype, V8DOMConfiguration::CheckHolder},
12637 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, v8::DE FAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12637 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, v8::DE FAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12638 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, v8: :DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r}, 12638 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, v8: :DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r},
12639 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback , TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAU LT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 12639 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback , TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAU LT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
12640 {"attributeImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::attr ibuteImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback, TestObjectV8In ternal::attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::OnlyExposedToPrivateScript, V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder}, 12640 {"attributeImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::attr ibuteImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback, TestObjectV8In ternal::attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::OnlyExposedToPrivateScript, V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder},
12641 {"enumForPrivateScript", TestObjectV8Internal::enumForPrivateScriptAttribute GetterCallback, TestObjectV8Internal::enumForPrivateScriptAttributeSetterCallbac k, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurat ion::CheckHolder}, 12641 {"enumForPrivateScript", TestObjectV8Internal::enumForPrivateScriptAttribute GetterCallback, TestObjectV8Internal::enumForPrivateScriptAttributeSetterCallbac k, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigurat ion::CheckHolder},
12642 }; 12642 };
12643 12643
12644 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { 12644 const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
12645 {"unscopeableVoidMethod", TestObjectV8Internal::unscopeableVoidMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12645 {"unscopeableVoidMethod", TestObjectV8Internal::unscopeableVoidMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12646 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts}, 12646 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
12647 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts}, 12647 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
12648 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D OMConfiguration::ExposedToAllScripts}, 12648 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D OMConfiguration::ExposedToAllScripts},
12649 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 12649 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
12650 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12650 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12651 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 12651 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
12652 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, V 8DOMConfiguration::ExposedToAllScripts}, 12652 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, V 8DOMConfiguration::ExposedToAllScripts},
12653 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts}, 12653 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
12654 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0, V8D OMConfiguration::ExposedToAllScripts}, 12654 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0, V8D OMConfiguration::ExposedToAllScripts},
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
12903 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), 12903 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes),
12904 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors), 12904 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors),
12905 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods)); 12905 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods));
12906 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 12906 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
12907 ALLOW_UNUSED_LOCAL(instanceTemplate); 12907 ALLOW_UNUSED_LOCAL(instanceTemplate);
12908 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 12908 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
12909 ALLOW_UNUSED_LOCAL(prototypeTemplate); 12909 ALLOW_UNUSED_LOCAL(prototypeTemplate);
12910 ExecutionContext* context = currentExecutionContext(isolate); 12910 ExecutionContext* context = currentExecutionContext(isolate);
12911 ALLOW_UNUSED_LOCAL(context); 12911 ALLOW_UNUSED_LOCAL(context);
12912 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12912 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12913 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion = \ 12913 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = \
12914 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib uteAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder}; 12914 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib uteAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder};
12915 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype Template, functionTemplate, defaultSignature, accessorConfiguration); 12915 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype Template, functionTemplate, defaultSignature, accessorConfiguration);
12916 } 12916 }
12917 #if ENABLE(CONDITION) 12917 #if ENABLE(CONDITION)
12918 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12918 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12919 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion = \ 12919 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = \
12920 {"conditionalRuntimeEnabledLongAttribute", TestObjectV8Internal::conditi onalRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::co nditionalRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAUL T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 12920 {"conditionalRuntimeEnabledLongAttribute", TestObjectV8Internal::conditi onalRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::co nditionalRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAUL T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
12921 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype Template, functionTemplate, defaultSignature, accessorConfiguration); 12921 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype Template, functionTemplate, defaultSignature, accessorConfiguration);
12922 } 12922 }
12923 #endif // ENABLE(CONDITION) 12923 #endif // ENABLE(CONDITION)
12924 if (RuntimeEnabledFeatures::featureNameEnabled()) { 12924 if (RuntimeEnabledFeatures::featureNameEnabled()) {
12925 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion = \ 12925 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = \
12926 {"unscopeableRuntimeEnabledLongAttribute", TestObjectV8Internal::unscope ableRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::un scopeableRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAUL T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 12926 {"unscopeableRuntimeEnabledLongAttribute", TestObjectV8Internal::unscope ableRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::un scopeableRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAUL T, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder};
12927 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype Template, functionTemplate, defaultSignature, accessorConfiguration); 12927 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype Template, functionTemplate, defaultSignature, accessorConfiguration);
12928 } 12928 }
12929 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants [] = { 12929 const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants[] = {
12930 {"CONST_VALUE_0", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort}, 12930 {"CONST_VALUE_0", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort},
12931 {"CONST_VALUE_1", 1, 0, V8DOMConfiguration::ConstantTypeUnsignedShort}, 12931 {"CONST_VALUE_1", 1, 0, V8DOMConfiguration::ConstantTypeUnsignedShort},
12932 {"CONST_VALUE_2", 2, 0, V8DOMConfiguration::ConstantTypeUnsignedShort}, 12932 {"CONST_VALUE_2", 2, 0, V8DOMConfiguration::ConstantTypeUnsignedShort},
12933 {"CONST_VALUE_4", 4, 0, V8DOMConfiguration::ConstantTypeUnsignedShort}, 12933 {"CONST_VALUE_4", 4, 0, V8DOMConfiguration::ConstantTypeUnsignedShort},
12934 {"CONST_VALUE_8", 8, 0, V8DOMConfiguration::ConstantTypeUnsignedShort}, 12934 {"CONST_VALUE_8", 8, 0, V8DOMConfiguration::ConstantTypeUnsignedShort},
12935 {"CONST_VALUE_9", -1, 0, V8DOMConfiguration::ConstantTypeShort}, 12935 {"CONST_VALUE_9", -1, 0, V8DOMConfiguration::ConstantTypeShort},
12936 {"CONST_VALUE_11", 0xffffffff, 0, V8DOMConfiguration::ConstantTypeUnsign edShort}, 12936 {"CONST_VALUE_11", 0xffffffff, 0, V8DOMConfiguration::ConstantTypeUnsign edShort},
12937 {"CONST_VALUE_12", 0x01, 0, V8DOMConfiguration::ConstantTypeUnsignedShor t}, 12937 {"CONST_VALUE_12", 0x01, 0, V8DOMConfiguration::ConstantTypeUnsignedShor t},
12938 {"CONST_VALUE_13", 0X20, 0, V8DOMConfiguration::ConstantTypeUnsignedShor t}, 12938 {"CONST_VALUE_13", 0X20, 0, V8DOMConfiguration::ConstantTypeUnsignedShor t},
12939 {"CONST_VALUE_14", 0x1abc, 0, V8DOMConfiguration::ConstantTypeUnsignedSh ort}, 12939 {"CONST_VALUE_14", 0x1abc, 0, V8DOMConfiguration::ConstantTypeUnsignedSh ort},
12940 {"CONST_VALUE_15", 010, 0, V8DOMConfiguration::ConstantTypeUnsignedShort }, 12940 {"CONST_VALUE_15", 010, 0, V8DOMConfiguration::ConstantTypeUnsignedShort },
12941 {"CONST_VALUE_16", -010, 0, V8DOMConfiguration::ConstantTypeUnsignedShor t}, 12941 {"CONST_VALUE_16", -010, 0, V8DOMConfiguration::ConstantTypeUnsignedShor t},
12942 {"CONST_VALUE_16", -0x1A, 0, V8DOMConfiguration::ConstantTypeUnsignedSho rt}, 12942 {"CONST_VALUE_16", -0x1A, 0, V8DOMConfiguration::ConstantTypeUnsignedSho rt},
12943 {"CONST_VALUE_17", -0X1a, 0, V8DOMConfiguration::ConstantTypeUnsignedSho rt}, 12943 {"CONST_VALUE_17", -0X1a, 0, V8DOMConfiguration::ConstantTypeUnsignedSho rt},
12944 {"CONST_VALUE_18", 0, 0.123, V8DOMConfiguration::ConstantTypeDouble}, 12944 {"CONST_VALUE_18", 0, 0.123, V8DOMConfiguration::ConstantTypeDouble},
12945 {"CONST_VALUE_19", 0, 4e9, V8DOMConfiguration::ConstantTypeDouble}, 12945 {"CONST_VALUE_19", 0, 4e9, V8DOMConfiguration::ConstantTypeDouble},
12946 {"CONST_VALUE_20", 0, 3.4e5, V8DOMConfiguration::ConstantTypeDouble}, 12946 {"CONST_VALUE_20", 0, 3.4e5, V8DOMConfiguration::ConstantTypeDouble},
12947 {"CONST_VALUE_21", 0, -1.3, V8DOMConfiguration::ConstantTypeDouble}, 12947 {"CONST_VALUE_21", 0, -1.3, V8DOMConfiguration::ConstantTypeDouble},
12948 {"CONST_VALUE_22", 0, -4e-9, V8DOMConfiguration::ConstantTypeDouble}, 12948 {"CONST_VALUE_22", 0, -4e-9, V8DOMConfiguration::ConstantTypeDouble},
12949 {"CONST_VALUE_23", 0, .123, V8DOMConfiguration::ConstantTypeDouble}, 12949 {"CONST_VALUE_23", 0, .123, V8DOMConfiguration::ConstantTypeDouble},
12950 {"CONST_VALUE_24", 0, 5E+4, V8DOMConfiguration::ConstantTypeDouble}, 12950 {"CONST_VALUE_24", 0, 5E+4, V8DOMConfiguration::ConstantTypeDouble},
12951 {"CONST_VALUE_25", 0, 1, V8DOMConfiguration::ConstantTypeFloat}, 12951 {"CONST_VALUE_25", 0, 1, V8DOMConfiguration::ConstantTypeFloat},
12952 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, 12952 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort},
12953 }; 12953 };
12954 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestObjectConstants, WTF_ARRAY_LENGTH(V8TestObjectConstants)); 12954 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestObjectConstants, WTF_ARRAY_LENGTH(V8TestObjectConstants));
12955 if (RuntimeEnabledFeatures::featureName1Enabled()) { 12955 if (RuntimeEnabledFeatures::featureName1Enabled()) {
12956 static const V8DOMConfiguration::ConstantConfiguration constantFeature1E nabledConst1Configuration = {"FEATURE1_ENABLED_CONST1", 1, 0, V8DOMConfiguration ::ConstantTypeShort}; 12956 const V8DOMConfiguration::ConstantConfiguration constantFeature1EnabledC onst1Configuration = {"FEATURE1_ENABLED_CONST1", 1, 0, V8DOMConfiguration::Const antTypeShort};
12957 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature1EnabledConst1Configuration); 12957 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature1EnabledConst1Configuration);
12958 static const V8DOMConfiguration::ConstantConfiguration constantFeature1E nabledConst2Configuration = {"FEATURE1_ENABLED_CONST2", 2, 0, V8DOMConfiguration ::ConstantTypeShort}; 12958 const V8DOMConfiguration::ConstantConfiguration constantFeature1EnabledC onst2Configuration = {"FEATURE1_ENABLED_CONST2", 2, 0, V8DOMConfiguration::Const antTypeShort};
12959 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature1EnabledConst2Configuration); 12959 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature1EnabledConst2Configuration);
12960 } 12960 }
12961 if (RuntimeEnabledFeatures::featureName2Enabled()) { 12961 if (RuntimeEnabledFeatures::featureName2Enabled()) {
12962 static const V8DOMConfiguration::ConstantConfiguration constantFeature2E nabledConst1Configuration = {"FEATURE2_ENABLED_CONST1", 3, 0, V8DOMConfiguration ::ConstantTypeShort}; 12962 const V8DOMConfiguration::ConstantConfiguration constantFeature2EnabledC onst1Configuration = {"FEATURE2_ENABLED_CONST1", 3, 0, V8DOMConfiguration::Const antTypeShort};
12963 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature2EnabledConst1Configuration); 12963 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature2EnabledConst1Configuration);
12964 static const V8DOMConfiguration::ConstantConfiguration constantFeature2E nabledConst2Configuration = {"FEATURE2_ENABLED_CONST2", 4, 0, V8DOMConfiguration ::ConstantTypeShort}; 12964 const V8DOMConfiguration::ConstantConfiguration constantFeature2EnabledC onst2Configuration = {"FEATURE2_ENABLED_CONST2", 4, 0, V8DOMConfiguration::Const antTypeShort};
12965 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature2EnabledConst2Configuration); 12965 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature2EnabledConst2Configuration);
12966 } 12966 }
12967 if (RuntimeEnabledFeatures::featureName3Enabled()) { 12967 if (RuntimeEnabledFeatures::featureName3Enabled()) {
12968 static const V8DOMConfiguration::ConstantConfiguration constantFeature3E nabledConst1Configuration = {"FEATURE3_ENABLED_CONST1", 5, 0, V8DOMConfiguration ::ConstantTypeShort}; 12968 const V8DOMConfiguration::ConstantConfiguration constantFeature3EnabledC onst1Configuration = {"FEATURE3_ENABLED_CONST1", 5, 0, V8DOMConfiguration::Const antTypeShort};
12969 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature3EnabledConst1Configuration); 12969 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantFeature3EnabledConst1Configuration);
12970 } 12970 }
12971 V8DOMConfiguration::installConstantWithGetter(isolate, functionTemplate, pro totypeTemplate, "DEPRECATED_CONSTANT", TestObjectV8Internal::DEPRECATED_CONSTANT ConstantGetterCallback); 12971 V8DOMConfiguration::installConstantWithGetter(isolate, functionTemplate, pro totypeTemplate, "DEPRECATED_CONSTANT", TestObjectV8Internal::DEPRECATED_CONSTANT ConstantGetterCallback);
12972 V8DOMConfiguration::installConstantWithGetter(isolate, functionTemplate, pro totypeTemplate, "MEASURED_CONSTANT", TestObjectV8Internal::MEASURED_CONSTANTCons tantGetterCallback); 12972 V8DOMConfiguration::installConstantWithGetter(isolate, functionTemplate, pro totypeTemplate, "MEASURED_CONSTANT", TestObjectV8Internal::MEASURED_CONSTANTCons tantGetterCallback);
12973 static_assert(0 == TestObject::CONST_VALUE_0, "the value of TestObject_CONST _VALUE_0 does not match with implementation"); 12973 static_assert(0 == TestObject::CONST_VALUE_0, "the value of TestObject_CONST _VALUE_0 does not match with implementation");
12974 static_assert(1 == TestObject::CONST_VALUE_1, "the value of TestObject_CONST _VALUE_1 does not match with implementation"); 12974 static_assert(1 == TestObject::CONST_VALUE_1, "the value of TestObject_CONST _VALUE_1 does not match with implementation");
12975 static_assert(2 == TestObject::CONST_VALUE_2, "the value of TestObject_CONST _VALUE_2 does not match with implementation"); 12975 static_assert(2 == TestObject::CONST_VALUE_2, "the value of TestObject_CONST _VALUE_2 does not match with implementation");
12976 static_assert(4 == TestObject::CONST_VALUE_4, "the value of TestObject_CONST _VALUE_4 does not match with implementation"); 12976 static_assert(4 == TestObject::CONST_VALUE_4, "the value of TestObject_CONST _VALUE_4 does not match with implementation");
12977 static_assert(8 == TestObject::CONST_VALUE_8, "the value of TestObject_CONST _VALUE_8 does not match with implementation"); 12977 static_assert(8 == TestObject::CONST_VALUE_8, "the value of TestObject_CONST _VALUE_8 does not match with implementation");
12978 static_assert(-1 == TestObject::CONST_VALUE_9, "the value of TestObject_CONS T_VALUE_9 does not match with implementation"); 12978 static_assert(-1 == TestObject::CONST_VALUE_9, "the value of TestObject_CONS T_VALUE_9 does not match with implementation");
(...skipping 16 matching lines...) Expand all
12995 { 12995 {
12996 v8::IndexedPropertyHandlerConfiguration config(TestObjectV8Internal::ind exedPropertyGetterCallback, TestObjectV8Internal::indexedPropertySetterCallback, 0, TestObjectV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumera tor<TestObject>); 12996 v8::IndexedPropertyHandlerConfiguration config(TestObjectV8Internal::ind exedPropertyGetterCallback, TestObjectV8Internal::indexedPropertySetterCallback, 0, TestObjectV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumera tor<TestObject>);
12997 functionTemplate->InstanceTemplate()->SetHandler(config); 12997 functionTemplate->InstanceTemplate()->SetHandler(config);
12998 } 12998 }
12999 { 12999 {
13000 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr ings); 13000 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr ings);
13001 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); 13001 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking);
13002 v8::NamedPropertyHandlerConfiguration config(TestObjectV8Internal::named PropertyGetterCallback, TestObjectV8Internal::namedPropertySetterCallback, TestO bjectV8Internal::namedPropertyQueryCallback, TestObjectV8Internal::namedProperty DeleterCallback, TestObjectV8Internal::namedPropertyEnumeratorCallback, v8::Hand le<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags)); 13002 v8::NamedPropertyHandlerConfiguration config(TestObjectV8Internal::named PropertyGetterCallback, TestObjectV8Internal::namedPropertySetterCallback, TestO bjectV8Internal::namedPropertyQueryCallback, TestObjectV8Internal::namedProperty DeleterCallback, TestObjectV8Internal::namedPropertyEnumeratorCallback, v8::Hand le<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags));
13003 functionTemplate->InstanceTemplate()->SetHandler(config); 13003 functionTemplate->InstanceTemplate()->SetHandler(config);
13004 } 13004 }
13005 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestObjectV8Internal::iterator MethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; 13005 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator Configuration = { v8::Symbol::GetIterator, TestObjectV8Internal::iteratorMethodC allback, 0, V8DOMConfiguration::ExposedToAllScripts };
13006 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration); 13006 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration);
13007 if (RuntimeEnabledFeatures::featureNameEnabled()) { 13007 if (RuntimeEnabledFeatures::featureNameEnabled()) {
13008 const V8DOMConfiguration::MethodConfiguration unscopeableRuntimeEnabledV oidMethodMethodConfiguration = { 13008 const V8DOMConfiguration::MethodConfiguration unscopeableRuntimeEnabledV oidMethodMethodConfiguration = {
13009 "unscopeableRuntimeEnabledVoidMethod", TestObjectV8Internal::unscope ableRuntimeEnabledVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToA llScripts, 13009 "unscopeableRuntimeEnabledVoidMethod", TestObjectV8Internal::unscope ableRuntimeEnabledVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToA llScripts,
13010 }; 13010 };
13011 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, unscopeableRuntimeEnabledVoidMethodMethodConfiguration); 13011 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, unscopeableRuntimeEnabledVoidMethodMethodConfiguration);
13012 } 13012 }
13013 const V8DOMConfiguration::MethodConfiguration staticVoidMethodMethodConfigur ation = { 13013 const V8DOMConfiguration::MethodConfiguration staticVoidMethodMethodConfigur ation = {
13014 "staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback , 0, 0, V8DOMConfiguration::ExposedToAllScripts, 13014 "staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback , 0, 0, V8DOMConfiguration::ExposedToAllScripts,
13015 }; 13015 };
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
13614 ScriptState::Scope scope(scriptState); 13614 ScriptState::Scope scope(scriptState);
13615 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13615 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13616 if (holder.IsEmpty()) 13616 if (holder.IsEmpty())
13617 return false; 13617 return false;
13618 13618
13619 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13619 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13620 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13620 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13621 } 13621 }
13622 13622
13623 } // namespace blink 13623 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestNode.cpp ('k') | Source/bindings/tests/results/core/V8TestSpecialOperations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698