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/V8HTMLCollection.h" | 10 #include "bindings/core/v8/V8HTMLCollection.h" |
(...skipping 6393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6404 impl->voidMethodDictionaryArg(dictionaryArg); | 6404 impl->voidMethodDictionaryArg(dictionaryArg); |
6405 } | 6405 } |
6406 | 6406 |
6407 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6407 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
6408 { | 6408 { |
6409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6410 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); | 6410 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); |
6411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6412 } | 6412 } |
6413 | 6413 |
6414 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 6414 static void voidMethodEventListenerOrNullArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
6415 { | 6415 { |
6416 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
ventListenerArg", "TestObject", info.Holder(), info.GetIsolate()); | |
6417 if (UNLIKELY(info.Length() < 1)) { | 6416 if (UNLIKELY(info.Length() < 1)) { |
6418 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 6417 throwMinimumArityTypeErrorForMethod("voidMethodEventListenerOrNullArg",
"TestObject", 1, info.Length(), info.GetIsolate()); |
6419 return; | 6418 return; |
6420 } | 6419 } |
6421 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6420 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6422 RefPtr<EventListener> eventListenerArg; | 6421 RefPtr<EventListener> eventListenerArg; |
6423 { | 6422 { |
6424 eventListenerArg = V8EventListenerList::getEventListener(ScriptState::cu
rrent(info.GetIsolate()), info[1], false, ListenerFindOrCreate); | 6423 eventListenerArg = V8EventListenerList::getEventListener(ScriptState::cu
rrent(info.GetIsolate()), info[1], false, ListenerFindOrCreate); |
6425 } | 6424 } |
6426 impl->voidMethodEventListenerArg(eventListenerArg); | 6425 impl->voidMethodEventListenerOrNullArg(eventListenerArg); |
6427 if (listener && !impl->toNode()) | 6426 if (listener && !impl->toNode()) |
6428 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi
stenerCacheIndex, info.GetIsolate()); | 6427 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi
stenerCacheIndex, info.GetIsolate()); |
6429 } | 6428 } |
6430 | 6429 |
6431 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6430 static void voidMethodEventListenerOrNullArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
6432 { | 6431 { |
6433 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6432 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6434 TestObjectV8Internal::voidMethodEventListenerArgMethod(info); | 6433 TestObjectV8Internal::voidMethodEventListenerOrNullArgMethod(info); |
6435 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6434 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6436 } | 6435 } |
6437 | 6436 |
6438 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 6437 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
6439 { | 6438 { |
6440 if (UNLIKELY(info.Length() < 1)) { | 6439 if (UNLIKELY(info.Length() < 1)) { |
6441 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); | 6440 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); |
6442 return; | 6441 return; |
6443 } | 6442 } |
6444 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6443 TestObject* impl = V8TestObject::toNative(info.Holder()); |
(...skipping 3373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9818 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0}, | 9817 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0}, |
9819 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1}, | 9818 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1}, |
9820 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0}
, | 9819 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0}
, |
9821 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1}, | 9820 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1}, |
9822 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0}, | 9821 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0}, |
9823 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0}, | 9822 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0}, |
9824 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 0}, | 9823 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 0}, |
9825 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM
ethodMethodCallback, 0, 0}, | 9824 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM
ethodMethodCallback, 0, 0}, |
9826 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC
allback, 0, 0}, | 9825 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC
allback, 0, 0}, |
9827 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet
hodCallback, 0, 1}, | 9826 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet
hodCallback, 0, 1}, |
9828 {"voidMethodEventListenerArg", TestObjectV8Internal::voidMethodEventListener
ArgMethodCallback, 0, 1}, | 9827 {"voidMethodEventListenerOrNullArg", TestObjectV8Internal::voidMethodEventLi
stenerOrNullArgMethodCallback, 0, 1}, |
9829 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet
hodCallback, 0, 1}, | 9828 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet
hodCallback, 0, 1}, |
9830 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal
lback, 0, 1}, | 9829 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal
lback, 0, 1}, |
9831 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria
lizedScriptValueArgMethodCallback, 0, 1}, | 9830 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria
lizedScriptValueArgMethodCallback, 0, 1}, |
9832 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso
lverArgMethodCallback, 0, 1}, | 9831 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso
lverArgMethodCallback, 0, 1}, |
9833 {"voidMethodDictionarySequenceArg", TestObjectV8Internal::voidMethodDictiona
rySequenceArgMethodCallback, 0, 1}, | 9832 {"voidMethodDictionarySequenceArg", TestObjectV8Internal::voidMethodDictiona
rySequenceArgMethodCallback, 0, 1}, |
9834 {"voidMethodStringArgLongArg", TestObjectV8Internal::voidMethodStringArgLong
ArgMethodCallback, 0, 2}, | 9833 {"voidMethodStringArgLongArg", TestObjectV8Internal::voidMethodStringArgLong
ArgMethodCallback, 0, 2}, |
9835 {"voidMethodOptionalStringArg", TestObjectV8Internal::voidMethodOptionalStri
ngArgMethodCallback, 0, 0}, | 9834 {"voidMethodOptionalStringArg", TestObjectV8Internal::voidMethodOptionalStri
ngArgMethodCallback, 0, 0}, |
9836 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
OptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, | 9835 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
OptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, |
9837 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr
gMethodCallback, 0, 0}, | 9836 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr
gMethodCallback, 0, 0}, |
9838 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo
ngArgMethodCallback, 0, 0}, | 9837 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo
ngArgMethodCallback, 0, 0}, |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10106 fromInternalPointer(object)->deref(); | 10105 fromInternalPointer(object)->deref(); |
10107 } | 10106 } |
10108 | 10107 |
10109 template<> | 10108 template<> |
10110 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 10109 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
10111 { | 10110 { |
10112 return toV8(impl, creationContext, isolate); | 10111 return toV8(impl, creationContext, isolate); |
10113 } | 10112 } |
10114 | 10113 |
10115 } // namespace WebCore | 10114 } // namespace WebCore |
OLD | NEW |