Index: Source/bindings/tests/results/V8TestObject.cpp |
diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp |
index d96b3ef96cd3ce5c1f33857b4864c6683e4f8a6b..463ab4a4ebba6ff7aceab26594caf928ea2e72d2 100644 |
--- a/Source/bindings/tests/results/V8TestObject.cpp |
+++ b/Source/bindings/tests/results/V8TestObject.cpp |
@@ -1653,9 +1653,9 @@ static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const |
static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) |
- world.activityLogger()->logGetter("TestObject.activityLoggingAccessForAllWorldsLongAttribute"); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) |
+ contextData->activityLogger()->logGetter("TestObject.activityLoggingAccessForAllWorldsLongAttribute"); |
TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
} |
@@ -1672,9 +1672,9 @@ static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo |
static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) { |
- world.activityLogger()->logSetter("TestObject.activityLoggingAccessForAllWorldsLongAttribute", v8Value); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) { |
+ contextData->activityLogger()->logSetter("TestObject.activityLoggingAccessForAllWorldsLongAttribute", v8Value); |
} |
TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8Value, info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
@@ -1690,9 +1690,9 @@ static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const |
static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) |
- world.activityLogger()->logGetter("TestObject.activityLoggingGetterForAllWorldsLongAttribute"); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) |
+ contextData->activityLogger()->logGetter("TestObject.activityLoggingGetterForAllWorldsLongAttribute"); |
TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
} |
@@ -1739,9 +1739,9 @@ static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo |
static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) { |
- world.activityLogger()->logSetter("TestObject.activityLoggingSetterForAllWorldsLongAttribute", v8Value); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) { |
+ contextData->activityLogger()->logSetter("TestObject.activityLoggingSetterForAllWorldsLongAttribute", v8Value); |
} |
TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8Value, info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
@@ -2476,9 +2476,9 @@ static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co |
static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) |
- world.activityLogger()->logGetter("TestObject.activityLoggingAccessPerWorldBindingsLongAttribute"); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) |
+ contextData->activityLogger()->logGetter("TestObject.activityLoggingAccessPerWorldBindingsLongAttribute"); |
TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
} |
@@ -2495,9 +2495,9 @@ static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 |
static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) { |
- world.activityLogger()->logSetter("TestObject.activityLoggingAccessPerWorldBindingsLongAttribute", v8Value); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) { |
+ contextData->activityLogger()->logSetter("TestObject.activityLoggingAccessPerWorldBindingsLongAttribute", v8Value); |
} |
TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8Value, info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
@@ -2513,9 +2513,9 @@ static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor |
static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) |
- world.activityLogger()->logGetter("TestObject.activityLoggingAccessPerWorldBindingsLongAttribute"); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) |
+ contextData->activityLogger()->logGetter("TestObject.activityLoggingAccessPerWorldBindingsLongAttribute"); |
TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterForMainWorld(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
} |
@@ -2532,9 +2532,9 @@ static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor |
static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) { |
- world.activityLogger()->logSetter("TestObject.activityLoggingAccessPerWorldBindingsLongAttribute", v8Value); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) { |
+ contextData->activityLogger()->logSetter("TestObject.activityLoggingAccessPerWorldBindingsLongAttribute", v8Value); |
} |
TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterForMainWorld(v8Value, info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
@@ -2550,9 +2550,9 @@ static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA |
static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) |
- world.activityLogger()->logGetter("TestObject.activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute"); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) |
+ contextData->activityLogger()->logGetter("TestObject.activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute"); |
TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
} |
@@ -2569,9 +2569,9 @@ static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA |
static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) { |
- world.activityLogger()->logSetter("TestObject.activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) { |
+ contextData->activityLogger()->logSetter("TestObject.activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); |
} |
TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetter(v8Value, info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
@@ -2617,9 +2617,9 @@ static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co |
static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) |
- world.activityLogger()->logGetter("TestObject.activityLoggingGetterPerWorldBindingsLongAttribute"); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) |
+ contextData->activityLogger()->logGetter("TestObject.activityLoggingGetterPerWorldBindingsLongAttribute"); |
TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
} |
@@ -2650,9 +2650,9 @@ static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor |
static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) |
- world.activityLogger()->logGetter("TestObject.activityLoggingGetterPerWorldBindingsLongAttribute"); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) |
+ contextData->activityLogger()->logGetter("TestObject.activityLoggingGetterPerWorldBindingsLongAttribute"); |
TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterForMainWorld(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
} |
@@ -2683,9 +2683,9 @@ static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA |
static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) |
- world.activityLogger()->logGetter("TestObject.activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute"); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) |
+ contextData->activityLogger()->logGetter("TestObject.activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute"); |
TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
} |
@@ -4341,12 +4341,12 @@ static void activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSetter(v8 |
static void activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) { |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) { |
TestObject* impl = V8TestObject::toNative(info.Holder()); |
int original = impl->activityLoggingSetterOnlyLogPreviousValueAttribute(); |
v8::Handle<v8::Value> originalValue = v8::Integer::New(info.GetIsolate(), impl->activityLoggingSetterOnlyLogPreviousValueAttribute()); |
- world.activityLogger()->logSetter("TestObject.activityLoggingSetterOnlyLogPreviousValueAttribute", v8Value, originalValue); |
+ contextData->activityLogger()->logSetter("TestObject.activityLoggingSetterOnlyLogPreviousValueAttribute", v8Value, originalValue); |
} |
TestObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSetter(v8Value, info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
@@ -4362,9 +4362,9 @@ static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetter(con |
static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) |
- world.activityLogger()->logGetter("TestObject.activityLoggingLogPreviousValueInterfaceAttribute"); |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) |
+ contextData->activityLogger()->logGetter("TestObject.activityLoggingLogPreviousValueInterfaceAttribute"); |
TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttributeGetter(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
} |
@@ -4380,12 +4380,12 @@ static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter(v8: |
static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) { |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) { |
TestObject* impl = V8TestObject::toNative(info.Holder()); |
RefPtr<TestInterfaceEmpty> original = impl->activityLoggingLogPreviousValueInterfaceAttribute(); |
v8::Handle<v8::Value> originalValue = toV8(impl->activityLoggingLogPreviousValueInterfaceAttribute(), info.Holder(), info.GetIsolate()); |
- world.activityLogger()->logSetter("TestObject.activityLoggingLogPreviousValueInterfaceAttribute", v8Value, originalValue); |
+ contextData->activityLogger()->logSetter("TestObject.activityLoggingLogPreviousValueInterfaceAttribute", v8Value, originalValue); |
} |
TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter(v8Value, info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
@@ -7643,10 +7643,10 @@ static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall |
static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) { |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) { |
Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle<v8::Value> >(info, 0); |
- world.activityLogger()->logMethod("TestObject.activityLoggingAccessForAllWorldsMethod", info.Length(), loggerArgs.data()); |
+ contextData->activityLogger()->logMethod("TestObject.activityLoggingAccessForAllWorldsMethod", info.Length(), loggerArgs.data()); |
} |
TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
@@ -8415,10 +8415,10 @@ static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 |
static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) { |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) { |
Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle<v8::Value> >(info, 0); |
- world.activityLogger()->logMethod("TestObject.activityLoggingForAllWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
+ contextData->activityLogger()->logMethod("TestObject.activityLoggingForAllWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
} |
TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
@@ -8433,10 +8433,10 @@ static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo |
static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) { |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) { |
Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle<v8::Value> >(info, 0); |
- world.activityLogger()->logMethod("TestObject.activityLoggingForAllWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
+ contextData->activityLogger()->logMethod("TestObject.activityLoggingForAllWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
} |
TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWorld(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
@@ -8451,10 +8451,10 @@ static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con |
static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
- DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); |
- if (world.activityLogger()) { |
+ V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext()); |
+ if (contextData && contextData->activityLogger()) { |
Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle<v8::Value> >(info, 0); |
- world.activityLogger()->logMethod("TestObject.activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
+ contextData->activityLogger()->logMethod("TestObject.activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
} |
TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(info); |
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |