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 "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
(...skipping 7755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7766 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7766 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7767 } | 7767 } |
7768 | 7768 |
7769 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 7769 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
7770 { | 7770 { |
7771 if (UNLIKELY(info.Length() < 1)) { | 7771 if (UNLIKELY(info.Length() < 1)) { |
7772 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodXPathNSResolverArg", "TestObject", 1, info.Length())
, info.GetIsolate()); | 7772 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodXPathNSResolverArg", "TestObject", 1, info.Length())
, info.GetIsolate()); |
7773 return; | 7773 return; |
7774 } | 7774 } |
7775 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7775 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7776 RefPtrWillBeRawPtr<XPathNSResolver> xPathNSResolverArg; | 7776 RawPtr<XPathNSResolver> xPathNSResolverArg; |
7777 { | 7777 { |
7778 xPathNSResolverArg = toXPathNSResolver(ScriptState::current(info.GetIsol
ate()), info[0]); | 7778 xPathNSResolverArg = toXPathNSResolver(ScriptState::current(info.GetIsol
ate()), info[0]); |
7779 } | 7779 } |
7780 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); | 7780 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); |
7781 } | 7781 } |
7782 | 7782 |
7783 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 7783 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
7784 { | 7784 { |
7785 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7785 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7786 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); | 7786 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); |
(...skipping 3146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10933 v8SetReturnValue(info, result.release()); | 10933 v8SetReturnValue(info, result.release()); |
10934 } | 10934 } |
10935 | 10935 |
10936 static void raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) | 10936 static void raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
10937 { | 10937 { |
10938 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10938 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10939 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMethod(info
); | 10939 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMethod(info
); |
10940 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10940 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10941 } | 10941 } |
10942 | 10942 |
| 10943 static void raisesExceptionXPathNSResolverVoidMethodMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 10944 { |
| 10945 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionXPathNSResolverVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 10946 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 10947 RawPtr<XPathNSResolver> result = impl->raisesExceptionXPathNSResolverVoidMet
hod(exceptionState); |
| 10948 if (exceptionState.hadException()) { |
| 10949 exceptionState.throwIfNeeded(); |
| 10950 return; |
| 10951 } |
| 10952 v8SetReturnValue(info, result.release()); |
| 10953 } |
| 10954 |
| 10955 static void raisesExceptionXPathNSResolverVoidMethodMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
| 10956 { |
| 10957 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 10958 TestObjectV8Internal::raisesExceptionXPathNSResolverVoidMethodMethod(info); |
| 10959 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 10960 } |
| 10961 |
10943 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 10962 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
10944 { | 10963 { |
10945 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); | 10964 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); |
10946 if (UNLIKELY(info.Length() < 1)) { | 10965 if (UNLIKELY(info.Length() < 1)) { |
10947 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 10966 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
10948 exceptionState.throwIfNeeded(); | 10967 exceptionState.throwIfNeeded(); |
10949 return; | 10968 return; |
10950 } | 10969 } |
10951 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10970 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10952 int longArg; | 10971 int longArg; |
(...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12559 {"perWorldBindingsVoidMethod", TestObjectV8Internal::perWorldBindingsVoidMet
hodMethodCallback, TestObjectV8Internal::perWorldBindingsVoidMethodMethodCallbac
kForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12578 {"perWorldBindingsVoidMethod", TestObjectV8Internal::perWorldBindingsVoidMet
hodMethodCallback, TestObjectV8Internal::perWorldBindingsVoidMethodMethodCallbac
kForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12560 {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectV8Internal::pe
rWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectV8Interna
l::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld, 1,
V8DOMConfiguration::ExposedToAllScripts}, | 12579 {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectV8Internal::pe
rWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectV8Interna
l::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld, 1,
V8DOMConfiguration::ExposedToAllScripts}, |
12561 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectV8Intern
al::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, TestObj
ectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallba
ckForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12580 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectV8Intern
al::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, TestObj
ectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallba
ckForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12562 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectV8I
nternal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbac
k, TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMet
hodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12581 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectV8I
nternal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbac
k, TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMet
hodMethodCallbackForMainWorld, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12563 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho
dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12582 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho
dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12564 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM
ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12583 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM
ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12565 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc
eptionVoidMethodOptionalLongArgMethodCallback, 0, 0, V8DOMConfiguration::Exposed
ToAllScripts}, | 12584 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc
eptionVoidMethodOptionalLongArgMethodCallback, 0, 0, V8DOMConfiguration::Exposed
ToAllScripts}, |
12566 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal::
raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1, V8DOMConf
iguration::ExposedToAllScripts}, | 12585 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal::
raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1, V8DOMConf
iguration::ExposedToAllScripts}, |
12567 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In
ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12586 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In
ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12568 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises
ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::E
xposedToAllScripts}, | 12587 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises
ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::E
xposedToAllScripts}, |
| 12588 {"raisesExceptionXPathNSResolverVoidMethod", TestObjectV8Internal::raisesExc
eptionXPathNSResolverVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::Exposed
ToAllScripts}, |
12569 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int
ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12589 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int
ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12570 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet
urnedNullStringAsNullStringMethodMethodCallback, 0, 0, V8DOMConfiguration::Expos
edToAllScripts}, | 12590 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet
urnedNullStringAsNullStringMethodMethodCallback, 0, 0, V8DOMConfiguration::Expos
edToAllScripts}, |
12571 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre
atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, | 12591 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre
atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, |
12572 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea
tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0, V8DOMConfiguratio
n::ExposedToAllScripts}, | 12592 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea
tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0, V8DOMConfiguratio
n::ExposedToAllScripts}, |
12573 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal:
:treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, | 12593 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal:
:treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, |
12574 {"treatReturnedNullStringAsNullUSVStringMethod", TestObjectV8Internal::treat
ReturnedNullStringAsNullUSVStringMethodMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, | 12594 {"treatReturnedNullStringAsNullUSVStringMethod", TestObjectV8Internal::treat
ReturnedNullStringAsNullUSVStringMethodMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, |
12575 {"treatReturnedNullStringAsUndefinedUSVStringMethod", TestObjectV8Internal::
treatReturnedNullStringAsUndefinedUSVStringMethodMethodCallback, 0, 0, V8DOMConf
iguration::ExposedToAllScripts}, | 12595 {"treatReturnedNullStringAsUndefinedUSVStringMethod", TestObjectV8Internal::
treatReturnedNullStringAsUndefinedUSVStringMethodMethodCallback, 0, 0, V8DOMConf
iguration::ExposedToAllScripts}, |
12576 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna
l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, | 12596 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna
l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, |
12577 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV
8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12597 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV
8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12578 {"useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", TestObjectV8Interna
l::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, | 12598 {"useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", TestObjectV8Interna
l::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13292 return false; | 13312 return false; |
13293 | 13313 |
13294 ScriptState::Scope scope(scriptState); | 13314 ScriptState::Scope scope(scriptState); |
13295 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13315 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
13296 | 13316 |
13297 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13317 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
13298 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13318 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
13299 } | 13319 } |
13300 | 13320 |
13301 } // namespace blink | 13321 } // namespace blink |
OLD | NEW |