| OLD | NEW |
| 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 "HTMLNames.h" | 10 #include "HTMLNames.h" |
| (...skipping 6897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6908 switch (std::min(2, info.Length())) { | 6908 switch (std::min(2, info.Length())) { |
| 6909 case 1: | 6909 case 1: |
| 6910 if (info[0]->IsNumber()) { | 6910 if (info[0]->IsNumber()) { |
| 6911 overloadedMethodB1Method(info); | 6911 overloadedMethodB1Method(info); |
| 6912 return; | 6912 return; |
| 6913 } | 6913 } |
| 6914 if (true) { | 6914 if (true) { |
| 6915 overloadedMethodB2Method(info); | 6915 overloadedMethodB2Method(info); |
| 6916 return; | 6916 return; |
| 6917 } | 6917 } |
| 6918 if (true) { |
| 6919 overloadedMethodB1Method(info); |
| 6920 return; |
| 6921 } |
| 6918 break; | 6922 break; |
| 6919 case 2: | 6923 case 2: |
| 6920 if (true) { | 6924 if (true) { |
| 6921 overloadedMethodB2Method(info); | 6925 overloadedMethodB2Method(info); |
| 6922 return; | 6926 return; |
| 6923 } | 6927 } |
| 6924 break; | 6928 break; |
| 6925 default: | 6929 default: |
| 6926 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6930 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 6927 exceptionState.throwIfNeeded(); | 6931 exceptionState.throwIfNeeded(); |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7153 return; | 7157 return; |
| 7154 } | 7158 } |
| 7155 if (info[0]->IsNumber()) { | 7159 if (info[0]->IsNumber()) { |
| 7156 overloadedMethodF2Method(info); | 7160 overloadedMethodF2Method(info); |
| 7157 return; | 7161 return; |
| 7158 } | 7162 } |
| 7159 if (true) { | 7163 if (true) { |
| 7160 overloadedMethodF1Method(info); | 7164 overloadedMethodF1Method(info); |
| 7161 return; | 7165 return; |
| 7162 } | 7166 } |
| 7167 if (true) { |
| 7168 overloadedMethodF2Method(info); |
| 7169 return; |
| 7170 } |
| 7163 break; | 7171 break; |
| 7164 default: | 7172 default: |
| 7165 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 7173 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 7166 exceptionState.throwIfNeeded(); | 7174 exceptionState.throwIfNeeded(); |
| 7167 return; | 7175 return; |
| 7168 } | 7176 } |
| 7169 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 7177 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 7170 exceptionState.throwIfNeeded(); | 7178 exceptionState.throwIfNeeded(); |
| 7171 } | 7179 } |
| 7172 | 7180 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7321 switch (std::min(1, info.Length())) { | 7329 switch (std::min(1, info.Length())) { |
| 7322 case 1: | 7330 case 1: |
| 7323 if (info[0]->IsNumber()) { | 7331 if (info[0]->IsNumber()) { |
| 7324 overloadedMethodI2Method(info); | 7332 overloadedMethodI2Method(info); |
| 7325 return; | 7333 return; |
| 7326 } | 7334 } |
| 7327 if (true) { | 7335 if (true) { |
| 7328 overloadedMethodI1Method(info); | 7336 overloadedMethodI1Method(info); |
| 7329 return; | 7337 return; |
| 7330 } | 7338 } |
| 7339 if (true) { |
| 7340 overloadedMethodI2Method(info); |
| 7341 return; |
| 7342 } |
| 7331 break; | 7343 break; |
| 7332 default: | 7344 default: |
| 7333 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 7345 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 7334 exceptionState.throwIfNeeded(); | 7346 exceptionState.throwIfNeeded(); |
| 7335 return; | 7347 return; |
| 7336 } | 7348 } |
| 7337 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 7349 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 7338 exceptionState.throwIfNeeded(); | 7350 exceptionState.throwIfNeeded(); |
| 7339 } | 7351 } |
| 7340 | 7352 |
| (...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8775 impl->perWorldBindingsRuntimeEnabledVoidMethod(); | 8787 impl->perWorldBindingsRuntimeEnabledVoidMethod(); |
| 8776 } | 8788 } |
| 8777 | 8789 |
| 8778 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 8790 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
| 8779 { | 8791 { |
| 8780 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8792 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 8781 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW
orld(info); | 8793 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW
orld(info); |
| 8782 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8794 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 8783 } | 8795 } |
| 8784 | 8796 |
| 8797 static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) |
| 8798 { |
| 8799 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8800 V8StringResource<> stringArg; |
| 8801 { |
| 8802 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
| 8803 } |
| 8804 impl->runtimeEnabledOverloadedVoidMethod(stringArg); |
| 8805 } |
| 8806 |
| 8807 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) |
| 8808 { |
| 8809 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 8810 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8811 int longArg; |
| 8812 { |
| 8813 v8::TryCatch block; |
| 8814 V8RethrowTryCatchScope rethrow(block); |
| 8815 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 8816 } |
| 8817 impl->runtimeEnabledOverloadedVoidMethod(longArg); |
| 8818 } |
| 8819 |
| 8820 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 8821 { |
| 8822 v8::Isolate* isolate = info.GetIsolate(); |
| 8823 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab
ledOverloadedVoidMethod", "TestObject", info.Holder(), isolate); |
| 8824 switch (std::min(1, info.Length())) { |
| 8825 case 1: |
| 8826 if (info[0]->IsNumber()) { |
| 8827 runtimeEnabledOverloadedVoidMethod2Method(info); |
| 8828 return; |
| 8829 } |
| 8830 if (true) { |
| 8831 runtimeEnabledOverloadedVoidMethod1Method(info); |
| 8832 return; |
| 8833 } |
| 8834 if (true) { |
| 8835 runtimeEnabledOverloadedVoidMethod2Method(info); |
| 8836 return; |
| 8837 } |
| 8838 break; |
| 8839 default: |
| 8840 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 8841 exceptionState.throwIfNeeded(); |
| 8842 return; |
| 8843 } |
| 8844 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8845 exceptionState.throwIfNeeded(); |
| 8846 } |
| 8847 |
| 8848 static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 8849 { |
| 8850 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 8851 TestObjectV8Internal::runtimeEnabledOverloadedVoidMethodMethod(info); |
| 8852 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 8853 } |
| 8854 |
| 8855 static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 8856 { |
| 8857 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8858 V8StringResource<> stringArg; |
| 8859 { |
| 8860 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
| 8861 } |
| 8862 impl->partiallyRuntimeEnabledOverloadedVoidMethod(stringArg); |
| 8863 } |
| 8864 |
| 8865 static void partiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 8866 { |
| 8867 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu
ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate(
)); |
| 8868 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8869 int longArg; |
| 8870 { |
| 8871 v8::TryCatch block; |
| 8872 V8RethrowTryCatchScope rethrow(block); |
| 8873 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 8874 } |
| 8875 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg); |
| 8876 } |
| 8877 |
| 8878 static void partiallyRuntimeEnabledOverloadedVoidMethodMethod(const v8::Function
CallbackInfo<v8::Value>& info) |
| 8879 { |
| 8880 v8::Isolate* isolate = info.GetIsolate(); |
| 8881 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu
ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), isolate); |
| 8882 switch (std::min(1, info.Length())) { |
| 8883 case 1: |
| 8884 if (info[0]->IsNumber()) { |
| 8885 partiallyRuntimeEnabledOverloadedVoidMethod2Method(info); |
| 8886 return; |
| 8887 } |
| 8888 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 8889 if (true) { |
| 8890 partiallyRuntimeEnabledOverloadedVoidMethod1Method(info); |
| 8891 return; |
| 8892 } |
| 8893 } |
| 8894 if (true) { |
| 8895 partiallyRuntimeEnabledOverloadedVoidMethod2Method(info); |
| 8896 return; |
| 8897 } |
| 8898 break; |
| 8899 default: |
| 8900 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 8901 exceptionState.throwIfNeeded(); |
| 8902 return; |
| 8903 } |
| 8904 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 8905 exceptionState.throwIfNeeded(); |
| 8906 } |
| 8907 |
| 8908 static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
| 8909 { |
| 8910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 8911 TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethod(info
); |
| 8912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 8913 } |
| 8914 |
| 8785 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 8915 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
| 8786 { | 8916 { |
| 8787 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8917 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8788 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Method(), info.GetIsolate()); | 8918 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Method(), info.GetIsolate()); |
| 8789 } | 8919 } |
| 8790 | 8920 |
| 8791 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 8921 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
| 8792 { | 8922 { |
| 8793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 8794 TestObjectV8Internal::treatReturnedNullStringAsNullStringMethodMethod(info); | 8924 TestObjectV8Internal::treatReturnedNullStringAsNullStringMethodMethod(info); |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9344 {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectV8Internal::pe
rWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectV8Interna
l::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld, 1}
, | 9474 {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectV8Internal::pe
rWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectV8Interna
l::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld, 1}
, |
| 9345 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectV8Intern
al::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, TestObj
ectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallba
ckForMainWorld, 0}, | 9475 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectV8Intern
al::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, TestObj
ectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallba
ckForMainWorld, 0}, |
| 9346 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectV8I
nternal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbac
k, TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMet
hodMethodCallbackForMainWorld, 0}, | 9476 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectV8I
nternal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbac
k, TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMet
hodMethodCallbackForMainWorld, 0}, |
| 9347 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho
dMethodCallback, 0, 0}, | 9477 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho
dMethodCallback, 0, 0}, |
| 9348 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM
ethodMethodCallback, 0, 0}, | 9478 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM
ethodMethodCallback, 0, 0}, |
| 9349 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc
eptionVoidMethodOptionalLongArgMethodCallback, 0, 0}, | 9479 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc
eptionVoidMethodOptionalLongArgMethodCallback, 0, 0}, |
| 9350 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal::
raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1}, | 9480 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal::
raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1}, |
| 9351 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In
ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback,
0, 0}, | 9481 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In
ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback,
0, 0}, |
| 9352 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises
ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0}, | 9482 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises
ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0}, |
| 9353 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int
ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0
, 1}, | 9483 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int
ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0
, 1}, |
| 9484 {"partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::partia
llyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, 1}, |
| 9354 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet
urnedNullStringAsNullStringMethodMethodCallback, 0, 0}, | 9485 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet
urnedNullStringAsNullStringMethodMethodCallback, 0, 0}, |
| 9355 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre
atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0}, | 9486 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre
atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0}, |
| 9356 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna
l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, | 9487 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna
l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, |
| 9357 {"typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg", TestObjectV8In
ternal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallback,
0, 1}, | 9488 {"typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg", TestObjectV8In
ternal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallback,
0, 1}, |
| 9358 {"typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg", TestO
bjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNull
ArgMethodCallback, 0, 1}, | 9489 {"typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg", TestO
bjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNull
ArgMethodCallback, 0, 1}, |
| 9359 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal
::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2}, | 9490 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal
::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2}, |
| 9360 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal:
:voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1}, | 9491 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal:
:voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1}, |
| 9361 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo
idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1}, | 9492 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo
idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1}, |
| 9362 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int
ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0
, 1}, | 9493 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int
ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0
, 1}, |
| 9363 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern
al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1}, | 9494 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern
al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1}, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9431 COMPILE_ASSERT(1 == TestObject::CONST_IMPL, TheValueOfTestObject_CONST_IMPLD
oesntMatchWithImplementation); | 9562 COMPILE_ASSERT(1 == TestObject::CONST_IMPL, TheValueOfTestObject_CONST_IMPLD
oesntMatchWithImplementation); |
| 9432 functionTemplate->Set(v8AtomicString(isolate, "staticVoidMethod"), v8::Funct
ionTemplate::New(isolate, TestObjectV8Internal::staticVoidMethodMethodCallback,
v8Undefined(), v8::Local<v8::Signature>(), 0)); | 9563 functionTemplate->Set(v8AtomicString(isolate, "staticVoidMethod"), v8::Funct
ionTemplate::New(isolate, TestObjectV8Internal::staticVoidMethodMethodCallback,
v8Undefined(), v8::Local<v8::Signature>(), 0)); |
| 9433 functionTemplate->Set(v8AtomicString(isolate, "overloadedStaticMethod"), v8:
:FunctionTemplate::New(isolate, TestObjectV8Internal::overloadedStaticMethodMeth
odCallback, v8Undefined(), v8::Local<v8::Signature>(), 1)); | 9564 functionTemplate->Set(v8AtomicString(isolate, "overloadedStaticMethod"), v8:
:FunctionTemplate::New(isolate, TestObjectV8Internal::overloadedStaticMethodMeth
odCallback, v8Undefined(), v8::Local<v8::Signature>(), 1)); |
| 9434 #if ENABLE(CONDITION) | 9565 #if ENABLE(CONDITION) |
| 9435 functionTemplate->Set(v8AtomicString(isolate, "conditionalConditionStaticVoi
dMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::conditionalC
onditionStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(
), 0)); | 9566 functionTemplate->Set(v8AtomicString(isolate, "conditionalConditionStaticVoi
dMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::conditionalC
onditionStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(
), 0)); |
| 9436 #endif // ENABLE(CONDITION) | 9567 #endif // ENABLE(CONDITION) |
| 9437 prototypeTemplate->Set(v8AtomicString(isolate, "doNotCheckSignatureVoidMetho
d"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::doNotCheckSignatur
eVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); | 9568 prototypeTemplate->Set(v8AtomicString(isolate, "doNotCheckSignatureVoidMetho
d"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::doNotCheckSignatur
eVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); |
| 9438 prototypeTemplate->Set(v8AtomicString(isolate, "notEnumerableVoidMethod"), v
8::FunctionTemplate::New(isolate, TestObjectV8Internal::notEnumerableVoidMethodM
ethodCallback, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttr
ibute>(v8::DontDelete | v8::DontEnum)); | 9569 prototypeTemplate->Set(v8AtomicString(isolate, "notEnumerableVoidMethod"), v
8::FunctionTemplate::New(isolate, TestObjectV8Internal::notEnumerableVoidMethodM
ethodCallback, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttr
ibute>(v8::DontDelete | v8::DontEnum)); |
| 9439 prototypeTemplate->Set(v8AtomicString(isolate, "readOnlyVoidMethod"), v8::Fu
nctionTemplate::New(isolate, TestObjectV8Internal::readOnlyVoidMethodMethodCallb
ack, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttribute>(v8:
:DontDelete | v8::ReadOnly)); | 9570 prototypeTemplate->Set(v8AtomicString(isolate, "readOnlyVoidMethod"), v8::Fu
nctionTemplate::New(isolate, TestObjectV8Internal::readOnlyVoidMethodMethodCallb
ack, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttribute>(v8:
:DontDelete | v8::ReadOnly)); |
| 9440 prototypeTemplate->Set(v8AtomicString(isolate, "notEnumerableReadOnlyVoidMet
hod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::notEnumerableRea
dOnlyVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0), static_cast<
v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum | v8::ReadOnly)); | 9571 prototypeTemplate->Set(v8AtomicString(isolate, "notEnumerableReadOnlyVoidMet
hod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::notEnumerableRea
dOnlyVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0), static_cast<
v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum | v8::ReadOnly)); |
| 9441 if (RuntimeEnabledFeatures::featureNameEnabled()) | 9572 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 9442 prototypeTemplate->Set(v8AtomicString(isolate, "runtimeEnabledVoidMethod
"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::runtimeEnabledVoidM
ethodMethodCallback, v8Undefined(), defaultSignature, 0)); | 9573 prototypeTemplate->Set(v8AtomicString(isolate, "runtimeEnabledVoidMethod
"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::runtimeEnabledVoidM
ethodMethodCallback, v8Undefined(), defaultSignature, 0)); |
| 9443 if (DOMWrapperWorld::current(isolate).isMainWorld()) { | 9574 } |
| 9444 if (RuntimeEnabledFeatures::featureNameEnabled()) | 9575 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 9576 if (DOMWrapperWorld::current(isolate).isMainWorld()) { |
| 9445 prototypeTemplate->Set(v8AtomicString(isolate, "perWorldBindingsRunt
imeEnabledVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal:
:perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld, v8Undefined
(), defaultSignature, 0)); | 9577 prototypeTemplate->Set(v8AtomicString(isolate, "perWorldBindingsRunt
imeEnabledVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal:
:perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld, v8Undefined
(), defaultSignature, 0)); |
| 9446 } else { | 9578 } else { |
| 9447 if (RuntimeEnabledFeatures::featureNameEnabled()) | |
| 9448 prototypeTemplate->Set(v8AtomicString(isolate, "perWorldBindingsRunt
imeEnabledVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal:
:perWorldBindingsRuntimeEnabledVoidMethodMethodCallback, v8Undefined(), defaultS
ignature, 0)); | 9579 prototypeTemplate->Set(v8AtomicString(isolate, "perWorldBindingsRunt
imeEnabledVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal:
:perWorldBindingsRuntimeEnabledVoidMethodMethodCallback, v8Undefined(), defaultS
ignature, 0)); |
| 9580 } |
| 9581 } |
| 9582 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 9583 prototypeTemplate->Set(v8AtomicString(isolate, "runtimeEnabledOverloaded
VoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::runtimeEn
abledOverloadedVoidMethodMethodCallback, v8Undefined(), defaultSignature, 1)); |
| 9449 } | 9584 } |
| 9450 instanceTemplate->Set(v8AtomicString(isolate, "unforgeableVoidMethod"), v8::
FunctionTemplate::New(isolate, TestObjectV8Internal::unforgeableVoidMethodMethod
Callback, v8Undefined(), defaultSignature, 0)); | 9585 instanceTemplate->Set(v8AtomicString(isolate, "unforgeableVoidMethod"), v8::
FunctionTemplate::New(isolate, TestObjectV8Internal::unforgeableVoidMethodMethod
Callback, v8Undefined(), defaultSignature, 0)); |
| 9451 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestObjectV8Internal::staticStringAttributeAttributeGetterCallback
, TestObjectV8Internal::staticStringAttributeAttributeSetterCallback, v8::Extern
al::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8
::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 9586 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestObjectV8Internal::staticStringAttributeAttributeGetterCallback
, TestObjectV8Internal::staticStringAttributeAttributeSetterCallback, v8::Extern
al::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8
::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
| 9452 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticLongA
ttribute"), TestObjectV8Internal::staticLongAttributeAttributeGetterCallback, Te
stObjectV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::Ne
w(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Acce
ssorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 9587 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticLongA
ttribute"), TestObjectV8Internal::staticLongAttributeAttributeGetterCallback, Te
stObjectV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::Ne
w(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Acce
ssorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
| 9453 | 9588 |
| 9454 // Custom toString template | 9589 // Custom toString template |
| 9455 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 9590 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 9456 } | 9591 } |
| 9457 | 9592 |
| 9458 v8::Handle<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) | 9593 v8::Handle<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9533 fromInternalPointer(object)->deref(); | 9668 fromInternalPointer(object)->deref(); |
| 9534 } | 9669 } |
| 9535 | 9670 |
| 9536 template<> | 9671 template<> |
| 9537 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 9672 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| 9538 { | 9673 { |
| 9539 return toV8(impl, creationContext, isolate); | 9674 return toV8(impl, creationContext, isolate); |
| 9540 } | 9675 } |
| 9541 | 9676 |
| 9542 } // namespace WebCore | 9677 } // namespace WebCore |
| OLD | NEW |