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

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

Issue 213783002: Pass current value of attributes to WebDOMActivityLogger Setter logs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase to pull attribute changes into separate CL Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 v8::Handle<v8::Object> holder = info.Holder(); 1590 v8::Handle<v8::Object> holder = info.Holder();
1591 TestObject* impl = V8TestObject::toNative(holder); 1591 TestObject* impl = V8TestObject::toNative(holder);
1592 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te()); 1592 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te());
1593 } 1593 }
1594 1594
1595 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1595 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1596 { 1596 {
1597 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1597 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1598 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1598 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1599 if (contextData && contextData->activityLogger()) 1599 if (contextData && contextData->activityLogger())
1600 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA llWorldsLongAttribute", 0, 0, "Getter"); 1600 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute");
1601 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info); 1601 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info);
1602 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1602 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1603 } 1603 }
1604 1604
1605 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1605 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1606 { 1606 {
1607 v8::Handle<v8::Object> holder = info.Holder(); 1607 v8::Handle<v8::Object> holder = info.Holder();
1608 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1608 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1609 TestObject* impl = V8TestObject::toNative(holder); 1609 TestObject* impl = V8TestObject::toNative(holder);
1610 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1610 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1611 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); 1611 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue);
1612 } 1612 }
1613 1613
1614 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 1614 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1615 { 1615 {
1616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1617 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1617 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1618 if (contextData && contextData->activityLogger()) { 1618 if (contextData && contextData->activityLogger()) {
1619 v8::Handle<v8::Value> loggerArg[] = { v8Value }; 1619 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value);
1620 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA llWorldsLongAttribute", 1, &loggerArg[0], "Setter");
1621 } 1620 }
1622 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 1621 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
1623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1622 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1624 } 1623 }
1625 1624
1626 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1625 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1627 { 1626 {
1628 v8::Handle<v8::Object> holder = info.Holder(); 1627 v8::Handle<v8::Object> holder = info.Holder();
1629 TestObject* impl = V8TestObject::toNative(holder); 1628 TestObject* impl = V8TestObject::toNative(holder);
1630 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te()); 1629 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te());
1631 } 1630 }
1632 1631
1633 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1632 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1634 { 1633 {
1635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1634 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1636 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1635 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1637 if (contextData && contextData->activityLogger()) 1636 if (contextData && contextData->activityLogger())
1638 contextData->activityLogger()->log("TestObject.activityLoggingGetterForA llWorldsLongAttribute", 0, 0, "Getter"); 1637 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute");
1639 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info); 1638 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info);
1640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1641 } 1640 }
1642 1641
1643 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1642 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1644 { 1643 {
1645 v8::Handle<v8::Object> holder = info.Holder(); 1644 v8::Handle<v8::Object> holder = info.Holder();
1646 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1645 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1647 TestObject* impl = V8TestObject::toNative(holder); 1646 TestObject* impl = V8TestObject::toNative(holder);
1648 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1647 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
(...skipping 28 matching lines...) Expand all
1677 TestObject* impl = V8TestObject::toNative(holder); 1676 TestObject* impl = V8TestObject::toNative(holder);
1678 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1677 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1679 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); 1678 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue);
1680 } 1679 }
1681 1680
1682 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 1681 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1683 { 1682 {
1684 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1683 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1685 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1684 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1686 if (contextData && contextData->activityLogger()) { 1685 if (contextData && contextData->activityLogger()) {
1687 v8::Handle<v8::Value> loggerArg[] = { v8Value }; 1686 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value);
1688 contextData->activityLogger()->log("TestObject.activityLoggingSetterForA llWorldsLongAttribute", 1, &loggerArg[0], "Setter");
1689 } 1687 }
1690 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 1688 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
1691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1689 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1692 } 1690 }
1693 1691
1694 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 1692 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
1695 { 1693 {
1696 v8::Handle<v8::Object> holder = info.Holder(); 1694 v8::Handle<v8::Object> holder = info.Holder();
1697 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedAttributeAnyAttribute"); 1695 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedAttributeAnyAttribute");
1698 TestObject* impl = V8TestObject::toNative(holder); 1696 TestObject* impl = V8TestObject::toNative(holder);
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
2463 v8::Handle<v8::Object> holder = info.Holder(); 2461 v8::Handle<v8::Object> holder = info.Holder();
2464 TestObject* impl = V8TestObject::toNative(holder); 2462 TestObject* impl = V8TestObject::toNative(holder);
2465 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2463 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2466 } 2464 }
2467 2465
2468 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2466 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2469 { 2467 {
2470 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2471 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2469 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2472 if (contextData && contextData->activityLogger()) 2470 if (contextData && contextData->activityLogger())
2473 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW orldBindingsLongAttribute", 0, 0, "Getter"); 2471 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2474 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2472 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2475 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2473 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2476 } 2474 }
2477 2475
2478 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2476 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2479 { 2477 {
2480 v8::Handle<v8::Object> holder = info.Holder(); 2478 v8::Handle<v8::Object> holder = info.Holder();
2481 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2479 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2482 TestObject* impl = V8TestObject::toNative(holder); 2480 TestObject* impl = V8TestObject::toNative(holder);
2483 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2481 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2484 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2482 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2485 } 2483 }
2486 2484
2487 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 2485 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
2488 { 2486 {
2489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2487 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2490 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2488 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2491 if (contextData && contextData->activityLogger()) { 2489 if (contextData && contextData->activityLogger()) {
2492 v8::Handle<v8::Value> loggerArg[] = { v8Value }; 2490 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
2493 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW orldBindingsLongAttribute", 1, &loggerArg[0], "Setter");
2494 } 2491 }
2495 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 2492 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
2496 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2493 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2497 } 2494 }
2498 2495
2499 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2496 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2500 { 2497 {
2501 v8::Handle<v8::Object> holder = info.Holder(); 2498 v8::Handle<v8::Object> holder = info.Holder();
2502 TestObject* impl = V8TestObject::toNative(holder); 2499 TestObject* impl = V8TestObject::toNative(holder);
2503 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2500 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2504 } 2501 }
2505 2502
2506 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 2503 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info)
2507 { 2504 {
2508 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2505 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2509 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2506 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2510 if (contextData && contextData->activityLogger()) 2507 if (contextData && contextData->activityLogger())
2511 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW orldBindingsLongAttribute", 0, 0, "Getter"); 2508 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2512 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2509 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2510 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2514 } 2511 }
2515 2512
2516 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2513 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2517 { 2514 {
2518 v8::Handle<v8::Object> holder = info.Holder(); 2515 v8::Handle<v8::Object> holder = info.Holder();
2519 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2516 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2520 TestObject* impl = V8TestObject::toNative(holder); 2517 TestObject* impl = V8TestObject::toNative(holder);
2521 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2518 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2522 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2519 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2523 } 2520 }
2524 2521
2525 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 2522 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
2526 { 2523 {
2527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2524 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2528 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2525 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2529 if (contextData && contextData->activityLogger()) { 2526 if (contextData && contextData->activityLogger()) {
2530 v8::Handle<v8::Value> loggerArg[] = { v8Value }; 2527 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
2531 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW orldBindingsLongAttribute", 1, &loggerArg[0], "Setter");
2532 } 2528 }
2533 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 2529 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
2534 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2530 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2535 } 2531 }
2536 2532
2537 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2533 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2538 { 2534 {
2539 v8::Handle<v8::Object> holder = info.Holder(); 2535 v8::Handle<v8::Object> holder = info.Holder();
2540 TestObject* impl = V8TestObject::toNative(holder); 2536 TestObject* impl = V8TestObject::toNative(holder);
2541 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2537 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
2542 } 2538 }
2543 2539
2544 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) 2540 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info)
2545 { 2541 {
2546 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2542 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2547 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2543 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2548 if (contextData && contextData->activityLogger()) 2544 if (contextData && contextData->activityLogger())
2549 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); 2545 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute");
2550 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 2546 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
2551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2547 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2552 } 2548 }
2553 2549
2554 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2550 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2555 { 2551 {
2556 v8::Handle<v8::Object> holder = info.Holder(); 2552 v8::Handle<v8::Object> holder = info.Holder();
2557 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2553 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2558 TestObject* impl = V8TestObject::toNative(holder); 2554 TestObject* impl = V8TestObject::toNative(holder);
2559 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2555 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2560 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2556 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2561 } 2557 }
2562 2558
2563 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 2559 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
2564 { 2560 {
2565 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2561 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2566 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2562 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2567 if (contextData && contextData->activityLogger()) { 2563 if (contextData && contextData->activityLogger()) {
2568 v8::Handle<v8::Value> loggerArg[] = { v8Value }; 2564 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value);
2569 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI solatedWorldsPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter");
2570 } 2565 }
2571 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 2566 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
2572 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2567 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2573 } 2568 }
2574 2569
2575 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2570 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2576 { 2571 {
2577 v8::Handle<v8::Object> holder = info.Holder(); 2572 v8::Handle<v8::Object> holder = info.Holder();
2578 TestObject* impl = V8TestObject::toNative(holder); 2573 TestObject* impl = V8TestObject::toNative(holder);
2579 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2574 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
(...skipping 27 matching lines...) Expand all
2607 v8::Handle<v8::Object> holder = info.Holder(); 2602 v8::Handle<v8::Object> holder = info.Holder();
2608 TestObject* impl = V8TestObject::toNative(holder); 2603 TestObject* impl = V8TestObject::toNative(holder);
2609 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 2604 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
2610 } 2605 }
2611 2606
2612 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2607 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2613 { 2608 {
2614 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2609 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2615 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2610 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2616 if (contextData && contextData->activityLogger()) 2611 if (contextData && contextData->activityLogger())
2617 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW orldBindingsLongAttribute", 0, 0, "Getter"); 2612 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
2618 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2613 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2619 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2614 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2620 } 2615 }
2621 2616
2622 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2617 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2623 { 2618 {
2624 v8::Handle<v8::Object> holder = info.Holder(); 2619 v8::Handle<v8::Object> holder = info.Holder();
2625 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2620 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2626 TestObject* impl = V8TestObject::toNative(holder); 2621 TestObject* impl = V8TestObject::toNative(holder);
2627 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2622 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
(...skipping 12 matching lines...) Expand all
2640 v8::Handle<v8::Object> holder = info.Holder(); 2635 v8::Handle<v8::Object> holder = info.Holder();
2641 TestObject* impl = V8TestObject::toNative(holder); 2636 TestObject* impl = V8TestObject::toNative(holder);
2642 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 2637 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
2643 } 2638 }
2644 2639
2645 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 2640 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info)
2646 { 2641 {
2647 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2642 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2648 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2643 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2649 if (contextData && contextData->activityLogger()) 2644 if (contextData && contextData->activityLogger())
2650 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW orldBindingsLongAttribute", 0, 0, "Getter"); 2645 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
2651 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2646 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2647 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2653 } 2648 }
2654 2649
2655 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2650 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2656 { 2651 {
2657 v8::Handle<v8::Object> holder = info.Holder(); 2652 v8::Handle<v8::Object> holder = info.Holder();
2658 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2653 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2659 TestObject* impl = V8TestObject::toNative(holder); 2654 TestObject* impl = V8TestObject::toNative(holder);
2660 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2655 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
(...skipping 12 matching lines...) Expand all
2673 v8::Handle<v8::Object> holder = info.Holder(); 2668 v8::Handle<v8::Object> holder = info.Holder();
2674 TestObject* impl = V8TestObject::toNative(holder); 2669 TestObject* impl = V8TestObject::toNative(holder);
2675 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2670 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
2676 } 2671 }
2677 2672
2678 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) 2673 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info)
2679 { 2674 {
2680 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2675 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2681 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2676 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2682 if (contextData && contextData->activityLogger()) 2677 if (contextData && contextData->activityLogger())
2683 contextData->activityLogger()->log("TestObject.activityLoggingGetterForI solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); 2678 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute");
2684 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 2679 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
2685 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2680 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2686 } 2681 }
2687 2682
2688 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2683 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2689 { 2684 {
2690 v8::Handle<v8::Object> holder = info.Holder(); 2685 v8::Handle<v8::Object> holder = info.Holder();
2691 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2686 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2692 TestObject* impl = V8TestObject::toNative(holder); 2687 TestObject* impl = V8TestObject::toNative(holder);
2693 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2688 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
(...skipping 4369 matching lines...) Expand 10 before | Expand all | Expand 10 after
7063 TestObject* impl = V8TestObject::toNative(info.Holder()); 7058 TestObject* impl = V8TestObject::toNative(info.Holder());
7064 impl->activityLoggingAccessForAllWorldsMethod(); 7059 impl->activityLoggingAccessForAllWorldsMethod();
7065 } 7060 }
7066 7061
7067 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 7062 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
7068 { 7063 {
7069 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7064 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7070 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 7065 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
7071 if (contextData && contextData->activityLogger()) { 7066 if (contextData && contextData->activityLogger()) {
7072 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); 7067 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0);
7073 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA llWorldsMethod", info.Length(), loggerArgs.data(), "Method"); 7068 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data());
7074 } 7069 }
7075 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); 7070 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info);
7076 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7071 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7077 } 7072 }
7078 7073
7079 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 7074 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
7080 { 7075 {
7081 TestObject* impl = V8TestObject::toNative(info.Holder()); 7076 TestObject* impl = V8TestObject::toNative(info.Holder());
7082 ScriptState* state = ScriptState::current(); 7077 ScriptState* state = ScriptState::current();
7083 if (!state) 7078 if (!state)
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
7535 TestObject* impl = V8TestObject::toNative(info.Holder()); 7530 TestObject* impl = V8TestObject::toNative(info.Holder());
7536 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 7531 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
7537 } 7532 }
7538 7533
7539 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 7534 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
7540 { 7535 {
7541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7542 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 7537 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
7543 if (contextData && contextData->activityLogger()) { 7538 if (contextData && contextData->activityLogger()) {
7544 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); 7539 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0);
7545 contextData->activityLogger()->log("TestObject.activityLoggingForAllWorl dsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method"); 7540 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
7546 } 7541 }
7547 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info); 7542 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info);
7548 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7543 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7549 } 7544 }
7550 7545
7551 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) 7546 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info)
7552 { 7547 {
7553 TestObject* impl = V8TestObject::toNative(info.Holder()); 7548 TestObject* impl = V8TestObject::toNative(info.Holder());
7554 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 7549 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
7555 } 7550 }
7556 7551
7557 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 7552 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
7558 { 7553 {
7559 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7554 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7560 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 7555 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
7561 if (contextData && contextData->activityLogger()) { 7556 if (contextData && contextData->activityLogger()) {
7562 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); 7557 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0);
7563 contextData->activityLogger()->log("TestObject.activityLoggingForAllWorl dsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method"); 7558 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
7564 } 7559 }
7565 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info); 7560 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info);
7566 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7561 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7567 } 7562 }
7568 7563
7569 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) 7564 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info)
7570 { 7565 {
7571 TestObject* impl = V8TestObject::toNative(info.Holder()); 7566 TestObject* impl = V8TestObject::toNative(info.Holder());
7572 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); 7567 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
7573 } 7568 }
7574 7569
7575 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 7570 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
7576 { 7571 {
7577 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7572 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7578 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 7573 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
7579 if (contextData && contextData->activityLogger()) { 7574 if (contextData && contextData->activityLogger()) {
7580 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); 7575 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0);
7581 contextData->activityLogger()->log("TestObject.activityLoggingForIsolate dWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method"); 7576 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
7582 } 7577 }
7583 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info); 7578 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info);
7584 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7579 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7585 } 7580 }
7586 7581
7587 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 7582 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
7588 { 7583 {
7589 TestObject* impl = V8TestObject::toNative(info.Holder()); 7584 TestObject* impl = V8TestObject::toNative(info.Holder());
7590 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); 7585 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
7591 } 7586 }
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
8463 fromInternalPointer(object)->deref(); 8458 fromInternalPointer(object)->deref();
8464 } 8459 }
8465 8460
8466 template<> 8461 template<>
8467 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 8462 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
8468 { 8463 {
8469 return toV8(impl, creationContext, isolate); 8464 return toV8(impl, creationContext, isolate);
8470 } 8465 }
8471 8466
8472 } // namespace WebCore 8467 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698