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 11644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11655 impl->useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg(node1, node2); | 11655 impl->useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg(node1, node2); |
11656 } | 11656 } |
11657 | 11657 |
11658 static void useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 11658 static void useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
11659 { | 11659 { |
11660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
11661 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgM
ethod(info); | 11661 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgM
ethod(info); |
11662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 11662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
11663 } | 11663 } |
11664 | 11664 |
11665 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) | |
11666 { | |
11667 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin
gUnrestrictedVoidMethodFloatArgDoubleArg", "TestObject", info.Holder(), info.Get
Isolate()); | |
11668 if (UNLIKELY(info.Length() < 2)) { | |
11669 setMinimumArityTypeError(exceptionState, 2, info.Length()); | |
11670 exceptionState.throwIfNeeded(); | |
11671 return; | |
11672 } | |
11673 TestObject* impl = V8TestObject::toImpl(info.Holder()); | |
11674 float floatArg; | |
11675 double doubleArg; | |
11676 { | |
11677 floatArg = toRestrictedFloat(info.GetIsolate(), info[0], exceptionState)
; | |
11678 if (exceptionState.throwIfNeeded()) | |
11679 return; | |
11680 doubleArg = toRestrictedDouble(info.GetIsolate(), info[1], exceptionStat
e); | |
11681 if (exceptionState.throwIfNeeded()) | |
11682 return; | |
11683 } | |
11684 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr
g); | |
11685 } | |
11686 | |
11687 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) | |
11688 { | |
11689 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
11690 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet
hod(info); | |
11691 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
11692 } | |
11693 | |
11694 static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 11665 static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
11695 { | 11666 { |
11696 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11667 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
11697 impl->unforgeableVoidMethod(); | 11668 impl->unforgeableVoidMethod(); |
11698 } | 11669 } |
11699 | 11670 |
11700 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 11671 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
11701 { | 11672 { |
11702 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 11673 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
11703 TestObjectV8Internal::unforgeableVoidMethodMethod(info); | 11674 TestObjectV8Internal::unforgeableVoidMethodMethod(info); |
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12866 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre
atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0, v8::None, V8DOM
Configuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 12837 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre
atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0, v8::None, V8DOM
Configuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
12867 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea
tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0, v8::None, V8DOMCo
nfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 12838 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea
tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0, v8::None, V8DOMCo
nfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
12868 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal:
:treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0, v8::Non
e, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 12839 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal:
:treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0, v8::Non
e, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
12869 {"treatReturnedNullStringAsNullUSVStringMethod", TestObjectV8Internal::treat
ReturnedNullStringAsNullUSVStringMethodMethodCallback, 0, 0, v8::None, V8DOMConf
iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 12840 {"treatReturnedNullStringAsNullUSVStringMethod", TestObjectV8Internal::treat
ReturnedNullStringAsNullUSVStringMethodMethodCallback, 0, 0, v8::None, V8DOMConf
iguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
12870 {"treatReturnedNullStringAsUndefinedUSVStringMethod", TestObjectV8Internal::
treatReturnedNullStringAsUndefinedUSVStringMethodMethodCallback, 0, 0, v8::None,
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 12841 {"treatReturnedNullStringAsUndefinedUSVStringMethod", TestObjectV8Internal::
treatReturnedNullStringAsUndefinedUSVStringMethodMethodCallback, 0, 0, v8::None,
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
12871 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna
l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, v8:
:None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}
, | 12842 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna
l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, v8:
:None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}
, |
12872 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV
8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal
lback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnPrototype}, | 12843 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV
8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal
lback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnPrototype}, |
12873 {"useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", TestObjectV8Interna
l::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback, 0, 1, v8:
:None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}
, | 12844 {"useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", TestObjectV8Interna
l::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback, 0, 1, v8:
:None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}
, |
12874 {"useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", TestObjectV8Interna
l::useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback, 0, 2, v8:
:None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}
, | 12845 {"useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", TestObjectV8Interna
l::useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback, 0, 2, v8:
:None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}
, |
12875 {"useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", TestObjectV8Intern
al::useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback, 0, 1, v
8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp
e}, | 12846 {"useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", TestObjectV8Intern
al::useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback, 0, 1, v
8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp
e}, |
12876 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal
::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2, v8::N
one, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | |
12877 {"unforgeableVoidMethod", TestObjectV8Internal::unforgeableVoidMethodMethodC
allback, 0, 0, static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 12847 {"unforgeableVoidMethod", TestObjectV8Internal::unforgeableVoidMethodMethodC
allback, 0, 0, static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
12878 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal:
:voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1, v8::Non
e, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 12848 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal:
:voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1, v8::Non
e, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
12879 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo
idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1, v8::None, V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 12849 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo
idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1, v8::None, V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, |
12880 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int
ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0
, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}, | 12850 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int
ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0
, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}, |
12881 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern
al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1, v
8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp
e}, | 12851 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern
al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1, v
8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp
e}, |
12882 {"newObjectTestInterfaceMethod", TestObjectV8Internal::newObjectTestInterfac
eMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnPrototype}, | 12852 {"newObjectTestInterfaceMethod", TestObjectV8Internal::newObjectTestInterfac
eMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnPrototype}, |
12883 {"serializerMethod", TestObjectV8Internal::serializerMethodMethodCallback, 0
, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}, | 12853 {"serializerMethod", TestObjectV8Internal::serializerMethodMethodCallback, 0
, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPr
ototype}, |
12884 {"voidMethodImplementedInPrivateScript", TestObjectV8Internal::voidMethodImp
lementedInPrivateScriptMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnPrototype}, | 12854 {"voidMethodImplementedInPrivateScript", TestObjectV8Internal::voidMethodImp
lementedInPrivateScriptMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnPrototype}, |
12885 {"shortMethodImplementedInPrivateScript", TestObjectV8Internal::shortMethodI
mplementedInPrivateScriptMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Exp
osedToAllScripts, V8DOMConfiguration::OnPrototype}, | 12855 {"shortMethodImplementedInPrivateScript", TestObjectV8Internal::shortMethodI
mplementedInPrivateScriptMethodCallback, 0, 0, v8::None, V8DOMConfiguration::Exp
osedToAllScripts, V8DOMConfiguration::OnPrototype}, |
12886 {"shortMethodWithShortArgumentImplementedInPrivateScript", TestObjectV8Inter
nal::shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1,
v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProtot
ype}, | 12856 {"shortMethodWithShortArgumentImplementedInPrivateScript", TestObjectV8Inter
nal::shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1,
v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProtot
ype}, |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13577 ScriptState::Scope scope(scriptState); | 13547 ScriptState::Scope scope(scriptState); |
13578 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13548 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
13579 if (holder.IsEmpty()) | 13549 if (holder.IsEmpty()) |
13580 return false; | 13550 return false; |
13581 | 13551 |
13582 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13552 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
13583 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13553 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
13584 } | 13554 } |
13585 | 13555 |
13586 } // namespace blink | 13556 } // namespace blink |
OLD | NEW |