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 7712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7723 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { | 7723 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { |
7724 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object
."); | 7724 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object
."); |
7725 return; | 7725 return; |
7726 } | 7726 } |
7727 arg2 = Dictionary(info[1], info.GetIsolate(), exceptionState); | 7727 arg2 = Dictionary(info[1], info.GetIsolate(), exceptionState); |
7728 if (exceptionState.hadException()) | 7728 if (exceptionState.hadException()) |
7729 return; | 7729 return; |
7730 arg3 = info[2]; | 7730 arg3 = info[2]; |
7731 if (!arg3.prepare(exceptionState)) | 7731 if (!arg3.prepare(exceptionState)) |
7732 return; | 7732 return; |
7733 variadic = toImplArguments<String>(info, 3, exceptionState); | 7733 variadic = toImplArguments<Vector<String>>(info, 3, exceptionState); |
7734 if (exceptionState.hadException()) | 7734 if (exceptionState.hadException()) |
7735 return; | 7735 return; |
7736 } | 7736 } |
7737 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val
ue()); | 7737 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val
ue()); |
7738 } | 7738 } |
7739 | 7739 |
7740 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 7740 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
7741 { | 7741 { |
7742 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
od", "TestObject", info.Holder(), info.GetIsolate()); | 7742 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
od", "TestObject", info.Holder(), info.GetIsolate()); |
7743 promiseMethodMethodPromise(info, exceptionState); | 7743 promiseMethodMethodPromise(info, exceptionState); |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8580 TestObjectV8Internal::voidMethodDefaultStringSequenceArgMethod(info); | 8580 TestObjectV8Internal::voidMethodDefaultStringSequenceArgMethod(info); |
8581 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8581 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8582 } | 8582 } |
8583 | 8583 |
8584 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 8584 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
8585 { | 8585 { |
8586 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV
ariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 8586 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV
ariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
8587 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8587 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8588 Vector<String> variadicStringArgs; | 8588 Vector<String> variadicStringArgs; |
8589 { | 8589 { |
8590 variadicStringArgs = toImplArguments<String>(info, 0, exceptionState); | 8590 variadicStringArgs = toImplArguments<Vector<String>>(info, 0, exceptionS
tate); |
8591 if (exceptionState.throwIfNeeded()) | 8591 if (exceptionState.throwIfNeeded()) |
8592 return; | 8592 return; |
8593 } | 8593 } |
8594 impl->voidMethodVariadicStringArg(variadicStringArgs); | 8594 impl->voidMethodVariadicStringArg(variadicStringArgs); |
8595 } | 8595 } |
8596 | 8596 |
8597 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 8597 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
8598 { | 8598 { |
8599 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8599 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8600 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); | 8600 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); |
8601 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8601 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8602 } | 8602 } |
8603 | 8603 |
8604 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 8604 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
8605 { | 8605 { |
8606 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 8606 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
8607 if (UNLIKELY(info.Length() < 1)) { | 8607 if (UNLIKELY(info.Length() < 1)) { |
8608 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 8608 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
8609 exceptionState.throwIfNeeded(); | 8609 exceptionState.throwIfNeeded(); |
8610 return; | 8610 return; |
8611 } | 8611 } |
8612 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8612 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8613 V8StringResource<> stringArg; | 8613 V8StringResource<> stringArg; |
8614 Vector<String> variadicStringArgs; | 8614 Vector<String> variadicStringArgs; |
8615 { | 8615 { |
8616 stringArg = info[0]; | 8616 stringArg = info[0]; |
8617 if (!stringArg.prepare()) | 8617 if (!stringArg.prepare()) |
8618 return; | 8618 return; |
8619 variadicStringArgs = toImplArguments<String>(info, 1, exceptionState); | 8619 variadicStringArgs = toImplArguments<Vector<String>>(info, 1, exceptionS
tate); |
8620 if (exceptionState.throwIfNeeded()) | 8620 if (exceptionState.throwIfNeeded()) |
8621 return; | 8621 return; |
8622 } | 8622 } |
8623 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 8623 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
8624 } | 8624 } |
8625 | 8625 |
8626 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 8626 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
8627 { | 8627 { |
8628 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8628 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8629 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); | 8629 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) | 9445 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
9446 { | 9446 { |
9447 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 9447 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
9448 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9448 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9449 int longArg; | 9449 int longArg; |
9450 Vector<ScriptValue> restArgs; | 9450 Vector<ScriptValue> restArgs; |
9451 { | 9451 { |
9452 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio
nState); | 9452 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio
nState); |
9453 if (exceptionState.throwIfNeeded()) | 9453 if (exceptionState.throwIfNeeded()) |
9454 return; | 9454 return; |
9455 restArgs = toImplArguments<ScriptValue>(info, 1, exceptionState); | 9455 restArgs = toImplArguments<Vector<ScriptValue>>(info, 1, exceptionState)
; |
9456 if (exceptionState.throwIfNeeded()) | 9456 if (exceptionState.throwIfNeeded()) |
9457 return; | 9457 return; |
9458 } | 9458 } |
9459 impl->overloadedMethodL(longArg, restArgs); | 9459 impl->overloadedMethodL(longArg, restArgs); |
9460 } | 9460 } |
9461 | 9461 |
9462 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 9462 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
9463 { | 9463 { |
9464 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 9464 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
9465 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9465 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9466 V8StringResource<> stringArg; | 9466 V8StringResource<> stringArg; |
9467 Vector<ScriptValue> restArgs; | 9467 Vector<ScriptValue> restArgs; |
9468 { | 9468 { |
9469 stringArg = info[0]; | 9469 stringArg = info[0]; |
9470 if (!stringArg.prepare()) | 9470 if (!stringArg.prepare()) |
9471 return; | 9471 return; |
9472 restArgs = toImplArguments<ScriptValue>(info, 1, exceptionState); | 9472 restArgs = toImplArguments<Vector<ScriptValue>>(info, 1, exceptionState)
; |
9473 if (exceptionState.throwIfNeeded()) | 9473 if (exceptionState.throwIfNeeded()) |
9474 return; | 9474 return; |
9475 } | 9475 } |
9476 impl->overloadedMethodL(stringArg, restArgs); | 9476 impl->overloadedMethodL(stringArg, restArgs); |
9477 } | 9477 } |
9478 | 9478 |
9479 static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 9479 static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
9480 { | 9480 { |
9481 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); | 9481 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodL", "TestObject", info.Holder(), info.GetIsolate()); |
9482 switch (std::min(2, info.Length())) { | 9482 switch (std::min(2, info.Length())) { |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10046 impl->activityLoggingAccessForAllWorldsMethod(); | 10046 impl->activityLoggingAccessForAllWorldsMethod(); |
10047 } | 10047 } |
10048 | 10048 |
10049 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 10049 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
10050 { | 10050 { |
10051 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10051 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10052 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 10052 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
10053 V8PerContextData* contextData = scriptState->perContextData(); | 10053 V8PerContextData* contextData = scriptState->perContextData(); |
10054 if (contextData && contextData->activityLogger()) { | 10054 if (contextData && contextData->activityLogger()) { |
10055 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingAccessForAllWorldsMethod", "TestObject", info.Holder(), info.GetIsolate(
)); | 10055 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); | 10056 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()); | 10057 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce
ssForAllWorldsMethod", info.Length(), loggerArgs.data()); |
10058 } | 10058 } |
10059 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); | 10059 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); |
10060 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10060 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10061 } | 10061 } |
10062 | 10062 |
10063 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 10063 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
10064 { | 10064 { |
10065 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10065 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10066 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 10066 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10877 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 10877 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
10878 } | 10878 } |
10879 | 10879 |
10880 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 10880 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
10881 { | 10881 { |
10882 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10882 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10883 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 10883 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
10884 V8PerContextData* contextData = scriptState->perContextData(); | 10884 V8PerContextData* contextData = scriptState->perContextData(); |
10885 if (contextData && contextData->activityLogger()) { | 10885 if (contextData && contextData->activityLogger()) { |
10886 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in
fo.GetIsolate()); | 10886 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); | 10887 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()); | 10888 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
10889 } | 10889 } |
10890 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethod(info); | 10890 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethod(info); |
10891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10892 } | 10892 } |
10893 | 10893 |
10894 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) | 10894 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) |
10895 { | 10895 { |
10896 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10896 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10897 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 10897 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
10898 } | 10898 } |
10899 | 10899 |
10900 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 10900 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
10901 { | 10901 { |
10902 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10902 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10903 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 10903 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
10904 V8PerContextData* contextData = scriptState->perContextData(); | 10904 V8PerContextData* contextData = scriptState->perContextData(); |
10905 if (contextData && contextData->activityLogger()) { | 10905 if (contextData && contextData->activityLogger()) { |
10906 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()); |
10907 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); |
10908 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 10908 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
10909 } | 10909 } |
10910 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethodForMainWorld(info); | 10910 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethodForMainWorld(info); |
10911 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10911 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10912 } | 10912 } |
10913 | 10913 |
10914 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 10914 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
10915 { | 10915 { |
10916 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10916 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10917 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 10917 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
10918 } | 10918 } |
10919 | 10919 |
10920 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 10920 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
10921 { | 10921 { |
10922 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 10922 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
10923 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 10923 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
10924 V8PerContextData* contextData = scriptState->perContextData(); | 10924 V8PerContextData* contextData = scriptState->perContextData(); |
10925 if (contextData && contextData->activityLogger()) { | 10925 if (contextData && contextData->activityLogger()) { |
10926 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(
), info.GetIsolate()); | 10926 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); | 10927 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()); | 10928 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI
solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
10929 } | 10929 } |
10930 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe
thodMethod(info); | 10930 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe
thodMethod(info); |
10931 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 10931 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
10932 } | 10932 } |
10933 | 10933 |
10934 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 10934 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
10935 { | 10935 { |
10936 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 10936 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
10937 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 10937 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
(...skipping 2604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13542 ScriptState::Scope scope(scriptState); | 13542 ScriptState::Scope scope(scriptState); |
13543 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13543 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
13544 if (holder.IsEmpty()) | 13544 if (holder.IsEmpty()) |
13545 return false; | 13545 return false; |
13546 | 13546 |
13547 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13547 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)); | 13548 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
13549 } | 13549 } |
13550 | 13550 |
13551 } // namespace blink | 13551 } // namespace blink |
OLD | NEW |