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 9487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9498 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt
yArg); | 9498 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt
yArg); |
9499 } | 9499 } |
9500 | 9500 |
9501 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 9501 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
9502 { | 9502 { |
9503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9504 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe
thod(info); | 9504 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe
thod(info); |
9505 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9505 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9506 } | 9506 } |
9507 | 9507 |
| 9508 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
| 9509 { |
| 9510 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 9511 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptyArg; |
| 9512 { |
| 9513 for (int i = 0; i < info.Length(); ++i) { |
| 9514 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate()))
{ |
| 9515 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingI
nterfaceVoidMethodTestInterfaceEmptyVariadicArg", "TestObject", "parameter 1 is
not of type 'TestInterfaceEmpty'."), info.GetIsolate()); |
| 9516 return; |
| 9517 } |
| 9518 testInterfaceEmptyArg.append(V8TestInterfaceEmpty::toNative(v8::Hand
le<v8::Object>::Cast(info[i]))); |
| 9519 } |
| 9520 } |
| 9521 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg(testInter
faceEmptyArg); |
| 9522 } |
| 9523 |
| 9524 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 9525 { |
| 9526 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 9527 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVaria
dicArgMethod(info); |
| 9528 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 9529 } |
| 9530 |
9508 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 9531 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
9509 { | 9532 { |
9510 if (UNLIKELY(info.Length() < 1)) { | 9533 if (UNLIKELY(info.Length() < 1)) { |
9511 throwMinimumArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestI
nterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 9534 throwMinimumArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestI
nterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
9512 return; | 9535 return; |
9513 } | 9536 } |
9514 TestObject* impl = V8TestObject::toNative(info.Holder()); | 9537 TestObject* impl = V8TestObject::toNative(info.Holder()); |
9515 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; | 9538 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
9516 { | 9539 { |
9517 v8::TryCatch block; | 9540 v8::TryCatch block; |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10052 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises
ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0}, | 10075 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises
ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0}, |
10053 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int
ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0
, 1}, | 10076 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int
ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0
, 1}, |
10054 {"partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::partia
llyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, 1}, | 10077 {"partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::partia
llyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, 1}, |
10055 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet
urnedNullStringAsNullStringMethodMethodCallback, 0, 0}, | 10078 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet
urnedNullStringAsNullStringMethodMethodCallback, 0, 0}, |
10056 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre
atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0}, | 10079 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre
atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0}, |
10057 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea
tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0}, | 10080 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea
tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0}, |
10058 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal:
:treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0}, | 10081 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal:
:treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0}, |
10059 {"treatReturnedNullStringAsNullScalarValueStringMethod", TestObjectV8Interna
l::treatReturnedNullStringAsNullScalarValueStringMethodMethodCallback, 0, 0}, | 10082 {"treatReturnedNullStringAsNullScalarValueStringMethod", TestObjectV8Interna
l::treatReturnedNullStringAsNullScalarValueStringMethodMethodCallback, 0, 0}, |
10060 {"treatReturnedNullStringAsUndefinedScalarValueStringMethod", TestObjectV8In
ternal::treatReturnedNullStringAsUndefinedScalarValueStringMethodMethodCallback,
0, 0}, | 10083 {"treatReturnedNullStringAsUndefinedScalarValueStringMethod", TestObjectV8In
ternal::treatReturnedNullStringAsUndefinedScalarValueStringMethodMethodCallback,
0, 0}, |
10061 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna
l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, | 10084 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna
l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, |
| 10085 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV
8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal
lback, 0, 0}, |
10062 {"typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg", TestObjectV8In
ternal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallback,
0, 1}, | 10086 {"typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg", TestObjectV8In
ternal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallback,
0, 1}, |
10063 {"typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg", TestO
bjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNull
ArgMethodCallback, 0, 1}, | 10087 {"typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg", TestO
bjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNull
ArgMethodCallback, 0, 1}, |
10064 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal
::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2}, | 10088 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal
::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2}, |
10065 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal:
:voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1}, | 10089 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal:
:voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1}, |
10066 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo
idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1}, | 10090 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo
idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1}, |
10067 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int
ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0
, 1}, | 10091 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int
ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0
, 1}, |
10068 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern
al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1}, | 10092 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern
al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1}, |
10069 {"toString", TestObjectV8Internal::toStringMethodCallback, 0, 0}, | 10093 {"toString", TestObjectV8Internal::toStringMethodCallback, 0, 0}, |
10070 }; | 10094 }; |
10071 | 10095 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10262 fromInternalPointer(object)->deref(); | 10286 fromInternalPointer(object)->deref(); |
10263 } | 10287 } |
10264 | 10288 |
10265 template<> | 10289 template<> |
10266 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 10290 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
10267 { | 10291 { |
10268 return toV8(impl, creationContext, isolate); | 10292 return toV8(impl, creationContext, isolate); |
10269 } | 10293 } |
10270 | 10294 |
10271 } // namespace WebCore | 10295 } // namespace WebCore |
OLD | NEW |