| 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 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 v8::Handle<v8::Value> originalValue; |
| 1620 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA
llWorldsLongAttribute", 1, &loggerArg[0], "Setter"); | 1620 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute", v8Value, originalValue); |
| 1621 } | 1621 } |
| 1622 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 1622 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); |
| 1623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1624 } | 1624 } |
| 1625 | 1625 |
| 1626 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 1626 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 1627 { | 1627 { |
| 1628 v8::Handle<v8::Object> holder = info.Holder(); | 1628 v8::Handle<v8::Object> holder = info.Holder(); |
| 1629 TestObject* impl = V8TestObject::toNative(holder); | 1629 TestObject* impl = V8TestObject::toNative(holder); |
| 1630 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu
te()); | 1630 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu
te()); |
| 1631 } | 1631 } |
| 1632 | 1632 |
| 1633 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1633 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1634 { | 1634 { |
| 1635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1636 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1636 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 1637 if (contextData && contextData->activityLogger()) | 1637 if (contextData && contextData->activityLogger()) |
| 1638 contextData->activityLogger()->log("TestObject.activityLoggingGetterForA
llWorldsLongAttribute", 0, 0, "Getter"); | 1638 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForAllWorldsLongAttribute"); |
| 1639 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); | 1639 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); |
| 1640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1641 } | 1641 } |
| 1642 | 1642 |
| 1643 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1643 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 1644 { | 1644 { |
| 1645 v8::Handle<v8::Object> holder = info.Holder(); | 1645 v8::Handle<v8::Object> holder = info.Holder(); |
| 1646 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1646 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 1647 TestObject* impl = V8TestObject::toNative(holder); | 1647 TestObject* impl = V8TestObject::toNative(holder); |
| 1648 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 1648 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1677 TestObject* impl = V8TestObject::toNative(holder); | 1677 TestObject* impl = V8TestObject::toNative(holder); |
| 1678 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 1678 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
| 1679 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); | 1679 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); |
| 1680 } | 1680 } |
| 1681 | 1681 |
| 1682 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 1682 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
| 1683 { | 1683 { |
| 1684 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1684 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1685 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1685 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 1686 if (contextData && contextData->activityLogger()) { | 1686 if (contextData && contextData->activityLogger()) { |
| 1687 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 1687 v8::Handle<v8::Value> originalValue; |
| 1688 contextData->activityLogger()->log("TestObject.activityLoggingSetterForA
llWorldsLongAttribute", 1, &loggerArg[0], "Setter"); | 1688 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett
erForAllWorldsLongAttribute", v8Value, originalValue); |
| 1689 } | 1689 } |
| 1690 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 1690 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); |
| 1691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1692 } | 1692 } |
| 1693 | 1693 |
| 1694 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 1694 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
| 1695 { | 1695 { |
| 1696 v8::Handle<v8::Object> holder = info.Holder(); | 1696 v8::Handle<v8::Object> holder = info.Holder(); |
| 1697 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac
hedAttributeAnyAttribute"); | 1697 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac
hedAttributeAnyAttribute"); |
| 1698 TestObject* impl = V8TestObject::toNative(holder); | 1698 TestObject* impl = V8TestObject::toNative(holder); |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2463 v8::Handle<v8::Object> holder = info.Holder(); | 2463 v8::Handle<v8::Object> holder = info.Holder(); |
| 2464 TestObject* impl = V8TestObject::toNative(holder); | 2464 TestObject* impl = V8TestObject::toNative(holder); |
| 2465 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); | 2465 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); |
| 2466 } | 2466 } |
| 2467 | 2467 |
| 2468 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2468 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2469 { | 2469 { |
| 2470 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2470 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2471 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2471 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2472 if (contextData && contextData->activityLogger()) | 2472 if (contextData && contextData->activityLogger()) |
| 2473 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 0, 0, "Getter"); | 2473 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); |
| 2474 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 2474 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
| 2475 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2475 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2476 } | 2476 } |
| 2477 | 2477 |
| 2478 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2478 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2479 { | 2479 { |
| 2480 v8::Handle<v8::Object> holder = info.Holder(); | 2480 v8::Handle<v8::Object> holder = info.Holder(); |
| 2481 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2481 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2482 TestObject* impl = V8TestObject::toNative(holder); | 2482 TestObject* impl = V8TestObject::toNative(holder); |
| 2483 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2483 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
| 2484 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2484 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
| 2485 } | 2485 } |
| 2486 | 2486 |
| 2487 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 2487 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
| 2488 { | 2488 { |
| 2489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2490 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2490 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2491 if (contextData && contextData->activityLogger()) { | 2491 if (contextData && contextData->activityLogger()) { |
| 2492 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 2492 v8::Handle<v8::Value> originalValue; |
| 2493 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); | 2493 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value, originalValue); |
| 2494 } | 2494 } |
| 2495 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); | 2495 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); |
| 2496 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2496 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2497 } | 2497 } |
| 2498 | 2498 |
| 2499 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2499 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2500 { | 2500 { |
| 2501 v8::Handle<v8::Object> holder = info.Holder(); | 2501 v8::Handle<v8::Object> holder = info.Holder(); |
| 2502 TestObject* impl = V8TestObject::toNative(holder); | 2502 TestObject* impl = V8TestObject::toNative(holder); |
| 2503 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); | 2503 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); |
| 2504 } | 2504 } |
| 2505 | 2505 |
| 2506 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 2506 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
| 2507 { | 2507 { |
| 2508 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2508 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2509 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2509 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2510 if (contextData && contextData->activityLogger()) | 2510 if (contextData && contextData->activityLogger()) |
| 2511 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 0, 0, "Getter"); | 2511 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); |
| 2512 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 2512 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
| 2513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2514 } | 2514 } |
| 2515 | 2515 |
| 2516 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 2516 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
| 2517 { | 2517 { |
| 2518 v8::Handle<v8::Object> holder = info.Holder(); | 2518 v8::Handle<v8::Object> holder = info.Holder(); |
| 2519 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2519 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2520 TestObject* impl = V8TestObject::toNative(holder); | 2520 TestObject* impl = V8TestObject::toNative(holder); |
| 2521 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2521 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
| 2522 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2522 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
| 2523 } | 2523 } |
| 2524 | 2524 |
| 2525 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 2525 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
| 2526 { | 2526 { |
| 2527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2528 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2528 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2529 if (contextData && contextData->activityLogger()) { | 2529 if (contextData && contextData->activityLogger()) { |
| 2530 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 2530 v8::Handle<v8::Value> originalValue; |
| 2531 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); | 2531 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value, originalValue); |
| 2532 } | 2532 } |
| 2533 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); | 2533 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); |
| 2534 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2534 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2535 } | 2535 } |
| 2536 | 2536 |
| 2537 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 2537 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2538 { | 2538 { |
| 2539 v8::Handle<v8::Object> holder = info.Holder(); | 2539 v8::Handle<v8::Object> holder = info.Holder(); |
| 2540 TestObject* impl = V8TestObject::toNative(holder); | 2540 TestObject* impl = V8TestObject::toNative(holder); |
| 2541 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 2541 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
| 2542 } | 2542 } |
| 2543 | 2543 |
| 2544 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) | 2544 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) |
| 2545 { | 2545 { |
| 2546 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2546 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2547 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2547 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2548 if (contextData && contextData->activityLogger()) | 2548 if (contextData && contextData->activityLogger()) |
| 2549 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI
solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2549 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute"); |
| 2550 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 2550 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
| 2551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2552 } | 2552 } |
| 2553 | 2553 |
| 2554 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2554 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
| 2555 { | 2555 { |
| 2556 v8::Handle<v8::Object> holder = info.Holder(); | 2556 v8::Handle<v8::Object> holder = info.Holder(); |
| 2557 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2557 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
| 2558 TestObject* impl = V8TestObject::toNative(holder); | 2558 TestObject* impl = V8TestObject::toNative(holder); |
| 2559 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2559 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
| 2560 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2560 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
| 2561 } | 2561 } |
| 2562 | 2562 |
| 2563 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 2563 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
| 2564 { | 2564 { |
| 2565 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2565 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2566 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2566 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2567 if (contextData && contextData->activityLogger()) { | 2567 if (contextData && contextData->activityLogger()) { |
| 2568 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 2568 v8::Handle<v8::Value> originalValue; |
| 2569 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI
solatedWorldsPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); | 2569 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value, originalValue); |
| 2570 } | 2570 } |
| 2571 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); | 2571 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); |
| 2572 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2572 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2573 } | 2573 } |
| 2574 | 2574 |
| 2575 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2575 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2576 { | 2576 { |
| 2577 v8::Handle<v8::Object> holder = info.Holder(); | 2577 v8::Handle<v8::Object> holder = info.Holder(); |
| 2578 TestObject* impl = V8TestObject::toNative(holder); | 2578 TestObject* impl = V8TestObject::toNative(holder); |
| 2579 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 2579 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2607 v8::Handle<v8::Object> holder = info.Holder(); | 2607 v8::Handle<v8::Object> holder = info.Holder(); |
| 2608 TestObject* impl = V8TestObject::toNative(holder); | 2608 TestObject* impl = V8TestObject::toNative(holder); |
| 2609 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); | 2609 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); |
| 2610 } | 2610 } |
| 2611 | 2611 |
| 2612 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2612 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2613 { | 2613 { |
| 2614 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2614 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2615 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2615 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2616 if (contextData && contextData->activityLogger()) | 2616 if (contextData && contextData->activityLogger()) |
| 2617 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW
orldBindingsLongAttribute", 0, 0, "Getter"); | 2617 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); |
| 2618 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 2618 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
| 2619 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2619 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2620 } | 2620 } |
| 2621 | 2621 |
| 2622 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2622 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 2623 { | 2623 { |
| 2624 v8::Handle<v8::Object> holder = info.Holder(); | 2624 v8::Handle<v8::Object> holder = info.Holder(); |
| 2625 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2625 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2626 TestObject* impl = V8TestObject::toNative(holder); | 2626 TestObject* impl = V8TestObject::toNative(holder); |
| 2627 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2627 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2640 v8::Handle<v8::Object> holder = info.Holder(); | 2640 v8::Handle<v8::Object> holder = info.Holder(); |
| 2641 TestObject* impl = V8TestObject::toNative(holder); | 2641 TestObject* impl = V8TestObject::toNative(holder); |
| 2642 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); | 2642 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); |
| 2643 } | 2643 } |
| 2644 | 2644 |
| 2645 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 2645 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
| 2646 { | 2646 { |
| 2647 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2647 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2648 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2648 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2649 if (contextData && contextData->activityLogger()) | 2649 if (contextData && contextData->activityLogger()) |
| 2650 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW
orldBindingsLongAttribute", 0, 0, "Getter"); | 2650 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); |
| 2651 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 2651 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
| 2652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2653 } | 2653 } |
| 2654 | 2654 |
| 2655 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 2655 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
| 2656 { | 2656 { |
| 2657 v8::Handle<v8::Object> holder = info.Holder(); | 2657 v8::Handle<v8::Object> holder = info.Holder(); |
| 2658 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2658 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
| 2659 TestObject* impl = V8TestObject::toNative(holder); | 2659 TestObject* impl = V8TestObject::toNative(holder); |
| 2660 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2660 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2673 v8::Handle<v8::Object> holder = info.Holder(); | 2673 v8::Handle<v8::Object> holder = info.Holder(); |
| 2674 TestObject* impl = V8TestObject::toNative(holder); | 2674 TestObject* impl = V8TestObject::toNative(holder); |
| 2675 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 2675 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
| 2676 } | 2676 } |
| 2677 | 2677 |
| 2678 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) | 2678 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) |
| 2679 { | 2679 { |
| 2680 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2680 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2681 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2681 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 2682 if (contextData && contextData->activityLogger()) | 2682 if (contextData && contextData->activityLogger()) |
| 2683 contextData->activityLogger()->log("TestObject.activityLoggingGetterForI
solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2683 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute"); |
| 2684 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 2684 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
| 2685 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2685 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2686 } | 2686 } |
| 2687 | 2687 |
| 2688 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2688 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
| 2689 { | 2689 { |
| 2690 v8::Handle<v8::Object> holder = info.Holder(); | 2690 v8::Handle<v8::Object> holder = info.Holder(); |
| 2691 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2691 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
| 2692 TestObject* impl = V8TestObject::toNative(holder); | 2692 TestObject* impl = V8TestObject::toNative(holder); |
| 2693 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); | 2693 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
| (...skipping 4368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7062 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7062 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7063 impl->activityLoggingAccessForAllWorldsMethod(); | 7063 impl->activityLoggingAccessForAllWorldsMethod(); |
| 7064 } | 7064 } |
| 7065 | 7065 |
| 7066 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 7066 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 7067 { | 7067 { |
| 7068 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7068 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7069 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 7069 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 7070 if (contextData && contextData->activityLogger()) { | 7070 if (contextData && contextData->activityLogger()) { |
| 7071 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 7071 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
| 7072 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA
llWorldsMethod", info.Length(), loggerArgs.data(), "Method"); | 7072 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce
ssForAllWorldsMethod", info.Length(), loggerArgs.data()); |
| 7073 } | 7073 } |
| 7074 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); | 7074 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); |
| 7075 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7075 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7076 } | 7076 } |
| 7077 | 7077 |
| 7078 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 7078 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 7079 { | 7079 { |
| 7080 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7080 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7081 ScriptState* state = ScriptState::current(); | 7081 ScriptState* state = ScriptState::current(); |
| 7082 if (!state) | 7082 if (!state) |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7534 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7534 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7535 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 7535 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
| 7536 } | 7536 } |
| 7537 | 7537 |
| 7538 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 7538 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
| 7539 { | 7539 { |
| 7540 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7540 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7541 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 7541 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 7542 if (contextData && contextData->activityLogger()) { | 7542 if (contextData && contextData->activityLogger()) { |
| 7543 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 7543 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
| 7544 contextData->activityLogger()->log("TestObject.activityLoggingForAllWorl
dsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method"); | 7544 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
| 7545 } | 7545 } |
| 7546 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethod(info); | 7546 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethod(info); |
| 7547 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7547 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7548 } | 7548 } |
| 7549 | 7549 |
| 7550 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) | 7550 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 7551 { | 7551 { |
| 7552 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7552 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7553 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 7553 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
| 7554 } | 7554 } |
| 7555 | 7555 |
| 7556 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 7556 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 7557 { | 7557 { |
| 7558 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7558 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7559 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 7559 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 7560 if (contextData && contextData->activityLogger()) { | 7560 if (contextData && contextData->activityLogger()) { |
| 7561 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 7561 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
| 7562 contextData->activityLogger()->log("TestObject.activityLoggingForAllWorl
dsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method"); | 7562 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
| 7563 } | 7563 } |
| 7564 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethodForMainWorld(info); | 7564 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethodForMainWorld(info); |
| 7565 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7565 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7566 } | 7566 } |
| 7567 | 7567 |
| 7568 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 7568 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
| 7569 { | 7569 { |
| 7570 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7570 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7571 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 7571 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
| 7572 } | 7572 } |
| 7573 | 7573 |
| 7574 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 7574 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 7575 { | 7575 { |
| 7576 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7576 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7577 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 7577 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 7578 if (contextData && contextData->activityLogger()) { | 7578 if (contextData && contextData->activityLogger()) { |
| 7579 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 7579 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
| 7580 contextData->activityLogger()->log("TestObject.activityLoggingForIsolate
dWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method"); | 7580 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI
solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
| 7581 } | 7581 } |
| 7582 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe
thodMethod(info); | 7582 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe
thodMethod(info); |
| 7583 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7583 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7584 } | 7584 } |
| 7585 | 7585 |
| 7586 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 7586 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 7587 { | 7587 { |
| 7588 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7588 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7589 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 7589 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
| 7590 } | 7590 } |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8462 fromInternalPointer(object)->deref(); | 8462 fromInternalPointer(object)->deref(); |
| 8463 } | 8463 } |
| 8464 | 8464 |
| 8465 template<> | 8465 template<> |
| 8466 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 8466 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| 8467 { | 8467 { |
| 8468 return toV8(impl, creationContext, isolate); | 8468 return toV8(impl, creationContext, isolate); |
| 8469 } | 8469 } |
| 8470 | 8470 |
| 8471 } // namespace WebCore | 8471 } // namespace WebCore |
| OLD | NEW |