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 6588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6599 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; | 6599 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; |
6600 } | 6600 } |
6601 | 6601 |
6602 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6602 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6603 { | 6603 { |
6604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6605 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); | 6605 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); |
6606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6607 } | 6607 } |
6608 | 6608 |
| 6609 static void nullableLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 6610 { |
| 6611 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6612 Nullable<int> result = impl->nullableLongMethod(); |
| 6613 if (result.isNull()) |
| 6614 v8SetReturnValueNull(info); |
| 6615 else |
| 6616 v8SetReturnValueInt(info, result.get()); |
| 6617 } |
| 6618 |
| 6619 static void nullableLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 6620 { |
| 6621 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6622 TestObjectV8Internal::nullableLongMethodMethod(info); |
| 6623 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6624 } |
| 6625 |
| 6626 static void nullableStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 6627 { |
| 6628 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6629 v8SetReturnValueStringOrNull(info, impl->nullableStringMethod(), info.GetIso
late()); |
| 6630 } |
| 6631 |
| 6632 static void nullableStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 6633 { |
| 6634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6635 TestObjectV8Internal::nullableStringMethodMethod(info); |
| 6636 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6637 } |
| 6638 |
| 6639 static void nullableTestInterfaceMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 6640 { |
| 6641 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6642 v8SetReturnValue(info, impl->nullableTestInterfaceMethod()); |
| 6643 } |
| 6644 |
| 6645 static void nullableTestInterfaceMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 6646 { |
| 6647 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6648 TestObjectV8Internal::nullableTestInterfaceMethodMethod(info); |
| 6649 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6650 } |
| 6651 |
| 6652 static void nullableLongSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 6653 { |
| 6654 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6655 Nullable<Vector<int> > result = impl->nullableLongSequenceMethod(); |
| 6656 if (result.isNull()) |
| 6657 v8SetReturnValueNull(info); |
| 6658 else |
| 6659 v8SetReturnValue(info, v8Array(result.get(), info.Holder(), info.GetIsol
ate())); |
| 6660 } |
| 6661 |
| 6662 static void nullableLongSequenceMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 6663 { |
| 6664 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6665 TestObjectV8Internal::nullableLongSequenceMethodMethod(info); |
| 6666 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6667 } |
| 6668 |
6609 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6669 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
6610 { | 6670 { |
6611 if (UNLIKELY(info.Length() < 1)) { | 6671 if (UNLIKELY(info.Length() < 1)) { |
6612 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullA
rg", "TestObject", 1, info.Length(), info.GetIsolate()); | 6672 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullA
rg", "TestObject", 1, info.Length(), info.GetIsolate()); |
6613 return; | 6673 return; |
6614 } | 6674 } |
6615 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6675 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6616 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; | 6676 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; |
6617 { | 6677 { |
6618 v8::TryCatch block; | 6678 v8::TryCatch block; |
(...skipping 3963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10582 {"testInterfaceEmptyArrayMethod", TestObjectV8Internal::testInterfaceEmptyAr
rayMethodMethodCallback, 0, 0}, | 10642 {"testInterfaceEmptyArrayMethod", TestObjectV8Internal::testInterfaceEmptyAr
rayMethodMethodCallback, 0, 0}, |
10583 {"voidMethodArrayLongArg", TestObjectV8Internal::voidMethodArrayLongArgMetho
dCallback, 0, 1}, | 10643 {"voidMethodArrayLongArg", TestObjectV8Internal::voidMethodArrayLongArgMetho
dCallback, 0, 1}, |
10584 {"voidMethodArrayStringArg", TestObjectV8Internal::voidMethodArrayStringArgM
ethodCallback, 0, 1}, | 10644 {"voidMethodArrayStringArg", TestObjectV8Internal::voidMethodArrayStringArgM
ethodCallback, 0, 1}, |
10585 {"voidMethodArrayTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodArr
ayTestInterfaceEmptyArgMethodCallback, 0, 1}, | 10645 {"voidMethodArrayTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodArr
ayTestInterfaceEmptyArgMethodCallback, 0, 1}, |
10586 {"longSequenceMethod", TestObjectV8Internal::longSequenceMethodMethodCallbac
k, 0, 0}, | 10646 {"longSequenceMethod", TestObjectV8Internal::longSequenceMethodMethodCallbac
k, 0, 0}, |
10587 {"stringSequenceMethod", TestObjectV8Internal::stringSequenceMethodMethodCal
lback, 0, 0}, | 10647 {"stringSequenceMethod", TestObjectV8Internal::stringSequenceMethodMethodCal
lback, 0, 0}, |
10588 {"testInterfaceEmptySequenceMethod", TestObjectV8Internal::testInterfaceEmpt
ySequenceMethodMethodCallback, 0, 0}, | 10648 {"testInterfaceEmptySequenceMethod", TestObjectV8Internal::testInterfaceEmpt
ySequenceMethodMethodCallback, 0, 0}, |
10589 {"voidMethodSequenceLongArg", TestObjectV8Internal::voidMethodSequenceLongAr
gMethodCallback, 0, 1}, | 10649 {"voidMethodSequenceLongArg", TestObjectV8Internal::voidMethodSequenceLongAr
gMethodCallback, 0, 1}, |
10590 {"voidMethodSequenceStringArg", TestObjectV8Internal::voidMethodSequenceStri
ngArgMethodCallback, 0, 1}, | 10650 {"voidMethodSequenceStringArg", TestObjectV8Internal::voidMethodSequenceStri
ngArgMethodCallback, 0, 1}, |
10591 {"voidMethodSequenceTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
SequenceTestInterfaceEmptyArgMethodCallback, 0, 1}, | 10651 {"voidMethodSequenceTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
SequenceTestInterfaceEmptyArgMethodCallback, 0, 1}, |
| 10652 {"nullableLongMethod", TestObjectV8Internal::nullableLongMethodMethodCallbac
k, 0, 0}, |
| 10653 {"nullableStringMethod", TestObjectV8Internal::nullableStringMethodMethodCal
lback, 0, 0}, |
| 10654 {"nullableTestInterfaceMethod", TestObjectV8Internal::nullableTestInterfaceM
ethodMethodCallback, 0, 0}, |
| 10655 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet
hodMethodCallback, 0, 0}, |
10592 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1}, | 10656 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1}, |
10593 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1}, | 10657 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1}, |
10594 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0}, | 10658 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0}, |
10595 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1}, | 10659 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1}, |
10596 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0}
, | 10660 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0}
, |
10597 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1}, | 10661 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1}, |
10598 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0}, | 10662 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0}, |
10599 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0}, | 10663 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0}, |
10600 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 0}, | 10664 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 0}, |
10601 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM
ethodMethodCallback, 0, 0}, | 10665 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM
ethodMethodCallback, 0, 0}, |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10917 fromInternalPointer(object)->deref(); | 10981 fromInternalPointer(object)->deref(); |
10918 } | 10982 } |
10919 | 10983 |
10920 template<> | 10984 template<> |
10921 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 10985 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
10922 { | 10986 { |
10923 return toV8(impl, creationContext, isolate); | 10987 return toV8(impl, creationContext, isolate); |
10924 } | 10988 } |
10925 | 10989 |
10926 } // namespace WebCore | 10990 } // namespace WebCore |
OLD | NEW |