OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
9 | 9 |
10 #include "HTMLNames.h" | 10 #include "HTMLNames.h" |
(...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1646 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 1646 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
1647 { | 1647 { |
1648 v8::Handle<v8::Object> holder = info.Holder(); | 1648 v8::Handle<v8::Object> holder = info.Holder(); |
1649 TestObject* impl = V8TestObject::toNative(holder); | 1649 TestObject* impl = V8TestObject::toNative(holder); |
1650 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te()); | 1650 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te()); |
1651 } | 1651 } |
1652 | 1652 |
1653 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1653 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1654 { | 1654 { |
1655 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1655 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1656 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 1656 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
1657 V8PerContextData* contextData = scriptState->perContextData(); | |
1657 if (contextData && contextData->activityLogger()) | 1658 if (contextData && contextData->activityLogger()) |
1658 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute"); | 1659 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute"); |
1659 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info); | 1660 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info); |
1660 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1661 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1661 } | 1662 } |
1662 | 1663 |
1663 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1664 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1664 { | 1665 { |
1665 v8::Handle<v8::Object> holder = info.Holder(); | 1666 v8::Handle<v8::Object> holder = info.Holder(); |
1666 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1667 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
1667 TestObject* impl = V8TestObject::toNative(holder); | 1668 TestObject* impl = V8TestObject::toNative(holder); |
1668 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); | 1669 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); |
1669 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); | 1670 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); |
1670 } | 1671 } |
1671 | 1672 |
1672 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) | 1673 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) |
1673 { | 1674 { |
1674 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1675 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1675 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 1676 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
1677 V8PerContextData* contextData = scriptState->perContextData(); | |
1676 if (contextData && contextData->activityLogger()) { | 1678 if (contextData && contextData->activityLogger()) { |
1677 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value); | 1679 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value); |
1678 } | 1680 } |
1679 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info); | 1681 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info); |
1680 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1682 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1681 } | 1683 } |
1682 | 1684 |
1683 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 1685 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
1684 { | 1686 { |
1685 v8::Handle<v8::Object> holder = info.Holder(); | 1687 v8::Handle<v8::Object> holder = info.Holder(); |
1686 TestObject* impl = V8TestObject::toNative(holder); | 1688 TestObject* impl = V8TestObject::toNative(holder); |
1687 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te()); | 1689 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te()); |
1688 } | 1690 } |
1689 | 1691 |
1690 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1692 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1691 { | 1693 { |
1692 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1694 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1693 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 1695 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
1696 V8PerContextData* contextData = scriptState->perContextData(); | |
1694 if (contextData && contextData->activityLogger()) | 1697 if (contextData && contextData->activityLogger()) |
1695 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute"); | 1698 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute"); |
1696 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info); | 1699 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info); |
1697 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1700 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1698 } | 1701 } |
1699 | 1702 |
1700 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1703 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1701 { | 1704 { |
1702 v8::Handle<v8::Object> holder = info.Holder(); | 1705 v8::Handle<v8::Object> holder = info.Holder(); |
1703 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1706 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
(...skipping 28 matching lines...) Expand all Loading... | |
1732 v8::Handle<v8::Object> holder = info.Holder(); | 1735 v8::Handle<v8::Object> holder = info.Holder(); |
1733 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1736 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
1734 TestObject* impl = V8TestObject::toNative(holder); | 1737 TestObject* impl = V8TestObject::toNative(holder); |
1735 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); | 1738 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); |
1736 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); | 1739 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); |
1737 } | 1740 } |
1738 | 1741 |
1739 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) | 1742 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) |
1740 { | 1743 { |
1741 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1742 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 1745 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
1746 V8PerContextData* contextData = scriptState->perContextData(); | |
1743 if (contextData && contextData->activityLogger()) { | 1747 if (contextData && contextData->activityLogger()) { |
1744 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value); | 1748 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value); |
1745 } | 1749 } |
1746 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); | 1750 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); |
1747 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1748 } | 1752 } |
1749 | 1753 |
1750 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) | 1754 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) |
1751 { | 1755 { |
1752 v8::Handle<v8::Object> holder = info.Holder(); | 1756 v8::Handle<v8::Object> holder = info.Holder(); |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2469 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) | 2473 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) |
2470 { | 2474 { |
2471 v8::Handle<v8::Object> holder = info.Holder(); | 2475 v8::Handle<v8::Object> holder = info.Holder(); |
2472 TestObject* impl = V8TestObject::toNative(holder); | 2476 TestObject* impl = V8TestObject::toNative(holder); |
2473 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); | 2477 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); |
2474 } | 2478 } |
2475 | 2479 |
2476 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2480 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2477 { | 2481 { |
2478 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2482 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2479 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 2483 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
2484 V8PerContextData* contextData = scriptState->perContextData(); | |
2480 if (contextData && contextData->activityLogger()) | 2485 if (contextData && contextData->activityLogger()) |
2481 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); | 2486 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); |
2482 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info); | 2487 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info); |
2483 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2488 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2484 } | 2489 } |
2485 | 2490 |
2486 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2491 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2487 { | 2492 { |
2488 v8::Handle<v8::Object> holder = info.Holder(); | 2493 v8::Handle<v8::Object> holder = info.Holder(); |
2489 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2494 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2490 TestObject* impl = V8TestObject::toNative(holder); | 2495 TestObject* impl = V8TestObject::toNative(holder); |
2491 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); | 2496 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); |
2492 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2497 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2493 } | 2498 } |
2494 | 2499 |
2495 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) | 2500 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) |
2496 { | 2501 { |
2497 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2498 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 2503 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
2504 V8PerContextData* contextData = scriptState->perContextData(); | |
2499 if (contextData && contextData->activityLogger()) { | 2505 if (contextData && contextData->activityLogger()) { |
2500 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); | 2506 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); |
2501 } | 2507 } |
2502 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); | 2508 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); |
2503 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2509 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2504 } | 2510 } |
2505 | 2511 |
2506 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2512 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2507 { | 2513 { |
2508 v8::Handle<v8::Object> holder = info.Holder(); | 2514 v8::Handle<v8::Object> holder = info.Holder(); |
2509 TestObject* impl = V8TestObject::toNative(holder); | 2515 TestObject* impl = V8TestObject::toNative(holder); |
2510 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); | 2516 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); |
2511 } | 2517 } |
2512 | 2518 |
2513 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) | 2519 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) |
2514 { | 2520 { |
2515 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2521 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2516 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 2522 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
2523 V8PerContextData* contextData = scriptState->perContextData(); | |
2517 if (contextData && contextData->activityLogger()) | 2524 if (contextData && contextData->activityLogger()) |
2518 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); | 2525 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); |
2519 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); | 2526 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); |
2520 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2527 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2521 } | 2528 } |
2522 | 2529 |
2523 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) | 2530 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) |
2524 { | 2531 { |
2525 v8::Handle<v8::Object> holder = info.Holder(); | 2532 v8::Handle<v8::Object> holder = info.Holder(); |
2526 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2533 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2527 TestObject* impl = V8TestObject::toNative(holder); | 2534 TestObject* impl = V8TestObject::toNative(holder); |
2528 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); | 2535 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); |
2529 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2536 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2530 } | 2537 } |
2531 | 2538 |
2532 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) | 2539 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) |
2533 { | 2540 { |
2534 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2535 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 2542 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
2543 V8PerContextData* contextData = scriptState->perContextData(); | |
2536 if (contextData && contextData->activityLogger()) { | 2544 if (contextData && contextData->activityLogger()) { |
2537 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); | 2545 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); |
2538 } | 2546 } |
2539 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); | 2547 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); |
2540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2548 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2541 } | 2549 } |
2542 | 2550 |
2543 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 2551 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
2544 { | 2552 { |
2545 v8::Handle<v8::Object> holder = info.Holder(); | 2553 v8::Handle<v8::Object> holder = info.Holder(); |
2546 TestObject* impl = V8TestObject::toNative(holder); | 2554 TestObject* impl = V8TestObject::toNative(holder); |
2547 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); | 2555 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); |
2548 } | 2556 } |
2549 | 2557 |
2550 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) | 2558 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) |
2551 { | 2559 { |
2552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2560 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2553 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 2561 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
2562 V8PerContextData* contextData = scriptState->perContextData(); | |
2554 if (contextData && contextData->activityLogger()) | 2563 if (contextData && contextData->activityLogger()) |
2555 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute"); | 2564 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute"); |
2556 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); | 2565 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); |
2557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2566 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2558 } | 2567 } |
2559 | 2568 |
2560 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) | 2569 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) |
2561 { | 2570 { |
2562 v8::Handle<v8::Object> holder = info.Holder(); | 2571 v8::Handle<v8::Object> holder = info.Holder(); |
2563 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); | 2572 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); |
2564 TestObject* impl = V8TestObject::toNative(holder); | 2573 TestObject* impl = V8TestObject::toNative(holder); |
2565 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); | 2574 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); |
2566 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); | 2575 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); |
2567 } | 2576 } |
2568 | 2577 |
2569 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) | 2578 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) |
2570 { | 2579 { |
2571 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2580 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2572 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 2581 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
2582 V8PerContextData* contextData = scriptState->perContextData(); | |
2573 if (contextData && contextData->activityLogger()) { | 2583 if (contextData && contextData->activityLogger()) { |
2574 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); | 2584 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); |
2575 } | 2585 } |
2576 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); | 2586 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); |
2577 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2587 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2578 } | 2588 } |
2579 | 2589 |
2580 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2590 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2581 { | 2591 { |
2582 v8::Handle<v8::Object> holder = info.Holder(); | 2592 v8::Handle<v8::Object> holder = info.Holder(); |
(...skipping 27 matching lines...) Expand all Loading... | |
2610 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) | 2620 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) |
2611 { | 2621 { |
2612 v8::Handle<v8::Object> holder = info.Holder(); | 2622 v8::Handle<v8::Object> holder = info.Holder(); |
2613 TestObject* impl = V8TestObject::toNative(holder); | 2623 TestObject* impl = V8TestObject::toNative(holder); |
2614 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); | 2624 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); |
2615 } | 2625 } |
2616 | 2626 |
2617 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2627 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2618 { | 2628 { |
2619 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2629 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2620 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 2630 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
2631 V8PerContextData* contextData = scriptState->perContextData(); | |
2621 if (contextData && contextData->activityLogger()) | 2632 if (contextData && contextData->activityLogger()) |
2622 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); | 2633 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); |
2623 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info); | 2634 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info); |
2624 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2635 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2625 } | 2636 } |
2626 | 2637 |
2627 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2638 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2628 { | 2639 { |
2629 v8::Handle<v8::Object> holder = info.Holder(); | 2640 v8::Handle<v8::Object> holder = info.Holder(); |
2630 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2641 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
(...skipping 12 matching lines...) Expand all Loading... | |
2643 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2654 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2644 { | 2655 { |
2645 v8::Handle<v8::Object> holder = info.Holder(); | 2656 v8::Handle<v8::Object> holder = info.Holder(); |
2646 TestObject* impl = V8TestObject::toNative(holder); | 2657 TestObject* impl = V8TestObject::toNative(holder); |
2647 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); | 2658 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); |
2648 } | 2659 } |
2649 | 2660 |
2650 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) | 2661 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) |
2651 { | 2662 { |
2652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2663 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2653 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 2664 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
2665 V8PerContextData* contextData = scriptState->perContextData(); | |
2654 if (contextData && contextData->activityLogger()) | 2666 if (contextData && contextData->activityLogger()) |
2655 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); | 2667 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); |
2656 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); | 2668 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); |
2657 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2658 } | 2670 } |
2659 | 2671 |
2660 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) | 2672 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) |
2661 { | 2673 { |
2662 v8::Handle<v8::Object> holder = info.Holder(); | 2674 v8::Handle<v8::Object> holder = info.Holder(); |
2663 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2675 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
(...skipping 12 matching lines...) Expand all Loading... | |
2676 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 2688 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
2677 { | 2689 { |
2678 v8::Handle<v8::Object> holder = info.Holder(); | 2690 v8::Handle<v8::Object> holder = info.Holder(); |
2679 TestObject* impl = V8TestObject::toNative(holder); | 2691 TestObject* impl = V8TestObject::toNative(holder); |
2680 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); | 2692 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); |
2681 } | 2693 } |
2682 | 2694 |
2683 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) | 2695 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) |
2684 { | 2696 { |
2685 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2686 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 2698 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
2699 V8PerContextData* contextData = scriptState->perContextData(); | |
2687 if (contextData && contextData->activityLogger()) | 2700 if (contextData && contextData->activityLogger()) |
2688 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute"); | 2701 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute"); |
2689 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); | 2702 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); |
2690 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2703 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2691 } | 2704 } |
2692 | 2705 |
2693 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) | 2706 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) |
2694 { | 2707 { |
2695 v8::Handle<v8::Object> holder = info.Holder(); | 2708 v8::Handle<v8::Object> holder = info.Holder(); |
2696 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); | 2709 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); |
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4334 v8::Handle<v8::Object> holder = info.Holder(); | 4347 v8::Handle<v8::Object> holder = info.Holder(); |
4335 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterOnlyLogPreviousValueAttribute", "TestObject", holder, info.GetIsolate()); | 4348 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterOnlyLogPreviousValueAttribute", "TestObject", holder, info.GetIsolate()); |
4336 TestObject* impl = V8TestObject::toNative(holder); | 4349 TestObject* impl = V8TestObject::toNative(holder); |
4337 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); | 4350 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); |
4338 impl->setActivityLoggingSetterOnlyLogPreviousValueAttribute(cppValue); | 4351 impl->setActivityLoggingSetterOnlyLogPreviousValueAttribute(cppValue); |
4339 } | 4352 } |
4340 | 4353 |
4341 static void activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) | 4354 static void activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) |
4342 { | 4355 { |
4343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4356 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4344 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 4357 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
4345 if (contextData && contextData->activityLogger()) { | 4358 V8PerContextData* contextData = scriptState->perContextData(); |
4359 if (contextData && contextData->activityLogger() && scriptState->world().isI solatedWorld()) { | |
haraken
2014/06/17 01:22:34
Nit: I'd check scriptState->world().isIsolatedWorl
pmarch
2014/06/17 10:00:05
Done.
| |
4346 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4360 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4347 int original = impl->activityLoggingSetterOnlyLogPreviousValueAttribute( ); | 4361 int original = impl->activityLoggingSetterOnlyLogPreviousValueAttribute( ); |
4348 v8::Handle<v8::Value> originalValue = v8::Integer::New(info.GetIsolate() , impl->activityLoggingSetterOnlyLogPreviousValueAttribute()); | 4362 v8::Handle<v8::Value> originalValue = v8::Integer::New(info.GetIsolate() , impl->activityLoggingSetterOnlyLogPreviousValueAttribute()); |
4349 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erOnlyLogPreviousValueAttribute", v8Value, originalValue); | 4363 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erOnlyLogPreviousValueAttribute", v8Value, originalValue); |
4350 } | 4364 } |
4351 TestObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttr ibuteSetter(v8Value, info); | 4365 TestObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttr ibuteSetter(v8Value, info); |
4352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4366 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4353 } | 4367 } |
4354 | 4368 |
4355 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) | 4369 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) |
4356 { | 4370 { |
4357 v8::Handle<v8::Object> holder = info.Holder(); | 4371 v8::Handle<v8::Object> holder = info.Holder(); |
4358 TestObject* impl = V8TestObject::toNative(holder); | 4372 TestObject* impl = V8TestObject::toNative(holder); |
4359 v8SetReturnValueFast(info, WTF::getPtr(impl->activityLoggingLogPreviousValue InterfaceAttribute()), impl); | 4373 v8SetReturnValueFast(info, WTF::getPtr(impl->activityLoggingLogPreviousValue InterfaceAttribute()), impl); |
4360 } | 4374 } |
4361 | 4375 |
4362 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4376 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4363 { | 4377 { |
4364 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4378 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4365 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 4379 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
4366 if (contextData && contextData->activityLogger()) | 4380 V8PerContextData* contextData = scriptState->perContextData(); |
4381 if (contextData && contextData->activityLogger() && scriptState->world().isI solatedWorld()) | |
4367 contextData->activityLogger()->logGetter("TestObject.activityLoggingLogP reviousValueInterfaceAttribute"); | 4382 contextData->activityLogger()->logGetter("TestObject.activityLoggingLogP reviousValueInterfaceAttribute"); |
4368 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri buteGetter(info); | 4383 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri buteGetter(info); |
4369 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4384 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4370 } | 4385 } |
4371 | 4386 |
4372 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4387 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4373 { | 4388 { |
4374 v8::Handle<v8::Object> holder = info.Holder(); | 4389 v8::Handle<v8::Object> holder = info.Holder(); |
4375 TestObject* impl = V8TestObject::toNative(holder); | 4390 TestObject* impl = V8TestObject::toNative(holder); |
4376 TONATIVE_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativeW ithTypeCheck(info.GetIsolate(), v8Value)); | 4391 TONATIVE_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativeW ithTypeCheck(info.GetIsolate(), v8Value)); |
4377 impl->setActivityLoggingLogPreviousValueInterfaceAttribute(WTF::getPtr(cppVa lue)); | 4392 impl->setActivityLoggingLogPreviousValueInterfaceAttribute(WTF::getPtr(cppVa lue)); |
4378 } | 4393 } |
4379 | 4394 |
4380 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info) | 4395 static void activityLoggingLogPreviousValueInterfaceAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info) |
4381 { | 4396 { |
4382 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4397 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4383 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 4398 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
4384 if (contextData && contextData->activityLogger()) { | 4399 V8PerContextData* contextData = scriptState->perContextData(); |
4400 if (contextData && contextData->activityLogger() && scriptState->world().isI solatedWorld()) { | |
4385 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4401 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4386 RefPtr<TestInterfaceEmpty> original = impl->activityLoggingLogPreviousVa lueInterfaceAttribute(); | 4402 RefPtr<TestInterfaceEmpty> original = impl->activityLoggingLogPreviousVa lueInterfaceAttribute(); |
4387 v8::Handle<v8::Value> originalValue = toV8(impl->activityLoggingLogPrevi ousValueInterfaceAttribute(), info.Holder(), info.GetIsolate()); | 4403 v8::Handle<v8::Value> originalValue = toV8(impl->activityLoggingLogPrevi ousValueInterfaceAttribute(), info.Holder(), info.GetIsolate()); |
4388 contextData->activityLogger()->logSetter("TestObject.activityLoggingLogP reviousValueInterfaceAttribute", v8Value, originalValue); | 4404 contextData->activityLogger()->logSetter("TestObject.activityLoggingLogP reviousValueInterfaceAttribute", v8Value, originalValue); |
4389 } | 4405 } |
4390 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri buteSetter(v8Value, info); | 4406 TestObjectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttri buteSetter(v8Value, info); |
4391 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4407 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4392 } | 4408 } |
4393 | 4409 |
4394 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) | 4410 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) |
(...skipping 3241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7636 | 7652 |
7637 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) | 7653 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) |
7638 { | 7654 { |
7639 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7655 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7640 impl->activityLoggingAccessForAllWorldsMethod(); | 7656 impl->activityLoggingAccessForAllWorldsMethod(); |
7641 } | 7657 } |
7642 | 7658 |
7643 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) | 7659 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) |
7644 { | 7660 { |
7645 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7661 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7646 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 7662 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
7663 V8PerContextData* contextData = scriptState->perContextData(); | |
7647 if (contextData && contextData->activityLogger()) { | 7664 if (contextData && contextData->activityLogger()) { |
7648 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); | 7665 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); |
7649 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data()); | 7666 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data()); |
7650 } | 7667 } |
7651 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); | 7668 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); |
7652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7653 } | 7670 } |
7654 | 7671 |
7655 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) | 7672 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) |
7656 { | 7673 { |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8408 | 8425 |
8409 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) | 8426 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) |
8410 { | 8427 { |
8411 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8428 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8412 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 8429 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
8413 } | 8430 } |
8414 | 8431 |
8415 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) | 8432 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) |
8416 { | 8433 { |
8417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8434 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8418 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 8435 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
8436 V8PerContextData* contextData = scriptState->perContextData(); | |
8419 if (contextData && contextData->activityLogger()) { | 8437 if (contextData && contextData->activityLogger()) { |
8420 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); | 8438 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); |
8421 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 8439 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
8422 } | 8440 } |
8423 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info); | 8441 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info); |
8424 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8425 } | 8443 } |
8426 | 8444 |
8427 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) | 8445 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) |
8428 { | 8446 { |
8429 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8447 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8430 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 8448 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
8431 } | 8449 } |
8432 | 8450 |
8433 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 8451 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
8434 { | 8452 { |
8435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8436 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 8454 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
8455 V8PerContextData* contextData = scriptState->perContextData(); | |
8437 if (contextData && contextData->activityLogger()) { | 8456 if (contextData && contextData->activityLogger()) { |
8438 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); | 8457 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); |
8439 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 8458 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
8440 } | 8459 } |
8441 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info); | 8460 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info); |
8442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8443 } | 8462 } |
8444 | 8463 |
8445 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) | 8464 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) |
8446 { | 8465 { |
8447 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8466 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8448 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 8467 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
8449 } | 8468 } |
8450 | 8469 |
8451 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) | 8470 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) |
8452 { | 8471 { |
8453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8472 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8454 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 8473 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); |
8474 V8PerContextData* contextData = scriptState->perContextData(); | |
8455 if (contextData && contextData->activityLogger()) { | 8475 if (contextData && contextData->activityLogger()) { |
8456 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); | 8476 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); |
8457 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 8477 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
8458 } | 8478 } |
8459 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info); | 8479 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info); |
8460 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8480 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8461 } | 8481 } |
8462 | 8482 |
8463 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 8483 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
8464 { | 8484 { |
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
9463 fromInternalPointer(object)->deref(); | 9483 fromInternalPointer(object)->deref(); |
9464 } | 9484 } |
9465 | 9485 |
9466 template<> | 9486 template<> |
9467 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) | 9487 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) |
9468 { | 9488 { |
9469 return toV8(impl, creationContext, isolate); | 9489 return toV8(impl, creationContext, isolate); |
9470 } | 9490 } |
9471 | 9491 |
9472 } // namespace WebCore | 9492 } // namespace WebCore |
OLD | NEW |