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 2498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2509 { | 2509 { |
2510 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2510 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2511 v8SetReturnValueInt(info, impl->activityLoggedAttr1()); | 2511 v8SetReturnValueInt(info, impl->activityLoggedAttr1()); |
2512 } | 2512 } |
2513 | 2513 |
2514 static void activityLoggedAttr1AttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 2514 static void activityLoggedAttr1AttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
2515 { | 2515 { |
2516 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2516 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2517 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2517 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2518 if (contextData && contextData->activityLogger()) | 2518 if (contextData && contextData->activityLogger()) |
2519 contextData->activityLogger()->log("TestObject.activityLoggedAttr1", 0,
0, "Getter"); | 2519 contextData->activityLogger()->logGetter("TestObject.activityLoggedAttr1
"); |
2520 TestObjectV8Internal::activityLoggedAttr1AttributeGetter(info); | 2520 TestObjectV8Internal::activityLoggedAttr1AttributeGetter(info); |
2521 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2521 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2522 } | 2522 } |
2523 | 2523 |
2524 static void activityLoggedAttr1AttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 2524 static void activityLoggedAttr1AttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
2525 { | 2525 { |
2526 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
Attr1", "TestObject", info.Holder(), info.GetIsolate()); | 2526 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
Attr1", "TestObject", info.Holder(), info.GetIsolate()); |
2527 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2527 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2528 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2528 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2529 impl->setActivityLoggedAttr1(cppValue); | 2529 impl->setActivityLoggedAttr1(cppValue); |
2530 } | 2530 } |
2531 | 2531 |
2532 static void activityLoggedAttr1AttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2532 static void activityLoggedAttr1AttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2533 { | 2533 { |
2534 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2534 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2535 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2535 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2536 if (contextData && contextData->activityLogger()) { | 2536 if (contextData && contextData->activityLogger()) { |
2537 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 2537 v8::Handle<v8::Value> HACK; |
2538 contextData->activityLogger()->log("TestObject.activityLoggedAttr1", 1,
&loggerArg[0], "Setter"); | 2538 contextData->activityLogger()->logSetter("TestObject.activityLoggedAttr1
", jsValue, HACK); |
2539 } | 2539 } |
2540 TestObjectV8Internal::activityLoggedAttr1AttributeSetter(jsValue, info); | 2540 TestObjectV8Internal::activityLoggedAttr1AttributeSetter(jsValue, info); |
2541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2542 } | 2542 } |
2543 | 2543 |
2544 static void activityLoggedAttr2AttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 2544 static void activityLoggedAttr2AttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
2545 { | 2545 { |
2546 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2546 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2547 v8SetReturnValueInt(info, impl->activityLoggedAttr2()); | 2547 v8SetReturnValueInt(info, impl->activityLoggedAttr2()); |
2548 } | 2548 } |
2549 | 2549 |
2550 static void activityLoggedAttr2AttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 2550 static void activityLoggedAttr2AttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
2551 { | 2551 { |
2552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2553 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2553 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2554 if (contextData && contextData->activityLogger()) | 2554 if (contextData && contextData->activityLogger()) |
2555 contextData->activityLogger()->log("TestObject.activityLoggedAttr2", 0,
0, "Getter"); | 2555 contextData->activityLogger()->logGetter("TestObject.activityLoggedAttr2
"); |
2556 TestObjectV8Internal::activityLoggedAttr2AttributeGetter(info); | 2556 TestObjectV8Internal::activityLoggedAttr2AttributeGetter(info); |
2557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2558 } | 2558 } |
2559 | 2559 |
2560 static void activityLoggedAttr2AttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 2560 static void activityLoggedAttr2AttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
2561 { | 2561 { |
2562 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
Attr2", "TestObject", info.Holder(), info.GetIsolate()); | 2562 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
Attr2", "TestObject", info.Holder(), info.GetIsolate()); |
2563 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2563 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2564 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2564 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2565 impl->setActivityLoggedAttr2(cppValue); | 2565 impl->setActivityLoggedAttr2(cppValue); |
2566 } | 2566 } |
2567 | 2567 |
2568 static void activityLoggedAttr2AttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2568 static void activityLoggedAttr2AttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2569 { | 2569 { |
2570 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2570 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2571 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2571 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2572 if (contextData && contextData->activityLogger()) { | 2572 if (contextData && contextData->activityLogger()) { |
2573 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 2573 v8::Handle<v8::Value> HACK; |
2574 contextData->activityLogger()->log("TestObject.activityLoggedAttr2", 1,
&loggerArg[0], "Setter"); | 2574 contextData->activityLogger()->logSetter("TestObject.activityLoggedAttr2
", jsValue, HACK); |
2575 } | 2575 } |
2576 TestObjectV8Internal::activityLoggedAttr2AttributeSetter(jsValue, info); | 2576 TestObjectV8Internal::activityLoggedAttr2AttributeSetter(jsValue, info); |
2577 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2577 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2578 } | 2578 } |
2579 | 2579 |
2580 static void activityLoggedAttr2AttributeGetterForMainWorld(const v8::PropertyCal
lbackInfo<v8::Value>& info) | 2580 static void activityLoggedAttr2AttributeGetterForMainWorld(const v8::PropertyCal
lbackInfo<v8::Value>& info) |
2581 { | 2581 { |
2582 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2582 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2583 v8SetReturnValueInt(info, impl->activityLoggedAttr2()); | 2583 v8SetReturnValueInt(info, impl->activityLoggedAttr2()); |
2584 } | 2584 } |
2585 | 2585 |
2586 static void activityLoggedAttr2AttributeGetterCallbackForMainWorld(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2586 static void activityLoggedAttr2AttributeGetterCallbackForMainWorld(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2587 { | 2587 { |
2588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2589 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2589 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2590 if (contextData && contextData->activityLogger()) | 2590 if (contextData && contextData->activityLogger()) |
2591 contextData->activityLogger()->log("TestObject.activityLoggedAttr2", 0,
0, "Getter"); | 2591 contextData->activityLogger()->logGetter("TestObject.activityLoggedAttr2
"); |
2592 TestObjectV8Internal::activityLoggedAttr2AttributeGetterForMainWorld(info); | 2592 TestObjectV8Internal::activityLoggedAttr2AttributeGetterForMainWorld(info); |
2593 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2593 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2594 } | 2594 } |
2595 | 2595 |
2596 static void activityLoggedAttr2AttributeSetterForMainWorld(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) | 2596 static void activityLoggedAttr2AttributeSetterForMainWorld(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) |
2597 { | 2597 { |
2598 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
Attr2", "TestObject", info.Holder(), info.GetIsolate()); | 2598 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
Attr2", "TestObject", info.Holder(), info.GetIsolate()); |
2599 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2599 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2600 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2600 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2601 impl->setActivityLoggedAttr2(cppValue); | 2601 impl->setActivityLoggedAttr2(cppValue); |
2602 } | 2602 } |
2603 | 2603 |
2604 static void activityLoggedAttr2AttributeSetterCallbackForMainWorld(v8::Local<v8:
:String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) | 2604 static void activityLoggedAttr2AttributeSetterCallbackForMainWorld(v8::Local<v8:
:String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) |
2605 { | 2605 { |
2606 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2606 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2607 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2607 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2608 if (contextData && contextData->activityLogger()) { | 2608 if (contextData && contextData->activityLogger()) { |
2609 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 2609 v8::Handle<v8::Value> HACK; |
2610 contextData->activityLogger()->log("TestObject.activityLoggedAttr2", 1,
&loggerArg[0], "Setter"); | 2610 contextData->activityLogger()->logSetter("TestObject.activityLoggedAttr2
", jsValue, HACK); |
2611 } | 2611 } |
2612 TestObjectV8Internal::activityLoggedAttr2AttributeSetterForMainWorld(jsValue
, info); | 2612 TestObjectV8Internal::activityLoggedAttr2AttributeSetterForMainWorld(jsValue
, info); |
2613 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2613 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2614 } | 2614 } |
2615 | 2615 |
2616 static void activityLoggedInIsolatedWorldsAttrAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 2616 static void activityLoggedInIsolatedWorldsAttrAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
2617 { | 2617 { |
2618 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2618 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2619 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttr()); | 2619 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttr()); |
2620 } | 2620 } |
2621 | 2621 |
2622 static void activityLoggedInIsolatedWorldsAttrAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2622 static void activityLoggedInIsolatedWorldsAttrAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2623 { | 2623 { |
2624 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2624 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2625 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2625 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2626 if (contextData && contextData->activityLogger()) | 2626 if (contextData && contextData->activityLogger()) |
2627 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW
orldsAttr", 0, 0, "Getter"); | 2627 contextData->activityLogger()->logGetter("TestObject.activityLoggedInIso
latedWorldsAttr"); |
2628 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrAttributeGetter(info
); | 2628 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrAttributeGetter(info
); |
2629 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2629 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2630 } | 2630 } |
2631 | 2631 |
2632 static void activityLoggedInIsolatedWorldsAttrAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2632 static void activityLoggedInIsolatedWorldsAttrAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2633 { | 2633 { |
2634 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
InIsolatedWorldsAttr", "TestObject", info.Holder(), info.GetIsolate()); | 2634 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
InIsolatedWorldsAttr", "TestObject", info.Holder(), info.GetIsolate()); |
2635 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2635 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2636 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2636 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2637 impl->setActivityLoggedInIsolatedWorldsAttr(cppValue); | 2637 impl->setActivityLoggedInIsolatedWorldsAttr(cppValue); |
2638 } | 2638 } |
2639 | 2639 |
2640 static void activityLoggedInIsolatedWorldsAttrAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) | 2640 static void activityLoggedInIsolatedWorldsAttrAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) |
2641 { | 2641 { |
2642 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2642 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2643 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2643 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2644 if (contextData && contextData->activityLogger()) { | 2644 if (contextData && contextData->activityLogger()) { |
2645 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 2645 v8::Handle<v8::Value> HACK; |
2646 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW
orldsAttr", 1, &loggerArg[0], "Setter"); | 2646 contextData->activityLogger()->logSetter("TestObject.activityLoggedInIso
latedWorldsAttr", jsValue, HACK); |
2647 } | 2647 } |
2648 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrAttributeSetter(jsVa
lue, info); | 2648 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrAttributeSetter(jsVa
lue, info); |
2649 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2649 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2650 } | 2650 } |
2651 | 2651 |
2652 static void activityLoggedInIsolatedWorldsAttrAttributeGetterForMainWorld(const
v8::PropertyCallbackInfo<v8::Value>& info) | 2652 static void activityLoggedInIsolatedWorldsAttrAttributeGetterForMainWorld(const
v8::PropertyCallbackInfo<v8::Value>& info) |
2653 { | 2653 { |
2654 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2654 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2655 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttr()); | 2655 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttr()); |
2656 } | 2656 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2696 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2696 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2697 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2697 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2698 impl->setActivityLoggedAttrSetter1(cppValue); | 2698 impl->setActivityLoggedAttrSetter1(cppValue); |
2699 } | 2699 } |
2700 | 2700 |
2701 static void activityLoggedAttrSetter1AttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2701 static void activityLoggedAttrSetter1AttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2702 { | 2702 { |
2703 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2703 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2704 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2704 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2705 if (contextData && contextData->activityLogger()) { | 2705 if (contextData && contextData->activityLogger()) { |
2706 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 2706 v8::Handle<v8::Value> HACK; |
2707 contextData->activityLogger()->log("TestObject.activityLoggedAttrSetter1
", 1, &loggerArg[0], "Setter"); | 2707 contextData->activityLogger()->logSetter("TestObject.activityLoggedAttrS
etter1", jsValue, HACK); |
2708 } | 2708 } |
2709 TestObjectV8Internal::activityLoggedAttrSetter1AttributeSetter(jsValue, info
); | 2709 TestObjectV8Internal::activityLoggedAttrSetter1AttributeSetter(jsValue, info
); |
2710 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2710 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2711 } | 2711 } |
2712 | 2712 |
2713 static void activityLoggedAttrSetter2AttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 2713 static void activityLoggedAttrSetter2AttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
2714 { | 2714 { |
2715 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2715 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2716 v8SetReturnValueInt(info, impl->activityLoggedAttrSetter2()); | 2716 v8SetReturnValueInt(info, impl->activityLoggedAttrSetter2()); |
2717 } | 2717 } |
(...skipping 11 matching lines...) Expand all Loading... |
2729 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2729 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2730 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2730 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2731 impl->setActivityLoggedAttrSetter2(cppValue); | 2731 impl->setActivityLoggedAttrSetter2(cppValue); |
2732 } | 2732 } |
2733 | 2733 |
2734 static void activityLoggedAttrSetter2AttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2734 static void activityLoggedAttrSetter2AttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2735 { | 2735 { |
2736 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2736 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2737 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2737 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2738 if (contextData && contextData->activityLogger()) { | 2738 if (contextData && contextData->activityLogger()) { |
2739 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 2739 v8::Handle<v8::Value> HACK; |
2740 contextData->activityLogger()->log("TestObject.activityLoggedAttrSetter2
", 1, &loggerArg[0], "Setter"); | 2740 contextData->activityLogger()->logSetter("TestObject.activityLoggedAttrS
etter2", jsValue, HACK); |
2741 } | 2741 } |
2742 TestObjectV8Internal::activityLoggedAttrSetter2AttributeSetter(jsValue, info
); | 2742 TestObjectV8Internal::activityLoggedAttrSetter2AttributeSetter(jsValue, info
); |
2743 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2743 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2744 } | 2744 } |
2745 | 2745 |
2746 static void activityLoggedAttrSetter2AttributeGetterForMainWorld(const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 2746 static void activityLoggedAttrSetter2AttributeGetterForMainWorld(const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
2747 { | 2747 { |
2748 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2748 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2749 v8SetReturnValueInt(info, impl->activityLoggedAttrSetter2()); | 2749 v8SetReturnValueInt(info, impl->activityLoggedAttrSetter2()); |
2750 } | 2750 } |
(...skipping 11 matching lines...) Expand all Loading... |
2762 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2762 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2763 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2763 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2764 impl->setActivityLoggedAttrSetter2(cppValue); | 2764 impl->setActivityLoggedAttrSetter2(cppValue); |
2765 } | 2765 } |
2766 | 2766 |
2767 static void activityLoggedAttrSetter2AttributeSetterCallbackForMainWorld(v8::Loc
al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi
d>& info) | 2767 static void activityLoggedAttrSetter2AttributeSetterCallbackForMainWorld(v8::Loc
al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi
d>& info) |
2768 { | 2768 { |
2769 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2769 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2770 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2770 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2771 if (contextData && contextData->activityLogger()) { | 2771 if (contextData && contextData->activityLogger()) { |
2772 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 2772 v8::Handle<v8::Value> HACK; |
2773 contextData->activityLogger()->log("TestObject.activityLoggedAttrSetter2
", 1, &loggerArg[0], "Setter"); | 2773 contextData->activityLogger()->logSetter("TestObject.activityLoggedAttrS
etter2", jsValue, HACK); |
2774 } | 2774 } |
2775 TestObjectV8Internal::activityLoggedAttrSetter2AttributeSetterForMainWorld(j
sValue, info); | 2775 TestObjectV8Internal::activityLoggedAttrSetter2AttributeSetterForMainWorld(j
sValue, info); |
2776 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2776 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2777 } | 2777 } |
2778 | 2778 |
2779 static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 2779 static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
2780 { | 2780 { |
2781 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2781 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2782 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrSetter()); | 2782 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrSetter()); |
2783 } | 2783 } |
(...skipping 11 matching lines...) Expand all Loading... |
2795 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2795 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2796 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2796 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2797 impl->setActivityLoggedInIsolatedWorldsAttrSetter(cppValue); | 2797 impl->setActivityLoggedInIsolatedWorldsAttrSetter(cppValue); |
2798 } | 2798 } |
2799 | 2799 |
2800 static void activityLoggedInIsolatedWorldsAttrSetterAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) | 2800 static void activityLoggedInIsolatedWorldsAttrSetterAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) |
2801 { | 2801 { |
2802 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2802 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2803 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2803 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2804 if (contextData && contextData->activityLogger()) { | 2804 if (contextData && contextData->activityLogger()) { |
2805 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 2805 v8::Handle<v8::Value> HACK; |
2806 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW
orldsAttrSetter", 1, &loggerArg[0], "Setter"); | 2806 contextData->activityLogger()->logSetter("TestObject.activityLoggedInIso
latedWorldsAttrSetter", jsValue, HACK); |
2807 } | 2807 } |
2808 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeSette
r(jsValue, info); | 2808 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeSette
r(jsValue, info); |
2809 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2809 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2810 } | 2810 } |
2811 | 2811 |
2812 static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetterForMainWorld(
const v8::PropertyCallbackInfo<v8::Value>& info) | 2812 static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetterForMainWorld(
const v8::PropertyCallbackInfo<v8::Value>& info) |
2813 { | 2813 { |
2814 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2814 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2815 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrSetter()); | 2815 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrSetter()); |
2816 } | 2816 } |
(...skipping 24 matching lines...) Expand all Loading... |
2841 { | 2841 { |
2842 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2842 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2843 v8SetReturnValueInt(info, impl->activityLoggedAttrGetter1()); | 2843 v8SetReturnValueInt(info, impl->activityLoggedAttrGetter1()); |
2844 } | 2844 } |
2845 | 2845 |
2846 static void activityLoggedAttrGetter1AttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2846 static void activityLoggedAttrGetter1AttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2847 { | 2847 { |
2848 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2848 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2849 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2849 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2850 if (contextData && contextData->activityLogger()) | 2850 if (contextData && contextData->activityLogger()) |
2851 contextData->activityLogger()->log("TestObject.activityLoggedAttrGetter1
", 0, 0, "Getter"); | 2851 contextData->activityLogger()->logGetter("TestObject.activityLoggedAttrG
etter1"); |
2852 TestObjectV8Internal::activityLoggedAttrGetter1AttributeGetter(info); | 2852 TestObjectV8Internal::activityLoggedAttrGetter1AttributeGetter(info); |
2853 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2853 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2854 } | 2854 } |
2855 | 2855 |
2856 static void activityLoggedAttrGetter1AttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 2856 static void activityLoggedAttrGetter1AttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
2857 { | 2857 { |
2858 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
AttrGetter1", "TestObject", info.Holder(), info.GetIsolate()); | 2858 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
AttrGetter1", "TestObject", info.Holder(), info.GetIsolate()); |
2859 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2859 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2860 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2860 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2861 impl->setActivityLoggedAttrGetter1(cppValue); | 2861 impl->setActivityLoggedAttrGetter1(cppValue); |
(...skipping 10 matching lines...) Expand all Loading... |
2872 { | 2872 { |
2873 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2873 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2874 v8SetReturnValueInt(info, impl->activityLoggedAttrGetter2()); | 2874 v8SetReturnValueInt(info, impl->activityLoggedAttrGetter2()); |
2875 } | 2875 } |
2876 | 2876 |
2877 static void activityLoggedAttrGetter2AttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2877 static void activityLoggedAttrGetter2AttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2878 { | 2878 { |
2879 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2879 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2880 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2880 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2881 if (contextData && contextData->activityLogger()) | 2881 if (contextData && contextData->activityLogger()) |
2882 contextData->activityLogger()->log("TestObject.activityLoggedAttrGetter2
", 0, 0, "Getter"); | 2882 contextData->activityLogger()->logGetter("TestObject.activityLoggedAttrG
etter2"); |
2883 TestObjectV8Internal::activityLoggedAttrGetter2AttributeGetter(info); | 2883 TestObjectV8Internal::activityLoggedAttrGetter2AttributeGetter(info); |
2884 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2884 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2885 } | 2885 } |
2886 | 2886 |
2887 static void activityLoggedAttrGetter2AttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 2887 static void activityLoggedAttrGetter2AttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
2888 { | 2888 { |
2889 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
AttrGetter2", "TestObject", info.Holder(), info.GetIsolate()); | 2889 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
AttrGetter2", "TestObject", info.Holder(), info.GetIsolate()); |
2890 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2890 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2891 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2891 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2892 impl->setActivityLoggedAttrGetter2(cppValue); | 2892 impl->setActivityLoggedAttrGetter2(cppValue); |
(...skipping 10 matching lines...) Expand all Loading... |
2903 { | 2903 { |
2904 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2904 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2905 v8SetReturnValueInt(info, impl->activityLoggedAttrGetter2()); | 2905 v8SetReturnValueInt(info, impl->activityLoggedAttrGetter2()); |
2906 } | 2906 } |
2907 | 2907 |
2908 static void activityLoggedAttrGetter2AttributeGetterCallbackForMainWorld(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2908 static void activityLoggedAttrGetter2AttributeGetterCallbackForMainWorld(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2909 { | 2909 { |
2910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2911 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2911 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2912 if (contextData && contextData->activityLogger()) | 2912 if (contextData && contextData->activityLogger()) |
2913 contextData->activityLogger()->log("TestObject.activityLoggedAttrGetter2
", 0, 0, "Getter"); | 2913 contextData->activityLogger()->logGetter("TestObject.activityLoggedAttrG
etter2"); |
2914 TestObjectV8Internal::activityLoggedAttrGetter2AttributeGetterForMainWorld(i
nfo); | 2914 TestObjectV8Internal::activityLoggedAttrGetter2AttributeGetterForMainWorld(i
nfo); |
2915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2916 } | 2916 } |
2917 | 2917 |
2918 static void activityLoggedAttrGetter2AttributeSetterForMainWorld(v8::Local<v8::V
alue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2918 static void activityLoggedAttrGetter2AttributeSetterForMainWorld(v8::Local<v8::V
alue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2919 { | 2919 { |
2920 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
AttrGetter2", "TestObject", info.Holder(), info.GetIsolate()); | 2920 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
AttrGetter2", "TestObject", info.Holder(), info.GetIsolate()); |
2921 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2921 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2922 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2922 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2923 impl->setActivityLoggedAttrGetter2(cppValue); | 2923 impl->setActivityLoggedAttrGetter2(cppValue); |
(...skipping 10 matching lines...) Expand all Loading... |
2934 { | 2934 { |
2935 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2935 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2936 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrGetter()); | 2936 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrGetter()); |
2937 } | 2937 } |
2938 | 2938 |
2939 static void activityLoggedInIsolatedWorldsAttrGetterAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2939 static void activityLoggedInIsolatedWorldsAttrGetterAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2940 { | 2940 { |
2941 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2941 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2942 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2942 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2943 if (contextData && contextData->activityLogger()) | 2943 if (contextData && contextData->activityLogger()) |
2944 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW
orldsAttrGetter", 0, 0, "Getter"); | 2944 contextData->activityLogger()->logGetter("TestObject.activityLoggedInIso
latedWorldsAttrGetter"); |
2945 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeGette
r(info); | 2945 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeGette
r(info); |
2946 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2946 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2947 } | 2947 } |
2948 | 2948 |
2949 static void activityLoggedInIsolatedWorldsAttrGetterAttributeSetter(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2949 static void activityLoggedInIsolatedWorldsAttrGetterAttributeSetter(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2950 { | 2950 { |
2951 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
InIsolatedWorldsAttrGetter", "TestObject", info.Holder(), info.GetIsolate()); | 2951 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged
InIsolatedWorldsAttrGetter", "TestObject", info.Holder(), info.GetIsolate()); |
2952 TestObject* impl = V8TestObject::toNative(info.Holder()); | 2952 TestObject* impl = V8TestObject::toNative(info.Holder()); |
2953 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2953 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2954 impl->setActivityLoggedInIsolatedWorldsAttrGetter(cppValue); | 2954 impl->setActivityLoggedInIsolatedWorldsAttrGetter(cppValue); |
(...skipping 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4886 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 4886 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
4887 impl->activityLoggedMethod1(longArg); | 4887 impl->activityLoggedMethod1(longArg); |
4888 } | 4888 } |
4889 | 4889 |
4890 static void activityLoggedMethod1MethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4890 static void activityLoggedMethod1MethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4891 { | 4891 { |
4892 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4892 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4893 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 4893 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
4894 if (contextData && contextData->activityLogger()) { | 4894 if (contextData && contextData->activityLogger()) { |
4895 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 4895 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
4896 contextData->activityLogger()->log("TestObject.activityLoggedMethod1", i
nfo.Length(), loggerArgs.data(), "Method"); | 4896 contextData->activityLogger()->logMethod("TestObject.activityLoggedMetho
d1", info.Length(), loggerArgs.data()); |
4897 } | 4897 } |
4898 TestObjectV8Internal::activityLoggedMethod1Method(info); | 4898 TestObjectV8Internal::activityLoggedMethod1Method(info); |
4899 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4899 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4900 } | 4900 } |
4901 | 4901 |
4902 static void activityLoggedMethod2Method(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4902 static void activityLoggedMethod2Method(const v8::FunctionCallbackInfo<v8::Value
>& info) |
4903 { | 4903 { |
4904 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gedMethod2", "TestObject", info.Holder(), info.GetIsolate()); | 4904 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gedMethod2", "TestObject", info.Holder(), info.GetIsolate()); |
4905 if (UNLIKELY(info.Length() < 1)) { | 4905 if (UNLIKELY(info.Length() < 1)) { |
4906 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4906 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4907 exceptionState.throwIfNeeded(); | 4907 exceptionState.throwIfNeeded(); |
4908 return; | 4908 return; |
4909 } | 4909 } |
4910 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4910 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4911 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 4911 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
4912 impl->activityLoggedMethod2(longArg); | 4912 impl->activityLoggedMethod2(longArg); |
4913 } | 4913 } |
4914 | 4914 |
4915 static void activityLoggedMethod2MethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4915 static void activityLoggedMethod2MethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4916 { | 4916 { |
4917 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4917 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4918 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 4918 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
4919 if (contextData && contextData->activityLogger()) { | 4919 if (contextData && contextData->activityLogger()) { |
4920 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 4920 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
4921 contextData->activityLogger()->log("TestObject.activityLoggedMethod2", i
nfo.Length(), loggerArgs.data(), "Method"); | 4921 contextData->activityLogger()->logMethod("TestObject.activityLoggedMetho
d2", info.Length(), loggerArgs.data()); |
4922 } | 4922 } |
4923 TestObjectV8Internal::activityLoggedMethod2Method(info); | 4923 TestObjectV8Internal::activityLoggedMethod2Method(info); |
4924 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4924 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4925 } | 4925 } |
4926 | 4926 |
4927 static void activityLoggedMethod2MethodForMainWorld(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4927 static void activityLoggedMethod2MethodForMainWorld(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
4928 { | 4928 { |
4929 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gedMethod2", "TestObject", info.Holder(), info.GetIsolate()); | 4929 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gedMethod2", "TestObject", info.Holder(), info.GetIsolate()); |
4930 if (UNLIKELY(info.Length() < 1)) { | 4930 if (UNLIKELY(info.Length() < 1)) { |
4931 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4931 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4932 exceptionState.throwIfNeeded(); | 4932 exceptionState.throwIfNeeded(); |
4933 return; | 4933 return; |
4934 } | 4934 } |
4935 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4935 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4936 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 4936 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
4937 impl->activityLoggedMethod2(longArg); | 4937 impl->activityLoggedMethod2(longArg); |
4938 } | 4938 } |
4939 | 4939 |
4940 static void activityLoggedMethod2MethodCallbackForMainWorld(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 4940 static void activityLoggedMethod2MethodCallbackForMainWorld(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
4941 { | 4941 { |
4942 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4942 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4943 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 4943 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
4944 if (contextData && contextData->activityLogger()) { | 4944 if (contextData && contextData->activityLogger()) { |
4945 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 4945 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
4946 contextData->activityLogger()->log("TestObject.activityLoggedMethod2", i
nfo.Length(), loggerArgs.data(), "Method"); | 4946 contextData->activityLogger()->logMethod("TestObject.activityLoggedMetho
d2", info.Length(), loggerArgs.data()); |
4947 } | 4947 } |
4948 TestObjectV8Internal::activityLoggedMethod2MethodForMainWorld(info); | 4948 TestObjectV8Internal::activityLoggedMethod2MethodForMainWorld(info); |
4949 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4949 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4950 } | 4950 } |
4951 | 4951 |
4952 static void activityLoggedInIsolatedWorldMethodMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 4952 static void activityLoggedInIsolatedWorldMethodMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
4953 { | 4953 { |
4954 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gedInIsolatedWorldMethod", "TestObject", info.Holder(), info.GetIsolate()); | 4954 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gedInIsolatedWorldMethod", "TestObject", info.Holder(), info.GetIsolate()); |
4955 if (UNLIKELY(info.Length() < 1)) { | 4955 if (UNLIKELY(info.Length() < 1)) { |
4956 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4956 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4957 exceptionState.throwIfNeeded(); | 4957 exceptionState.throwIfNeeded(); |
4958 return; | 4958 return; |
4959 } | 4959 } |
4960 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4960 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4961 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 4961 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
4962 impl->activityLoggedInIsolatedWorldMethod(longArg); | 4962 impl->activityLoggedInIsolatedWorldMethod(longArg); |
4963 } | 4963 } |
4964 | 4964 |
4965 static void activityLoggedInIsolatedWorldMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 4965 static void activityLoggedInIsolatedWorldMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
4966 { | 4966 { |
4967 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4967 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4968 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 4968 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
4969 if (contextData && contextData->activityLogger()) { | 4969 if (contextData && contextData->activityLogger()) { |
4970 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 4970 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
4971 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW
orldMethod", info.Length(), loggerArgs.data(), "Method"); | 4971 contextData->activityLogger()->logMethod("TestObject.activityLoggedInIso
latedWorldMethod", info.Length(), loggerArgs.data()); |
4972 } | 4972 } |
4973 TestObjectV8Internal::activityLoggedInIsolatedWorldMethodMethod(info); | 4973 TestObjectV8Internal::activityLoggedInIsolatedWorldMethodMethod(info); |
4974 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4974 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4975 } | 4975 } |
4976 | 4976 |
4977 static void activityLoggedInIsolatedWorldMethodMethodForMainWorld(const v8::Func
tionCallbackInfo<v8::Value>& info) | 4977 static void activityLoggedInIsolatedWorldMethodMethodForMainWorld(const v8::Func
tionCallbackInfo<v8::Value>& info) |
4978 { | 4978 { |
4979 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gedInIsolatedWorldMethod", "TestObject", info.Holder(), info.GetIsolate()); | 4979 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog
gedInIsolatedWorldMethod", "TestObject", info.Holder(), info.GetIsolate()); |
4980 if (UNLIKELY(info.Length() < 1)) { | 4980 if (UNLIKELY(info.Length() < 1)) { |
4981 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4981 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5053 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 5053 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
5054 exceptionState.throwIfNeeded(); | 5054 exceptionState.throwIfNeeded(); |
5055 } | 5055 } |
5056 | 5056 |
5057 static void overloadedActivityLoggedMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 5057 static void overloadedActivityLoggedMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
5058 { | 5058 { |
5059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5060 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 5060 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
5061 if (contextData && contextData->activityLogger()) { | 5061 if (contextData && contextData->activityLogger()) { |
5062 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 5062 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
5063 contextData->activityLogger()->log("TestObject.overloadedActivityLoggedM
ethod", info.Length(), loggerArgs.data(), "Method"); | 5063 contextData->activityLogger()->logMethod("TestObject.overloadedActivityL
oggedMethod", info.Length(), loggerArgs.data()); |
5064 } | 5064 } |
5065 TestObjectV8Internal::overloadedActivityLoggedMethodMethod(info); | 5065 TestObjectV8Internal::overloadedActivityLoggedMethodMethod(info); |
5066 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5066 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5067 } | 5067 } |
5068 | 5068 |
5069 static void overloadedActivityLoggedMethod2MethodForMainWorld(const v8::Function
CallbackInfo<v8::Value>& info) | 5069 static void overloadedActivityLoggedMethod2MethodForMainWorld(const v8::Function
CallbackInfo<v8::Value>& info) |
5070 { | 5070 { |
5071 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedA
ctivityLoggedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 5071 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedA
ctivityLoggedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
5072 if (UNLIKELY(info.Length() < 2)) { | 5072 if (UNLIKELY(info.Length() < 2)) { |
5073 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); | 5073 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); |
(...skipping 25 matching lines...) Expand all Loading... |
5099 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 5099 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
5100 exceptionState.throwIfNeeded(); | 5100 exceptionState.throwIfNeeded(); |
5101 } | 5101 } |
5102 | 5102 |
5103 static void overloadedActivityLoggedMethodMethodCallbackForMainWorld(const v8::F
unctionCallbackInfo<v8::Value>& info) | 5103 static void overloadedActivityLoggedMethodMethodCallbackForMainWorld(const v8::F
unctionCallbackInfo<v8::Value>& info) |
5104 { | 5104 { |
5105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5106 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 5106 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
5107 if (contextData && contextData->activityLogger()) { | 5107 if (contextData && contextData->activityLogger()) { |
5108 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 5108 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
5109 contextData->activityLogger()->log("TestObject.overloadedActivityLoggedM
ethod", info.Length(), loggerArgs.data(), "Method"); | 5109 contextData->activityLogger()->logMethod("TestObject.overloadedActivityL
oggedMethod", info.Length(), loggerArgs.data()); |
5110 } | 5110 } |
5111 TestObjectV8Internal::overloadedActivityLoggedMethodMethodForMainWorld(info)
; | 5111 TestObjectV8Internal::overloadedActivityLoggedMethodMethodForMainWorld(info)
; |
5112 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5112 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5113 } | 5113 } |
5114 | 5114 |
5115 static void deprecatedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5115 static void deprecatedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
5116 { | 5116 { |
5117 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5117 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5118 impl->deprecatedMethod(); | 5118 impl->deprecatedMethod(); |
5119 } | 5119 } |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5542 fromInternalPointer(object)->deref(); | 5542 fromInternalPointer(object)->deref(); |
5543 } | 5543 } |
5544 | 5544 |
5545 template<> | 5545 template<> |
5546 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 5546 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
5547 { | 5547 { |
5548 return toV8(impl, creationContext, isolate); | 5548 return toV8(impl, creationContext, isolate); |
5549 } | 5549 } |
5550 | 5550 |
5551 } // namespace WebCore | 5551 } // namespace WebCore |
OLD | NEW |