Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 257803006: Fixing wrong extension ID in Activity Log entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: moved ActivityLogger to V8PerContextData Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1645 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1646 { 1646 {
1647 v8::Handle<v8::Object> holder = info.Holder(); 1647 v8::Handle<v8::Object> holder = info.Holder();
1648 TestObject* impl = V8TestObject::toNative(holder); 1648 TestObject* impl = V8TestObject::toNative(holder);
1649 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te()); 1649 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te());
1650 } 1650 }
1651 1651
1652 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1652 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1653 { 1653 {
1654 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1654 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1655 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 1655 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1656 if (world.activityLogger()) 1656 if (contextData->activityLogger())
1657 world.activityLogger()->logGetter("TestObject.activityLoggingAccessForAl lWorldsLongAttribute"); 1657 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute");
1658 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info); 1658 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info);
1659 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1659 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1660 } 1660 }
1661 1661
1662 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1662 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1663 { 1663 {
1664 v8::Handle<v8::Object> holder = info.Holder(); 1664 v8::Handle<v8::Object> holder = info.Holder();
1665 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1665 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1666 TestObject* impl = V8TestObject::toNative(holder); 1666 TestObject* impl = V8TestObject::toNative(holder);
1667 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1667 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1668 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); 1668 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue);
1669 } 1669 }
1670 1670
1671 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 1671 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1672 { 1672 {
1673 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1673 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1674 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 1674 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1675 if (world.activityLogger()) { 1675 if (contextData->activityLogger()) {
1676 world.activityLogger()->logSetter("TestObject.activityLoggingAccessForAl lWorldsLongAttribute", v8Value); 1676 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value);
1677 } 1677 }
1678 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 1678 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
1679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1680 } 1680 }
1681 1681
1682 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1682 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1683 { 1683 {
1684 v8::Handle<v8::Object> holder = info.Holder(); 1684 v8::Handle<v8::Object> holder = info.Holder();
1685 TestObject* impl = V8TestObject::toNative(holder); 1685 TestObject* impl = V8TestObject::toNative(holder);
1686 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te()); 1686 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te());
1687 } 1687 }
1688 1688
1689 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1689 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1690 { 1690 {
1691 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1691 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1692 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 1692 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1693 if (world.activityLogger()) 1693 if (contextData->activityLogger())
1694 world.activityLogger()->logGetter("TestObject.activityLoggingGetterForAl lWorldsLongAttribute"); 1694 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute");
1695 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info); 1695 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info);
1696 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1696 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1697 } 1697 }
1698 1698
1699 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1699 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1700 { 1700 {
1701 v8::Handle<v8::Object> holder = info.Holder(); 1701 v8::Handle<v8::Object> holder = info.Holder();
1702 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1702 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1703 TestObject* impl = V8TestObject::toNative(holder); 1703 TestObject* impl = V8TestObject::toNative(holder);
1704 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1704 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
(...skipping 26 matching lines...) Expand all
1731 v8::Handle<v8::Object> holder = info.Holder(); 1731 v8::Handle<v8::Object> holder = info.Holder();
1732 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1732 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1733 TestObject* impl = V8TestObject::toNative(holder); 1733 TestObject* impl = V8TestObject::toNative(holder);
1734 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1734 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1735 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); 1735 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue);
1736 } 1736 }
1737 1737
1738 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 1738 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1739 { 1739 {
1740 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1740 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1741 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 1741 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1742 if (world.activityLogger()) { 1742 if (contextData->activityLogger()) {
1743 world.activityLogger()->logSetter("TestObject.activityLoggingSetterForAl lWorldsLongAttribute", v8Value); 1743 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value);
1744 } 1744 }
1745 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 1745 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
1746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1747 } 1747 }
1748 1748
1749 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 1749 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
1750 { 1750 {
1751 v8::Handle<v8::Object> holder = info.Holder(); 1751 v8::Handle<v8::Object> holder = info.Holder();
1752 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedAttributeAnyAttribute"); 1752 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedAttributeAnyAttribute");
1753 TestObject* impl = V8TestObject::toNative(holder); 1753 TestObject* impl = V8TestObject::toNative(holder);
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2428 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2428 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
2429 { 2429 {
2430 v8::Handle<v8::Object> holder = info.Holder(); 2430 v8::Handle<v8::Object> holder = info.Holder();
2431 TestObject* impl = V8TestObject::toNative(holder); 2431 TestObject* impl = V8TestObject::toNative(holder);
2432 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2432 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2433 } 2433 }
2434 2434
2435 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2435 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2436 { 2436 {
2437 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2437 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2438 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 2438 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2439 if (world.activityLogger()) 2439 if (contextData->activityLogger())
2440 world.activityLogger()->logGetter("TestObject.activityLoggingAccessPerWo rldBindingsLongAttribute"); 2440 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2441 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2441 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2443 } 2443 }
2444 2444
2445 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2445 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2446 { 2446 {
2447 v8::Handle<v8::Object> holder = info.Holder(); 2447 v8::Handle<v8::Object> holder = info.Holder();
2448 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2448 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2449 TestObject* impl = V8TestObject::toNative(holder); 2449 TestObject* impl = V8TestObject::toNative(holder);
2450 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2450 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2451 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2451 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2452 } 2452 }
2453 2453
2454 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 2454 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
2455 { 2455 {
2456 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2456 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2457 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 2457 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2458 if (world.activityLogger()) { 2458 if (contextData->activityLogger()) {
2459 world.activityLogger()->logSetter("TestObject.activityLoggingAccessPerWo rldBindingsLongAttribute", v8Value); 2459 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
2460 } 2460 }
2461 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 2461 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
2462 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2462 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2463 } 2463 }
2464 2464
2465 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2465 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2466 { 2466 {
2467 v8::Handle<v8::Object> holder = info.Holder(); 2467 v8::Handle<v8::Object> holder = info.Holder();
2468 TestObject* impl = V8TestObject::toNative(holder); 2468 TestObject* impl = V8TestObject::toNative(holder);
2469 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2469 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2470 } 2470 }
2471 2471
2472 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 2472 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info)
2473 { 2473 {
2474 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2474 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2475 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 2475 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2476 if (world.activityLogger()) 2476 if (contextData->activityLogger())
2477 world.activityLogger()->logGetter("TestObject.activityLoggingAccessPerWo rldBindingsLongAttribute"); 2477 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2478 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2478 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2479 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2479 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2480 } 2480 }
2481 2481
2482 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2482 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2483 { 2483 {
2484 v8::Handle<v8::Object> holder = info.Holder(); 2484 v8::Handle<v8::Object> holder = info.Holder();
2485 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2485 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2486 TestObject* impl = V8TestObject::toNative(holder); 2486 TestObject* impl = V8TestObject::toNative(holder);
2487 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2487 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2488 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2488 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2489 } 2489 }
2490 2490
2491 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 2491 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
2492 { 2492 {
2493 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2493 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2494 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 2494 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2495 if (world.activityLogger()) { 2495 if (contextData->activityLogger()) {
2496 world.activityLogger()->logSetter("TestObject.activityLoggingAccessPerWo rldBindingsLongAttribute", v8Value); 2496 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
2497 } 2497 }
2498 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 2498 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
2499 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2499 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2500 } 2500 }
2501 2501
2502 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2502 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2503 { 2503 {
2504 v8::Handle<v8::Object> holder = info.Holder(); 2504 v8::Handle<v8::Object> holder = info.Holder();
2505 TestObject* impl = V8TestObject::toNative(holder); 2505 TestObject* impl = V8TestObject::toNative(holder);
2506 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2506 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
2507 } 2507 }
2508 2508
2509 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) 2509 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info)
2510 { 2510 {
2511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2512 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 2512 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2513 if (world.activityLogger()) 2513 if (contextData->activityLogger())
2514 world.activityLogger()->logGetter("TestObject.activityLoggingAccessForIs olatedWorldsPerWorldBindingsLongAttribute"); 2514 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute");
2515 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 2515 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
2516 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2516 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2517 } 2517 }
2518 2518
2519 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2519 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2520 { 2520 {
2521 v8::Handle<v8::Object> holder = info.Holder(); 2521 v8::Handle<v8::Object> holder = info.Holder();
2522 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2522 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2523 TestObject* impl = V8TestObject::toNative(holder); 2523 TestObject* impl = V8TestObject::toNative(holder);
2524 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2524 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2525 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2525 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2526 } 2526 }
2527 2527
2528 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 2528 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
2529 { 2529 {
2530 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2530 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2531 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 2531 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2532 if (world.activityLogger()) { 2532 if (contextData->activityLogger()) {
2533 world.activityLogger()->logSetter("TestObject.activityLoggingAccessForIs olatedWorldsPerWorldBindingsLongAttribute", v8Value); 2533 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value);
2534 } 2534 }
2535 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 2535 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
2536 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2536 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2537 } 2537 }
2538 2538
2539 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2539 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2540 { 2540 {
2541 v8::Handle<v8::Object> holder = info.Holder(); 2541 v8::Handle<v8::Object> holder = info.Holder();
2542 TestObject* impl = V8TestObject::toNative(holder); 2542 TestObject* impl = V8TestObject::toNative(holder);
2543 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2543 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
(...skipping 25 matching lines...) Expand all
2569 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2569 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
2570 { 2570 {
2571 v8::Handle<v8::Object> holder = info.Holder(); 2571 v8::Handle<v8::Object> holder = info.Holder();
2572 TestObject* impl = V8TestObject::toNative(holder); 2572 TestObject* impl = V8TestObject::toNative(holder);
2573 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 2573 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
2574 } 2574 }
2575 2575
2576 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2576 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2577 { 2577 {
2578 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2578 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2579 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 2579 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2580 if (world.activityLogger()) 2580 if (contextData->activityLogger())
2581 world.activityLogger()->logGetter("TestObject.activityLoggingGetterPerWo rldBindingsLongAttribute"); 2581 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
2582 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2582 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2583 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2583 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2584 } 2584 }
2585 2585
2586 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2586 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2587 { 2587 {
2588 v8::Handle<v8::Object> holder = info.Holder(); 2588 v8::Handle<v8::Object> holder = info.Holder();
2589 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2589 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2590 TestObject* impl = V8TestObject::toNative(holder); 2590 TestObject* impl = V8TestObject::toNative(holder);
2591 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2591 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
(...skipping 10 matching lines...) Expand all
2602 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2602 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2603 { 2603 {
2604 v8::Handle<v8::Object> holder = info.Holder(); 2604 v8::Handle<v8::Object> holder = info.Holder();
2605 TestObject* impl = V8TestObject::toNative(holder); 2605 TestObject* impl = V8TestObject::toNative(holder);
2606 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 2606 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
2607 } 2607 }
2608 2608
2609 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 2609 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info)
2610 { 2610 {
2611 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2611 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2612 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 2612 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2613 if (world.activityLogger()) 2613 if (contextData->activityLogger())
2614 world.activityLogger()->logGetter("TestObject.activityLoggingGetterPerWo rldBindingsLongAttribute"); 2614 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
2615 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2615 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2616 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2616 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2617 } 2617 }
2618 2618
2619 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2619 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2620 { 2620 {
2621 v8::Handle<v8::Object> holder = info.Holder(); 2621 v8::Handle<v8::Object> holder = info.Holder();
2622 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2622 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2623 TestObject* impl = V8TestObject::toNative(holder); 2623 TestObject* impl = V8TestObject::toNative(holder);
2624 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2624 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
(...skipping 10 matching lines...) Expand all
2635 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2635 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2636 { 2636 {
2637 v8::Handle<v8::Object> holder = info.Holder(); 2637 v8::Handle<v8::Object> holder = info.Holder();
2638 TestObject* impl = V8TestObject::toNative(holder); 2638 TestObject* impl = V8TestObject::toNative(holder);
2639 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2639 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
2640 } 2640 }
2641 2641
2642 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) 2642 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info)
2643 { 2643 {
2644 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2644 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2645 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 2645 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2646 if (world.activityLogger()) 2646 if (contextData->activityLogger())
2647 world.activityLogger()->logGetter("TestObject.activityLoggingGetterForIs olatedWorldsPerWorldBindingsLongAttribute"); 2647 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute");
2648 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 2648 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
2649 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2649 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2650 } 2650 }
2651 2651
2652 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2652 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2653 { 2653 {
2654 v8::Handle<v8::Object> holder = info.Holder(); 2654 v8::Handle<v8::Object> holder = info.Holder();
2655 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2655 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2656 TestObject* impl = V8TestObject::toNative(holder); 2656 TestObject* impl = V8TestObject::toNative(holder);
2657 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2657 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
(...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after
4293 v8::Handle<v8::Object> holder = info.Holder(); 4293 v8::Handle<v8::Object> holder = info.Holder();
4294 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterOnlyLogPreviousValueAttribute", "TestObject", holder, info.GetIsolate()); 4294 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterOnlyLogPreviousValueAttribute", "TestObject", holder, info.GetIsolate());
4295 TestObject* impl = V8TestObject::toNative(holder); 4295 TestObject* impl = V8TestObject::toNative(holder);
4296 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 4296 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
4297 impl->setActivityLoggingSetterOnlyLogPreviousValueAttribute(cppValue); 4297 impl->setActivityLoggingSetterOnlyLogPreviousValueAttribute(cppValue);
4298 } 4298 }
4299 4299
4300 static void activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 4300 static void activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
4301 { 4301 {
4302 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4302 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4303 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 4303 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
4304 if (world.activityLogger()) { 4304 if (contextData->activityLogger()) {
4305 TestObject* impl = V8TestObject::toNative(info.Holder()); 4305 TestObject* impl = V8TestObject::toNative(info.Holder());
4306 int original = impl->activityLoggingSetterOnlyLogPreviousValueAttribute( ); 4306 int original = impl->activityLoggingSetterOnlyLogPreviousValueAttribute( );
4307 v8::Handle<v8::Value> originalValue = v8::Integer::New(info.GetIsolate() , original); 4307 v8::Handle<v8::Value> originalValue = v8::Integer::New(info.GetIsolate() , original);
4308 world.activityLogger()->logSetter("TestObject.activityLoggingSetterOnlyL ogPreviousValueAttribute", v8Value, originalValue); 4308 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erOnlyLogPreviousValueAttribute", v8Value, originalValue);
4309 } 4309 }
4310 TestObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttr ibuteSetter(v8Value, info); 4310 TestObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttr ibuteSetter(v8Value, info);
4311 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4311 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4312 } 4312 }
4313 4313
4314 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 4314 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info)
4315 { 4315 {
4316 v8::Handle<v8::Object> holder = info.Holder(); 4316 v8::Handle<v8::Object> holder = info.Holder();
4317 TestObject* impl = V8TestObject::toNative(holder); 4317 TestObject* impl = V8TestObject::toNative(holder);
4318 v8SetReturnValueFast(info, WTF::getPtr(impl->activityLoggingLogPreviousValue InterfaceAttribute()), impl); 4318 v8SetReturnValueFast(info, WTF::getPtr(impl->activityLoggingLogPreviousValue InterfaceAttribute()), impl);
4319 } 4319 }
4320 4320
4321 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4321 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4322 { 4322 {
4323 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4323 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4324 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 4324 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
4325 if (world.activityLogger()) 4325 if (contextData->activityLogger())
4326 world.activityLogger()->logGetter("TestObject.activityLoggingLogPrevious ValueInterfaceAttribute"); 4326 contextData->activityLogger()->logGetter("TestObject.activityLoggingLogP reviousValueInterfaceAttribute");
4327 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri buteGetter(info); 4327 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri buteGetter(info);
4328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4329 } 4329 }
4330 4330
4331 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4331 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4332 { 4332 {
4333 v8::Handle<v8::Object> holder = info.Holder(); 4333 v8::Handle<v8::Object> holder = info.Holder();
4334 TestObject* impl = V8TestObject::toNative(holder); 4334 TestObject* impl = V8TestObject::toNative(holder);
4335 TONATIVE_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativeW ithTypeCheck(info.GetIsolate(), v8Value)); 4335 TONATIVE_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativeW ithTypeCheck(info.GetIsolate(), v8Value));
4336 impl->setActivityLoggingLogPreviousValueInterfaceAttribute(WTF::getPtr(cppVa lue)); 4336 impl->setActivityLoggingLogPreviousValueInterfaceAttribute(WTF::getPtr(cppVa lue));
4337 } 4337 }
4338 4338
4339 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info) 4339 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info)
4340 { 4340 {
4341 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4341 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4342 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 4342 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
4343 if (world.activityLogger()) { 4343 if (contextData->activityLogger()) {
4344 TestObject* impl = V8TestObject::toNative(info.Holder()); 4344 TestObject* impl = V8TestObject::toNative(info.Holder());
4345 RefPtr<TestInterfaceEmpty> original = impl->activityLoggingLogPreviousVa lueInterfaceAttribute(); 4345 RefPtr<TestInterfaceEmpty> original = impl->activityLoggingLogPreviousVa lueInterfaceAttribute();
4346 v8::Handle<v8::Value> originalValue = toV8(original, info.Holder(), info .GetIsolate()); 4346 v8::Handle<v8::Value> originalValue = toV8(original, info.Holder(), info .GetIsolate());
4347 world.activityLogger()->logSetter("TestObject.activityLoggingLogPrevious ValueInterfaceAttribute", v8Value, originalValue); 4347 contextData->activityLogger()->logSetter("TestObject.activityLoggingLogP reviousValueInterfaceAttribute", v8Value, originalValue);
4348 } 4348 }
4349 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri buteSetter(v8Value, info); 4349 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri buteSetter(v8Value, info);
4350 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4350 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4351 } 4351 }
4352 4352
4353 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 4353 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
4354 { 4354 {
4355 v8::Handle<v8::Object> holder = info.Holder(); 4355 v8::Handle<v8::Object> holder = info.Holder();
4356 TestObject* impl = V8TestObject::toNative(holder); 4356 TestObject* impl = V8TestObject::toNative(holder);
4357 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl ); 4357 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl );
(...skipping 2777 matching lines...) Expand 10 before | Expand all | Expand 10 after
7135 7135
7136 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) 7136 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info)
7137 { 7137 {
7138 TestObject* impl = V8TestObject::toNative(info.Holder()); 7138 TestObject* impl = V8TestObject::toNative(info.Holder());
7139 impl->activityLoggingAccessForAllWorldsMethod(); 7139 impl->activityLoggingAccessForAllWorldsMethod();
7140 } 7140 }
7141 7141
7142 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 7142 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
7143 { 7143 {
7144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7145 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 7145 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
7146 if (world.activityLogger()) { 7146 if (contextData->activityLogger()) {
7147 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); 7147 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0);
7148 world.activityLogger()->logMethod("TestObject.activityLoggingAccessForAl lWorldsMethod", info.Length(), loggerArgs.data()); 7148 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data());
7149 } 7149 }
7150 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); 7150 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info);
7151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7152 } 7152 }
7153 7153
7154 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 7154 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
7155 { 7155 {
7156 TestObject* impl = V8TestObject::toNative(info.Holder()); 7156 TestObject* impl = V8TestObject::toNative(info.Holder());
7157 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 7157 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
7158 impl->callWithExecutionContextVoidMethod(scriptContext); 7158 impl->callWithExecutionContextVoidMethod(scriptContext);
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
7794 7794
7795 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 7795 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
7796 { 7796 {
7797 TestObject* impl = V8TestObject::toNative(info.Holder()); 7797 TestObject* impl = V8TestObject::toNative(info.Holder());
7798 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 7798 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
7799 } 7799 }
7800 7800
7801 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 7801 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
7802 { 7802 {
7803 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7803 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7804 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 7804 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
7805 if (world.activityLogger()) { 7805 if (contextData->activityLogger()) {
7806 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); 7806 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0);
7807 world.activityLogger()->logMethod("TestObject.activityLoggingForAllWorld sPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 7807 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
7808 } 7808 }
7809 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info); 7809 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info);
7810 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7810 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7811 } 7811 }
7812 7812
7813 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) 7813 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info)
7814 { 7814 {
7815 TestObject* impl = V8TestObject::toNative(info.Holder()); 7815 TestObject* impl = V8TestObject::toNative(info.Holder());
7816 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 7816 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
7817 } 7817 }
7818 7818
7819 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 7819 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
7820 { 7820 {
7821 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7821 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7822 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 7822 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
7823 if (world.activityLogger()) { 7823 if (contextData->activityLogger()) {
7824 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); 7824 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0);
7825 world.activityLogger()->logMethod("TestObject.activityLoggingForAllWorld sPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 7825 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
7826 } 7826 }
7827 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info); 7827 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info);
7828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7829 } 7829 }
7830 7830
7831 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) 7831 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info)
7832 { 7832 {
7833 TestObject* impl = V8TestObject::toNative(info.Holder()); 7833 TestObject* impl = V8TestObject::toNative(info.Holder());
7834 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); 7834 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
7835 } 7835 }
7836 7836
7837 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 7837 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
7838 { 7838 {
7839 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7839 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7840 DOMWrapperWorld& world = DOMWrapperWorld::current(info.GetIsolate()); 7840 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
7841 if (world.activityLogger()) { 7841 if (contextData->activityLogger()) {
7842 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); 7842 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0);
7843 world.activityLogger()->logMethod("TestObject.activityLoggingForIsolated WorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 7843 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
7844 } 7844 }
7845 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info); 7845 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info);
7846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7847 } 7847 }
7848 7848
7849 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 7849 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
7850 { 7850 {
7851 TestObject* impl = V8TestObject::toNative(info.Holder()); 7851 TestObject* impl = V8TestObject::toNative(info.Holder());
7852 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); 7852 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
7853 } 7853 }
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
8777 fromInternalPointer(object)->deref(); 8777 fromInternalPointer(object)->deref();
8778 } 8778 }
8779 8779
8780 template<> 8780 template<>
8781 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 8781 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
8782 { 8782 {
8783 return toV8(impl, creationContext, isolate); 8783 return toV8(impl, creationContext, isolate);
8784 } 8784 }
8785 8785
8786 } // namespace WebCore 8786 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698