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 7464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7475 impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg); | 7475 impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg); |
7476 } | 7476 } |
7477 | 7477 |
7478 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 7478 static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
7479 { | 7479 { |
7480 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7480 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7481 TestObjectV8Internal::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgM
ethod(info); | 7481 TestObjectV8Internal::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgM
ethod(info); |
7482 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7482 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7483 } | 7483 } |
7484 | 7484 |
| 7485 static void voidMethodArrayOfDoubleOrDOMStringArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 7486 { |
| 7487 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayOfDoubleOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7488 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7489 HeapVector<DoubleOrString> arg; |
| 7490 { |
| 7491 arg = toImplArguments<HeapVector<DoubleOrString>>(info, 0, exceptionStat
e); |
| 7492 if (exceptionState.throwIfNeeded()) |
| 7493 return; |
| 7494 } |
| 7495 impl->voidMethodArrayOfDoubleOrDOMStringArg(arg); |
| 7496 } |
| 7497 |
| 7498 static void voidMethodArrayOfDoubleOrDOMStringArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 7499 { |
| 7500 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7501 TestObjectV8Internal::voidMethodArrayOfDoubleOrDOMStringArgMethod(info); |
| 7502 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7503 } |
| 7504 |
7485 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 7505 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
7486 { | 7506 { |
7487 if (UNLIKELY(info.Length() < 1)) { | 7507 if (UNLIKELY(info.Length() < 1)) { |
7488 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.
Length()), info.GetIsolate()); | 7508 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.
Length()), info.GetIsolate()); |
7489 return; | 7509 return; |
7490 } | 7510 } |
7491 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7511 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
7492 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; | 7512 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; |
7493 { | 7513 { |
7494 nullableTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeChec
k(info.GetIsolate(), info[0]); | 7514 nullableTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeChec
k(info.GetIsolate(), info[0]); |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7723 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { | 7743 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { |
7724 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object
."); | 7744 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object
."); |
7725 return; | 7745 return; |
7726 } | 7746 } |
7727 arg2 = Dictionary(info[1], info.GetIsolate(), exceptionState); | 7747 arg2 = Dictionary(info[1], info.GetIsolate(), exceptionState); |
7728 if (exceptionState.hadException()) | 7748 if (exceptionState.hadException()) |
7729 return; | 7749 return; |
7730 arg3 = info[2]; | 7750 arg3 = info[2]; |
7731 if (!arg3.prepare(exceptionState)) | 7751 if (!arg3.prepare(exceptionState)) |
7732 return; | 7752 return; |
7733 variadic = toImplArguments<String>(info, 3, exceptionState); | 7753 variadic = toImplArguments<Vector<String>>(info, 3, exceptionState); |
7734 if (exceptionState.hadException()) | 7754 if (exceptionState.hadException()) |
7735 return; | 7755 return; |
7736 } | 7756 } |
7737 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val
ue()); | 7757 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val
ue()); |
7738 } | 7758 } |
7739 | 7759 |
7740 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 7760 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
7741 { | 7761 { |
7742 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
od", "TestObject", info.Holder(), info.GetIsolate()); | 7762 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
od", "TestObject", info.Holder(), info.GetIsolate()); |
7743 promiseMethodMethodPromise(info, exceptionState); | 7763 promiseMethodMethodPromise(info, exceptionState); |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8580 TestObjectV8Internal::voidMethodDefaultStringSequenceArgMethod(info); | 8600 TestObjectV8Internal::voidMethodDefaultStringSequenceArgMethod(info); |
8581 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8601 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8582 } | 8602 } |
8583 | 8603 |
8584 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 8604 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
8585 { | 8605 { |
8586 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV
ariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 8606 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV
ariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
8587 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8607 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8588 Vector<String> variadicStringArgs; | 8608 Vector<String> variadicStringArgs; |
8589 { | 8609 { |
8590 variadicStringArgs = toImplArguments<String>(info, 0, exceptionState); | 8610 variadicStringArgs = toImplArguments<Vector<String>>(info, 0, exceptionS
tate); |
8591 if (exceptionState.throwIfNeeded()) | 8611 if (exceptionState.throwIfNeeded()) |
8592 return; | 8612 return; |
8593 } | 8613 } |
8594 impl->voidMethodVariadicStringArg(variadicStringArgs); | 8614 impl->voidMethodVariadicStringArg(variadicStringArgs); |
8595 } | 8615 } |
8596 | 8616 |
8597 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 8617 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
8598 { | 8618 { |
8599 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8619 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8600 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); | 8620 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); |
8601 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8621 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8602 } | 8622 } |
8603 | 8623 |
8604 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 8624 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
8605 { | 8625 { |
8606 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 8626 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
8607 if (UNLIKELY(info.Length() < 1)) { | 8627 if (UNLIKELY(info.Length() < 1)) { |
8608 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 8628 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
8609 exceptionState.throwIfNeeded(); | 8629 exceptionState.throwIfNeeded(); |
8610 return; | 8630 return; |
8611 } | 8631 } |
8612 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8632 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8613 V8StringResource<> stringArg; | 8633 V8StringResource<> stringArg; |
8614 Vector<String> variadicStringArgs; | 8634 Vector<String> variadicStringArgs; |
8615 { | 8635 { |
8616 stringArg = info[0]; | 8636 stringArg = info[0]; |
8617 if (!stringArg.prepare()) | 8637 if (!stringArg.prepare()) |
8618 return; | 8638 return; |
8619 variadicStringArgs = toImplArguments<String>(info, 1, exceptionState); | 8639 variadicStringArgs = toImplArguments<Vector<String>>(info, 1, exceptionS
tate); |
8620 if (exceptionState.throwIfNeeded()) | 8640 if (exceptionState.throwIfNeeded()) |
8621 return; | 8641 return; |
8622 } | 8642 } |
8623 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 8643 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
8624 } | 8644 } |
8625 | 8645 |
8626 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 8646 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
8627 { | 8647 { |
8628 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8648 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8629 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); | 8649 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); |
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9445 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 9465 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
9446 { | 9466 { |
9447 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 9467 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
9448 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9468 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9449 int longArg; | 9469 int longArg; |
9450 Vector<ScriptValue> restArgs; | 9470 Vector<ScriptValue> restArgs; |
9451 { | 9471 { |
9452 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio
nState); | 9472 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio
nState); |
9453 if (exceptionState.throwIfNeeded()) | 9473 if (exceptionState.throwIfNeeded()) |
9454 return; | 9474 return; |
9455 restArgs = toImplArguments<ScriptValue>(info, 1, exceptionState); | 9475 restArgs = toImplArguments<Vector<ScriptValue>>(info, 1, exceptionState)
; |
9456 if (exceptionState.throwIfNeeded()) | 9476 if (exceptionState.throwIfNeeded()) |
9457 return; | 9477 return; |
9458 } | 9478 } |
9459 impl->overloadedMethodL(longArg, restArgs); | 9479 impl->overloadedMethodL(longArg, restArgs); |
9460 } | 9480 } |
9461 | 9481 |
9462 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 9482 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
9463 { | 9483 { |
9464 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 9484 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
9465 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9485 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9466 V8StringResource<> stringArg; | 9486 V8StringResource<> stringArg; |
9467 Vector<ScriptValue> restArgs; | 9487 Vector<ScriptValue> restArgs; |
9468 { | 9488 { |
9469 stringArg = info[0]; | 9489 stringArg = info[0]; |
9470 if (!stringArg.prepare()) | 9490 if (!stringArg.prepare()) |
9471 return; | 9491 return; |
9472 restArgs = toImplArguments<ScriptValue>(info, 1, exceptionState); | 9492 restArgs = toImplArguments<Vector<ScriptValue>>(info, 1, exceptionState)
; |
9473 if (exceptionState.throwIfNeeded()) | 9493 if (exceptionState.throwIfNeeded()) |
9474 return; | 9494 return; |
9475 } | 9495 } |
9476 impl->overloadedMethodL(stringArg, restArgs); | 9496 impl->overloadedMethodL(stringArg, restArgs); |
9477 } | 9497 } |
9478 | 9498 |
9479 static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 9499 static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
9480 { | 9500 { |
9481 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 9501 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
9482 switch (std::min(2, info.Length())) { | 9502 switch (std::min(2, info.Length())) { |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10046 impl->activityLoggingAccessForAllWorldsMethod(); | 10066 impl->activityLoggingAccessForAllWorldsMethod(); |
10047 } | 10067 } |
10048 | 10068 |
10049 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 10069 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
10050 { | 10070 { |
10051 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10071 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10052 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 10072 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
10053 V8PerContextData* contextData = scriptState->perContextData(); | 10073 V8PerContextData* contextData = scriptState->perContextData(); |
10054 if (contextData && contextData->activityLogger()) { | 10074 if (contextData && contextData->activityLogger()) { |
10055 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingAccessForAllWorldsMethod", "TestObject", info.Holder(), info.GetIsolate(
)); | 10075 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingAccessForAllWorldsMethod", "TestObject", info.Holder(), info.GetIsolate(
)); |
10056 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<v8::Local<v8::
Value>>(info, 0, exceptionState); | 10076 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Loc
al<v8::Value>>>(info, 0, exceptionState); |
10057 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce
ssForAllWorldsMethod", info.Length(), loggerArgs.data()); | 10077 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce
ssForAllWorldsMethod", info.Length(), loggerArgs.data()); |
10058 } | 10078 } |
10059 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); | 10079 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); |
10060 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10080 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10061 } | 10081 } |
10062 | 10082 |
10063 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 10083 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
10064 { | 10084 { |
10065 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10085 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10066 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 10086 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10877 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 10897 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
10878 } | 10898 } |
10879 | 10899 |
10880 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 10900 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
10881 { | 10901 { |
10882 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10902 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10883 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 10903 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
10884 V8PerContextData* contextData = scriptState->perContextData(); | 10904 V8PerContextData* contextData = scriptState->perContextData(); |
10885 if (contextData && contextData->activityLogger()) { | 10905 if (contextData && contextData->activityLogger()) { |
10886 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in
fo.GetIsolate()); | 10906 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in
fo.GetIsolate()); |
10887 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<v8::Local<v8::
Value>>(info, 0, exceptionState); | 10907 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Loc
al<v8::Value>>>(info, 0, exceptionState); |
10888 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 10908 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
10889 } | 10909 } |
10890 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethod(info); | 10910 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethod(info); |
10891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10911 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10892 } | 10912 } |
10893 | 10913 |
10894 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) | 10914 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) |
10895 { | 10915 { |
10896 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10916 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10897 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 10917 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
10898 } | 10918 } |
10899 | 10919 |
10900 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 10920 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
10901 { | 10921 { |
10902 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10922 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10903 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 10923 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
10904 V8PerContextData* contextData = scriptState->perContextData(); | 10924 V8PerContextData* contextData = scriptState->perContextData(); |
10905 if (contextData && contextData->activityLogger()) { | 10925 if (contextData && contextData->activityLogger()) { |
10906 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in
fo.GetIsolate()); | 10926 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in
fo.GetIsolate()); |
10907 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<v8::Local<v8::
Value>>(info, 0, exceptionState); | 10927 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Loc
al<v8::Value>>>(info, 0, exceptionState); |
10908 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 10928 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
10909 } | 10929 } |
10910 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethodForMainWorld(info); | 10930 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethodForMainWorld(info); |
10911 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10931 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10912 } | 10932 } |
10913 | 10933 |
10914 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 10934 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
10915 { | 10935 { |
10916 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10936 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10917 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 10937 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
10918 } | 10938 } |
10919 | 10939 |
10920 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 10940 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
10921 { | 10941 { |
10922 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10942 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10923 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 10943 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
10924 V8PerContextData* contextData = scriptState->perContextData(); | 10944 V8PerContextData* contextData = scriptState->perContextData(); |
10925 if (contextData && contextData->activityLogger()) { | 10945 if (contextData && contextData->activityLogger()) { |
10926 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(
), info.GetIsolate()); | 10946 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(
), info.GetIsolate()); |
10927 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<v8::Local<v8::
Value>>(info, 0, exceptionState); | 10947 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Loc
al<v8::Value>>>(info, 0, exceptionState); |
10928 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI
solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 10948 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI
solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
10929 } | 10949 } |
10930 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe
thodMethod(info); | 10950 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe
thodMethod(info); |
10931 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10951 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10932 } | 10952 } |
10933 | 10953 |
10934 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 10954 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
10935 { | 10955 { |
10936 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10956 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10937 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 10957 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12654 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12674 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12655 {"testInterfaceGarbageCollectedOrDOMStringMethod", TestObjectV8Internal::tes
tInterfaceGarbageCollectedOrDOMStringMethodMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, | 12675 {"testInterfaceGarbageCollectedOrDOMStringMethod", TestObjectV8Internal::tes
tInterfaceGarbageCollectedOrDOMStringMethodMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, |
12656 {"testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod", TestObjectV8In
ternal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12676 {"testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod", TestObjectV8In
ternal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12657 {"booleanOrDOMStringOrUnrestrictedDoubleMethod", TestObjectV8Internal::boole
anOrDOMStringOrUnrestrictedDoubleMethodMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, | 12677 {"booleanOrDOMStringOrUnrestrictedDoubleMethod", TestObjectV8Internal::boole
anOrDOMStringOrUnrestrictedDoubleMethodMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, |
12658 {"testInterfaceOrLongMethod", TestObjectV8Internal::testInterfaceOrLongMetho
dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12678 {"testInterfaceOrLongMethod", TestObjectV8Internal::testInterfaceOrLongMetho
dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12659 {"voidMethodDoubleOrDOMStringArg", TestObjectV8Internal::voidMethodDoubleOrD
OMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12679 {"voidMethodDoubleOrDOMStringArg", TestObjectV8Internal::voidMethodDoubleOrD
OMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12660 {"voidMethodDoubleOrDOMStringOrNullArg", TestObjectV8Internal::voidMethodDou
bleOrDOMStringOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, | 12680 {"voidMethodDoubleOrDOMStringOrNullArg", TestObjectV8Internal::voidMethodDou
bleOrDOMStringOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, |
12661 {"voidMethodDoubleOrNullOrDOMStringArg", TestObjectV8Internal::voidMethodDou
bleOrNullOrDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, | 12681 {"voidMethodDoubleOrNullOrDOMStringArg", TestObjectV8Internal::voidMethodDou
bleOrNullOrDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, |
12662 {"voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg", TestObjectV8Interna
l::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, | 12682 {"voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg", TestObjectV8Interna
l::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, |
12663 {"voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg", TestObjectV8Intern
al::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback, 0, 1, V
8DOMConfiguration::ExposedToAllScripts}, | 12683 {"voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg", TestObjectV8Intern
al::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback, 0, 1, V
8DOMConfiguration::ExposedToAllScripts}, |
| 12684 {"voidMethodArrayOfDoubleOrDOMStringArg", TestObjectV8Internal::voidMethodAr
rayOfDoubleOrDOMStringArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS
cripts}, |
12664 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS
cripts}, | 12685 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS
cripts}, |
12665 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts
}, | 12686 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts
}, |
12666 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp
osedToAllScripts}, | 12687 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp
osedToAllScripts}, |
12667 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed
ToAllScripts}, | 12688 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed
ToAllScripts}, |
12668 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0,
V8DOMConfiguration::ExposedToAllScripts}, | 12689 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0,
V8DOMConfiguration::ExposedToAllScripts}, |
12669 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 12690 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
12670 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12691 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12671 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12692 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12672 {"nullableTestDictionaryMethod", TestObjectV8Internal::nullableTestDictionar
yMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12693 {"nullableTestDictionaryMethod", TestObjectV8Internal::nullableTestDictionar
yMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12673 {"passPermissiveDictionaryMethod", TestObjectV8Internal::passPermissiveDicti
onaryMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12694 {"passPermissiveDictionaryMethod", TestObjectV8Internal::passPermissiveDicti
onaryMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13542 ScriptState::Scope scope(scriptState); | 13563 ScriptState::Scope scope(scriptState); |
13543 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13564 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
13544 if (holder.IsEmpty()) | 13565 if (holder.IsEmpty()) |
13545 return false; | 13566 return false; |
13546 | 13567 |
13547 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13568 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
13548 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13569 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
13549 } | 13570 } |
13550 | 13571 |
13551 } // namespace blink | 13572 } // namespace blink |
OLD | NEW |