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

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

Issue 125043004: Remove world type from hasInstance() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::hasInst ance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface Empty::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); 550 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::hasInst ance(jsValue, info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8: :Object>::Cast(jsValue)) : 0);
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, imp->testObjectPythonAttribute(), imp);
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)
575 { 575 {
576 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 576 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
577 V8TRYCATCH_VOID(TestObjectPython*, cppValue, V8TestObjectPython::hasInstance (jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObjectPython: :toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); 577 V8TRYCATCH_VOID(TestObjectPython*, cppValue, V8TestObjectPython::hasInstance (jsValue, info.GetIsolate()) ? V8TestObjectPython::toNative(v8::Handle<v8::Objec t>::Cast(jsValue)) : 0);
578 imp->setTestObjectPythonAttribute(WTF::getPtr(cppValue)); 578 imp->setTestObjectPythonAttribute(WTF::getPtr(cppValue));
579 } 579 }
580 580
581 static void testObjectPythonAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 581 static void testObjectPythonAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
582 { 582 {
583 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 583 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
584 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeSetter(jsValue , info); 584 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeSetter(jsValue , info);
585 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 585 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
586 } 586 }
587 587
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::hasInstance(jsValue, info.G etIsolate(), worldType(info.GetIsolate())) ? V8Document::toNative(v8::Handle<v8: :Object>::Cast(jsValue)) : 0); 905 V8TRYCATCH_VOID(Document*, cppValue, V8Document::hasInstance(jsValue, info.G etIsolate()) ? V8Document::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
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, imp->documentFragmentAttribute(), imp);
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::hasInstance (jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentFragment: :toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); 932 V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::hasInstance (jsValue, info.GetIsolate()) ? V8DocumentFragment::toNative(v8::Handle<v8::Objec t>::Cast(jsValue)) : 0);
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, 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::hasInstance(jsValue , info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentType::toNative(v8 ::Handle<v8::Object>::Cast(jsValue)) : 0); 959 V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::hasInstance(jsValue , info.GetIsolate()) ? V8DocumentType::toNative(v8::Handle<v8::Object>::Cast(jsV alue)) : 0);
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, 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::hasInstance(jsValue, info.Get Isolate(), worldType(info.GetIsolate())) ? V8Element::toNative(v8::Handle<v8::Ob ject>::Cast(jsValue)) : 0); 986 V8TRYCATCH_VOID(Element*, cppValue, V8Element::hasInstance(jsValue, info.Get Isolate()) ? V8Element::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
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 entityAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 997 static void entityAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
998 { 998 {
999 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 999 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1000 v8SetReturnValueFast(info, imp->entityAttribute(), imp); 1000 v8SetReturnValueFast(info, imp->entityAttribute(), imp);
1001 } 1001 }
1002 1002
1003 static void entityAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1003 static void entityAttributeAttributeGetterCallback(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::entityAttributeAttributeGetter(info); 1006 TestObjectPythonV8Internal::entityAttributeAttributeGetter(info);
1007 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1007 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1008 } 1008 }
1009 1009
1010 static void entityAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v 8::PropertyCallbackInfo<void>& info) 1010 static void entityAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v 8::PropertyCallbackInfo<void>& info)
1011 { 1011 {
1012 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 1012 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1013 V8TRYCATCH_VOID(Entity*, cppValue, V8Entity::hasInstance(jsValue, info.GetIs olate(), worldType(info.GetIsolate())) ? V8Entity::toNative(v8::Handle<v8::Objec t>::Cast(jsValue)) : 0); 1013 V8TRYCATCH_VOID(Entity*, cppValue, V8Entity::hasInstance(jsValue, info.GetIs olate()) ? V8Entity::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
1014 imp->setEntityAttribute(WTF::getPtr(cppValue)); 1014 imp->setEntityAttribute(WTF::getPtr(cppValue));
1015 } 1015 }
1016 1016
1017 static void entityAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1017 static void entityAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<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::entityAttributeAttributeSetter(jsValue, info); 1020 TestObjectPythonV8Internal::entityAttributeAttributeSetter(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 nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 1024 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
1025 { 1025 {
1026 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 1026 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1027 v8SetReturnValueFast(info, imp->nodeAttribute(), imp); 1027 v8SetReturnValueFast(info, imp->nodeAttribute(), imp);
1028 } 1028 }
1029 1029
1030 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 1030 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const 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::nodeAttributeAttributeGetter(info); 1033 TestObjectPythonV8Internal::nodeAttributeAttributeGetter(info);
1034 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1034 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1035 } 1035 }
1036 1036
1037 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8: :PropertyCallbackInfo<void>& info) 1037 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8: :PropertyCallbackInfo<void>& info)
1038 { 1038 {
1039 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 1039 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1040 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Ca st(jsValue)) : 0); 1040 V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolat e()) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
1041 imp->setNodeAttribute(WTF::getPtr(cppValue)); 1041 imp->setNodeAttribute(WTF::getPtr(cppValue));
1042 } 1042 }
1043 1043
1044 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1044 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<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::nodeAttributeAttributeSetter(jsValue, info); 1047 TestObjectPythonV8Internal::nodeAttributeAttributeSetter(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 shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1051 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1052 { 1052 {
1053 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 1053 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1054 v8SetReturnValueFast(info, imp->shadowRootAttribute(), imp); 1054 v8SetReturnValueFast(info, imp->shadowRootAttribute(), imp);
1055 } 1055 }
1056 1056
1057 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1057 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst 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::shadowRootAttributeAttributeGetter(info); 1060 TestObjectPythonV8Internal::shadowRootAttributeAttributeGetter(info);
1061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1062 } 1062 }
1063 1063
1064 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info) 1064 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info)
1065 { 1065 {
1066 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 1066 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1067 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::hasInstance(jsValue, in fo.GetIsolate(), worldType(info.GetIsolate())) ? V8ShadowRoot::toNative(v8::Hand le<v8::Object>::Cast(jsValue)) : 0); 1067 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::hasInstance(jsValue, in fo.GetIsolate()) ? V8ShadowRoot::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
1068 imp->setShadowRootAttribute(WTF::getPtr(cppValue)); 1068 imp->setShadowRootAttribute(WTF::getPtr(cppValue));
1069 } 1069 }
1070 1070
1071 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1071 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::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::shadowRootAttributeAttributeSetter(jsValue, info ); 1074 TestObjectPythonV8Internal::shadowRootAttributeAttributeSetter(jsValue, info );
1075 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1075 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1076 } 1076 }
1077 1077
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 static void nullableTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1384 static void nullableTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1385 { 1385 {
1386 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1386 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1387 TestObjectPythonV8Internal::nullableTestInterfaceAttributeAttributeGetter(in fo); 1387 TestObjectPythonV8Internal::nullableTestInterfaceAttributeAttributeGetter(in fo);
1388 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1388 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1389 } 1389 }
1390 1390
1391 static void nullableTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info) 1391 static void nullableTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info)
1392 { 1392 {
1393 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 1393 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1394 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative (v8::Handle<v8::Object>::Cast(jsValue)) : 0); 1394 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal ue, info.GetIsolate()) ? V8TestInterface::toNative(v8::Handle<v8::Object>::Cast( jsValue)) : 0);
1395 imp->setNullableTestInterfaceAttribute(WTF::getPtr(cppValue)); 1395 imp->setNullableTestInterfaceAttribute(WTF::getPtr(cppValue));
1396 } 1396 }
1397 1397
1398 static void nullableTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf o) 1398 static void nullableTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf o)
1399 { 1399 {
1400 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1400 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1401 TestObjectPythonV8Internal::nullableTestInterfaceAttributeAttributeSetter(js Value, info); 1401 TestObjectPythonV8Internal::nullableTestInterfaceAttributeAttributeSetter(js Value, info);
1402 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1402 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1403 } 1403 }
1404 1404
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
2069 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 2069 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
2070 { 2070 {
2071 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2071 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2072 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeGetter(info ); 2072 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeGetter(info );
2073 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2073 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2074 } 2074 }
2075 2075
2076 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info) 2076 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info)
2077 { 2077 {
2078 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 2078 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
2079 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac ePython::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfacePython::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); 2079 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac ePython::hasInstance(jsValue, info.GetIsolate()) ? V8TestInterfacePython::toNati ve(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
2080 imp->setTestInterfacePythonAttribute(WTF::getPtr(cppValue)); 2080 imp->setTestInterfacePythonAttribute(WTF::getPtr(cppValue));
2081 } 2081 }
2082 2082
2083 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2083 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2084 { 2084 {
2085 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2085 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2086 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeSetter(jsVa lue, info); 2086 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeSetter(jsVa lue, info);
2087 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2087 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2088 } 2088 }
2089 2089
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
2596 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 2596 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
2597 { 2597 {
2598 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2598 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2599 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeGetter(inf o); 2599 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeGetter(inf o);
2600 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2600 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2601 } 2601 }
2602 2602
2603 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info) 2603 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info)
2604 { 2604 {
2605 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 2605 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
2606 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative (v8::Handle<v8::Object>::Cast(jsValue)) : 0); 2606 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal ue, info.GetIsolate()) ? V8TestInterface::toNative(v8::Handle<v8::Object>::Cast( jsValue)) : 0);
2607 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 2607 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
2608 imp->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr( cppValue)); 2608 imp->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr( cppValue));
2609 } 2609 }
2610 2610
2611 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info ) 2611 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info )
2612 { 2612 {
2613 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2613 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2614 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 2614 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
2615 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeSetter(jsV alue, info); 2615 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeSetter(jsV alue, info);
2616 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2616 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2617 } 2617 }
2618 2618
2619 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 2619 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info)
2620 { 2620 {
2621 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 2621 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
2622 v8SetReturnValueFast(info, imp->fastGetAttribute(HTMLNames::reflectedNameAtt ributeAttr), imp); 2622 v8SetReturnValueFast(info, imp->fastGetAttribute(HTMLNames::reflectedNameAtt ributeAttr), imp);
2623 } 2623 }
2624 2624
2625 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2625 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2626 { 2626 {
2627 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2627 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2628 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib uteGetter(info); 2628 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib uteGetter(info);
2629 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2629 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2630 } 2630 }
2631 2631
2632 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2632 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2633 { 2633 {
2634 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 2634 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
2635 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative (v8::Handle<v8::Object>::Cast(jsValue)) : 0); 2635 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal ue, info.GetIsolate()) ? V8TestInterface::toNative(v8::Handle<v8::Object>::Cast( jsValue)) : 0);
2636 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 2636 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
2637 imp->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppValu e)); 2637 imp->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppValu e));
2638 } 2638 }
2639 2639
2640 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf o<void>& info) 2640 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf o<void>& info)
2641 { 2641 {
2642 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2642 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2643 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 2643 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
2644 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib uteSetter(jsValue, info); 2644 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib uteSetter(jsValue, info);
2645 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2645 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
3107 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3107 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3108 { 3108 {
3109 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3109 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3110 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut eGetter(info); 3110 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut eGetter(info);
3111 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3111 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3112 } 3112 }
3113 3113
3114 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3114 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3115 { 3115 {
3116 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec kingTestInterfaceAttribute", "TestObjectPython", info.Holder(), info.GetIsolate( )); 3116 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec kingTestInterfaceAttribute", "TestObjectPython", info.Holder(), info.GetIsolate( ));
3117 if (!isUndefinedOrNull(jsValue) && !V8TestInterface::hasInstance(jsValue, in fo.GetIsolate(), worldType(info.GetIsolate()))) { 3117 if (!isUndefinedOrNull(jsValue) && !V8TestInterface::hasInstance(jsValue, in fo.GetIsolate())) {
3118 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 3118 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
3119 exceptionState.throwIfNeeded(); 3119 exceptionState.throwIfNeeded();
3120 return; 3120 return;
3121 } 3121 }
3122 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 3122 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3123 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative (v8::Handle<v8::Object>::Cast(jsValue)) : 0); 3123 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal ue, info.GetIsolate()) ? V8TestInterface::toNative(v8::Handle<v8::Object>::Cast( jsValue)) : 0);
3124 imp->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue)); 3124 imp->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue));
3125 } 3125 }
3126 3126
3127 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info) 3127 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info)
3128 { 3128 {
3129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3130 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut eSetter(jsValue, info); 3130 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut eSetter(jsValue, info);
3131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3132 } 3132 }
3133 3133
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
3820 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3820 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3821 } 3821 }
3822 3822
3823 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 3823 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
3824 { 3824 {
3825 if (UNLIKELY(info.Length() < 1)) { 3825 if (UNLIKELY(info.Length() < 1)) {
3826 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L ength())), info.GetIsolate()); 3826 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L ength())), info.GetIsolate());
3827 return; 3827 return;
3828 } 3828 }
3829 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 3829 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3830 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8 TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); 3830 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v 8::Handle<v8::Object>::Cast(info[0])) : 0);
3831 imp->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 3831 imp->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
3832 } 3832 }
3833 3833
3834 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 3834 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
3835 { 3835 {
3836 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 3836 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
3837 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); 3837 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMethod(info);
3838 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3838 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3839 } 3839 }
3840 3840
3841 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 3841 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
3842 { 3842 {
3843 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate ()); 3843 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate ());
3844 if (UNLIKELY(info.Length() < 2)) { 3844 if (UNLIKELY(info.Length() < 2)) {
3845 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 3845 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
3846 exceptionState.throwIfNeeded(); 3846 exceptionState.throwIfNeeded();
3847 return; 3847 return;
3848 } 3848 }
3849 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 3849 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3850 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 3850 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
3851 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8 TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); 3851 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[1], info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v 8::Handle<v8::Object>::Cast(info[1])) : 0);
3852 imp->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg); 3852 imp->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg);
3853 } 3853 }
3854 3854
3855 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 3855 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
3856 { 3856 {
3857 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 3857 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
3858 TestObjectPythonV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(inf o); 3858 TestObjectPythonV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(inf o);
3859 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3859 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3860 } 3860 }
3861 3861
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
4001 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4001 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4002 } 4002 }
4003 4003
4004 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4004 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4005 { 4005 {
4006 if (UNLIKELY(info.Length() < 1)) { 4006 if (UNLIKELY(info.Length() < 1)) {
4007 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); 4007 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate());
4008 return; 4008 return;
4009 } 4009 }
4010 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 4010 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
4011 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::hasInstance(info[0], info.GetIsolate (), worldType(info.GetIsolate())) ? V8Attr::toNative(v8::Handle<v8::Object>::Cas t(info[0])) : 0); 4011 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::hasInstance(info[0], info.GetIsolate ()) ? V8Attr::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0);
4012 imp->voidMethodAttrArg(attrArg); 4012 imp->voidMethodAttrArg(attrArg);
4013 } 4013 }
4014 4014
4015 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4015 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4016 { 4016 {
4017 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4017 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4018 TestObjectPythonV8Internal::voidMethodAttrArgMethod(info); 4018 TestObjectPythonV8Internal::voidMethodAttrArgMethod(info);
4019 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4019 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4020 } 4020 }
4021 4021
4022 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 4022 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
4023 { 4023 {
4024 if (UNLIKELY(info.Length() < 1)) { 4024 if (UNLIKELY(info.Length() < 1)) {
4025 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg ", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); 4025 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg ", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
4026 return; 4026 return;
4027 } 4027 }
4028 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 4028 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
4029 V8TRYCATCH_VOID(Document*, documentArg, V8Document::hasInstance(info[0], inf o.GetIsolate(), worldType(info.GetIsolate())) ? V8Document::toNative(v8::Handle< v8::Object>::Cast(info[0])) : 0); 4029 V8TRYCATCH_VOID(Document*, documentArg, V8Document::hasInstance(info[0], inf o.GetIsolate()) ? V8Document::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0);
4030 imp->voidMethodDocumentArg(documentArg); 4030 imp->voidMethodDocumentArg(documentArg);
4031 } 4031 }
4032 4032
4033 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 4033 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
4034 { 4034 {
4035 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4035 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4036 TestObjectPythonV8Internal::voidMethodDocumentArgMethod(info); 4036 TestObjectPythonV8Internal::voidMethodDocumentArgMethod(info);
4037 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4037 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4038 } 4038 }
4039 4039
4040 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 4040 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
4041 { 4041 {
4042 if (UNLIKELY(info.Length() < 1)) { 4042 if (UNLIKELY(info.Length() < 1)) {
4043 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp eArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length( ))), info.GetIsolate()); 4043 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp eArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length( ))), info.GetIsolate());
4044 return; 4044 return;
4045 } 4045 }
4046 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 4046 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
4047 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::hasInstance( info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentType::toNa tive(v8::Handle<v8::Object>::Cast(info[0])) : 0); 4047 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::hasInstance( info[0], info.GetIsolate()) ? V8DocumentType::toNative(v8::Handle<v8::Object>::C ast(info[0])) : 0);
4048 imp->voidMethodDocumentTypeArg(documentTypeArg); 4048 imp->voidMethodDocumentTypeArg(documentTypeArg);
4049 } 4049 }
4050 4050
4051 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 4051 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
4052 { 4052 {
4053 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4053 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4054 TestObjectPythonV8Internal::voidMethodDocumentTypeArgMethod(info); 4054 TestObjectPythonV8Internal::voidMethodDocumentTypeArgMethod(info);
4055 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4055 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4056 } 4056 }
4057 4057
4058 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 4058 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
4059 { 4059 {
4060 if (UNLIKELY(info.Length() < 1)) { 4060 if (UNLIKELY(info.Length() < 1)) {
4061 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg" , "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); 4061 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg" , "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
4062 return; 4062 return;
4063 } 4063 }
4064 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 4064 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
4065 V8TRYCATCH_VOID(Element*, elementArg, V8Element::hasInstance(info[0], info.G etIsolate(), worldType(info.GetIsolate())) ? V8Element::toNative(v8::Handle<v8:: Object>::Cast(info[0])) : 0); 4065 V8TRYCATCH_VOID(Element*, elementArg, V8Element::hasInstance(info[0], info.G etIsolate()) ? V8Element::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0);
4066 imp->voidMethodElementArg(elementArg); 4066 imp->voidMethodElementArg(elementArg);
4067 } 4067 }
4068 4068
4069 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 4069 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
4070 { 4070 {
4071 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4071 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4072 TestObjectPythonV8Internal::voidMethodElementArgMethod(info); 4072 TestObjectPythonV8Internal::voidMethodElementArgMethod(info);
4073 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4073 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4074 } 4074 }
4075 4075
4076 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4076 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4077 { 4077 {
4078 if (UNLIKELY(info.Length() < 1)) { 4078 if (UNLIKELY(info.Length() < 1)) {
4079 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); 4079 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate());
4080 return; 4080 return;
4081 } 4081 }
4082 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 4082 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
4083 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::hasInstance(info[0], info.GetIsolate (), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cas t(info[0])) : 0); 4083 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::hasInstance(info[0], info.GetIsolate ()) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0);
4084 imp->voidMethodNodeArg(nodeArg); 4084 imp->voidMethodNodeArg(nodeArg);
4085 } 4085 }
4086 4086
4087 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4087 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4088 { 4088 {
4089 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4089 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4090 TestObjectPythonV8Internal::voidMethodNodeArgMethod(info); 4090 TestObjectPythonV8Internal::voidMethodNodeArgMethod(info);
4091 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4091 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4092 } 4092 }
4093 4093
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
4432 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4432 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4433 } 4433 }
4434 4434
4435 static void voidMethodNullableStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 4435 static void voidMethodNullableStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
4436 { 4436 {
4437 if (UNLIKELY(info.Length() < 1)) { 4437 if (UNLIKELY(info.Length() < 1)) {
4438 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNullableStr ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt h())), info.GetIsolate()); 4438 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNullableStr ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt h())), info.GetIsolate());
4439 return; 4439 return;
4440 } 4440 }
4441 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 4441 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
4442 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate( ))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0) ; 4442 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn terfaceEmpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceEmpty::to Native(v8::Handle<v8::Object>::Cast(info[0])) : 0);
4443 imp->voidMethodNullableStringArg(nullableTestInterfaceEmptyArg); 4443 imp->voidMethodNullableStringArg(nullableTestInterfaceEmptyArg);
4444 } 4444 }
4445 4445
4446 static void voidMethodNullableStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 4446 static void voidMethodNullableStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
4447 { 4447 {
4448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4449 TestObjectPythonV8Internal::voidMethodNullableStringArgMethod(info); 4449 TestObjectPythonV8Internal::voidMethodNullableStringArgMethod(info);
4450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4451 } 4451 }
4452 4452
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
4775 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4775 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4776 } 4776 }
4777 4777
4778 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 4778 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
4779 { 4779 {
4780 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 4780 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
4781 if (UNLIKELY(info.Length() <= 0)) { 4781 if (UNLIKELY(info.Length() <= 0)) {
4782 imp->voidMethodOptionalTestInterfaceEmptyArg(); 4782 imp->voidMethodOptionalTestInterfaceEmptyArg();
4783 return; 4783 return;
4784 } 4784 }
4785 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate( ))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0) ; 4785 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn terfaceEmpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceEmpty::to Native(v8::Handle<v8::Object>::Cast(info[0])) : 0);
4786 imp->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg); 4786 imp->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg);
4787 } 4787 }
4788 4788
4789 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 4789 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
4790 { 4790 {
4791 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4791 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4792 TestObjectPythonV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(in fo); 4792 TestObjectPythonV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(in fo);
4793 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4793 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4794 } 4794 }
4795 4795
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 4935 TestObjectPython* imp = V8TestObjectPython::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 if (UNLIKELY(info.Length() <= 1)) { 4937 if (UNLIKELY(info.Length() <= 1)) {
4938 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); 4938 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg);
4939 return; 4939 return;
4940 } 4940 }
4941 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); 4941 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::hasInstance(info[1], info.GetIsolate()) ? V8TestInterfaceEmpty::toNat ive(v8::Handle<v8::Object>::Cast(info[1])) : 0);
4942 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestInt erfaceEmpty); 4942 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestInt erfaceEmpty);
4943 } 4943 }
4944 4944
4945 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 4945 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
4946 { 4946 {
4947 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4947 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4948 TestObjectPythonV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMe thod(info); 4948 TestObjectPythonV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMe thod(info);
4949 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4949 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4950 } 4950 }
4951 4951
4952 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 4952 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
4953 { 4953 {
4954 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObjectPython", info.Holder(), info.Ge tIsolate()); 4954 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObjectPython", info.Holder(), info.Ge tIsolate());
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 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 4960 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
4961 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); 4961 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceEmpty::toNat ive(v8::Handle<v8::Object>::Cast(info[0])) : 0);
4962 if (UNLIKELY(info.Length() <= 1)) { 4962 if (UNLIKELY(info.Length() <= 1)) {
4963 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfac eEmpty); 4963 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfac eEmpty);
4964 return; 4964 return;
4965 } 4965 }
4966 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex ceptionState); 4966 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex ceptionState);
4967 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmp ty, longArg); 4967 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmp ty, longArg);
4968 } 4968 }
4969 4969
4970 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 4970 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
4971 { 4971 {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
5023 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5023 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5024 TestObjectPythonV8Internal::voidMethodStringArgVariadicStringArgMethod(info) ; 5024 TestObjectPythonV8Internal::voidMethodStringArgVariadicStringArgMethod(info) ;
5025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5026 } 5026 }
5027 5027
5028 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 5028 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
5029 { 5029 {
5030 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 5030 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
5031 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; 5031 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs;
5032 for (int i = 0; i < info.Length(); ++i) { 5032 for (int i = 0; i < info.Length(); ++i) {
5033 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate(), world Type(info.GetIsolate()))) { 5033 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
5034 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi cTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type 'TestIn terfaceEmpty'."), info.GetIsolate()); 5034 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi cTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type 'TestIn terfaceEmpty'."), info.GetIsolate());
5035 return; 5035 return;
5036 } 5036 }
5037 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8: :Handle<v8::Object>::Cast(info[i]))); 5037 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8: :Handle<v8::Object>::Cast(info[i])));
5038 } 5038 }
5039 imp->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs) ; 5039 imp->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs) ;
5040 } 5040 }
5041 5041
5042 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 5042 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
5043 { 5043 {
5044 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5044 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5045 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(in fo); 5045 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(in fo);
5046 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5046 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5047 } 5047 }
5048 5048
5049 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info) 5049 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info)
5050 { 5050 {
5051 if (UNLIKELY(info.Length() < 1)) { 5051 if (UNLIKELY(info.Length() < 1)) {
5052 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages: :notEnoughArguments(1, info.Length())), info.GetIsolate()); 5052 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages: :notEnoughArguments(1, info.Length())), info.GetIsolate());
5053 return; 5053 return;
5054 } 5054 }
5055 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 5055 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
5056 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8 TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); 5056 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v 8::Handle<v8::Object>::Cast(info[0])) : 0);
5057 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; 5057 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs;
5058 for (int i = 1; i < info.Length(); ++i) { 5058 for (int i = 1; i < info.Length(); ++i) {
5059 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate(), world Type(info.GetIsolate()))) { 5059 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
5060 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", "parameter 2 i s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 5060 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", "parameter 2 i s not of type 'TestInterfaceEmpty'."), info.GetIsolate());
5061 return; 5061 return;
5062 } 5062 }
5063 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8: :Handle<v8::Object>::Cast(info[i]))); 5063 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8: :Handle<v8::Object>::Cast(info[i])));
5064 } 5064 }
5065 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf aceEmptyArg, variadicTestInterfaceEmptyArgs); 5065 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf aceEmptyArg, variadicTestInterfaceEmptyArgs);
5066 } 5066 }
5067 5067
5068 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) 5068 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info)
5069 { 5069 {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
5251 imp->overloadedMethodD(longArg); 5251 imp->overloadedMethodD(longArg);
5252 } 5252 }
5253 5253
5254 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 5254 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
5255 { 5255 {
5256 if (UNLIKELY(info.Length() < 1)) { 5256 if (UNLIKELY(info.Length() < 1)) {
5257 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); 5257 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate());
5258 return; 5258 return;
5259 } 5259 }
5260 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 5260 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
5261 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8 TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); 5261 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v 8::Handle<v8::Object>::Cast(info[0])) : 0);
5262 imp->overloadedMethodD(testInterfaceEmptyArg); 5262 imp->overloadedMethodD(testInterfaceEmptyArg);
5263 } 5263 }
5264 5264
5265 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5265 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5266 { 5266 {
5267 if (((info.Length() == 1))) { 5267 if (((info.Length() == 1))) {
5268 overloadedMethodD1Method(info); 5268 overloadedMethodD1Method(info);
5269 return; 5269 return;
5270 } 5270 }
5271 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate(), worldType(info.GetIsolate()))))) { 5271 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())))) {
5272 overloadedMethodD2Method(info); 5272 overloadedMethodD2Method(info);
5273 return; 5273 return;
5274 } 5274 }
5275 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObjectPython", info.Holder(), info.GetIsolate()); 5275 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObjectPython", info.Holder(), info.GetIsolate());
5276 if (UNLIKELY(info.Length() < 1)) { 5276 if (UNLIKELY(info.Length() < 1)) {
5277 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 5277 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
5278 exceptionState.throwIfNeeded(); 5278 exceptionState.throwIfNeeded();
5279 return; 5279 return;
5280 } 5280 }
5281 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 5281 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
5353 imp->overloadedMethodF(longArg); 5353 imp->overloadedMethodF(longArg);
5354 } 5354 }
5355 5355
5356 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 5356 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
5357 { 5357 {
5358 if (UNLIKELY(info.Length() < 1)) { 5358 if (UNLIKELY(info.Length() < 1)) {
5359 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); 5359 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate());
5360 return; 5360 return;
5361 } 5361 }
5362 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 5362 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
5363 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate( ))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0) ; 5363 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn terfaceEmpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceEmpty::to Native(v8::Handle<v8::Object>::Cast(info[0])) : 0);
5364 imp->overloadedMethodF(testInterfaceEmptyNullableArg); 5364 imp->overloadedMethodF(testInterfaceEmptyNullableArg);
5365 } 5365 }
5366 5366
5367 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5367 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5368 { 5368 {
5369 if (((info.Length() == 1))) { 5369 if (((info.Length() == 1))) {
5370 overloadedMethodF1Method(info); 5370 overloadedMethodF1Method(info);
5371 return; 5371 return;
5372 } 5372 }
5373 if (((info.Length() == 1) && (info[0]->IsNull() || V8TestInterfaceEmpty::has Instance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))))) { 5373 if (((info.Length() == 1) && (info[0]->IsNull() || V8TestInterfaceEmpty::has Instance(info[0], info.GetIsolate())))) {
5374 overloadedMethodF2Method(info); 5374 overloadedMethodF2Method(info);
5375 return; 5375 return;
5376 } 5376 }
5377 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObjectPython", info.Holder(), info.GetIsolate()); 5377 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObjectPython", info.Holder(), info.GetIsolate());
5378 if (UNLIKELY(info.Length() < 1)) { 5378 if (UNLIKELY(info.Length() < 1)) {
5379 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 5379 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
5380 exceptionState.throwIfNeeded(); 5380 exceptionState.throwIfNeeded();
5381 return; 5381 return;
5382 } 5382 }
5383 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 5383 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
5697 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 5697 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
5698 { 5698 {
5699 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5699 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5700 TestObjectPythonV8Internal::voidMethodClampUnsignedLongArgMethod(info); 5700 TestObjectPythonV8Internal::voidMethodClampUnsignedLongArgMethod(info);
5701 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5701 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5702 } 5702 }
5703 5703
5704 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 5704 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
5705 { 5705 {
5706 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 5706 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
5707 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg, V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.Get Isolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0 ])) : 0); 5707 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg, V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceE mpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0);
5708 imp->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInt erfaceEmptyArg); 5708 imp->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInt erfaceEmptyArg);
5709 } 5709 }
5710 5710
5711 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 5711 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
5712 { 5712 {
5713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5714 TestObjectPythonV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgM ethod(info); 5714 TestObjectPythonV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgM ethod(info);
5715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5716 } 5716 }
5717 5717
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
6278 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6278 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6279 } 6279 }
6280 6280
6281 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 6281 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
6282 { 6282 {
6283 if (UNLIKELY(info.Length() < 1)) { 6283 if (UNLIKELY(info.Length() < 1)) {
6284 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg uments(1, info.Length())), info.GetIsolate()); 6284 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg uments(1, info.Length())), info.GetIsolate());
6285 return; 6285 return;
6286 } 6286 }
6287 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 6287 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
6288 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8 TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); 6288 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v 8::Handle<v8::Object>::Cast(info[0])) : 0);
6289 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 6289 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
6290 } 6290 }
6291 6291
6292 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6292 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6293 { 6293 {
6294 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6294 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6295 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM ethod(info); 6295 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM ethod(info);
6296 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6296 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6297 } 6297 }
6298 6298
6299 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info) 6299 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info)
6300 { 6300 {
6301 if (UNLIKELY(info.Length() < 1)) { 6301 if (UNLIKELY(info.Length() < 1)) {
6302 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg uments(1, info.Length())), info.GetIsolate()); 6302 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg uments(1, info.Length())), info.GetIsolate());
6303 return; 6303 return;
6304 } 6304 }
6305 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 6305 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
6306 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8 TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); 6306 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v 8::Handle<v8::Object>::Cast(info[0])) : 0);
6307 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 6307 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
6308 } 6308 }
6309 6309
6310 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info) 6310 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info)
6311 { 6311 {
6312 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6312 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6313 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM ethodForMainWorld(info); 6313 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM ethodForMainWorld(info);
6314 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6314 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6315 } 6315 }
6316 6316
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
6504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6505 } 6505 }
6506 6506
6507 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info) 6507 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info)
6508 { 6508 {
6509 if (UNLIKELY(info.Length() < 1)) { 6509 if (UNLIKELY(info.Length() < 1)) {
6510 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughA rguments(1, info.Length())), info.GetIsolate()); 6510 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughA rguments(1, info.Length())), info.GetIsolate());
6511 return; 6511 return;
6512 } 6512 }
6513 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 6513 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
6514 if (info.Length() > 0 && !info[0]->IsUndefined() && !V8TestInterfaceEmpty::h asInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))) { 6514 if (info.Length() > 0 && !info[0]->IsUndefined() && !V8TestInterfaceEmpty::h asInstance(info[0], info.GetIsolate())) {
6515 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type ' TestInterfaceEmpty'."), info.GetIsolate()); 6515 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type ' TestInterfaceEmpty'."), info.GetIsolate());
6516 return; 6516 return;
6517 } 6517 }
6518 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8 TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); 6518 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v 8::Handle<v8::Object>::Cast(info[0])) : 0);
6519 imp->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg ); 6519 imp->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg );
6520 } 6520 }
6521 6521
6522 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info) 6522 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info)
6523 { 6523 {
6524 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6524 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6525 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyAr gMethod(info); 6525 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyAr gMethod(info);
6526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6527 } 6527 }
6528 6528
6529 static void strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info) 6529 static void strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info)
6530 { 6530 {
6531 if (UNLIKELY(info.Length() < 1)) { 6531 if (UNLIKELY(info.Length() < 1)) {
6532 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodNullableTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::no tEnoughArguments(1, info.Length())), info.GetIsolate()); 6532 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodNullableTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::no tEnoughArguments(1, info.Length())), info.GetIsolate());
6533 return; 6533 return;
6534 } 6534 }
6535 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 6535 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
6536 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt y::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))) { 6536 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt y::hasInstance(info[0], info.GetIsolate())) {
6537 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodNullableTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not o f type 'TestInterfaceEmpty'."), info.GetIsolate()); 6537 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodNullableTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not o f type 'TestInterfaceEmpty'."), info.GetIsolate());
6538 return; 6538 return;
6539 } 6539 }
6540 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8 TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); 6540 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v 8::Handle<v8::Object>::Cast(info[0])) : 0);
6541 imp->strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArg(testInterface EmptyArg); 6541 imp->strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArg(testInterface EmptyArg);
6542 } 6542 }
6543 6543
6544 static void strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 6544 static void strictTypeCheckingVoidMethodNullableTestInterfaceEmptyArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
6545 { 6545 {
6546 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6546 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6547 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodNullableTestInterfac eEmptyArgMethod(info); 6547 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodNullableTestInterfac eEmptyArgMethod(info);
6548 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6548 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6549 } 6549 }
6550 6550
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
6975 return result->value.newLocal(isolate); 6975 return result->value.newLocal(isolate);
6976 6976
6977 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); 6977 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate");
6978 v8::EscapableHandleScope handleScope(isolate); 6978 v8::EscapableHandleScope handleScope(isolate);
6979 v8::Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(isolate, V 8ObjectConstructor::isValidConstructorMode); 6979 v8::Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(isolate, V 8ObjectConstructor::isValidConstructorMode);
6980 configureV8TestObjectPythonTemplate(templ, isolate, currentWorldType); 6980 configureV8TestObjectPythonTemplate(templ, isolate, currentWorldType);
6981 data->templateMap(currentWorldType).add(&wrapperTypeInfo, UnsafePersistent<v 8::FunctionTemplate>(isolate, templ)); 6981 data->templateMap(currentWorldType).add(&wrapperTypeInfo, UnsafePersistent<v 8::FunctionTemplate>(isolate, templ));
6982 return handleScope.Escape(templ); 6982 return handleScope.Escape(templ);
6983 } 6983 }
6984 6984
6985 bool V8TestObjectPython::hasInstance(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate, WrapperWorldType currentWorldType) 6985 bool V8TestObjectPython::hasInstance(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate)
6986 { 6986 {
6987 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu e, currentWorldType); 6987 return V8PerIsolateData::from(isolate)->hasInstanceInMainWorld(&wrapperTypeI nfo, jsValue)
6988 } 6988 || V8PerIsolateData::from(isolate)->hasInstanceInNonMainWorld(&wrapperTy peInfo, jsValue);
6989
6990 bool V8TestObjectPython::hasInstanceInAnyWorld(v8::Handle<v8::Value> jsValue, v8 ::Isolate* isolate)
6991 {
6992 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu e, MainWorld)
6993 || V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu e, IsolatedWorld)
6994 || V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu e, WorkerWorld);
6995 } 6989 }
6996 6990
6997 void V8TestObjectPython::installPerContextEnabledProperties(v8::Handle<v8::Objec t> instanceTemplate, TestObjectPython* impl, v8::Isolate* isolate) 6991 void V8TestObjectPython::installPerContextEnabledProperties(v8::Handle<v8::Objec t> instanceTemplate, TestObjectPython* impl, v8::Isolate* isolate)
6998 { 6992 {
6999 v8::Local<v8::Object> prototypeTemplate = v8::Local<v8::Object>::Cast(instan ceTemplate->GetPrototype()); 6993 v8::Local<v8::Object> prototypeTemplate = v8::Local<v8::Object>::Cast(instan ceTemplate->GetPrototype());
7000 if (ContextFeatures::featureNameEnabled(impl->document())) { 6994 if (ContextFeatures::featureNameEnabled(impl->document())) {
7001 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 6995 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
7002 {"perContextEnabledLongAttribute", TestObjectPythonV8Internal::perContex tEnabledLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::perCon textEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins tance */}; 6996 {"perContextEnabledLongAttribute", TestObjectPythonV8Internal::perContex tEnabledLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::perCon textEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins tance */};
7003 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate); 6997 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate);
7004 } 6998 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
7038 fromInternalPointer(object)->deref(); 7032 fromInternalPointer(object)->deref();
7039 } 7033 }
7040 7034
7041 template<> 7035 template<>
7042 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) 7036 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate)
7043 { 7037 {
7044 return toV8(impl, creationContext, isolate); 7038 return toV8(impl, creationContext, isolate);
7045 } 7039 }
7046 7040
7047 } // namespace WebCore 7041 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestObjectPython.h ('k') | Source/bindings/tests/results/V8TestSVG.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698