| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 527 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 528 { | 528 { |
| 529 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 529 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 530 TestObjectPythonV8Internal::unsignedShortAttributeAttributeSetter(jsValue, i
nfo); | 530 TestObjectPythonV8Internal::unsignedShortAttributeAttributeSetter(jsValue, i
nfo); |
| 531 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 531 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 532 } | 532 } |
| 533 | 533 |
| 534 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 534 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
| 535 { | 535 { |
| 536 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 536 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 537 v8SetReturnValueFast(info, imp->testInterfaceEmptyAttribute(), imp); | 537 v8SetReturnValueFast(info, WTF::getPtr(imp->testInterfaceEmptyAttribute()),
imp); |
| 538 } | 538 } |
| 539 | 539 |
| 540 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 540 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 541 { | 541 { |
| 542 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 542 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 543 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeGetter(info)
; | 543 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeGetter(info)
; |
| 544 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 544 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 545 } | 545 } |
| 546 | 546 |
| 547 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) | 547 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
| 548 { | 548 { |
| 549 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 549 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 550 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ
eWithTypeCheck(info.GetIsolate(), jsValue)); | 550 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ
eWithTypeCheck(info.GetIsolate(), jsValue)); |
| 551 imp->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); | 551 imp->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); |
| 552 } | 552 } |
| 553 | 553 |
| 554 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 554 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 555 { | 555 { |
| 556 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 556 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 557 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeSetter(jsVal
ue, info); | 557 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeSetter(jsVal
ue, info); |
| 558 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 558 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 559 } | 559 } |
| 560 | 560 |
| 561 static void testObjectPythonAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 561 static void testObjectPythonAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
| 562 { | 562 { |
| 563 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 563 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 564 v8SetReturnValueFast(info, imp->testObjectPythonAttribute(), imp); | 564 v8SetReturnValueFast(info, WTF::getPtr(imp->testObjectPythonAttribute()), im
p); |
| 565 } | 565 } |
| 566 | 566 |
| 567 static void testObjectPythonAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 567 static void testObjectPythonAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 568 { | 568 { |
| 569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 570 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeGetter(info); | 570 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeGetter(info); |
| 571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 572 } | 572 } |
| 573 | 573 |
| 574 static void testObjectPythonAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 574 static void testObjectPythonAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 747 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 748 { | 748 { |
| 749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 750 TestObjectPythonV8Internal::xmlAttributeAttributeSetter(jsValue, info); | 750 TestObjectPythonV8Internal::xmlAttributeAttributeSetter(jsValue, info); |
| 751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 752 } | 752 } |
| 753 | 753 |
| 754 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 754 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 755 { | 755 { |
| 756 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 756 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 757 v8SetReturnValueFast(info, imp->nodeFilterAttribute(), imp); | 757 v8SetReturnValueFast(info, WTF::getPtr(imp->nodeFilterAttribute()), imp); |
| 758 } | 758 } |
| 759 | 759 |
| 760 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 760 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 761 { | 761 { |
| 762 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 762 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 763 TestObjectPythonV8Internal::nodeFilterAttributeAttributeGetter(info); | 763 TestObjectPythonV8Internal::nodeFilterAttributeAttributeGetter(info); |
| 764 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 764 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 765 } | 765 } |
| 766 | 766 |
| 767 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 767 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 855 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 856 { | 856 { |
| 857 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 857 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 858 TestObjectPythonV8Internal::promiseAttributeAttributeSetter(jsValue, info); | 858 TestObjectPythonV8Internal::promiseAttributeAttributeSetter(jsValue, info); |
| 859 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 859 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 860 } | 860 } |
| 861 | 861 |
| 862 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 862 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
| 863 { | 863 { |
| 864 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 864 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 865 v8SetReturnValueFast(info, imp->windowAttribute(), imp); | 865 v8SetReturnValueFast(info, WTF::getPtr(imp->windowAttribute()), imp); |
| 866 } | 866 } |
| 867 | 867 |
| 868 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 868 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 869 { | 869 { |
| 870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 871 TestObjectPythonV8Internal::windowAttributeAttributeGetter(info); | 871 TestObjectPythonV8Internal::windowAttributeAttributeGetter(info); |
| 872 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 872 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 873 } | 873 } |
| 874 | 874 |
| 875 static void windowAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) | 875 static void windowAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) |
| 876 { | 876 { |
| 877 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 877 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 878 V8TRYCATCH_VOID(DOMWindow*, cppValue, toDOMWindow(jsValue, info.GetIsolate()
)); | 878 V8TRYCATCH_VOID(DOMWindow*, cppValue, toDOMWindow(jsValue, info.GetIsolate()
)); |
| 879 imp->setWindowAttribute(WTF::getPtr(cppValue)); | 879 imp->setWindowAttribute(WTF::getPtr(cppValue)); |
| 880 } | 880 } |
| 881 | 881 |
| 882 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 882 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 883 { | 883 { |
| 884 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 884 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 885 TestObjectPythonV8Internal::windowAttributeAttributeSetter(jsValue, info); | 885 TestObjectPythonV8Internal::windowAttributeAttributeSetter(jsValue, info); |
| 886 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 886 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 887 } | 887 } |
| 888 | 888 |
| 889 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 889 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
| 890 { | 890 { |
| 891 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 891 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 892 v8SetReturnValueFast(info, imp->documentAttribute(), imp); | 892 v8SetReturnValueFast(info, WTF::getPtr(imp->documentAttribute()), imp); |
| 893 } | 893 } |
| 894 | 894 |
| 895 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 895 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
| 896 { | 896 { |
| 897 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 897 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 898 TestObjectPythonV8Internal::documentAttributeAttributeGetter(info); | 898 TestObjectPythonV8Internal::documentAttributeAttributeGetter(info); |
| 899 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 899 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 900 } | 900 } |
| 901 | 901 |
| 902 static void documentAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 902 static void documentAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
| 903 { | 903 { |
| 904 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 904 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 905 V8TRYCATCH_VOID(Document*, cppValue, V8Document::toNativeWithTypeCheck(info.
GetIsolate(), jsValue)); | 905 V8TRYCATCH_VOID(Document*, cppValue, V8Document::toNativeWithTypeCheck(info.
GetIsolate(), jsValue)); |
| 906 imp->setDocumentAttribute(WTF::getPtr(cppValue)); | 906 imp->setDocumentAttribute(WTF::getPtr(cppValue)); |
| 907 } | 907 } |
| 908 | 908 |
| 909 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 909 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 910 { | 910 { |
| 911 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 911 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 912 TestObjectPythonV8Internal::documentAttributeAttributeSetter(jsValue, info); | 912 TestObjectPythonV8Internal::documentAttributeAttributeSetter(jsValue, info); |
| 913 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 913 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 914 } | 914 } |
| 915 | 915 |
| 916 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 916 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
| 917 { | 917 { |
| 918 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 918 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 919 v8SetReturnValueFast(info, imp->documentFragmentAttribute(), imp); | 919 v8SetReturnValueFast(info, WTF::getPtr(imp->documentFragmentAttribute()), im
p); |
| 920 } | 920 } |
| 921 | 921 |
| 922 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 922 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 923 { | 923 { |
| 924 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 924 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 925 TestObjectPythonV8Internal::documentFragmentAttributeAttributeGetter(info); | 925 TestObjectPythonV8Internal::documentFragmentAttributeAttributeGetter(info); |
| 926 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 926 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 927 } | 927 } |
| 928 | 928 |
| 929 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 929 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
| 930 { | 930 { |
| 931 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 931 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 932 V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::toNativeWit
hTypeCheck(info.GetIsolate(), jsValue)); | 932 V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::toNativeWit
hTypeCheck(info.GetIsolate(), jsValue)); |
| 933 imp->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); | 933 imp->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); |
| 934 } | 934 } |
| 935 | 935 |
| 936 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 936 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 937 { | 937 { |
| 938 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 938 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 939 TestObjectPythonV8Internal::documentFragmentAttributeAttributeSetter(jsValue
, info); | 939 TestObjectPythonV8Internal::documentFragmentAttributeAttributeSetter(jsValue
, info); |
| 940 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 940 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 941 } | 941 } |
| 942 | 942 |
| 943 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 943 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 944 { | 944 { |
| 945 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 945 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 946 v8SetReturnValueFast(info, imp->documentTypeAttribute(), imp); | 946 v8SetReturnValueFast(info, WTF::getPtr(imp->documentTypeAttribute()), imp); |
| 947 } | 947 } |
| 948 | 948 |
| 949 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 949 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 950 { | 950 { |
| 951 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 951 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 952 TestObjectPythonV8Internal::documentTypeAttributeAttributeGetter(info); | 952 TestObjectPythonV8Internal::documentTypeAttributeAttributeGetter(info); |
| 953 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 953 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 954 } | 954 } |
| 955 | 955 |
| 956 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 956 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
| 957 { | 957 { |
| 958 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 958 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 959 V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::toNativeWithTypeChe
ck(info.GetIsolate(), jsValue)); | 959 V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::toNativeWithTypeChe
ck(info.GetIsolate(), jsValue)); |
| 960 imp->setDocumentTypeAttribute(WTF::getPtr(cppValue)); | 960 imp->setDocumentTypeAttribute(WTF::getPtr(cppValue)); |
| 961 } | 961 } |
| 962 | 962 |
| 963 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 963 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 964 { | 964 { |
| 965 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 965 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 966 TestObjectPythonV8Internal::documentTypeAttributeAttributeSetter(jsValue, in
fo); | 966 TestObjectPythonV8Internal::documentTypeAttributeAttributeSetter(jsValue, in
fo); |
| 967 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 967 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 968 } | 968 } |
| 969 | 969 |
| 970 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 970 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
| 971 { | 971 { |
| 972 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 972 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 973 v8SetReturnValueFast(info, imp->elementAttribute(), imp); | 973 v8SetReturnValueFast(info, WTF::getPtr(imp->elementAttribute()), imp); |
| 974 } | 974 } |
| 975 | 975 |
| 976 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 976 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 977 { | 977 { |
| 978 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 978 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 979 TestObjectPythonV8Internal::elementAttributeAttributeGetter(info); | 979 TestObjectPythonV8Internal::elementAttributeAttributeGetter(info); |
| 980 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 980 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 981 } | 981 } |
| 982 | 982 |
| 983 static void elementAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 983 static void elementAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
| 984 { | 984 { |
| 985 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 985 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 986 V8TRYCATCH_VOID(Element*, cppValue, V8Element::toNativeWithTypeCheck(info.Ge
tIsolate(), jsValue)); | 986 V8TRYCATCH_VOID(Element*, cppValue, V8Element::toNativeWithTypeCheck(info.Ge
tIsolate(), jsValue)); |
| 987 imp->setElementAttribute(WTF::getPtr(cppValue)); | 987 imp->setElementAttribute(WTF::getPtr(cppValue)); |
| 988 } | 988 } |
| 989 | 989 |
| 990 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 990 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 991 { | 991 { |
| 992 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 992 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 993 TestObjectPythonV8Internal::elementAttributeAttributeSetter(jsValue, info); | 993 TestObjectPythonV8Internal::elementAttributeAttributeSetter(jsValue, info); |
| 994 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 994 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 995 } | 995 } |
| 996 | 996 |
| 997 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 997 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
| 998 { | 998 { |
| 999 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 999 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1000 v8SetReturnValueFast(info, imp->nodeAttribute(), imp); | 1000 v8SetReturnValueFast(info, WTF::getPtr(imp->nodeAttribute()), imp); |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 1003 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 1004 { | 1004 { |
| 1005 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1005 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1006 TestObjectPythonV8Internal::nodeAttributeAttributeGetter(info); | 1006 TestObjectPythonV8Internal::nodeAttributeAttributeGetter(info); |
| 1007 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1007 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 1010 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
| 1011 { | 1011 { |
| 1012 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1012 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1013 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); | 1013 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); |
| 1014 imp->setNodeAttribute(WTF::getPtr(cppValue)); | 1014 imp->setNodeAttribute(WTF::getPtr(cppValue)); |
| 1015 } | 1015 } |
| 1016 | 1016 |
| 1017 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1017 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1018 { | 1018 { |
| 1019 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1019 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1020 TestObjectPythonV8Internal::nodeAttributeAttributeSetter(jsValue, info); | 1020 TestObjectPythonV8Internal::nodeAttributeAttributeSetter(jsValue, info); |
| 1021 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1021 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1022 } | 1022 } |
| 1023 | 1023 |
| 1024 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1024 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 1025 { | 1025 { |
| 1026 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1026 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1027 v8SetReturnValueFast(info, imp->shadowRootAttribute(), imp); | 1027 v8SetReturnValueFast(info, WTF::getPtr(imp->shadowRootAttribute()), imp); |
| 1028 } | 1028 } |
| 1029 | 1029 |
| 1030 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1030 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 1031 { | 1031 { |
| 1032 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1032 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1033 TestObjectPythonV8Internal::shadowRootAttributeAttributeGetter(info); | 1033 TestObjectPythonV8Internal::shadowRootAttributeAttributeGetter(info); |
| 1034 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1034 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1035 } | 1035 } |
| 1036 | 1036 |
| 1037 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 1037 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
| 1038 { | 1038 { |
| 1039 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1039 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1040 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::toNativeWithTypeCheck(i
nfo.GetIsolate(), jsValue)); | 1040 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::toNativeWithTypeCheck(i
nfo.GetIsolate(), jsValue)); |
| 1041 imp->setShadowRootAttribute(WTF::getPtr(cppValue)); | 1041 imp->setShadowRootAttribute(WTF::getPtr(cppValue)); |
| 1042 } | 1042 } |
| 1043 | 1043 |
| 1044 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1044 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1045 { | 1045 { |
| 1046 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1046 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1047 TestObjectPythonV8Internal::shadowRootAttributeAttributeSetter(jsValue, info
); | 1047 TestObjectPythonV8Internal::shadowRootAttributeAttributeSetter(jsValue, info
); |
| 1048 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1048 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1051 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
| 1052 { | 1052 { |
| 1053 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1053 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1054 v8SetReturnValueFast(info, imp->arrayBufferAttribute(), imp); | 1054 v8SetReturnValueFast(info, WTF::getPtr(imp->arrayBufferAttribute()), imp); |
| 1055 } | 1055 } |
| 1056 | 1056 |
| 1057 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 1057 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
| 1058 { | 1058 { |
| 1059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1060 TestObjectPythonV8Internal::arrayBufferAttributeAttributeGetter(info); | 1060 TestObjectPythonV8Internal::arrayBufferAttributeAttributeGetter(info); |
| 1061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1062 } | 1062 } |
| 1063 | 1063 |
| 1064 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) | 1064 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) |
| 1065 { | 1065 { |
| 1066 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1066 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1067 V8TRYCATCH_VOID(ArrayBuffer*, cppValue, jsValue->IsArrayBuffer() ? V8ArrayBu
ffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(jsValue)) : 0); | 1067 V8TRYCATCH_VOID(ArrayBuffer*, cppValue, jsValue->IsArrayBuffer() ? V8ArrayBu
ffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(jsValue)) : 0); |
| 1068 imp->setArrayBufferAttribute(WTF::getPtr(cppValue)); | 1068 imp->setArrayBufferAttribute(WTF::getPtr(cppValue)); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1071 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1072 { | 1072 { |
| 1073 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1073 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1074 TestObjectPythonV8Internal::arrayBufferAttributeAttributeSetter(jsValue, inf
o); | 1074 TestObjectPythonV8Internal::arrayBufferAttributeAttributeSetter(jsValue, inf
o); |
| 1075 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1075 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1078 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 1079 { | 1079 { |
| 1080 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1080 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1081 v8SetReturnValueFast(info, imp->float32ArrayAttribute(), imp); | 1081 v8SetReturnValueFast(info, WTF::getPtr(imp->float32ArrayAttribute()), imp); |
| 1082 } | 1082 } |
| 1083 | 1083 |
| 1084 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1084 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1085 { | 1085 { |
| 1086 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1086 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1087 TestObjectPythonV8Internal::float32ArrayAttributeAttributeGetter(info); | 1087 TestObjectPythonV8Internal::float32ArrayAttributeAttributeGetter(info); |
| 1088 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1088 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1089 } | 1089 } |
| 1090 | 1090 |
| 1091 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 1091 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
| 1092 { | 1092 { |
| 1093 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1093 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1094 V8TRYCATCH_VOID(Float32Array*, cppValue, jsValue->IsFloat32Array() ? V8Float
32Array::toNative(v8::Handle<v8::Float32Array>::Cast(jsValue)) : 0); | 1094 V8TRYCATCH_VOID(Float32Array*, cppValue, jsValue->IsFloat32Array() ? V8Float
32Array::toNative(v8::Handle<v8::Float32Array>::Cast(jsValue)) : 0); |
| 1095 imp->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); | 1095 imp->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); |
| 1096 } | 1096 } |
| 1097 | 1097 |
| 1098 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1098 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1099 { | 1099 { |
| 1100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1101 TestObjectPythonV8Internal::float32ArrayAttributeAttributeSetter(jsValue, in
fo); | 1101 TestObjectPythonV8Internal::float32ArrayAttributeAttributeSetter(jsValue, in
fo); |
| 1102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1103 } | 1103 } |
| 1104 | 1104 |
| 1105 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1105 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 1106 { | 1106 { |
| 1107 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1107 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1108 v8SetReturnValueFast(info, imp->uint8ArrayAttribute(), imp); | 1108 v8SetReturnValueFast(info, WTF::getPtr(imp->uint8ArrayAttribute()), imp); |
| 1109 } | 1109 } |
| 1110 | 1110 |
| 1111 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1111 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 1112 { | 1112 { |
| 1113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1114 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeGetter(info); | 1114 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeGetter(info); |
| 1115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1116 } | 1116 } |
| 1117 | 1117 |
| 1118 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 1118 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
| 1119 { | 1119 { |
| 1120 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1120 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1121 V8TRYCATCH_VOID(Uint8Array*, cppValue, jsValue->IsUint8Array() ? V8Uint8Arra
y::toNative(v8::Handle<v8::Uint8Array>::Cast(jsValue)) : 0); | 1121 V8TRYCATCH_VOID(Uint8Array*, cppValue, jsValue->IsUint8Array() ? V8Uint8Arra
y::toNative(v8::Handle<v8::Uint8Array>::Cast(jsValue)) : 0); |
| 1122 imp->setUint8ArrayAttribute(WTF::getPtr(cppValue)); | 1122 imp->setUint8ArrayAttribute(WTF::getPtr(cppValue)); |
| 1123 } | 1123 } |
| 1124 | 1124 |
| 1125 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1125 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1126 { | 1126 { |
| 1127 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1127 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1128 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeSetter(jsValue, info
); | 1128 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeSetter(jsValue, info
); |
| 1129 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1129 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1130 } | 1130 } |
| 1131 | 1131 |
| 1132 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 1132 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1133 { | 1133 { |
| 1134 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1134 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1135 v8SetReturnValueFast(info, imp->self(), imp); | 1135 v8SetReturnValueFast(info, WTF::getPtr(imp->self()), imp); |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 static void selfAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) | 1138 static void selfAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) |
| 1139 { | 1139 { |
| 1140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1141 TestObjectPythonV8Internal::selfAttributeGetter(info); | 1141 TestObjectPythonV8Internal::selfAttributeGetter(info); |
| 1142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1143 } | 1143 } |
| 1144 | 1144 |
| 1145 static void readonlyEventTargetAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 1145 static void readonlyEventTargetAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
| 1146 { | 1146 { |
| 1147 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1147 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1148 v8SetReturnValueFast(info, imp->readonlyEventTargetAttribute(), imp); | 1148 v8SetReturnValueFast(info, WTF::getPtr(imp->readonlyEventTargetAttribute()),
imp); |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 static void readonlyEventTargetAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1151 static void readonlyEventTargetAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1152 { | 1152 { |
| 1153 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1153 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1154 TestObjectPythonV8Internal::readonlyEventTargetAttributeAttributeGetter(info
); | 1154 TestObjectPythonV8Internal::readonlyEventTargetAttributeAttributeGetter(info
); |
| 1155 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1155 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1156 } | 1156 } |
| 1157 | 1157 |
| 1158 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 1158 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
| 1159 { | 1159 { |
| 1160 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1160 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1161 v8SetReturnValueFast(info, imp->readonlyWindowAttribute(), imp); | 1161 v8SetReturnValueFast(info, WTF::getPtr(imp->readonlyWindowAttribute()), imp)
; |
| 1162 } | 1162 } |
| 1163 | 1163 |
| 1164 static void readonlyWindowAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 1164 static void readonlyWindowAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1165 { | 1165 { |
| 1166 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1166 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1167 TestObjectPythonV8Internal::readonlyWindowAttributeAttributeGetter(info); | 1167 TestObjectPythonV8Internal::readonlyWindowAttributeAttributeGetter(info); |
| 1168 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1168 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1169 } | 1169 } |
| 1170 | 1170 |
| 1171 static void htmlCollectionAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 1171 static void htmlCollectionAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
| 1172 { | 1172 { |
| 1173 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1173 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1174 v8SetReturnValueFast(info, imp->htmlCollectionAttribute(), imp); | 1174 v8SetReturnValueFast(info, WTF::getPtr(imp->htmlCollectionAttribute()), imp)
; |
| 1175 } | 1175 } |
| 1176 | 1176 |
| 1177 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 1177 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1178 { | 1178 { |
| 1179 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1179 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1180 TestObjectPythonV8Internal::htmlCollectionAttributeAttributeGetter(info); | 1180 TestObjectPythonV8Internal::htmlCollectionAttributeAttributeGetter(info); |
| 1181 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1181 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1182 } | 1182 } |
| 1183 | 1183 |
| 1184 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1184 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
| 1185 { | 1185 { |
| 1186 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1186 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1187 v8SetReturnValueFast(info, imp->htmlElementAttribute(), imp); | 1187 v8SetReturnValueFast(info, WTF::getPtr(imp->htmlElementAttribute()), imp); |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 1190 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
| 1191 { | 1191 { |
| 1192 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1192 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1193 TestObjectPythonV8Internal::htmlElementAttributeAttributeGetter(info); | 1193 TestObjectPythonV8Internal::htmlElementAttributeAttributeGetter(info); |
| 1194 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1194 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1195 } | 1195 } |
| 1196 | 1196 |
| 1197 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1197 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 | 1344 |
| 1345 static void nullableTestInterfaceAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 1345 static void nullableTestInterfaceAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
| 1346 { | 1346 { |
| 1347 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1347 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1348 bool isNull = false; | 1348 bool isNull = false; |
| 1349 RefPtr<TestInterface> jsValue = imp->nullableTestInterfaceAttribute(isNull); | 1349 RefPtr<TestInterface> jsValue = imp->nullableTestInterfaceAttribute(isNull); |
| 1350 if (isNull) { | 1350 if (isNull) { |
| 1351 v8SetReturnValueNull(info); | 1351 v8SetReturnValueNull(info); |
| 1352 return; | 1352 return; |
| 1353 } | 1353 } |
| 1354 v8SetReturnValueFast(info, jsValue.release(), imp); | 1354 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), imp); |
| 1355 } | 1355 } |
| 1356 | 1356 |
| 1357 static void nullableTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1357 static void nullableTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1358 { | 1358 { |
| 1359 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1359 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1360 TestObjectPythonV8Internal::nullableTestInterfaceAttributeAttributeGetter(in
fo); | 1360 TestObjectPythonV8Internal::nullableTestInterfaceAttributeAttributeGetter(in
fo); |
| 1361 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1361 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1362 } | 1362 } |
| 1363 | 1363 |
| 1364 static void nullableTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) | 1364 static void nullableTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1653 | 1653 |
| 1654 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 1654 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 1655 { | 1655 { |
| 1656 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1656 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1657 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF
orNodeReadonlyDocumentAttribute", "TestObjectPython", info.Holder(), info.GetIso
late()); | 1657 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF
orNodeReadonlyDocumentAttribute", "TestObjectPython", info.Holder(), info.GetIso
late()); |
| 1658 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), imp->checkS
ecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { | 1658 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), imp->checkS
ecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { |
| 1659 v8SetReturnValueNull(info); | 1659 v8SetReturnValueNull(info); |
| 1660 exceptionState.throwIfNeeded(); | 1660 exceptionState.throwIfNeeded(); |
| 1661 return; | 1661 return; |
| 1662 } | 1662 } |
| 1663 v8SetReturnValueFast(info, imp->checkSecurityForNodeReadonlyDocumentAttribut
e(), imp); | 1663 v8SetReturnValueFast(info, WTF::getPtr(imp->checkSecurityForNodeReadonlyDocu
mentAttribute()), imp); |
| 1664 } | 1664 } |
| 1665 | 1665 |
| 1666 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1666 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1667 { | 1667 { |
| 1668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1669 TestObjectPythonV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAtt
ributeGetter(info); | 1669 TestObjectPythonV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAtt
ributeGetter(info); |
| 1670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 1671 } | 1671 } |
| 1672 | 1672 |
| 1673 #if ENABLE(CONDITION) | 1673 #if ENABLE(CONDITION) |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2504 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) | 2504 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) |
| 2505 { | 2505 { |
| 2506 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2506 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2507 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); | 2507 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); |
| 2508 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2508 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2509 } | 2509 } |
| 2510 | 2510 |
| 2511 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i
nfo) | 2511 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i
nfo) |
| 2512 { | 2512 { |
| 2513 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2513 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2514 v8SetReturnValueFast(info, imp->location(), imp); | 2514 v8SetReturnValueFast(info, WTF::getPtr(imp->location()), imp); |
| 2515 } | 2515 } |
| 2516 | 2516 |
| 2517 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro
pertyCallbackInfo<v8::Value>& info) | 2517 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
| 2518 { | 2518 { |
| 2519 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2519 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2520 TestObjectPythonV8Internal::locationAttributeGetter(info); | 2520 TestObjectPythonV8Internal::locationAttributeGetter(info); |
| 2521 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2521 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2522 } | 2522 } |
| 2523 | 2523 |
| 2524 static void locationAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop
ertyCallbackInfo<void>& info) | 2524 static void locationAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop
ertyCallbackInfo<void>& info) |
| 2525 { | 2525 { |
| 2526 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2526 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); |
| 2527 TestNode* imp = proxyImp->location(); | 2527 TestNode* imp = proxyImp->location(); |
| 2528 if (!imp) | 2528 if (!imp) |
| 2529 return; | 2529 return; |
| 2530 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2530 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2531 imp->setHref(cppValue); | 2531 imp->setHref(cppValue); |
| 2532 } | 2532 } |
| 2533 | 2533 |
| 2534 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2534 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2535 { | 2535 { |
| 2536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2537 TestObjectPythonV8Internal::locationAttributeSetter(jsValue, info); | 2537 TestObjectPythonV8Internal::locationAttributeSetter(jsValue, info); |
| 2538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2539 } | 2539 } |
| 2540 | 2540 |
| 2541 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 2541 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
| 2542 { | 2542 { |
| 2543 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2543 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2544 v8SetReturnValueFast(info, imp->locationWithException(), imp); | 2544 v8SetReturnValueFast(info, WTF::getPtr(imp->locationWithException()), imp); |
| 2545 } | 2545 } |
| 2546 | 2546 |
| 2547 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 2547 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2548 { | 2548 { |
| 2549 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2549 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2550 TestObjectPythonV8Internal::locationWithExceptionAttributeGetter(info); | 2550 TestObjectPythonV8Internal::locationWithExceptionAttributeGetter(info); |
| 2551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2552 } | 2552 } |
| 2553 | 2553 |
| 2554 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 2554 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
| 2555 { | 2555 { |
| 2556 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2556 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); |
| 2557 TestNode* imp = proxyImp->locationWithException(); | 2557 TestNode* imp = proxyImp->locationWithException(); |
| 2558 if (!imp) | 2558 if (!imp) |
| 2559 return; | 2559 return; |
| 2560 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2560 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2561 imp->setHrefThrows(cppValue); | 2561 imp->setHrefThrows(cppValue); |
| 2562 } | 2562 } |
| 2563 | 2563 |
| 2564 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2564 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2565 { | 2565 { |
| 2566 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2566 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2567 TestObjectPythonV8Internal::locationWithExceptionAttributeSetter(jsValue, in
fo); | 2567 TestObjectPythonV8Internal::locationWithExceptionAttributeSetter(jsValue, in
fo); |
| 2568 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2568 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2569 } | 2569 } |
| 2570 | 2570 |
| 2571 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 2571 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
| 2572 { | 2572 { |
| 2573 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2573 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2574 v8SetReturnValueFast(info, imp->locationWithCallWith(), imp); | 2574 v8SetReturnValueFast(info, WTF::getPtr(imp->locationWithCallWith()), imp); |
| 2575 } | 2575 } |
| 2576 | 2576 |
| 2577 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 2577 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
| 2578 { | 2578 { |
| 2579 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2579 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2580 TestObjectPythonV8Internal::locationWithCallWithAttributeGetter(info); | 2580 TestObjectPythonV8Internal::locationWithCallWithAttributeGetter(info); |
| 2581 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2581 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2582 } | 2582 } |
| 2583 | 2583 |
| 2584 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) | 2584 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) |
| 2585 { | 2585 { |
| 2586 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2586 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); |
| 2587 TestNode* imp = proxyImp->locationWithCallWith(); | 2587 TestNode* imp = proxyImp->locationWithCallWith(); |
| 2588 if (!imp) | 2588 if (!imp) |
| 2589 return; | 2589 return; |
| 2590 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2590 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2591 imp->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(i
nfo.GetIsolate()), cppValue); | 2591 imp->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(i
nfo.GetIsolate()), cppValue); |
| 2592 } | 2592 } |
| 2593 | 2593 |
| 2594 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2594 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2595 { | 2595 { |
| 2596 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2596 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2597 TestObjectPythonV8Internal::locationWithCallWithAttributeSetter(jsValue, inf
o); | 2597 TestObjectPythonV8Internal::locationWithCallWithAttributeSetter(jsValue, inf
o); |
| 2598 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2598 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2599 } | 2599 } |
| 2600 | 2600 |
| 2601 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 2601 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
| 2602 { | 2602 { |
| 2603 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2603 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2604 v8SetReturnValueFast(info, imp->locationWithPerWorldBindings(), imp); | 2604 v8SetReturnValueFast(info, WTF::getPtr(imp->locationWithPerWorldBindings()),
imp); |
| 2605 } | 2605 } |
| 2606 | 2606 |
| 2607 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2607 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2608 { | 2608 { |
| 2609 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2609 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2610 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetter(info
); | 2610 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetter(info
); |
| 2611 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2611 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2612 } | 2612 } |
| 2613 | 2613 |
| 2614 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) | 2614 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) |
| 2615 { | 2615 { |
| 2616 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2616 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); |
| 2617 TestNode* imp = proxyImp->locationWithPerWorldBindings(); | 2617 TestNode* imp = proxyImp->locationWithPerWorldBindings(); |
| 2618 if (!imp) | 2618 if (!imp) |
| 2619 return; | 2619 return; |
| 2620 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2620 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 2621 imp->setHref(cppValue); | 2621 imp->setHref(cppValue); |
| 2622 } | 2622 } |
| 2623 | 2623 |
| 2624 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2624 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2625 { | 2625 { |
| 2626 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2626 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2627 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetter(jsVa
lue, info); | 2627 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetter(jsVa
lue, info); |
| 2628 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2628 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2629 } | 2629 } |
| 2630 | 2630 |
| 2631 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 2631 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
| 2632 { | 2632 { |
| 2633 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2633 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2634 v8SetReturnValueForMainWorld(info, imp->locationWithPerWorldBindings()); | 2634 v8SetReturnValueForMainWorld(info, WTF::getPtr(imp->locationWithPerWorldBind
ings())); |
| 2635 } | 2635 } |
| 2636 | 2636 |
| 2637 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2637 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2638 { | 2638 { |
| 2639 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2639 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2640 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetterForMa
inWorld(info); | 2640 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetterForMa
inWorld(info); |
| 2641 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2641 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2642 } | 2642 } |
| 2643 | 2643 |
| 2644 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2644 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2752 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2752 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2753 } | 2753 } |
| 2754 | 2754 |
| 2755 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) | 2755 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) |
| 2756 { | 2756 { |
| 2757 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2757 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2758 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObjectPython", info.Holder(), info.GetIsolat
e()); | 2758 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObjectPython", info.Holder(), info.GetIsolat
e()); |
| 2759 RefPtr<TestInterfaceEmpty> jsValue = imp->raisesExceptionTestInterfaceEmptyA
ttribute(exceptionState); | 2759 RefPtr<TestInterfaceEmpty> jsValue = imp->raisesExceptionTestInterfaceEmptyA
ttribute(exceptionState); |
| 2760 if (UNLIKELY(exceptionState.throwIfNeeded())) | 2760 if (UNLIKELY(exceptionState.throwIfNeeded())) |
| 2761 return; | 2761 return; |
| 2762 v8SetReturnValueFast(info, jsValue.release(), imp); | 2762 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), imp); |
| 2763 } | 2763 } |
| 2764 | 2764 |
| 2765 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2765 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2766 { | 2766 { |
| 2767 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2767 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2768 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttrib
uteGetter(info); | 2768 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttrib
uteGetter(info); |
| 2769 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2769 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2770 } | 2770 } |
| 2771 | 2771 |
| 2772 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2772 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2824 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallb
ackInfo<void>& info) | 2824 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallb
ackInfo<void>& info) |
| 2825 { | 2825 { |
| 2826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2827 TestObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttribute
AttributeSetter(jsValue, info); | 2827 TestObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttribute
AttributeSetter(jsValue, info); |
| 2828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2829 } | 2829 } |
| 2830 | 2830 |
| 2831 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 2831 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
| 2832 { | 2832 { |
| 2833 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2833 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2834 v8SetReturnValueFast(info, imp->fastGetAttribute(HTMLNames::reflecttestinter
faceattributeAttr), imp); | 2834 v8SetReturnValueFast(info, WTF::getPtr(imp->fastGetAttribute(HTMLNames::refl
ecttestinterfaceattributeAttr)), imp); |
| 2835 } | 2835 } |
| 2836 | 2836 |
| 2837 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2837 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2838 { | 2838 { |
| 2839 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2839 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2840 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeGetter(inf
o); | 2840 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeGetter(inf
o); |
| 2841 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2841 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2842 } | 2842 } |
| 2843 | 2843 |
| 2844 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) | 2844 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) |
| 2845 { | 2845 { |
| 2846 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2846 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2847 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), jsValue)); | 2847 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), jsValue)); |
| 2848 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2848 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2849 imp->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr(
cppValue)); | 2849 imp->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr(
cppValue)); |
| 2850 } | 2850 } |
| 2851 | 2851 |
| 2852 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) | 2852 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) |
| 2853 { | 2853 { |
| 2854 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2854 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2855 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2855 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 2856 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeSetter(jsV
alue, info); | 2856 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeSetter(jsV
alue, info); |
| 2857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2858 } | 2858 } |
| 2859 | 2859 |
| 2860 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) | 2860 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) |
| 2861 { | 2861 { |
| 2862 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2862 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2863 v8SetReturnValueFast(info, imp->fastGetAttribute(HTMLNames::reflectedNameAtt
ributeAttr), imp); | 2863 v8SetReturnValueFast(info, WTF::getPtr(imp->fastGetAttribute(HTMLNames::refl
ectedNameAttributeAttr)), imp); |
| 2864 } | 2864 } |
| 2865 | 2865 |
| 2866 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2866 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2867 { | 2867 { |
| 2868 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2868 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2869 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib
uteGetter(info); | 2869 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib
uteGetter(info); |
| 2870 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2870 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 2871 } | 2871 } |
| 2872 | 2872 |
| 2873 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2873 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3439 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3439 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3440 { | 3440 { |
| 3441 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3441 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3442 TestObjectPythonV8Internal::replaceableReadonlyLongAttributeAttributeGetter(
info); | 3442 TestObjectPythonV8Internal::replaceableReadonlyLongAttributeAttributeGetter(
info); |
| 3443 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3443 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3444 } | 3444 } |
| 3445 | 3445 |
| 3446 static void locationReplaceableAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 3446 static void locationReplaceableAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 3447 { | 3447 { |
| 3448 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3448 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3449 v8SetReturnValueFast(info, imp->locationReplaceable(), imp); | 3449 v8SetReturnValueFast(info, WTF::getPtr(imp->locationReplaceable()), imp); |
| 3450 } | 3450 } |
| 3451 | 3451 |
| 3452 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 3452 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 3453 { | 3453 { |
| 3454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3455 TestObjectPythonV8Internal::locationReplaceableAttributeGetter(info); | 3455 TestObjectPythonV8Internal::locationReplaceableAttributeGetter(info); |
| 3456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3457 } | 3457 } |
| 3458 | 3458 |
| 3459 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 3459 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3643 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) | 3643 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) |
| 3644 { | 3644 { |
| 3645 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3645 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 3646 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeSetter(
jsValue, info); | 3646 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeSetter(
jsValue, info); |
| 3647 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3647 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3648 } | 3648 } |
| 3649 | 3649 |
| 3650 static void strictTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 3650 static void strictTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
| 3651 { | 3651 { |
| 3652 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3652 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3653 v8SetReturnValueFast(info, imp->strictTypeCheckingTestInterfaceAttribute(),
imp); | 3653 v8SetReturnValueFast(info, WTF::getPtr(imp->strictTypeCheckingTestInterfaceA
ttribute()), imp); |
| 3654 } | 3654 } |
| 3655 | 3655 |
| 3656 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3656 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3657 { | 3657 { |
| 3658 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3658 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3659 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut
eGetter(info); | 3659 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut
eGetter(info); |
| 3660 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3660 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3661 } | 3661 } |
| 3662 | 3662 |
| 3663 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3663 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3875 { | 3875 { |
| 3876 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3876 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 3877 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3877 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 3878 TestObjectPythonV8Internal::anotherStringAttributeAttributeSetter(jsValue, i
nfo); | 3878 TestObjectPythonV8Internal::anotherStringAttributeAttributeSetter(jsValue, i
nfo); |
| 3879 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3879 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3880 } | 3880 } |
| 3881 | 3881 |
| 3882 static void testInterfacePythonAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 3882 static void testInterfacePythonAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
| 3883 { | 3883 { |
| 3884 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3884 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3885 v8SetReturnValueFast(info, imp->testInterfacePythonAttribute(), imp); | 3885 v8SetReturnValueFast(info, WTF::getPtr(imp->testInterfacePythonAttribute()),
imp); |
| 3886 } | 3886 } |
| 3887 | 3887 |
| 3888 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3888 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3889 { | 3889 { |
| 3890 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3890 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3891 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeGetter(info
); | 3891 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeGetter(info
); |
| 3892 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3892 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3893 } | 3893 } |
| 3894 | 3894 |
| 3895 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) | 3895 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3908 | 3908 |
| 3909 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 3909 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 3910 { | 3910 { |
| 3911 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3911 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3912 bool isNull = false; | 3912 bool isNull = false; |
| 3913 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> jsValue = imp->testI
nterfaceWillBeGarbageCollectedAttribute(isNull); | 3913 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> jsValue = imp->testI
nterfaceWillBeGarbageCollectedAttribute(isNull); |
| 3914 if (isNull) { | 3914 if (isNull) { |
| 3915 v8SetReturnValueNull(info); | 3915 v8SetReturnValueNull(info); |
| 3916 return; | 3916 return; |
| 3917 } | 3917 } |
| 3918 v8SetReturnValueFast(info, jsValue.release(), imp); | 3918 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), imp); |
| 3919 } | 3919 } |
| 3920 | 3920 |
| 3921 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3921 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3922 { | 3922 { |
| 3923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3924 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttr
ibuteGetter(info); | 3924 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttr
ibuteGetter(info); |
| 3925 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3925 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3926 } | 3926 } |
| 3927 | 3927 |
| 3928 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3928 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| (...skipping 3793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7722 fromInternalPointer(object)->deref(); | 7722 fromInternalPointer(object)->deref(); |
| 7723 } | 7723 } |
| 7724 | 7724 |
| 7725 template<> | 7725 template<> |
| 7726 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) | 7726 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) |
| 7727 { | 7727 { |
| 7728 return toV8(impl, creationContext, isolate); | 7728 return toV8(impl, creationContext, isolate); |
| 7729 } | 7729 } |
| 7730 | 7730 |
| 7731 } // namespace WebCore | 7731 } // namespace WebCore |
| OLD | NEW |