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 "HTMLNames.h" | 10 #include "HTMLNames.h" |
(...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1646 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 1646 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
1647 { | 1647 { |
1648 v8::Handle<v8::Object> holder = info.Holder(); | 1648 v8::Handle<v8::Object> holder = info.Holder(); |
1649 TestObject* impl = V8TestObject::toNative(holder); | 1649 TestObject* impl = V8TestObject::toNative(holder); |
1650 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu
te()); | 1650 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu
te()); |
1651 } | 1651 } |
1652 | 1652 |
1653 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1653 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1654 { | 1654 { |
1655 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1655 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1656 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 1656 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1657 if (world.activityLogger()) | 1657 if (contextData && contextData->activityLogger()) |
1658 world.activityLogger()->logGetter("TestObject.activityLoggingAccessForAl
lWorldsLongAttribute"); | 1658 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute"); |
1659 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); | 1659 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); |
1660 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1660 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1661 } | 1661 } |
1662 | 1662 |
1663 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1663 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1664 { | 1664 { |
1665 v8::Handle<v8::Object> holder = info.Holder(); | 1665 v8::Handle<v8::Object> holder = info.Holder(); |
1666 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1666 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
1667 TestObject* impl = V8TestObject::toNative(holder); | 1667 TestObject* impl = V8TestObject::toNative(holder); |
1668 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 1668 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
1669 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); | 1669 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); |
1670 } | 1670 } |
1671 | 1671 |
1672 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 1672 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
1673 { | 1673 { |
1674 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1674 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1675 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 1675 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1676 if (world.activityLogger()) { | 1676 if (contextData && contextData->activityLogger()) { |
1677 world.activityLogger()->logSetter("TestObject.activityLoggingAccessForAl
lWorldsLongAttribute", v8Value); | 1677 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute", v8Value); |
1678 } | 1678 } |
1679 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 1679 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); |
1680 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1680 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1681 } | 1681 } |
1682 | 1682 |
1683 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 1683 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
1684 { | 1684 { |
1685 v8::Handle<v8::Object> holder = info.Holder(); | 1685 v8::Handle<v8::Object> holder = info.Holder(); |
1686 TestObject* impl = V8TestObject::toNative(holder); | 1686 TestObject* impl = V8TestObject::toNative(holder); |
1687 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu
te()); | 1687 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu
te()); |
1688 } | 1688 } |
1689 | 1689 |
1690 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1690 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1691 { | 1691 { |
1692 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1692 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1693 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 1693 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1694 if (world.activityLogger()) | 1694 if (contextData && contextData->activityLogger()) |
1695 world.activityLogger()->logGetter("TestObject.activityLoggingGetterForAl
lWorldsLongAttribute"); | 1695 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForAllWorldsLongAttribute"); |
1696 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); | 1696 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); |
1697 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1697 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1698 } | 1698 } |
1699 | 1699 |
1700 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1700 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1701 { | 1701 { |
1702 v8::Handle<v8::Object> holder = info.Holder(); | 1702 v8::Handle<v8::Object> holder = info.Holder(); |
1703 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1703 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
1704 TestObject* impl = V8TestObject::toNative(holder); | 1704 TestObject* impl = V8TestObject::toNative(holder); |
1705 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 1705 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
(...skipping 26 matching lines...) Expand all Loading... |
1732 v8::Handle<v8::Object> holder = info.Holder(); | 1732 v8::Handle<v8::Object> holder = info.Holder(); |
1733 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1733 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
1734 TestObject* impl = V8TestObject::toNative(holder); | 1734 TestObject* impl = V8TestObject::toNative(holder); |
1735 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 1735 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
1736 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); | 1736 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); |
1737 } | 1737 } |
1738 | 1738 |
1739 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 1739 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
1740 { | 1740 { |
1741 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1741 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1742 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 1742 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1743 if (world.activityLogger()) { | 1743 if (contextData && contextData->activityLogger()) { |
1744 world.activityLogger()->logSetter("TestObject.activityLoggingSetterForAl
lWorldsLongAttribute", v8Value); | 1744 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett
erForAllWorldsLongAttribute", v8Value); |
1745 } | 1745 } |
1746 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 1746 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); |
1747 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1747 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1748 } | 1748 } |
1749 | 1749 |
1750 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 1750 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
1751 { | 1751 { |
1752 v8::Handle<v8::Object> holder = info.Holder(); | 1752 v8::Handle<v8::Object> holder = info.Holder(); |
1753 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac
hedAttributeAnyAttribute"); | 1753 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac
hedAttributeAnyAttribute"); |
1754 TestObject* impl = V8TestObject::toNative(holder); | 1754 TestObject* impl = V8TestObject::toNative(holder); |
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2469 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 2469 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
2470 { | 2470 { |
2471 v8::Handle<v8::Object> holder = info.Holder(); | 2471 v8::Handle<v8::Object> holder = info.Holder(); |
2472 TestObject* impl = V8TestObject::toNative(holder); | 2472 TestObject* impl = V8TestObject::toNative(holder); |
2473 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); | 2473 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); |
2474 } | 2474 } |
2475 | 2475 |
2476 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2476 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2477 { | 2477 { |
2478 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2478 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2479 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 2479 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2480 if (world.activityLogger()) | 2480 if (contextData && contextData->activityLogger()) |
2481 world.activityLogger()->logGetter("TestObject.activityLoggingAccessPerWo
rldBindingsLongAttribute"); | 2481 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); |
2482 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 2482 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
2483 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2483 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2484 } | 2484 } |
2485 | 2485 |
2486 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2486 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2487 { | 2487 { |
2488 v8::Handle<v8::Object> holder = info.Holder(); | 2488 v8::Handle<v8::Object> holder = info.Holder(); |
2489 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2489 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2490 TestObject* impl = V8TestObject::toNative(holder); | 2490 TestObject* impl = V8TestObject::toNative(holder); |
2491 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2491 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
2492 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2492 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2493 } | 2493 } |
2494 | 2494 |
2495 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 2495 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
2496 { | 2496 { |
2497 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2497 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2498 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 2498 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2499 if (world.activityLogger()) { | 2499 if (contextData && contextData->activityLogger()) { |
2500 world.activityLogger()->logSetter("TestObject.activityLoggingAccessPerWo
rldBindingsLongAttribute", v8Value); | 2500 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); |
2501 } | 2501 } |
2502 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); | 2502 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); |
2503 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2503 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2504 } | 2504 } |
2505 | 2505 |
2506 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2506 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2507 { | 2507 { |
2508 v8::Handle<v8::Object> holder = info.Holder(); | 2508 v8::Handle<v8::Object> holder = info.Holder(); |
2509 TestObject* impl = V8TestObject::toNative(holder); | 2509 TestObject* impl = V8TestObject::toNative(holder); |
2510 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); | 2510 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); |
2511 } | 2511 } |
2512 | 2512 |
2513 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 2513 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
2514 { | 2514 { |
2515 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2515 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2516 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 2516 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2517 if (world.activityLogger()) | 2517 if (contextData && contextData->activityLogger()) |
2518 world.activityLogger()->logGetter("TestObject.activityLoggingAccessPerWo
rldBindingsLongAttribute"); | 2518 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); |
2519 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 2519 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
2520 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2520 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2521 } | 2521 } |
2522 | 2522 |
2523 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 2523 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
2524 { | 2524 { |
2525 v8::Handle<v8::Object> holder = info.Holder(); | 2525 v8::Handle<v8::Object> holder = info.Holder(); |
2526 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2526 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2527 TestObject* impl = V8TestObject::toNative(holder); | 2527 TestObject* impl = V8TestObject::toNative(holder); |
2528 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2528 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
2529 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2529 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2530 } | 2530 } |
2531 | 2531 |
2532 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 2532 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
2533 { | 2533 { |
2534 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2534 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2535 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 2535 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2536 if (world.activityLogger()) { | 2536 if (contextData && contextData->activityLogger()) { |
2537 world.activityLogger()->logSetter("TestObject.activityLoggingAccessPerWo
rldBindingsLongAttribute", v8Value); | 2537 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); |
2538 } | 2538 } |
2539 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); | 2539 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); |
2540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2541 } | 2541 } |
2542 | 2542 |
2543 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 2543 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
2544 { | 2544 { |
2545 v8::Handle<v8::Object> holder = info.Holder(); | 2545 v8::Handle<v8::Object> holder = info.Holder(); |
2546 TestObject* impl = V8TestObject::toNative(holder); | 2546 TestObject* impl = V8TestObject::toNative(holder); |
2547 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 2547 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
2548 } | 2548 } |
2549 | 2549 |
2550 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) | 2550 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) |
2551 { | 2551 { |
2552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2553 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 2553 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2554 if (world.activityLogger()) | 2554 if (contextData && contextData->activityLogger()) |
2555 world.activityLogger()->logGetter("TestObject.activityLoggingAccessForIs
olatedWorldsPerWorldBindingsLongAttribute"); | 2555 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute"); |
2556 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 2556 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
2557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2558 } | 2558 } |
2559 | 2559 |
2560 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2560 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
2561 { | 2561 { |
2562 v8::Handle<v8::Object> holder = info.Holder(); | 2562 v8::Handle<v8::Object> holder = info.Holder(); |
2563 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2563 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
2564 TestObject* impl = V8TestObject::toNative(holder); | 2564 TestObject* impl = V8TestObject::toNative(holder); |
2565 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2565 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
2566 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2566 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2567 } | 2567 } |
2568 | 2568 |
2569 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 2569 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
2570 { | 2570 { |
2571 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2571 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2572 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 2572 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2573 if (world.activityLogger()) { | 2573 if (contextData && contextData->activityLogger()) { |
2574 world.activityLogger()->logSetter("TestObject.activityLoggingAccessForIs
olatedWorldsPerWorldBindingsLongAttribute", v8Value); | 2574 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); |
2575 } | 2575 } |
2576 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); | 2576 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); |
2577 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2577 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2578 } | 2578 } |
2579 | 2579 |
2580 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2580 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2581 { | 2581 { |
2582 v8::Handle<v8::Object> holder = info.Holder(); | 2582 v8::Handle<v8::Object> holder = info.Holder(); |
2583 TestObject* impl = V8TestObject::toNative(holder); | 2583 TestObject* impl = V8TestObject::toNative(holder); |
2584 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 2584 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
(...skipping 25 matching lines...) Expand all Loading... |
2610 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 2610 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
2611 { | 2611 { |
2612 v8::Handle<v8::Object> holder = info.Holder(); | 2612 v8::Handle<v8::Object> holder = info.Holder(); |
2613 TestObject* impl = V8TestObject::toNative(holder); | 2613 TestObject* impl = V8TestObject::toNative(holder); |
2614 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); | 2614 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); |
2615 } | 2615 } |
2616 | 2616 |
2617 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2617 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2618 { | 2618 { |
2619 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2619 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2620 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 2620 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2621 if (world.activityLogger()) | 2621 if (contextData && contextData->activityLogger()) |
2622 world.activityLogger()->logGetter("TestObject.activityLoggingGetterPerWo
rldBindingsLongAttribute"); | 2622 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); |
2623 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 2623 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
2624 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2624 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2625 } | 2625 } |
2626 | 2626 |
2627 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2627 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2628 { | 2628 { |
2629 v8::Handle<v8::Object> holder = info.Holder(); | 2629 v8::Handle<v8::Object> holder = info.Holder(); |
2630 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2630 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2631 TestObject* impl = V8TestObject::toNative(holder); | 2631 TestObject* impl = V8TestObject::toNative(holder); |
2632 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2632 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
(...skipping 10 matching lines...) Expand all Loading... |
2643 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2643 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2644 { | 2644 { |
2645 v8::Handle<v8::Object> holder = info.Holder(); | 2645 v8::Handle<v8::Object> holder = info.Holder(); |
2646 TestObject* impl = V8TestObject::toNative(holder); | 2646 TestObject* impl = V8TestObject::toNative(holder); |
2647 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); | 2647 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); |
2648 } | 2648 } |
2649 | 2649 |
2650 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 2650 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
2651 { | 2651 { |
2652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2653 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 2653 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2654 if (world.activityLogger()) | 2654 if (contextData && contextData->activityLogger()) |
2655 world.activityLogger()->logGetter("TestObject.activityLoggingGetterPerWo
rldBindingsLongAttribute"); | 2655 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); |
2656 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 2656 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
2657 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2657 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2658 } | 2658 } |
2659 | 2659 |
2660 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 2660 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
2661 { | 2661 { |
2662 v8::Handle<v8::Object> holder = info.Holder(); | 2662 v8::Handle<v8::Object> holder = info.Holder(); |
2663 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2663 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2664 TestObject* impl = V8TestObject::toNative(holder); | 2664 TestObject* impl = V8TestObject::toNative(holder); |
2665 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2665 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
(...skipping 10 matching lines...) Expand all Loading... |
2676 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 2676 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
2677 { | 2677 { |
2678 v8::Handle<v8::Object> holder = info.Holder(); | 2678 v8::Handle<v8::Object> holder = info.Holder(); |
2679 TestObject* impl = V8TestObject::toNative(holder); | 2679 TestObject* impl = V8TestObject::toNative(holder); |
2680 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 2680 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
2681 } | 2681 } |
2682 | 2682 |
2683 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) | 2683 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) |
2684 { | 2684 { |
2685 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2685 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2686 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 2686 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2687 if (world.activityLogger()) | 2687 if (contextData && contextData->activityLogger()) |
2688 world.activityLogger()->logGetter("TestObject.activityLoggingGetterForIs
olatedWorldsPerWorldBindingsLongAttribute"); | 2688 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute"); |
2689 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 2689 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
2690 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2690 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2691 } | 2691 } |
2692 | 2692 |
2693 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2693 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
2694 { | 2694 { |
2695 v8::Handle<v8::Object> holder = info.Holder(); | 2695 v8::Handle<v8::Object> holder = info.Holder(); |
2696 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2696 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
2697 TestObject* impl = V8TestObject::toNative(holder); | 2697 TestObject* impl = V8TestObject::toNative(holder); |
2698 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2698 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
(...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4334 v8::Handle<v8::Object> holder = info.Holder(); | 4334 v8::Handle<v8::Object> holder = info.Holder(); |
4335 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterOnlyLogPreviousValueAttribute", "TestObject", holder, info.GetIsolate()); | 4335 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterOnlyLogPreviousValueAttribute", "TestObject", holder, info.GetIsolate()); |
4336 TestObject* impl = V8TestObject::toNative(holder); | 4336 TestObject* impl = V8TestObject::toNative(holder); |
4337 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 4337 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
4338 impl->setActivityLoggingSetterOnlyLogPreviousValueAttribute(cppValue); | 4338 impl->setActivityLoggingSetterOnlyLogPreviousValueAttribute(cppValue); |
4339 } | 4339 } |
4340 | 4340 |
4341 static void activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 4341 static void activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
4342 { | 4342 { |
4343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4344 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 4344 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
4345 if (world.activityLogger()) { | 4345 if (contextData && contextData->activityLogger()) { |
4346 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4346 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4347 int original = impl->activityLoggingSetterOnlyLogPreviousValueAttribute(
); | 4347 int original = impl->activityLoggingSetterOnlyLogPreviousValueAttribute(
); |
4348 v8::Handle<v8::Value> originalValue = v8::Integer::New(info.GetIsolate()
, impl->activityLoggingSetterOnlyLogPreviousValueAttribute()); | 4348 v8::Handle<v8::Value> originalValue = v8::Integer::New(info.GetIsolate()
, impl->activityLoggingSetterOnlyLogPreviousValueAttribute()); |
4349 world.activityLogger()->logSetter("TestObject.activityLoggingSetterOnlyL
ogPreviousValueAttribute", v8Value, originalValue); | 4349 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett
erOnlyLogPreviousValueAttribute", v8Value, originalValue); |
4350 } | 4350 } |
4351 TestObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttr
ibuteSetter(v8Value, info); | 4351 TestObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttr
ibuteSetter(v8Value, info); |
4352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4353 } | 4353 } |
4354 | 4354 |
4355 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 4355 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
4356 { | 4356 { |
4357 v8::Handle<v8::Object> holder = info.Holder(); | 4357 v8::Handle<v8::Object> holder = info.Holder(); |
4358 TestObject* impl = V8TestObject::toNative(holder); | 4358 TestObject* impl = V8TestObject::toNative(holder); |
4359 v8SetReturnValueFast(info, WTF::getPtr(impl->activityLoggingLogPreviousValue
InterfaceAttribute()), impl); | 4359 v8SetReturnValueFast(info, WTF::getPtr(impl->activityLoggingLogPreviousValue
InterfaceAttribute()), impl); |
4360 } | 4360 } |
4361 | 4361 |
4362 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4362 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4363 { | 4363 { |
4364 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4364 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4365 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 4365 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
4366 if (world.activityLogger()) | 4366 if (contextData && contextData->activityLogger()) |
4367 world.activityLogger()->logGetter("TestObject.activityLoggingLogPrevious
ValueInterfaceAttribute"); | 4367 contextData->activityLogger()->logGetter("TestObject.activityLoggingLogP
reviousValueInterfaceAttribute"); |
4368 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri
buteGetter(info); | 4368 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri
buteGetter(info); |
4369 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4369 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4370 } | 4370 } |
4371 | 4371 |
4372 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4372 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4373 { | 4373 { |
4374 v8::Handle<v8::Object> holder = info.Holder(); | 4374 v8::Handle<v8::Object> holder = info.Holder(); |
4375 TestObject* impl = V8TestObject::toNative(holder); | 4375 TestObject* impl = V8TestObject::toNative(holder); |
4376 TONATIVE_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativeW
ithTypeCheck(info.GetIsolate(), v8Value)); | 4376 TONATIVE_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativeW
ithTypeCheck(info.GetIsolate(), v8Value)); |
4377 impl->setActivityLoggingLogPreviousValueInterfaceAttribute(WTF::getPtr(cppVa
lue)); | 4377 impl->setActivityLoggingLogPreviousValueInterfaceAttribute(WTF::getPtr(cppVa
lue)); |
4378 } | 4378 } |
4379 | 4379 |
4380 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) | 4380 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) |
4381 { | 4381 { |
4382 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4382 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4383 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 4383 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
4384 if (world.activityLogger()) { | 4384 if (contextData && contextData->activityLogger()) { |
4385 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4385 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4386 RefPtr<TestInterfaceEmpty> original = impl->activityLoggingLogPreviousVa
lueInterfaceAttribute(); | 4386 RefPtr<TestInterfaceEmpty> original = impl->activityLoggingLogPreviousVa
lueInterfaceAttribute(); |
4387 v8::Handle<v8::Value> originalValue = toV8(impl->activityLoggingLogPrevi
ousValueInterfaceAttribute(), info.Holder(), info.GetIsolate()); | 4387 v8::Handle<v8::Value> originalValue = toV8(impl->activityLoggingLogPrevi
ousValueInterfaceAttribute(), info.Holder(), info.GetIsolate()); |
4388 world.activityLogger()->logSetter("TestObject.activityLoggingLogPrevious
ValueInterfaceAttribute", v8Value, originalValue); | 4388 contextData->activityLogger()->logSetter("TestObject.activityLoggingLogP
reviousValueInterfaceAttribute", v8Value, originalValue); |
4389 } | 4389 } |
4390 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri
buteSetter(v8Value, info); | 4390 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri
buteSetter(v8Value, info); |
4391 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4391 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4392 } | 4392 } |
4393 | 4393 |
4394 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 4394 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
4395 { | 4395 { |
4396 v8::Handle<v8::Object> holder = info.Holder(); | 4396 v8::Handle<v8::Object> holder = info.Holder(); |
4397 TestObject* impl = V8TestObject::toNative(holder); | 4397 TestObject* impl = V8TestObject::toNative(holder); |
4398 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); | 4398 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); |
(...skipping 3237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7636 | 7636 |
7637 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 7637 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
7638 { | 7638 { |
7639 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7639 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7640 impl->activityLoggingAccessForAllWorldsMethod(); | 7640 impl->activityLoggingAccessForAllWorldsMethod(); |
7641 } | 7641 } |
7642 | 7642 |
7643 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 7643 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
7644 { | 7644 { |
7645 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7645 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7646 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 7646 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
7647 if (world.activityLogger()) { | 7647 if (contextData && contextData->activityLogger()) { |
7648 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 7648 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
7649 world.activityLogger()->logMethod("TestObject.activityLoggingAccessForAl
lWorldsMethod", info.Length(), loggerArgs.data()); | 7649 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce
ssForAllWorldsMethod", info.Length(), loggerArgs.data()); |
7650 } | 7650 } |
7651 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); | 7651 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); |
7652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7653 } | 7653 } |
7654 | 7654 |
7655 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7655 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7656 { | 7656 { |
7657 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7657 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7658 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 7658 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
7659 impl->callWithExecutionContextVoidMethod(scriptContext); | 7659 impl->callWithExecutionContextVoidMethod(scriptContext); |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8408 | 8408 |
8409 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 8409 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
8410 { | 8410 { |
8411 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8411 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8412 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 8412 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
8413 } | 8413 } |
8414 | 8414 |
8415 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 8415 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
8416 { | 8416 { |
8417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8418 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 8418 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
8419 if (world.activityLogger()) { | 8419 if (contextData && contextData->activityLogger()) { |
8420 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 8420 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
8421 world.activityLogger()->logMethod("TestObject.activityLoggingForAllWorld
sPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 8421 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
8422 } | 8422 } |
8423 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethod(info); | 8423 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethod(info); |
8424 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8424 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8425 } | 8425 } |
8426 | 8426 |
8427 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) | 8427 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) |
8428 { | 8428 { |
8429 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8429 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8430 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 8430 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
8431 } | 8431 } |
8432 | 8432 |
8433 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 8433 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
8434 { | 8434 { |
8435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8436 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 8436 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
8437 if (world.activityLogger()) { | 8437 if (contextData && contextData->activityLogger()) { |
8438 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 8438 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
8439 world.activityLogger()->logMethod("TestObject.activityLoggingForAllWorld
sPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 8439 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
8440 } | 8440 } |
8441 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethodForMainWorld(info); | 8441 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethodForMainWorld(info); |
8442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8443 } | 8443 } |
8444 | 8444 |
8445 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 8445 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
8446 { | 8446 { |
8447 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8447 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8448 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 8448 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
8449 } | 8449 } |
8450 | 8450 |
8451 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 8451 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
8452 { | 8452 { |
8453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8454 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); | 8454 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
8455 if (world.activityLogger()) { | 8455 if (contextData && contextData->activityLogger()) { |
8456 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 8456 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
8457 world.activityLogger()->logMethod("TestObject.activityLoggingForIsolated
WorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 8457 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI
solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
8458 } | 8458 } |
8459 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe
thodMethod(info); | 8459 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe
thodMethod(info); |
8460 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8460 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8461 } | 8461 } |
8462 | 8462 |
8463 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 8463 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
8464 { | 8464 { |
8465 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8465 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8466 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 8466 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
8467 } | 8467 } |
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9463 fromInternalPointer(object)->deref(); | 9463 fromInternalPointer(object)->deref(); |
9464 } | 9464 } |
9465 | 9465 |
9466 template<> | 9466 template<> |
9467 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 9467 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
9468 { | 9468 { |
9469 return toV8(impl, creationContext, isolate); | 9469 return toV8(impl, creationContext, isolate); |
9470 } | 9470 } |
9471 | 9471 |
9472 } // namespace WebCore | 9472 } // namespace WebCore |
OLD | NEW |