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

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

Issue 330293002: Removing unnecessary PerWorldBindings for DOM API calls that are monitored by Activity Logger. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 6 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
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1676 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1677 { 1677 {
1678 v8::Handle<v8::Object> holder = info.Holder(); 1678 v8::Handle<v8::Object> holder = info.Holder();
1679 TestObject* impl = V8TestObject::toNative(holder); 1679 TestObject* impl = V8TestObject::toNative(holder);
1680 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te()); 1680 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te());
1681 } 1681 }
1682 1682
1683 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1683 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1684 { 1684 {
1685 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1685 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1686 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1686 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
1687 V8PerContextData* contextData = scriptState->perContextData();
1687 if (contextData && contextData->activityLogger()) 1688 if (contextData && contextData->activityLogger())
1688 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute"); 1689 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute");
1689 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info); 1690 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info);
1690 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1691 } 1692 }
1692 1693
1693 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1694 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1694 { 1695 {
1695 v8::Handle<v8::Object> holder = info.Holder(); 1696 v8::Handle<v8::Object> holder = info.Holder();
1696 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1697 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1697 TestObject* impl = V8TestObject::toNative(holder); 1698 TestObject* impl = V8TestObject::toNative(holder);
1698 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1699 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1699 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); 1700 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue);
1700 } 1701 }
1701 1702
1702 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 1703 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1703 { 1704 {
1704 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1705 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1706 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
1707 V8PerContextData* contextData = scriptState->perContextData();
1706 if (contextData && contextData->activityLogger()) { 1708 if (contextData && contextData->activityLogger()) {
1707 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value); 1709 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value);
1708 } 1710 }
1709 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 1711 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
1710 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1712 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1711 } 1713 }
1712 1714
1713 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1715 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1714 { 1716 {
1715 v8::Handle<v8::Object> holder = info.Holder(); 1717 v8::Handle<v8::Object> holder = info.Holder();
1716 TestObject* impl = V8TestObject::toNative(holder); 1718 TestObject* impl = V8TestObject::toNative(holder);
1717 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te()); 1719 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te());
1718 } 1720 }
1719 1721
1720 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1722 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1721 { 1723 {
1722 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1724 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1723 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1725 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
1726 V8PerContextData* contextData = scriptState->perContextData();
1724 if (contextData && contextData->activityLogger()) 1727 if (contextData && contextData->activityLogger())
1725 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute"); 1728 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute");
1726 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info); 1729 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info);
1727 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1730 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1728 } 1731 }
1729 1732
1730 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1733 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1731 { 1734 {
1732 v8::Handle<v8::Object> holder = info.Holder(); 1735 v8::Handle<v8::Object> holder = info.Holder();
1733 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1736 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
(...skipping 28 matching lines...) Expand all
1762 v8::Handle<v8::Object> holder = info.Holder(); 1765 v8::Handle<v8::Object> holder = info.Holder();
1763 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1766 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1764 TestObject* impl = V8TestObject::toNative(holder); 1767 TestObject* impl = V8TestObject::toNative(holder);
1765 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1768 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1766 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); 1769 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue);
1767 } 1770 }
1768 1771
1769 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 1772 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1770 { 1773 {
1771 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1774 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1772 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1775 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
1776 V8PerContextData* contextData = scriptState->perContextData();
1773 if (contextData && contextData->activityLogger()) { 1777 if (contextData && contextData->activityLogger()) {
1774 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value); 1778 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value);
1775 } 1779 }
1776 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 1780 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
1777 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1781 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1778 } 1782 }
1779 1783
1780 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 1784 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
1781 { 1785 {
1782 v8::Handle<v8::Object> holder = info.Holder(); 1786 v8::Handle<v8::Object> holder = info.Holder();
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
2499 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2503 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
2500 { 2504 {
2501 v8::Handle<v8::Object> holder = info.Holder(); 2505 v8::Handle<v8::Object> holder = info.Holder();
2502 TestObject* impl = V8TestObject::toNative(holder); 2506 TestObject* impl = V8TestObject::toNative(holder);
2503 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2507 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2504 } 2508 }
2505 2509
2506 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2510 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2507 { 2511 {
2508 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2512 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2509 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2513 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2514 V8PerContextData* contextData = scriptState->perContextData();
2510 if (contextData && contextData->activityLogger()) 2515 if (contextData && contextData->activityLogger())
2511 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); 2516 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2512 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2517 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2518 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2514 } 2519 }
2515 2520
2516 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2521 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2517 { 2522 {
2518 v8::Handle<v8::Object> holder = info.Holder(); 2523 v8::Handle<v8::Object> holder = info.Holder();
2519 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2524 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2520 TestObject* impl = V8TestObject::toNative(holder); 2525 TestObject* impl = V8TestObject::toNative(holder);
2521 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2526 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2522 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2527 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2523 } 2528 }
2524 2529
2525 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 2530 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
2526 { 2531 {
2527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2532 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2528 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2533 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2534 V8PerContextData* contextData = scriptState->perContextData();
2529 if (contextData && contextData->activityLogger()) { 2535 if (contextData && contextData->activityLogger()) {
2530 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); 2536 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
2531 } 2537 }
2532 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 2538 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
2533 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2534 } 2540 }
2535 2541
2536 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2542 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2537 { 2543 {
2538 v8::Handle<v8::Object> holder = info.Holder(); 2544 v8::Handle<v8::Object> holder = info.Holder();
2539 TestObject* impl = V8TestObject::toNative(holder); 2545 TestObject* impl = V8TestObject::toNative(holder);
2540 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2546 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2541 } 2547 }
2542 2548
2543 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 2549 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info)
2544 { 2550 {
2545 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2551 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2546 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2552 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2553 V8PerContextData* contextData = scriptState->perContextData();
2547 if (contextData && contextData->activityLogger()) 2554 if (contextData && contextData->activityLogger())
2548 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); 2555 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2549 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2556 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2550 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2551 } 2558 }
2552 2559
2553 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2560 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2554 { 2561 {
2555 v8::Handle<v8::Object> holder = info.Holder(); 2562 v8::Handle<v8::Object> holder = info.Holder();
2556 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2563 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2557 TestObject* impl = V8TestObject::toNative(holder); 2564 TestObject* impl = V8TestObject::toNative(holder);
2558 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2565 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2559 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2566 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2560 } 2567 }
2561 2568
2562 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 2569 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
2563 { 2570 {
2564 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2571 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2565 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2572 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2573 V8PerContextData* contextData = scriptState->perContextData();
2566 if (contextData && contextData->activityLogger()) { 2574 if (contextData && contextData->activityLogger()) {
2567 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); 2575 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
2568 } 2576 }
2569 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 2577 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
2570 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2578 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2571 } 2579 }
2572 2580
2573 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2581 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2574 { 2582 {
2575 v8::Handle<v8::Object> holder = info.Holder(); 2583 v8::Handle<v8::Object> holder = info.Holder();
2576 TestObject* impl = V8TestObject::toNative(holder); 2584 TestObject* impl = V8TestObject::toNative(holder);
2577 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2585 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
2578 } 2586 }
2579 2587
2580 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) 2588 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info)
2581 { 2589 {
2582 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2590 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2583 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2591 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2592 V8PerContextData* contextData = scriptState->perContextData();
2584 if (contextData && contextData->activityLogger()) 2593 if (contextData && contextData->activityLogger())
2585 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute"); 2594 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute");
2586 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 2595 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
2587 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2596 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2588 } 2597 }
2589 2598
2590 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2599 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2591 { 2600 {
2592 v8::Handle<v8::Object> holder = info.Holder(); 2601 v8::Handle<v8::Object> holder = info.Holder();
2593 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2602 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2594 TestObject* impl = V8TestObject::toNative(holder); 2603 TestObject* impl = V8TestObject::toNative(holder);
2595 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2604 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2596 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2605 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2597 } 2606 }
2598 2607
2599 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 2608 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
2600 { 2609 {
2601 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2610 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2602 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2611 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2612 V8PerContextData* contextData = scriptState->perContextData();
2603 if (contextData && contextData->activityLogger()) { 2613 if (contextData && contextData->activityLogger()) {
2604 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); 2614 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value);
2605 } 2615 }
2606 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 2616 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
2607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2617 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2608 } 2618 }
2609 2619
2610 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2620 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2611 { 2621 {
2612 v8::Handle<v8::Object> holder = info.Holder(); 2622 v8::Handle<v8::Object> holder = info.Holder();
(...skipping 27 matching lines...) Expand all
2640 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2650 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
2641 { 2651 {
2642 v8::Handle<v8::Object> holder = info.Holder(); 2652 v8::Handle<v8::Object> holder = info.Holder();
2643 TestObject* impl = V8TestObject::toNative(holder); 2653 TestObject* impl = V8TestObject::toNative(holder);
2644 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 2654 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
2645 } 2655 }
2646 2656
2647 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2657 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2648 { 2658 {
2649 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2659 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2650 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2660 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2661 V8PerContextData* contextData = scriptState->perContextData();
2651 if (contextData && contextData->activityLogger()) 2662 if (contextData && contextData->activityLogger())
2652 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); 2663 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
2653 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2664 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2654 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2665 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2655 } 2666 }
2656 2667
2657 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2668 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2658 { 2669 {
2659 v8::Handle<v8::Object> holder = info.Holder(); 2670 v8::Handle<v8::Object> holder = info.Holder();
2660 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2671 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
(...skipping 12 matching lines...) Expand all
2673 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2684 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2674 { 2685 {
2675 v8::Handle<v8::Object> holder = info.Holder(); 2686 v8::Handle<v8::Object> holder = info.Holder();
2676 TestObject* impl = V8TestObject::toNative(holder); 2687 TestObject* impl = V8TestObject::toNative(holder);
2677 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 2688 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
2678 } 2689 }
2679 2690
2680 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 2691 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info)
2681 { 2692 {
2682 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2693 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2683 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2694 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2695 V8PerContextData* contextData = scriptState->perContextData();
2684 if (contextData && contextData->activityLogger()) 2696 if (contextData && contextData->activityLogger())
2685 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); 2697 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
2686 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2698 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2687 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2688 } 2700 }
2689 2701
2690 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2702 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2691 { 2703 {
2692 v8::Handle<v8::Object> holder = info.Holder(); 2704 v8::Handle<v8::Object> holder = info.Holder();
2693 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2705 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
(...skipping 12 matching lines...) Expand all
2706 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2718 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2707 { 2719 {
2708 v8::Handle<v8::Object> holder = info.Holder(); 2720 v8::Handle<v8::Object> holder = info.Holder();
2709 TestObject* impl = V8TestObject::toNative(holder); 2721 TestObject* impl = V8TestObject::toNative(holder);
2710 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2722 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
2711 } 2723 }
2712 2724
2713 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) 2725 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info)
2714 { 2726 {
2715 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2727 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2716 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2728 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2729 V8PerContextData* contextData = scriptState->perContextData();
2717 if (contextData && contextData->activityLogger()) 2730 if (contextData && contextData->activityLogger())
2718 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute"); 2731 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute");
2719 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 2732 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
2720 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2733 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2721 } 2734 }
2722 2735
2723 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2736 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2724 { 2737 {
2725 v8::Handle<v8::Object> holder = info.Holder(); 2738 v8::Handle<v8::Object> holder = info.Holder();
2726 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2739 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after
4364 v8::Handle<v8::Object> holder = info.Holder(); 4377 v8::Handle<v8::Object> holder = info.Holder();
4365 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterOnlyLogPreviousValueAttribute", "TestObject", holder, info.GetIsolate()); 4378 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterOnlyLogPreviousValueAttribute", "TestObject", holder, info.GetIsolate());
4366 TestObject* impl = V8TestObject::toNative(holder); 4379 TestObject* impl = V8TestObject::toNative(holder);
4367 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 4380 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
4368 impl->setActivityLoggingSetterOnlyLogPreviousValueAttribute(cppValue); 4381 impl->setActivityLoggingSetterOnlyLogPreviousValueAttribute(cppValue);
4369 } 4382 }
4370 4383
4371 static void activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 4384 static void activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
4372 { 4385 {
4373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4386 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4374 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 4387 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
4375 if (contextData && contextData->activityLogger()) { 4388 V8PerContextData* contextData = scriptState->perContextData();
4389 if (scriptState->world().isIsolatedWorld() && contextData && contextData->ac tivityLogger()) {
4376 TestObject* impl = V8TestObject::toNative(info.Holder()); 4390 TestObject* impl = V8TestObject::toNative(info.Holder());
4377 int original = impl->activityLoggingSetterOnlyLogPreviousValueAttribute( ); 4391 int original = impl->activityLoggingSetterOnlyLogPreviousValueAttribute( );
4378 v8::Handle<v8::Value> originalValue = v8::Integer::New(info.GetIsolate() , impl->activityLoggingSetterOnlyLogPreviousValueAttribute()); 4392 v8::Handle<v8::Value> originalValue = v8::Integer::New(info.GetIsolate() , impl->activityLoggingSetterOnlyLogPreviousValueAttribute());
4379 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erOnlyLogPreviousValueAttribute", v8Value, originalValue); 4393 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erOnlyLogPreviousValueAttribute", v8Value, originalValue);
4380 } 4394 }
4381 TestObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttr ibuteSetter(v8Value, info); 4395 TestObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttr ibuteSetter(v8Value, info);
4382 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4383 } 4397 }
4384 4398
4385 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 4399 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info)
4386 { 4400 {
4387 v8::Handle<v8::Object> holder = info.Holder(); 4401 v8::Handle<v8::Object> holder = info.Holder();
4388 TestObject* impl = V8TestObject::toNative(holder); 4402 TestObject* impl = V8TestObject::toNative(holder);
4389 v8SetReturnValueFast(info, WTF::getPtr(impl->activityLoggingLogPreviousValue InterfaceAttribute()), impl); 4403 v8SetReturnValueFast(info, WTF::getPtr(impl->activityLoggingLogPreviousValue InterfaceAttribute()), impl);
4390 } 4404 }
4391 4405
4392 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4406 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4393 { 4407 {
4394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4408 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4395 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 4409 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
4396 if (contextData && contextData->activityLogger()) 4410 V8PerContextData* contextData = scriptState->perContextData();
4411 if (scriptState->world().isIsolatedWorld() && contextData && contextData->ac tivityLogger())
4397 contextData->activityLogger()->logGetter("TestObject.activityLoggingLogP reviousValueInterfaceAttribute"); 4412 contextData->activityLogger()->logGetter("TestObject.activityLoggingLogP reviousValueInterfaceAttribute");
4398 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri buteGetter(info); 4413 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri buteGetter(info);
4399 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4414 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4400 } 4415 }
4401 4416
4402 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4417 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4403 { 4418 {
4404 v8::Handle<v8::Object> holder = info.Holder(); 4419 v8::Handle<v8::Object> holder = info.Holder();
4405 TestObject* impl = V8TestObject::toNative(holder); 4420 TestObject* impl = V8TestObject::toNative(holder);
4406 TONATIVE_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativeW ithTypeCheck(info.GetIsolate(), v8Value)); 4421 TONATIVE_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativeW ithTypeCheck(info.GetIsolate(), v8Value));
4407 impl->setActivityLoggingLogPreviousValueInterfaceAttribute(WTF::getPtr(cppVa lue)); 4422 impl->setActivityLoggingLogPreviousValueInterfaceAttribute(WTF::getPtr(cppVa lue));
4408 } 4423 }
4409 4424
4410 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info) 4425 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info)
4411 { 4426 {
4412 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4427 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4413 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 4428 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
4414 if (contextData && contextData->activityLogger()) { 4429 V8PerContextData* contextData = scriptState->perContextData();
4430 if (scriptState->world().isIsolatedWorld() && contextData && contextData->ac tivityLogger()) {
4415 TestObject* impl = V8TestObject::toNative(info.Holder()); 4431 TestObject* impl = V8TestObject::toNative(info.Holder());
4416 RefPtr<TestInterfaceEmpty> original = impl->activityLoggingLogPreviousVa lueInterfaceAttribute(); 4432 RefPtr<TestInterfaceEmpty> original = impl->activityLoggingLogPreviousVa lueInterfaceAttribute();
4417 v8::Handle<v8::Value> originalValue = toV8(impl->activityLoggingLogPrevi ousValueInterfaceAttribute(), info.Holder(), info.GetIsolate()); 4433 v8::Handle<v8::Value> originalValue = toV8(impl->activityLoggingLogPrevi ousValueInterfaceAttribute(), info.Holder(), info.GetIsolate());
4418 contextData->activityLogger()->logSetter("TestObject.activityLoggingLogP reviousValueInterfaceAttribute", v8Value, originalValue); 4434 contextData->activityLogger()->logSetter("TestObject.activityLoggingLogP reviousValueInterfaceAttribute", v8Value, originalValue);
4419 } 4435 }
4420 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri buteSetter(v8Value, info); 4436 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri buteSetter(v8Value, info);
4421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4422 } 4438 }
4423 4439
4424 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 4440 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
(...skipping 3430 matching lines...) Expand 10 before | Expand all | Expand 10 after
7855 7871
7856 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) 7872 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info)
7857 { 7873 {
7858 TestObject* impl = V8TestObject::toNative(info.Holder()); 7874 TestObject* impl = V8TestObject::toNative(info.Holder());
7859 impl->activityLoggingAccessForAllWorldsMethod(); 7875 impl->activityLoggingAccessForAllWorldsMethod();
7860 } 7876 }
7861 7877
7862 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 7878 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
7863 { 7879 {
7864 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7880 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7865 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 7881 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
7882 V8PerContextData* contextData = scriptState->perContextData();
7866 if (contextData && contextData->activityLogger()) { 7883 if (contextData && contextData->activityLogger()) {
7867 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); 7884 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0);
7868 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data()); 7885 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data());
7869 } 7886 }
7870 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); 7887 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info);
7871 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7872 } 7889 }
7873 7890
7874 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 7891 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
7875 { 7892 {
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
8627 8644
8628 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 8645 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
8629 { 8646 {
8630 TestObject* impl = V8TestObject::toNative(info.Holder()); 8647 TestObject* impl = V8TestObject::toNative(info.Holder());
8631 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 8648 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
8632 } 8649 }
8633 8650
8634 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 8651 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
8635 { 8652 {
8636 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8653 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8637 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 8654 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
8655 V8PerContextData* contextData = scriptState->perContextData();
8638 if (contextData && contextData->activityLogger()) { 8656 if (contextData && contextData->activityLogger()) {
8639 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); 8657 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0);
8640 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 8658 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
8641 } 8659 }
8642 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info); 8660 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info);
8643 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8661 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8644 } 8662 }
8645 8663
8646 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) 8664 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info)
8647 { 8665 {
8648 TestObject* impl = V8TestObject::toNative(info.Holder()); 8666 TestObject* impl = V8TestObject::toNative(info.Holder());
8649 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 8667 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
8650 } 8668 }
8651 8669
8652 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 8670 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
8653 { 8671 {
8654 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8672 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8655 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 8673 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
8674 V8PerContextData* contextData = scriptState->perContextData();
8656 if (contextData && contextData->activityLogger()) { 8675 if (contextData && contextData->activityLogger()) {
8657 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); 8676 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0);
8658 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 8677 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
8659 } 8678 }
8660 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info); 8679 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info);
8661 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8680 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8662 } 8681 }
8663 8682
8664 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) 8683 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info)
8665 { 8684 {
8666 TestObject* impl = V8TestObject::toNative(info.Holder()); 8685 TestObject* impl = V8TestObject::toNative(info.Holder());
8667 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); 8686 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
8668 } 8687 }
8669 8688
8670 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 8689 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
8671 { 8690 {
8672 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8691 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8673 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 8692 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
8693 V8PerContextData* contextData = scriptState->perContextData();
8674 if (contextData && contextData->activityLogger()) { 8694 if (contextData && contextData->activityLogger()) {
8675 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); 8695 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0);
8676 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 8696 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
8677 } 8697 }
8678 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info); 8698 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info);
8679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8680 } 8700 }
8681 8701
8682 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 8702 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
8683 { 8703 {
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
9831 fromInternalPointer(object)->deref(); 9851 fromInternalPointer(object)->deref();
9832 } 9852 }
9833 9853
9834 template<> 9854 template<>
9835 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9855 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9836 { 9856 {
9837 return toV8(impl, creationContext, isolate); 9857 return toV8(impl, creationContext, isolate);
9838 } 9858 }
9839 9859
9840 } // namespace WebCore 9860 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/templates/methods.cpp ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698