Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1546 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void >& info) | 1546 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void >& info) |
| 1547 { | 1547 { |
| 1548 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1548 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1549 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeSet ter(jsValue, info); | 1549 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeSet ter(jsValue, info); |
| 1550 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1550 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1551 } | 1551 } |
| 1552 | 1552 |
| 1553 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) | 1553 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) |
| 1554 { | 1554 { |
| 1555 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1555 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1556 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | 1556 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF orNodeReadonlyDocumentAttribute", "TestObjectPython" ,info.Holder(), info.GetIso late()); |
| 1557 if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeReado nlyDocumentAttribute(), exceptionState)) { | 1557 if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeReado nlyDocumentAttribute(), exceptionState)) { |
| 1558 v8SetReturnValueNull(info); | 1558 v8SetReturnValueNull(info); |
| 1559 exceptionState.throwIfNeeded(); | 1559 exceptionState.throwIfNeeded(); |
| 1560 return; | 1560 return; |
| 1561 } | 1561 } |
| 1562 v8SetReturnValueFast(info, imp->checkSecurityForNodeReadonlyDocumentAttribut e(), imp); | 1562 v8SetReturnValueFast(info, imp->checkSecurityForNodeReadonlyDocumentAttribut e(), imp); |
| 1563 } | 1563 } |
| 1564 | 1564 |
| 1565 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1565 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1566 { | 1566 { |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1847 { | 1847 { |
| 1848 v8::Local<v8::Value> jsValue = info[0]; | 1848 v8::Local<v8::Value> jsValue = info[0]; |
| 1849 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1849 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1850 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(js Value, info); | 1850 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(js Value, info); |
| 1851 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1851 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1852 } | 1852 } |
| 1853 | 1853 |
| 1854 static void getterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) | 1854 static void getterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) |
| 1855 { | 1855 { |
| 1856 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1856 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1857 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | 1857 ExceptionState exceptionState(ExceptionState::GetterContext, "getterRaisesEx ceptionLongAttribute", "TestObjectPython" ,info.Holder(), info.GetIsolate()); |
| 1858 int jsValue = imp->getterRaisesExceptionLongAttribute(exceptionState); | 1858 int jsValue = imp->getterRaisesExceptionLongAttribute(exceptionState); |
| 1859 if (UNLIKELY(exceptionState.throwIfNeeded())) | 1859 if (UNLIKELY(exceptionState.throwIfNeeded())) |
| 1860 return; | 1860 return; |
| 1861 v8SetReturnValueInt(info, jsValue); | 1861 v8SetReturnValueInt(info, jsValue); |
| 1862 } | 1862 } |
| 1863 | 1863 |
| 1864 static void getterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1864 static void getterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1865 { | 1865 { |
| 1866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1867 TestObjectPythonV8Internal::getterRaisesExceptionLongAttributeAttributeGette r(info); | 1867 TestObjectPythonV8Internal::getterRaisesExceptionLongAttributeAttributeGette r(info); |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2372 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info) | 2372 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info) |
| 2373 { | 2373 { |
| 2374 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2374 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2375 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); | 2375 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); |
| 2376 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2376 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2377 } | 2377 } |
| 2378 | 2378 |
| 2379 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) | 2379 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) |
| 2380 { | 2380 { |
| 2381 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2381 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2382 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | 2382 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nLongAttribute", "TestObjectPython" ,info.Holder(), info.GetIsolate()); |
| 2383 int jsValue = imp->raisesExceptionLongAttribute(exceptionState); | 2383 int jsValue = imp->raisesExceptionLongAttribute(exceptionState); |
| 2384 if (UNLIKELY(exceptionState.throwIfNeeded())) | 2384 if (UNLIKELY(exceptionState.throwIfNeeded())) |
| 2385 return; | 2385 return; |
| 2386 v8SetReturnValueInt(info, jsValue); | 2386 v8SetReturnValueInt(info, jsValue); |
| 2387 } | 2387 } |
| 2388 | 2388 |
| 2389 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2389 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2390 { | 2390 { |
| 2391 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2391 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2392 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeGetter(info ); | 2392 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeGetter(info ); |
| 2393 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2393 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2394 } | 2394 } |
| 2395 | 2395 |
| 2396 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info) | 2396 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info) |
| 2397 { | 2397 { |
| 2398 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 2398 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2399 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2399 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2400 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2400 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 2401 imp->setRaisesExceptionLongAttribute(cppValue, exceptionState); | 2401 imp->setRaisesExceptionLongAttribute(cppValue, exceptionState); |
| 2402 exceptionState.throwIfNeeded(); | 2402 exceptionState.throwIfNeeded(); |
| 2403 } | 2403 } |
| 2404 | 2404 |
| 2405 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2405 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2406 { | 2406 { |
| 2407 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2407 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2408 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeSetter(jsVa lue, info); | 2408 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeSetter(jsVa lue, info); |
| 2409 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2409 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2410 } | 2410 } |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2867 | 2867 |
| 2868 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2868 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2869 { | 2869 { |
| 2870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2871 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette r(info); | 2871 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette r(info); |
| 2872 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2872 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2873 } | 2873 } |
| 2874 | 2874 |
| 2875 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2875 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2876 { | 2876 { |
| 2877 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 2877 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2878 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2878 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); | 2879 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); |
| 2879 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 2880 imp->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); | 2880 imp->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); |
| 2881 exceptionState.throwIfNeeded(); | 2881 exceptionState.throwIfNeeded(); |
| 2882 } | 2882 } |
| 2883 | 2883 |
| 2884 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2884 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2885 { | 2885 { |
| 2886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2887 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeSette r(jsValue, info); | 2887 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeSette r(jsValue, info); |
| 2888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2889 } | 2889 } |
| 2890 | 2890 |
| 2891 static void strictTypeCheckingFloatAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) | 2891 static void strictTypeCheckingFloatAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) |
| 2892 { | 2892 { |
| 2893 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2893 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2894 v8SetReturnValue(info, imp->strictTypeCheckingFloatAttribute()); | 2894 v8SetReturnValue(info, imp->strictTypeCheckingFloatAttribute()); |
| 2895 } | 2895 } |
| 2896 | 2896 |
| 2897 static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2897 static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2898 { | 2898 { |
| 2899 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2899 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2900 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeGetter( info); | 2900 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeGetter( info); |
| 2901 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2901 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2902 } | 2902 } |
| 2903 | 2903 |
| 2904 static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2904 static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2905 { | 2905 { |
| 2906 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec kingFloatAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 2906 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2907 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2907 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue())) ; | 2908 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue())) ; |
| 2908 imp->setStrictTypeCheckingFloatAttribute(cppValue); | 2909 imp->setStrictTypeCheckingFloatAttribute(cppValue); |
| 2909 } | 2910 } |
| 2910 | 2911 |
| 2911 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo) | 2912 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo) |
| 2912 { | 2913 { |
| 2913 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2914 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 2914 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeSetter( jsValue, info); | 2915 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeSetter( jsValue, info); |
| 2915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2916 } | 2917 } |
| 2917 | 2918 |
| 2918 static void strictTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info) | 2919 static void strictTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info) |
| 2919 { | 2920 { |
| 2920 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2921 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2921 v8SetReturnValueFast(info, imp->strictTypeCheckingTestInterfaceAttribute(), imp); | 2922 v8SetReturnValueFast(info, imp->strictTypeCheckingTestInterfaceAttribute(), imp); |
| 2922 } | 2923 } |
| 2923 | 2924 |
| 2924 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2925 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 2925 { | 2926 { |
| 2926 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2927 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 2927 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut eGetter(info); | 2928 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut eGetter(info); |
| 2928 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 2929 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 2929 } | 2930 } |
| 2930 | 2931 |
| 2931 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2932 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 2932 { | 2933 { |
| 2934 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec kingTestInterfaceAttribute", "TestObjectPython", info.Holder(), info.GetIsolate( )); | |
| 2933 if (!isUndefinedOrNull(jsValue) && !V8TestInterface::hasInstance(jsValue, in fo.GetIsolate(), worldType(info.GetIsolate()))) { | 2935 if (!isUndefinedOrNull(jsValue) && !V8TestInterface::hasInstance(jsValue, in fo.GetIsolate(), worldType(info.GetIsolate()))) { |
| 2934 throwTypeError(ExceptionMessages::failedToSet("strictTypeCheckingTestInt erfaceAttribute", "TestObjectPython", "The provided value is not of type 'TestIn terface'."), info.GetIsolate()); | 2936 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); |
| 2937 exceptionState.throwIfNeeded(); | |
| 2935 return; | 2938 return; |
| 2936 } | 2939 } |
| 2937 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2940 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 2938 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative (v8::Handle<v8::Object>::Cast(jsValue)) : 0); | 2941 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::hasInstance(jsVal ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterface::toNative (v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
| 2939 imp->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue)); | 2942 imp->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue)); |
| 2940 } | 2943 } |
| 2941 | 2944 |
| 2942 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info) | 2945 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info) |
| 2943 { | 2946 { |
| 2944 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2947 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3130 info.This()->ForceSet(name, jsValue); | 3133 info.This()->ForceSet(name, jsValue); |
| 3131 } | 3134 } |
| 3132 | 3135 |
| 3133 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo) | 3136 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo) |
| 3134 { | 3137 { |
| 3135 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name, jsValue, info); | 3138 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name, jsValue, info); |
| 3136 } | 3139 } |
| 3137 | 3140 |
| 3138 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3141 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3139 { | 3142 { |
| 3143 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethod" , "TestObjectPython", info.Holder(), info.GetIsolate()); | |
|
sof
2013/12/04 10:48:38
Is this still expected? (File not regenerated sinc
| |
| 3140 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3144 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3141 imp->voidMethod(); | 3145 imp->voidMethod(); |
| 3142 } | 3146 } |
| 3143 | 3147 |
| 3144 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 3148 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3145 { | 3149 { |
| 3146 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3150 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3147 TestObjectPythonV8Internal::voidMethodMethod(info); | 3151 TestObjectPythonV8Internal::voidMethodMethod(info); |
| 3148 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3149 } | 3153 } |
| 3150 | 3154 |
| 3151 static void staticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) | 3155 static void staticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) |
| 3152 { | 3156 { |
| 3157 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticVoidM ethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3153 TestObjectPython::staticVoidMethod(); | 3158 TestObjectPython::staticVoidMethod(); |
| 3154 } | 3159 } |
| 3155 | 3160 |
| 3156 static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) | 3161 static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) |
| 3157 { | 3162 { |
| 3158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3163 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3159 TestObjectPythonV8Internal::staticVoidMethodMethod(info); | 3164 TestObjectPythonV8Internal::staticVoidMethodMethod(info); |
| 3160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3165 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3161 } | 3166 } |
| 3162 | 3167 |
| 3163 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3168 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3164 { | 3169 { |
| 3170 ExceptionState exceptionState(ExceptionState::ExecutionContext, "dateMethod" , "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3165 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3171 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3166 v8SetReturnValue(info, v8DateOrNull(imp->dateMethod(), info.GetIsolate())); | 3172 v8SetReturnValue(info, v8DateOrNull(imp->dateMethod(), info.GetIsolate())); |
| 3167 } | 3173 } |
| 3168 | 3174 |
| 3169 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 3175 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3170 { | 3176 { |
| 3171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3177 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3172 TestObjectPythonV8Internal::dateMethodMethod(info); | 3178 TestObjectPythonV8Internal::dateMethodMethod(info); |
| 3173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3179 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3174 } | 3180 } |
| 3175 | 3181 |
| 3176 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3182 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3177 { | 3183 { |
| 3184 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho d", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3178 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3185 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3179 v8SetReturnValueString(info, imp->stringMethod(), info.GetIsolate()); | 3186 v8SetReturnValueString(info, imp->stringMethod(), info.GetIsolate()); |
| 3180 } | 3187 } |
| 3181 | 3188 |
| 3182 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info) | 3189 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info) |
| 3183 { | 3190 { |
| 3184 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3191 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3185 TestObjectPythonV8Internal::stringMethodMethod(info); | 3192 TestObjectPythonV8Internal::stringMethodMethod(info); |
| 3186 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3193 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3187 } | 3194 } |
| 3188 | 3195 |
| 3189 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) | 3196 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) |
| 3190 { | 3197 { |
| 3198 ExceptionState exceptionState(ExceptionState::ExecutionContext, "readonlyDOM TimeStampMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3191 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3199 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3192 v8SetReturnValue(info, static_cast<double>(imp->readonlyDOMTimeStampMethod() )); | 3200 v8SetReturnValue(info, static_cast<double>(imp->readonlyDOMTimeStampMethod() )); |
| 3193 } | 3201 } |
| 3194 | 3202 |
| 3195 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) | 3203 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) |
| 3196 { | 3204 { |
| 3197 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3205 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3198 TestObjectPythonV8Internal::readonlyDOMTimeStampMethodMethod(info); | 3206 TestObjectPythonV8Internal::readonlyDOMTimeStampMethodMethod(info); |
| 3199 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3207 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3200 } | 3208 } |
| 3201 | 3209 |
| 3202 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3210 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3203 { | 3211 { |
| 3212 ExceptionState exceptionState(ExceptionState::ExecutionContext, "booleanMeth od", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3204 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3213 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3205 v8SetReturnValueBool(info, imp->booleanMethod()); | 3214 v8SetReturnValueBool(info, imp->booleanMethod()); |
| 3206 } | 3215 } |
| 3207 | 3216 |
| 3208 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info) | 3217 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info) |
| 3209 { | 3218 { |
| 3210 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3219 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3211 TestObjectPythonV8Internal::booleanMethodMethod(info); | 3220 TestObjectPythonV8Internal::booleanMethodMethod(info); |
| 3212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3221 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3213 } | 3222 } |
| 3214 | 3223 |
| 3215 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3224 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3216 { | 3225 { |
| 3226 ExceptionState exceptionState(ExceptionState::ExecutionContext, "byteMethod" , "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3217 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3227 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3218 v8SetReturnValueInt(info, imp->byteMethod()); | 3228 v8SetReturnValueInt(info, imp->byteMethod()); |
| 3219 } | 3229 } |
| 3220 | 3230 |
| 3221 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 3231 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3222 { | 3232 { |
| 3223 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3233 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3224 TestObjectPythonV8Internal::byteMethodMethod(info); | 3234 TestObjectPythonV8Internal::byteMethodMethod(info); |
| 3225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3235 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3226 } | 3236 } |
| 3227 | 3237 |
| 3228 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3238 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3229 { | 3239 { |
| 3240 ExceptionState exceptionState(ExceptionState::ExecutionContext, "doubleMetho d", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3230 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3241 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3231 v8SetReturnValue(info, imp->doubleMethod()); | 3242 v8SetReturnValue(info, imp->doubleMethod()); |
| 3232 } | 3243 } |
| 3233 | 3244 |
| 3234 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info) | 3245 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info) |
| 3235 { | 3246 { |
| 3236 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3237 TestObjectPythonV8Internal::doubleMethodMethod(info); | 3248 TestObjectPythonV8Internal::doubleMethodMethod(info); |
| 3238 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3239 } | 3250 } |
| 3240 | 3251 |
| 3241 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3252 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3242 { | 3253 { |
| 3254 ExceptionState exceptionState(ExceptionState::ExecutionContext, "floatMethod ", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3243 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3255 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3244 v8SetReturnValue(info, imp->floatMethod()); | 3256 v8SetReturnValue(info, imp->floatMethod()); |
| 3245 } | 3257 } |
| 3246 | 3258 |
| 3247 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 3259 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3248 { | 3260 { |
| 3249 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3250 TestObjectPythonV8Internal::floatMethodMethod(info); | 3262 TestObjectPythonV8Internal::floatMethodMethod(info); |
| 3251 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3263 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3252 } | 3264 } |
| 3253 | 3265 |
| 3254 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3266 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3255 { | 3267 { |
| 3268 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethod" , "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3256 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3269 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3257 v8SetReturnValueInt(info, imp->longMethod()); | 3270 v8SetReturnValueInt(info, imp->longMethod()); |
| 3258 } | 3271 } |
| 3259 | 3272 |
| 3260 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 3273 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3261 { | 3274 { |
| 3262 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3263 TestObjectPythonV8Internal::longMethodMethod(info); | 3276 TestObjectPythonV8Internal::longMethodMethod(info); |
| 3264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3265 } | 3278 } |
| 3266 | 3279 |
| 3267 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info ) | 3280 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info ) |
| 3268 { | 3281 { |
| 3282 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longLongMet hod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3269 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3283 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3270 v8SetReturnValue(info, static_cast<double>(imp->longLongMethod())); | 3284 v8SetReturnValue(info, static_cast<double>(imp->longLongMethod())); |
| 3271 } | 3285 } |
| 3272 | 3286 |
| 3273 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) | 3287 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) |
| 3274 { | 3288 { |
| 3275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3289 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3276 TestObjectPythonV8Internal::longLongMethodMethod(info); | 3290 TestObjectPythonV8Internal::longLongMethodMethod(info); |
| 3277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3291 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3278 } | 3292 } |
| 3279 | 3293 |
| 3280 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3294 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3281 { | 3295 { |
| 3296 ExceptionState exceptionState(ExceptionState::ExecutionContext, "octetMethod ", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3282 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3297 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3283 v8SetReturnValueUnsigned(info, imp->octetMethod()); | 3298 v8SetReturnValueUnsigned(info, imp->octetMethod()); |
| 3284 } | 3299 } |
| 3285 | 3300 |
| 3286 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 3301 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3287 { | 3302 { |
| 3288 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3303 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3289 TestObjectPythonV8Internal::octetMethodMethod(info); | 3304 TestObjectPythonV8Internal::octetMethodMethod(info); |
| 3290 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3305 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3291 } | 3306 } |
| 3292 | 3307 |
| 3293 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3308 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3294 { | 3309 { |
| 3310 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod ", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3295 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3311 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3296 v8SetReturnValueInt(info, imp->shortMethod()); | 3312 v8SetReturnValueInt(info, imp->shortMethod()); |
| 3297 } | 3313 } |
| 3298 | 3314 |
| 3299 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 3315 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3300 { | 3316 { |
| 3301 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3317 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3302 TestObjectPythonV8Internal::shortMethodMethod(info); | 3318 TestObjectPythonV8Internal::shortMethodMethod(info); |
| 3303 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3319 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3304 } | 3320 } |
| 3305 | 3321 |
| 3306 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3322 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3307 { | 3323 { |
| 3324 ExceptionState exceptionState(ExceptionState::ExecutionContext, "unsignedLon gMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3308 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3325 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3309 v8SetReturnValueUnsigned(info, imp->unsignedLongMethod()); | 3326 v8SetReturnValueUnsigned(info, imp->unsignedLongMethod()); |
| 3310 } | 3327 } |
| 3311 | 3328 |
| 3312 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) | 3329 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) |
| 3313 { | 3330 { |
| 3314 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3331 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3315 TestObjectPythonV8Internal::unsignedLongMethodMethod(info); | 3332 TestObjectPythonV8Internal::unsignedLongMethodMethod(info); |
| 3316 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3333 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3317 } | 3334 } |
| 3318 | 3335 |
| 3319 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) | 3336 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) |
| 3320 { | 3337 { |
| 3338 ExceptionState exceptionState(ExceptionState::ExecutionContext, "unsignedLon gLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3321 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3339 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3322 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongMethod())); | 3340 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongMethod())); |
| 3323 } | 3341 } |
| 3324 | 3342 |
| 3325 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) | 3343 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) |
| 3326 { | 3344 { |
| 3327 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3345 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3328 TestObjectPythonV8Internal::unsignedLongLongMethodMethod(info); | 3346 TestObjectPythonV8Internal::unsignedLongLongMethodMethod(info); |
| 3329 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3347 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3330 } | 3348 } |
| 3331 | 3349 |
| 3332 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3350 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3333 { | 3351 { |
| 3352 ExceptionState exceptionState(ExceptionState::ExecutionContext, "unsignedSho rtMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3334 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3353 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3335 v8SetReturnValueUnsigned(info, imp->unsignedShortMethod()); | 3354 v8SetReturnValueUnsigned(info, imp->unsignedShortMethod()); |
| 3336 } | 3355 } |
| 3337 | 3356 |
| 3338 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) | 3357 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 3339 { | 3358 { |
| 3340 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3359 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3341 TestObjectPythonV8Internal::unsignedShortMethodMethod(info); | 3360 TestObjectPythonV8Internal::unsignedShortMethodMethod(info); |
| 3342 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3361 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3343 } | 3362 } |
| 3344 | 3363 |
| 3345 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) | 3364 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) |
| 3346 { | 3365 { |
| 3366 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD ateArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3347 if (UNLIKELY(info.Length() < 1)) { | 3367 if (UNLIKELY(info.Length() < 1)) { |
| 3348 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 3368 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 3349 return; | 3369 return; |
| 3350 } | 3370 } |
| 3351 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3371 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3352 V8TRYCATCH_VOID(double, dateArg, toWebCoreDate(info[0])); | 3372 V8TRYCATCH_VOID(double, dateArg, toWebCoreDate(info[0])); |
| 3353 imp->voidMethodDateArg(dateArg); | 3373 imp->voidMethodDateArg(dateArg); |
| 3354 } | 3374 } |
| 3355 | 3375 |
| 3356 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 3376 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 3357 { | 3377 { |
| 3358 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3378 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3359 TestObjectPythonV8Internal::voidMethodDateArgMethod(info); | 3379 TestObjectPythonV8Internal::voidMethodDateArgMethod(info); |
| 3360 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3380 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3361 } | 3381 } |
| 3362 | 3382 |
| 3363 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3383 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3364 { | 3384 { |
| 3385 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3365 if (UNLIKELY(info.Length() < 1)) { | 3386 if (UNLIKELY(info.Length() < 1)) { |
| 3366 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i nfo.GetIsolate()); | 3387 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i nfo.GetIsolate()); |
| 3367 return; | 3388 return; |
| 3368 } | 3389 } |
| 3369 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3390 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3370 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ; | 3391 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ; |
| 3371 imp->voidMethodStringArg(stringArg); | 3392 imp->voidMethodStringArg(stringArg); |
| 3372 } | 3393 } |
| 3373 | 3394 |
| 3374 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) | 3395 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 3375 { | 3396 { |
| 3376 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3397 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3377 TestObjectPythonV8Internal::voidMethodStringArgMethod(info); | 3398 TestObjectPythonV8Internal::voidMethodStringArgMethod(info); |
| 3378 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3399 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3379 } | 3400 } |
| 3380 | 3401 |
| 3381 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) | 3402 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) |
| 3382 { | 3403 { |
| 3404 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB ooleanArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3383 if (UNLIKELY(info.Length() < 1)) { | 3405 if (UNLIKELY(info.Length() < 1)) { |
| 3384 throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg" , "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); | 3406 throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg" , "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| 3385 return; | 3407 return; |
| 3386 } | 3408 } |
| 3387 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3409 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3388 V8TRYCATCH_VOID(bool, booleanArg, info[0]->BooleanValue()); | 3410 V8TRYCATCH_VOID(bool, booleanArg, info[0]->BooleanValue()); |
| 3389 imp->voidMethodBooleanArg(booleanArg); | 3411 imp->voidMethodBooleanArg(booleanArg); |
| 3390 } | 3412 } |
| 3391 | 3413 |
| 3392 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) | 3414 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) |
| 3393 { | 3415 { |
| 3394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3416 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3395 TestObjectPythonV8Internal::voidMethodBooleanArgMethod(info); | 3417 TestObjectPythonV8Internal::voidMethodBooleanArgMethod(info); |
| 3396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3397 } | 3419 } |
| 3398 | 3420 |
| 3399 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) | 3421 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) |
| 3400 { | 3422 { |
| 3423 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3401 if (UNLIKELY(info.Length() < 1)) { | 3424 if (UNLIKELY(info.Length() < 1)) { |
| 3402 throwTypeError(ExceptionMessages::failedToExecute("voidMethodByteArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 3425 throwTypeError(ExceptionMessages::failedToExecute("voidMethodByteArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 3403 return; | 3426 return; |
| 3404 } | 3427 } |
| 3405 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3428 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3406 V8TRYCATCH_VOID(int, byteArg, toInt8(info[0])); | 3429 V8TRYCATCH_VOID(int, byteArg, toInt8(info[0])); |
| 3407 imp->voidMethodByteArg(byteArg); | 3430 imp->voidMethodByteArg(byteArg); |
| 3408 } | 3431 } |
| 3409 | 3432 |
| 3410 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 3433 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 3411 { | 3434 { |
| 3412 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3413 TestObjectPythonV8Internal::voidMethodByteArgMethod(info); | 3436 TestObjectPythonV8Internal::voidMethodByteArgMethod(info); |
| 3414 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3415 } | 3438 } |
| 3416 | 3439 |
| 3417 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3440 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3418 { | 3441 { |
| 3442 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD oubleArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3419 if (UNLIKELY(info.Length() < 1)) { | 3443 if (UNLIKELY(info.Length() < 1)) { |
| 3420 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i nfo.GetIsolate()); | 3444 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i nfo.GetIsolate()); |
| 3421 return; | 3445 return; |
| 3422 } | 3446 } |
| 3423 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3447 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3424 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue( ))); | 3448 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue( ))); |
| 3425 imp->voidMethodDoubleArg(doubleArg); | 3449 imp->voidMethodDoubleArg(doubleArg); |
| 3426 } | 3450 } |
| 3427 | 3451 |
| 3428 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) | 3452 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 3429 { | 3453 { |
| 3430 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3431 TestObjectPythonV8Internal::voidMethodDoubleArgMethod(info); | 3455 TestObjectPythonV8Internal::voidMethodDoubleArgMethod(info); |
| 3432 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3433 } | 3457 } |
| 3434 | 3458 |
| 3435 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3459 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3436 { | 3460 { |
| 3461 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF loatArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3437 if (UNLIKELY(info.Length() < 1)) { | 3462 if (UNLIKELY(info.Length() < 1)) { |
| 3438 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in fo.GetIsolate()); | 3463 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in fo.GetIsolate()); |
| 3439 return; | 3464 return; |
| 3440 } | 3465 } |
| 3441 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3466 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3442 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())) ; | 3467 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())) ; |
| 3443 imp->voidMethodFloatArg(floatArg); | 3468 imp->voidMethodFloatArg(floatArg); |
| 3444 } | 3469 } |
| 3445 | 3470 |
| 3446 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) | 3471 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) |
| 3447 { | 3472 { |
| 3448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3473 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3449 TestObjectPythonV8Internal::voidMethodFloatArgMethod(info); | 3474 TestObjectPythonV8Internal::voidMethodFloatArgMethod(info); |
| 3450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3475 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3451 } | 3476 } |
| 3452 | 3477 |
| 3453 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) | 3478 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) |
| 3454 { | 3479 { |
| 3480 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3455 if (UNLIKELY(info.Length() < 1)) { | 3481 if (UNLIKELY(info.Length() < 1)) { |
| 3456 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 3482 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 3457 return; | 3483 return; |
| 3458 } | 3484 } |
| 3459 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3485 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3460 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 3486 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 3461 imp->voidMethodLongArg(longArg); | 3487 imp->voidMethodLongArg(longArg); |
| 3462 } | 3488 } |
| 3463 | 3489 |
| 3464 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 3490 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 3465 { | 3491 { |
| 3466 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3492 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3467 TestObjectPythonV8Internal::voidMethodLongArgMethod(info); | 3493 TestObjectPythonV8Internal::voidMethodLongArgMethod(info); |
| 3468 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3494 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3469 } | 3495 } |
| 3470 | 3496 |
| 3471 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) | 3497 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) |
| 3472 { | 3498 { |
| 3499 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3473 if (UNLIKELY(info.Length() < 1)) { | 3500 if (UNLIKELY(info.Length() < 1)) { |
| 3474 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongLongArg ", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); | 3501 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongLongArg ", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| 3475 return; | 3502 return; |
| 3476 } | 3503 } |
| 3477 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3504 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3478 V8TRYCATCH_VOID(long long, longLongArg, toInt64(info[0])); | 3505 V8TRYCATCH_VOID(long long, longLongArg, toInt64(info[0])); |
| 3479 imp->voidMethodLongLongArg(longLongArg); | 3506 imp->voidMethodLongLongArg(longLongArg); |
| 3480 } | 3507 } |
| 3481 | 3508 |
| 3482 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) | 3509 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 3483 { | 3510 { |
| 3484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3485 TestObjectPythonV8Internal::voidMethodLongLongArgMethod(info); | 3512 TestObjectPythonV8Internal::voidMethodLongLongArgMethod(info); |
| 3486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3487 } | 3514 } |
| 3488 | 3515 |
| 3489 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3516 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3490 { | 3517 { |
| 3518 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3491 if (UNLIKELY(info.Length() < 1)) { | 3519 if (UNLIKELY(info.Length() < 1)) { |
| 3492 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOctetArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in fo.GetIsolate()); | 3520 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOctetArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in fo.GetIsolate()); |
| 3493 return; | 3521 return; |
| 3494 } | 3522 } |
| 3495 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3523 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3496 V8TRYCATCH_VOID(unsigned, octetArg, toUInt8(info[0])); | 3524 V8TRYCATCH_VOID(unsigned, octetArg, toUInt8(info[0])); |
| 3497 imp->voidMethodOctetArg(octetArg); | 3525 imp->voidMethodOctetArg(octetArg); |
| 3498 } | 3526 } |
| 3499 | 3527 |
| 3500 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) | 3528 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) |
| 3501 { | 3529 { |
| 3502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3530 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3503 TestObjectPythonV8Internal::voidMethodOctetArgMethod(info); | 3531 TestObjectPythonV8Internal::voidMethodOctetArgMethod(info); |
| 3504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3532 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3505 } | 3533 } |
| 3506 | 3534 |
| 3507 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3535 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3508 { | 3536 { |
| 3537 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3509 if (UNLIKELY(info.Length() < 1)) { | 3538 if (UNLIKELY(info.Length() < 1)) { |
| 3510 throwTypeError(ExceptionMessages::failedToExecute("voidMethodShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in fo.GetIsolate()); | 3539 throwTypeError(ExceptionMessages::failedToExecute("voidMethodShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in fo.GetIsolate()); |
| 3511 return; | 3540 return; |
| 3512 } | 3541 } |
| 3513 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3542 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3514 V8TRYCATCH_VOID(int, shortArg, toInt16(info[0])); | 3543 V8TRYCATCH_VOID(int, shortArg, toInt16(info[0])); |
| 3515 imp->voidMethodShortArg(shortArg); | 3544 imp->voidMethodShortArg(shortArg); |
| 3516 } | 3545 } |
| 3517 | 3546 |
| 3518 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) | 3547 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) |
| 3519 { | 3548 { |
| 3520 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3549 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3521 TestObjectPythonV8Internal::voidMethodShortArgMethod(info); | 3550 TestObjectPythonV8Internal::voidMethodShortArgMethod(info); |
| 3522 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3523 } | 3552 } |
| 3524 | 3553 |
| 3525 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) | 3554 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 3526 { | 3555 { |
| 3556 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3527 if (UNLIKELY(info.Length() < 1)) { | 3557 if (UNLIKELY(info.Length() < 1)) { |
| 3528 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLon gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length( ))), info.GetIsolate()); | 3558 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLon gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length( ))), info.GetIsolate()); |
| 3529 return; | 3559 return; |
| 3530 } | 3560 } |
| 3531 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3561 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3532 V8TRYCATCH_VOID(unsigned, unsignedLongArg, toUInt32(info[0])); | 3562 V8TRYCATCH_VOID(unsigned, unsignedLongArg, toUInt32(info[0])); |
| 3533 imp->voidMethodUnsignedLongArg(unsignedLongArg); | 3563 imp->voidMethodUnsignedLongArg(unsignedLongArg); |
| 3534 } | 3564 } |
| 3535 | 3565 |
| 3536 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) | 3566 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) |
| 3537 { | 3567 { |
| 3538 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3568 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3539 TestObjectPythonV8Internal::voidMethodUnsignedLongArgMethod(info); | 3569 TestObjectPythonV8Internal::voidMethodUnsignedLongArgMethod(info); |
| 3540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3570 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3541 } | 3571 } |
| 3542 | 3572 |
| 3543 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) | 3573 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 3544 { | 3574 { |
| 3575 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3545 if (UNLIKELY(info.Length() < 1)) { | 3576 if (UNLIKELY(info.Length() < 1)) { |
| 3546 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLon gLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Len gth())), info.GetIsolate()); | 3577 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedLon gLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Len gth())), info.GetIsolate()); |
| 3547 return; | 3578 return; |
| 3548 } | 3579 } |
| 3549 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3580 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3550 V8TRYCATCH_VOID(unsigned long long, unsignedLongLongArg, toUInt64(info[0])); | 3581 V8TRYCATCH_VOID(unsigned long long, unsignedLongLongArg, toUInt64(info[0])); |
| 3551 imp->voidMethodUnsignedLongLongArg(unsignedLongLongArg); | 3582 imp->voidMethodUnsignedLongLongArg(unsignedLongLongArg); |
| 3552 } | 3583 } |
| 3553 | 3584 |
| 3554 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) | 3585 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) |
| 3555 { | 3586 { |
| 3556 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3587 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3557 TestObjectPythonV8Internal::voidMethodUnsignedLongLongArgMethod(info); | 3588 TestObjectPythonV8Internal::voidMethodUnsignedLongLongArgMethod(info); |
| 3558 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3589 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3559 } | 3590 } |
| 3560 | 3591 |
| 3561 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) | 3592 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) |
| 3562 { | 3593 { |
| 3594 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3563 if (UNLIKELY(info.Length() < 1)) { | 3595 if (UNLIKELY(info.Length() < 1)) { |
| 3564 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedSho rtArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length ())), info.GetIsolate()); | 3596 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUnsignedSho rtArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length ())), info.GetIsolate()); |
| 3565 return; | 3597 return; |
| 3566 } | 3598 } |
| 3567 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3599 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3568 V8TRYCATCH_VOID(unsigned, unsignedShortArg, toUInt16(info[0])); | 3600 V8TRYCATCH_VOID(unsigned, unsignedShortArg, toUInt16(info[0])); |
| 3569 imp->voidMethodUnsignedShortArg(unsignedShortArg); | 3601 imp->voidMethodUnsignedShortArg(unsignedShortArg); |
| 3570 } | 3602 } |
| 3571 | 3603 |
| 3572 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) | 3604 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) |
| 3573 { | 3605 { |
| 3574 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3606 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3575 TestObjectPythonV8Internal::voidMethodUnsignedShortArgMethod(info); | 3607 TestObjectPythonV8Internal::voidMethodUnsignedShortArgMethod(info); |
| 3576 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3608 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3577 } | 3609 } |
| 3578 | 3610 |
| 3579 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) | 3611 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) |
| 3580 { | 3612 { |
| 3613 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3581 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3614 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3582 v8SetReturnValue(info, imp->testInterfaceEmptyMethod()); | 3615 v8SetReturnValue(info, imp->testInterfaceEmptyMethod()); |
| 3583 } | 3616 } |
| 3584 | 3617 |
| 3585 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) | 3618 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) |
| 3586 { | 3619 { |
| 3587 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3620 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3588 TestObjectPythonV8Internal::testInterfaceEmptyMethodMethod(info); | 3621 TestObjectPythonV8Internal::testInterfaceEmptyMethodMethod(info); |
| 3589 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3622 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3590 } | 3623 } |
| 3591 | 3624 |
| 3592 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) | 3625 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) |
| 3593 { | 3626 { |
| 3627 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3594 if (UNLIKELY(info.Length() < 1)) { | 3628 if (UNLIKELY(info.Length() < 1)) { |
| 3595 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L ength())), info.GetIsolate()); | 3629 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L ength())), info.GetIsolate()); |
| 3596 return; | 3630 return; |
| 3597 } | 3631 } |
| 3598 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3632 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3599 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); | 3633 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); |
| 3600 imp->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 3634 imp->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
| 3601 } | 3635 } |
| 3602 | 3636 |
| 3603 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) | 3637 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) |
| 3604 { | 3638 { |
| 3605 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3639 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3606 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); | 3640 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); |
| 3607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3641 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3608 } | 3642 } |
| 3609 | 3643 |
| 3610 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) | 3644 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) |
| 3611 { | 3645 { |
| 3646 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate ()); | |
| 3612 if (UNLIKELY(info.Length() < 2)) { | 3647 if (UNLIKELY(info.Length() < 2)) { |
| 3613 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgTest InterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); | 3648 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgTest InterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
| 3614 return; | 3649 return; |
| 3615 } | 3650 } |
| 3616 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3651 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3617 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 3652 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 3618 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); | 3653 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); |
| 3619 imp->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg); | 3654 imp->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg); |
| 3620 } | 3655 } |
| 3621 | 3656 |
| 3622 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) | 3657 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) |
| 3623 { | 3658 { |
| 3624 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3659 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3625 TestObjectPythonV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(inf o); | 3660 TestObjectPythonV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(inf o); |
| 3626 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3661 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3627 } | 3662 } |
| 3628 | 3663 |
| 3629 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) | 3664 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) |
| 3630 { | 3665 { |
| 3666 ExceptionState exceptionState(ExceptionState::ExecutionContext, "compareHowM ethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3631 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3667 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3632 v8SetReturnValue(info, imp->compareHowMethod()); | 3668 v8SetReturnValue(info, imp->compareHowMethod()); |
| 3633 } | 3669 } |
| 3634 | 3670 |
| 3635 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) | 3671 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) |
| 3636 { | 3672 { |
| 3637 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3673 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3638 TestObjectPythonV8Internal::compareHowMethodMethod(info); | 3674 TestObjectPythonV8Internal::compareHowMethodMethod(info); |
| 3639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3675 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3640 } | 3676 } |
| 3641 | 3677 |
| 3642 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3678 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3643 { | 3679 { |
| 3680 ExceptionState exceptionState(ExceptionState::ExecutionContext, "anyMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3644 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3681 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3645 v8SetReturnValue(info, imp->anyMethod().v8Value()); | 3682 v8SetReturnValue(info, imp->anyMethod().v8Value()); |
| 3646 } | 3683 } |
| 3647 | 3684 |
| 3648 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo) | 3685 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo) |
| 3649 { | 3686 { |
| 3650 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3687 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3651 TestObjectPythonV8Internal::anyMethodMethod(info); | 3688 TestObjectPythonV8Internal::anyMethodMethod(info); |
| 3652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3689 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3653 } | 3690 } |
| 3654 | 3691 |
| 3655 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info) | 3692 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info) |
| 3656 { | 3693 { |
| 3694 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodM ediaQueryListListenerArg", "TestObjectPython", info.Holder(), info.GetIsolate()) ; | |
| 3657 if (UNLIKELY(info.Length() < 1)) { | 3695 if (UNLIKELY(info.Length() < 1)) { |
| 3658 throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryL istListenerArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, in fo.Length())), info.GetIsolate()); | 3696 throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryL istListenerArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, in fo.Length())), info.GetIsolate()); |
| 3659 return; | 3697 return; |
| 3660 } | 3698 } |
| 3661 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3699 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3662 V8TRYCATCH_VOID(RefPtr<MediaQueryListListener>, mediaQueryListListenerArg, M ediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate()))); | 3700 V8TRYCATCH_VOID(RefPtr<MediaQueryListListener>, mediaQueryListListenerArg, M ediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate()))); |
| 3663 imp->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); | 3701 imp->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); |
| 3664 } | 3702 } |
| 3665 | 3703 |
| 3666 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) | 3704 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) |
| 3667 { | 3705 { |
| 3668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3706 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3669 TestObjectPythonV8Internal::voidMethodMediaQueryListListenerArgMethod(info); | 3707 TestObjectPythonV8Internal::voidMethodMediaQueryListListenerArgMethod(info); |
| 3670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3708 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3671 } | 3709 } |
| 3672 | 3710 |
| 3673 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) | 3711 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) |
| 3674 { | 3712 { |
| 3713 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC ompareHowArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3675 if (UNLIKELY(info.Length() < 1)) { | 3714 if (UNLIKELY(info.Length() < 1)) { |
| 3676 throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowA rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()) ), info.GetIsolate()); | 3715 throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowA rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()) ), info.GetIsolate()); |
| 3677 return; | 3716 return; |
| 3678 } | 3717 } |
| 3679 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3718 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3680 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare How>(info[0]->Int32Value())); | 3719 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare How>(info[0]->Int32Value())); |
| 3681 imp->voidMethodCompareHowArg(compareHowArg); | 3720 imp->voidMethodCompareHowArg(compareHowArg); |
| 3682 } | 3721 } |
| 3683 | 3722 |
| 3684 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) | 3723 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) |
| 3685 { | 3724 { |
| 3686 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3725 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3687 TestObjectPythonV8Internal::voidMethodCompareHowArgMethod(info); | 3726 TestObjectPythonV8Internal::voidMethodCompareHowArgMethod(info); |
| 3688 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3727 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3689 } | 3728 } |
| 3690 | 3729 |
| 3691 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) | 3730 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) |
| 3692 { | 3731 { |
| 3732 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA nyArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3693 if (UNLIKELY(info.Length() < 1)) { | 3733 if (UNLIKELY(info.Length() < 1)) { |
| 3694 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T estObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info .GetIsolate()); | 3734 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T estObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info .GetIsolate()); |
| 3695 return; | 3735 return; |
| 3696 } | 3736 } |
| 3697 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3737 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3698 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate()) ); | 3738 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate()) ); |
| 3699 imp->voidMethodAnyArg(anyArg); | 3739 imp->voidMethodAnyArg(anyArg); |
| 3700 } | 3740 } |
| 3701 | 3741 |
| 3702 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) | 3742 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) |
| 3703 { | 3743 { |
| 3704 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3705 TestObjectPythonV8Internal::voidMethodAnyArgMethod(info); | 3745 TestObjectPythonV8Internal::voidMethodAnyArgMethod(info); |
| 3706 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3707 } | 3747 } |
| 3708 | 3748 |
| 3709 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) | 3749 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) |
| 3710 { | 3750 { |
| 3751 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA ttrArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3711 if (UNLIKELY(info.Length() < 1)) { | 3752 if (UNLIKELY(info.Length() < 1)) { |
| 3712 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 3753 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 3713 return; | 3754 return; |
| 3714 } | 3755 } |
| 3715 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3756 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3716 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::hasInstance(info[0], info.GetIsolate (), worldType(info.GetIsolate())) ? V8Attr::toNative(v8::Handle<v8::Object>::Cas t(info[0])) : 0); | 3757 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::hasInstance(info[0], info.GetIsolate (), worldType(info.GetIsolate())) ? V8Attr::toNative(v8::Handle<v8::Object>::Cas t(info[0])) : 0); |
| 3717 imp->voidMethodAttrArg(attrArg); | 3758 imp->voidMethodAttrArg(attrArg); |
| 3718 } | 3759 } |
| 3719 | 3760 |
| 3720 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 3761 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 3721 { | 3762 { |
| 3722 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3723 TestObjectPythonV8Internal::voidMethodAttrArgMethod(info); | 3764 TestObjectPythonV8Internal::voidMethodAttrArgMethod(info); |
| 3724 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3725 } | 3766 } |
| 3726 | 3767 |
| 3727 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) | 3768 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) |
| 3728 { | 3769 { |
| 3770 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD ocumentArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3729 if (UNLIKELY(info.Length() < 1)) { | 3771 if (UNLIKELY(info.Length() < 1)) { |
| 3730 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg ", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); | 3772 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg ", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| 3731 return; | 3773 return; |
| 3732 } | 3774 } |
| 3733 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3775 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3734 V8TRYCATCH_VOID(Document*, documentArg, V8Document::hasInstance(info[0], inf o.GetIsolate(), worldType(info.GetIsolate())) ? V8Document::toNative(v8::Handle< v8::Object>::Cast(info[0])) : 0); | 3776 V8TRYCATCH_VOID(Document*, documentArg, V8Document::hasInstance(info[0], inf o.GetIsolate(), worldType(info.GetIsolate())) ? V8Document::toNative(v8::Handle< v8::Object>::Cast(info[0])) : 0); |
| 3735 imp->voidMethodDocumentArg(documentArg); | 3777 imp->voidMethodDocumentArg(documentArg); |
| 3736 } | 3778 } |
| 3737 | 3779 |
| 3738 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) | 3780 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 3739 { | 3781 { |
| 3740 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3782 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3741 TestObjectPythonV8Internal::voidMethodDocumentArgMethod(info); | 3783 TestObjectPythonV8Internal::voidMethodDocumentArgMethod(info); |
| 3742 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3784 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3743 } | 3785 } |
| 3744 | 3786 |
| 3745 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) | 3787 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 3746 { | 3788 { |
| 3789 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD ocumentTypeArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3747 if (UNLIKELY(info.Length() < 1)) { | 3790 if (UNLIKELY(info.Length() < 1)) { |
| 3748 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp eArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length( ))), info.GetIsolate()); | 3791 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp eArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length( ))), info.GetIsolate()); |
| 3749 return; | 3792 return; |
| 3750 } | 3793 } |
| 3751 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3794 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3752 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::hasInstance( info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentType::toNa tive(v8::Handle<v8::Object>::Cast(info[0])) : 0); | 3795 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::hasInstance( info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8DocumentType::toNa tive(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 3753 imp->voidMethodDocumentTypeArg(documentTypeArg); | 3796 imp->voidMethodDocumentTypeArg(documentTypeArg); |
| 3754 } | 3797 } |
| 3755 | 3798 |
| 3756 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) | 3799 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) |
| 3757 { | 3800 { |
| 3758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3759 TestObjectPythonV8Internal::voidMethodDocumentTypeArgMethod(info); | 3802 TestObjectPythonV8Internal::voidMethodDocumentTypeArgMethod(info); |
| 3760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3761 } | 3804 } |
| 3762 | 3805 |
| 3763 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) | 3806 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) |
| 3764 { | 3807 { |
| 3808 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE lementArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3765 if (UNLIKELY(info.Length() < 1)) { | 3809 if (UNLIKELY(info.Length() < 1)) { |
| 3766 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg" , "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); | 3810 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg" , "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| 3767 return; | 3811 return; |
| 3768 } | 3812 } |
| 3769 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3813 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3770 V8TRYCATCH_VOID(Element*, elementArg, V8Element::hasInstance(info[0], info.G etIsolate(), worldType(info.GetIsolate())) ? V8Element::toNative(v8::Handle<v8:: Object>::Cast(info[0])) : 0); | 3814 V8TRYCATCH_VOID(Element*, elementArg, V8Element::hasInstance(info[0], info.G etIsolate(), worldType(info.GetIsolate())) ? V8Element::toNative(v8::Handle<v8:: Object>::Cast(info[0])) : 0); |
| 3771 imp->voidMethodElementArg(elementArg); | 3815 imp->voidMethodElementArg(elementArg); |
| 3772 } | 3816 } |
| 3773 | 3817 |
| 3774 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) | 3818 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) |
| 3775 { | 3819 { |
| 3776 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3820 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3777 TestObjectPythonV8Internal::voidMethodElementArgMethod(info); | 3821 TestObjectPythonV8Internal::voidMethodElementArgMethod(info); |
| 3778 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3822 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3779 } | 3823 } |
| 3780 | 3824 |
| 3781 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) | 3825 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) |
| 3782 { | 3826 { |
| 3827 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodN odeArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3783 if (UNLIKELY(info.Length() < 1)) { | 3828 if (UNLIKELY(info.Length() < 1)) { |
| 3784 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 3829 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 3785 return; | 3830 return; |
| 3786 } | 3831 } |
| 3787 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3832 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3788 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::hasInstance(info[0], info.GetIsolate (), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cas t(info[0])) : 0); | 3833 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::hasInstance(info[0], info.GetIsolate (), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cas t(info[0])) : 0); |
| 3789 imp->voidMethodNodeArg(nodeArg); | 3834 imp->voidMethodNodeArg(nodeArg); |
| 3790 } | 3835 } |
| 3791 | 3836 |
| 3792 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 3837 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 3793 { | 3838 { |
| 3794 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3839 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3795 TestObjectPythonV8Internal::voidMethodNodeArgMethod(info); | 3840 TestObjectPythonV8Internal::voidMethodNodeArgMethod(info); |
| 3796 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3841 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3797 } | 3842 } |
| 3798 | 3843 |
| 3799 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) | 3844 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) |
| 3800 { | 3845 { |
| 3846 ExceptionState exceptionState(ExceptionState::ExecutionContext, "arrayBuffer Method", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3801 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3847 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3802 v8SetReturnValue(info, imp->arrayBufferMethod()); | 3848 v8SetReturnValue(info, imp->arrayBufferMethod()); |
| 3803 } | 3849 } |
| 3804 | 3850 |
| 3805 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 3851 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 3806 { | 3852 { |
| 3807 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3853 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3808 TestObjectPythonV8Internal::arrayBufferMethodMethod(info); | 3854 TestObjectPythonV8Internal::arrayBufferMethodMethod(info); |
| 3809 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3855 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3810 } | 3856 } |
| 3811 | 3857 |
| 3812 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) | 3858 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) |
| 3813 { | 3859 { |
| 3860 ExceptionState exceptionState(ExceptionState::ExecutionContext, "arrayBuffer ViewMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3814 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3861 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3815 v8SetReturnValue(info, imp->arrayBufferViewMethod()); | 3862 v8SetReturnValue(info, imp->arrayBufferViewMethod()); |
| 3816 } | 3863 } |
| 3817 | 3864 |
| 3818 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) | 3865 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 3819 { | 3866 { |
| 3820 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3867 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3821 TestObjectPythonV8Internal::arrayBufferViewMethodMethod(info); | 3868 TestObjectPythonV8Internal::arrayBufferViewMethodMethod(info); |
| 3822 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3869 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3823 } | 3870 } |
| 3824 | 3871 |
| 3825 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 3872 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 3826 { | 3873 { |
| 3874 ExceptionState exceptionState(ExceptionState::ExecutionContext, "float32Arra yMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3827 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3875 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3828 v8SetReturnValue(info, imp->float32ArrayMethod()); | 3876 v8SetReturnValue(info, imp->float32ArrayMethod()); |
| 3829 } | 3877 } |
| 3830 | 3878 |
| 3831 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) | 3879 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) |
| 3832 { | 3880 { |
| 3833 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3834 TestObjectPythonV8Internal::float32ArrayMethodMethod(info); | 3882 TestObjectPythonV8Internal::float32ArrayMethodMethod(info); |
| 3835 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3836 } | 3884 } |
| 3837 | 3885 |
| 3838 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) | 3886 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) |
| 3839 { | 3887 { |
| 3888 ExceptionState exceptionState(ExceptionState::ExecutionContext, "int32ArrayM ethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3840 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3889 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3841 v8SetReturnValue(info, imp->int32ArrayMethod()); | 3890 v8SetReturnValue(info, imp->int32ArrayMethod()); |
| 3842 } | 3891 } |
| 3843 | 3892 |
| 3844 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) | 3893 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) |
| 3845 { | 3894 { |
| 3846 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3895 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3847 TestObjectPythonV8Internal::int32ArrayMethodMethod(info); | 3896 TestObjectPythonV8Internal::int32ArrayMethodMethod(info); |
| 3848 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3897 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3849 } | 3898 } |
| 3850 | 3899 |
| 3851 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) | 3900 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) |
| 3852 { | 3901 { |
| 3902 ExceptionState exceptionState(ExceptionState::ExecutionContext, "uint8ArrayM ethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3853 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3903 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3854 v8SetReturnValue(info, imp->uint8ArrayMethod()); | 3904 v8SetReturnValue(info, imp->uint8ArrayMethod()); |
| 3855 } | 3905 } |
| 3856 | 3906 |
| 3857 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) | 3907 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) |
| 3858 { | 3908 { |
| 3859 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3909 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3860 TestObjectPythonV8Internal::uint8ArrayMethodMethod(info); | 3910 TestObjectPythonV8Internal::uint8ArrayMethodMethod(info); |
| 3861 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3911 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3862 } | 3912 } |
| 3863 | 3913 |
| 3864 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) | 3914 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) |
| 3865 { | 3915 { |
| 3916 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA rrayBufferArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3866 if (UNLIKELY(info.Length() < 1)) { | 3917 if (UNLIKELY(info.Length() < 1)) { |
| 3867 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length() )), info.GetIsolate()); | 3918 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length() )), info.GetIsolate()); |
| 3868 return; | 3919 return; |
| 3869 } | 3920 } |
| 3870 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3921 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3871 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); | 3922 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); |
| 3872 imp->voidMethodArrayBufferArg(arrayBufferArg); | 3923 imp->voidMethodArrayBufferArg(arrayBufferArg); |
| 3873 } | 3924 } |
| 3874 | 3925 |
| 3875 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) | 3926 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) |
| 3876 { | 3927 { |
| 3877 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3928 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3878 TestObjectPythonV8Internal::voidMethodArrayBufferArgMethod(info); | 3929 TestObjectPythonV8Internal::voidMethodArrayBufferArgMethod(info); |
| 3879 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3930 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3880 } | 3931 } |
| 3881 | 3932 |
| 3882 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) | 3933 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) |
| 3883 { | 3934 { |
| 3935 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA rrayBufferViewArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3884 if (UNLIKELY(info.Length() < 1)) { | 3936 if (UNLIKELY(info.Length() < 1)) { |
| 3885 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer ViewArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng th())), info.GetIsolate()); | 3937 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer ViewArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng th())), info.GetIsolate()); |
| 3886 return; | 3938 return; |
| 3887 } | 3939 } |
| 3888 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3940 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3889 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBuffer View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[ 0])) : 0); | 3941 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBuffer View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[ 0])) : 0); |
| 3890 imp->voidMethodArrayBufferViewArg(arrayBufferViewArg); | 3942 imp->voidMethodArrayBufferViewArg(arrayBufferViewArg); |
| 3891 } | 3943 } |
| 3892 | 3944 |
| 3893 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) | 3945 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) |
| 3894 { | 3946 { |
| 3895 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3947 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3896 TestObjectPythonV8Internal::voidMethodArrayBufferViewArgMethod(info); | 3948 TestObjectPythonV8Internal::voidMethodArrayBufferViewArgMethod(info); |
| 3897 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3949 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3898 } | 3950 } |
| 3899 | 3951 |
| 3900 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) | 3952 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 3901 { | 3953 { |
| 3954 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF loat32ArrayArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3902 if (UNLIKELY(info.Length() < 1)) { | 3955 if (UNLIKELY(info.Length() < 1)) { |
| 3903 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32Arra yArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length( ))), info.GetIsolate()); | 3956 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32Arra yArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length( ))), info.GetIsolate()); |
| 3904 return; | 3957 return; |
| 3905 } | 3958 } |
| 3906 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3959 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3907 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ? V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); | 3960 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ? V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); |
| 3908 imp->voidMethodFloat32ArrayArg(float32ArrayArg); | 3961 imp->voidMethodFloat32ArrayArg(float32ArrayArg); |
| 3909 } | 3962 } |
| 3910 | 3963 |
| 3911 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) | 3964 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) |
| 3912 { | 3965 { |
| 3913 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3966 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3914 TestObjectPythonV8Internal::voidMethodFloat32ArrayArgMethod(info); | 3967 TestObjectPythonV8Internal::voidMethodFloat32ArrayArgMethod(info); |
| 3915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3968 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3916 } | 3969 } |
| 3917 | 3970 |
| 3918 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) | 3971 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) |
| 3919 { | 3972 { |
| 3973 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodI nt32ArrayArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3920 if (UNLIKELY(info.Length() < 1)) { | 3974 if (UNLIKELY(info.Length() < 1)) { |
| 3921 throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayA rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()) ), info.GetIsolate()); | 3975 throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayA rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()) ), info.GetIsolate()); |
| 3922 return; | 3976 return; |
| 3923 } | 3977 } |
| 3924 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3978 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3925 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int3 2Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); | 3979 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int3 2Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); |
| 3926 imp->voidMethodInt32ArrayArg(int32ArrayArg); | 3980 imp->voidMethodInt32ArrayArg(int32ArrayArg); |
| 3927 } | 3981 } |
| 3928 | 3982 |
| 3929 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) | 3983 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) |
| 3930 { | 3984 { |
| 3931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3985 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3932 TestObjectPythonV8Internal::voidMethodInt32ArrayArgMethod(info); | 3986 TestObjectPythonV8Internal::voidMethodInt32ArrayArgMethod(info); |
| 3933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3987 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3934 } | 3988 } |
| 3935 | 3989 |
| 3936 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) | 3990 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) |
| 3937 { | 3991 { |
| 3992 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU int8ArrayArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3938 if (UNLIKELY(info.Length() < 1)) { | 3993 if (UNLIKELY(info.Length() < 1)) { |
| 3939 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayA rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()) ), info.GetIsolate()); | 3994 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayA rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()) ), info.GetIsolate()); |
| 3940 return; | 3995 return; |
| 3941 } | 3996 } |
| 3942 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3997 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3943 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint 8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); | 3998 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint 8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); |
| 3944 imp->voidMethodUint8ArrayArg(uint8ArrayArg); | 3999 imp->voidMethodUint8ArrayArg(uint8ArrayArg); |
| 3945 } | 4000 } |
| 3946 | 4001 |
| 3947 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) | 4002 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) |
| 3948 { | 4003 { |
| 3949 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4004 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3950 TestObjectPythonV8Internal::voidMethodUint8ArrayArgMethod(info); | 4005 TestObjectPythonV8Internal::voidMethodUint8ArrayArgMethod(info); |
| 3951 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4006 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3952 } | 4007 } |
| 3953 | 4008 |
| 3954 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf o) | 4009 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf o) |
| 3955 { | 4010 { |
| 4011 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longArrayMe thod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3956 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4012 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3957 v8SetReturnValue(info, v8Array(imp->longArrayMethod(), info.GetIsolate())); | 4013 v8SetReturnValue(info, v8Array(imp->longArrayMethod(), info.GetIsolate())); |
| 3958 } | 4014 } |
| 3959 | 4015 |
| 3960 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& info) | 4016 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& info) |
| 3961 { | 4017 { |
| 3962 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4018 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3963 TestObjectPythonV8Internal::longArrayMethodMethod(info); | 4019 TestObjectPythonV8Internal::longArrayMethodMethod(info); |
| 3964 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4020 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3965 } | 4021 } |
| 3966 | 4022 |
| 3967 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) | 4023 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) |
| 3968 { | 4024 { |
| 4025 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringArray Method", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3969 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4026 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3970 v8SetReturnValue(info, v8Array(imp->stringArrayMethod(), info.GetIsolate())) ; | 4027 v8SetReturnValue(info, v8Array(imp->stringArrayMethod(), info.GetIsolate())) ; |
| 3971 } | 4028 } |
| 3972 | 4029 |
| 3973 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 4030 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 3974 { | 4031 { |
| 3975 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4032 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3976 TestObjectPythonV8Internal::stringArrayMethodMethod(info); | 4033 TestObjectPythonV8Internal::stringArrayMethodMethod(info); |
| 3977 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4034 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3978 } | 4035 } |
| 3979 | 4036 |
| 3980 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) | 4037 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 3981 { | 4038 { |
| 4039 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyArrayMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3982 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4040 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3983 v8SetReturnValue(info, v8Array(imp->testInterfaceEmptyArrayMethod(), info.Ge tIsolate())); | 4041 v8SetReturnValue(info, v8Array(imp->testInterfaceEmptyArrayMethod(), info.Ge tIsolate())); |
| 3984 } | 4042 } |
| 3985 | 4043 |
| 3986 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) | 4044 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) |
| 3987 { | 4045 { |
| 3988 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4046 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3989 TestObjectPythonV8Internal::testInterfaceEmptyArrayMethodMethod(info); | 4047 TestObjectPythonV8Internal::testInterfaceEmptyArrayMethodMethod(info); |
| 3990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4048 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3991 } | 4049 } |
| 3992 | 4050 |
| 3993 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) | 4051 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) |
| 3994 { | 4052 { |
| 4053 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA rrayLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 3995 if (UNLIKELY(info.Length() < 1)) { | 4054 if (UNLIKELY(info.Length() < 1)) { |
| 3996 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongAr g", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())) , info.GetIsolate()); | 4055 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongAr g", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())) , info.GetIsolate()); |
| 3997 return; | 4056 return; |
| 3998 } | 4057 } |
| 3999 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4058 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4000 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, in fo.GetIsolate())); | 4059 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, in fo.GetIsolate())); |
| 4001 imp->voidMethodArrayLongArg(arrayLongArg); | 4060 imp->voidMethodArrayLongArg(arrayLongArg); |
| 4002 } | 4061 } |
| 4003 | 4062 |
| 4004 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) | 4063 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) |
| 4005 { | 4064 { |
| 4006 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4065 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4007 TestObjectPythonV8Internal::voidMethodArrayLongArgMethod(info); | 4066 TestObjectPythonV8Internal::voidMethodArrayLongArgMethod(info); |
| 4008 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4067 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4009 } | 4068 } |
| 4010 | 4069 |
| 4011 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) | 4070 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) |
| 4012 { | 4071 { |
| 4072 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA rrayStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4013 if (UNLIKELY(info.Length() < 1)) { | 4073 if (UNLIKELY(info.Length() < 1)) { |
| 4014 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayString Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length() )), info.GetIsolate()); | 4074 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayString Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length() )), info.GetIsolate()); |
| 4015 return; | 4075 return; |
| 4016 } | 4076 } |
| 4017 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4077 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4018 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0 ], 1, info.GetIsolate())); | 4078 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0 ], 1, info.GetIsolate())); |
| 4019 imp->voidMethodArrayStringArg(arrayStringArg); | 4079 imp->voidMethodArrayStringArg(arrayStringArg); |
| 4020 } | 4080 } |
| 4021 | 4081 |
| 4022 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) | 4082 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) |
| 4023 { | 4083 { |
| 4024 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4084 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4025 TestObjectPythonV8Internal::voidMethodArrayStringArgMethod(info); | 4085 TestObjectPythonV8Internal::voidMethodArrayStringArgMethod(info); |
| 4026 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4027 } | 4087 } |
| 4028 | 4088 |
| 4029 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) | 4089 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) |
| 4030 { | 4090 { |
| 4091 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA rrayTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate() ); | |
| 4031 if (UNLIKELY(info.Length() < 1)) { | 4092 if (UNLIKELY(info.Length() < 1)) { |
| 4032 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestIn terfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i nfo.Length())), info.GetIsolate()); | 4093 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestIn terfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i nfo.Length())), info.GetIsolate()); |
| 4033 return; | 4094 return; |
| 4034 } | 4095 } |
| 4035 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4096 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4036 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); | 4097 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); |
| 4037 imp->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); | 4098 imp->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); |
| 4038 } | 4099 } |
| 4039 | 4100 |
| 4040 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) | 4101 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) |
| 4041 { | 4102 { |
| 4042 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4103 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4043 TestObjectPythonV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info) ; | 4104 TestObjectPythonV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info) ; |
| 4044 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4105 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4045 } | 4106 } |
| 4046 | 4107 |
| 4047 static void sequenceLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4108 static void sequenceLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4048 { | 4109 { |
| 4110 ExceptionState exceptionState(ExceptionState::ExecutionContext, "sequenceLon gMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4049 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4111 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4050 v8SetReturnValue(info, v8Array(imp->sequenceLongMethod(), info.GetIsolate()) ); | 4112 v8SetReturnValue(info, v8Array(imp->sequenceLongMethod(), info.GetIsolate()) ); |
| 4051 } | 4113 } |
| 4052 | 4114 |
| 4053 static void sequenceLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) | 4115 static void sequenceLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) |
| 4054 { | 4116 { |
| 4055 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4056 TestObjectPythonV8Internal::sequenceLongMethodMethod(info); | 4118 TestObjectPythonV8Internal::sequenceLongMethodMethod(info); |
| 4057 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4058 } | 4120 } |
| 4059 | 4121 |
| 4060 static void sequenceStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) | 4122 static void sequenceStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) |
| 4061 { | 4123 { |
| 4124 ExceptionState exceptionState(ExceptionState::ExecutionContext, "sequenceStr ingMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4062 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4125 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4063 v8SetReturnValue(info, v8Array(imp->sequenceStringMethod(), info.GetIsolate( ))); | 4126 v8SetReturnValue(info, v8Array(imp->sequenceStringMethod(), info.GetIsolate( ))); |
| 4064 } | 4127 } |
| 4065 | 4128 |
| 4066 static void sequenceStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) | 4129 static void sequenceStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) |
| 4067 { | 4130 { |
| 4068 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4069 TestObjectPythonV8Internal::sequenceStringMethodMethod(info); | 4132 TestObjectPythonV8Internal::sequenceStringMethodMethod(info); |
| 4070 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4071 } | 4134 } |
| 4072 | 4135 |
| 4073 static void sequenceTestInterfaceEmptyMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) | 4136 static void sequenceTestInterfaceEmptyMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) |
| 4074 { | 4137 { |
| 4138 ExceptionState exceptionState(ExceptionState::ExecutionContext, "sequenceTes tInterfaceEmptyMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4075 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4139 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4076 v8SetReturnValue(info, v8Array(imp->sequenceTestInterfaceEmptyMethod(), info .GetIsolate())); | 4140 v8SetReturnValue(info, v8Array(imp->sequenceTestInterfaceEmptyMethod(), info .GetIsolate())); |
| 4077 } | 4141 } |
| 4078 | 4142 |
| 4079 static void sequenceTestInterfaceEmptyMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) | 4143 static void sequenceTestInterfaceEmptyMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) |
| 4080 { | 4144 { |
| 4081 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4145 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4082 TestObjectPythonV8Internal::sequenceTestInterfaceEmptyMethodMethod(info); | 4146 TestObjectPythonV8Internal::sequenceTestInterfaceEmptyMethodMethod(info); |
| 4083 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4147 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4084 } | 4148 } |
| 4085 | 4149 |
| 4086 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) | 4150 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 4087 { | 4151 { |
| 4152 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS equenceLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4088 if (UNLIKELY(info.Length() < 1)) { | 4153 if (UNLIKELY(info.Length() < 1)) { |
| 4089 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLon gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length( ))), info.GetIsolate()); | 4154 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLon gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length( ))), info.GetIsolate()); |
| 4090 return; | 4155 return; |
| 4091 } | 4156 } |
| 4092 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4157 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4093 V8TRYCATCH_VOID(Vector<int>, sequenceLongArg, toNativeArray<int>(info[0], 1, info.GetIsolate())); | 4158 V8TRYCATCH_VOID(Vector<int>, sequenceLongArg, toNativeArray<int>(info[0], 1, info.GetIsolate())); |
| 4094 imp->voidMethodSequenceLongArg(sequenceLongArg); | 4159 imp->voidMethodSequenceLongArg(sequenceLongArg); |
| 4095 } | 4160 } |
| 4096 | 4161 |
| 4097 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) | 4162 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) |
| 4098 { | 4163 { |
| 4099 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4164 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4100 TestObjectPythonV8Internal::voidMethodSequenceLongArgMethod(info); | 4165 TestObjectPythonV8Internal::voidMethodSequenceLongArgMethod(info); |
| 4101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4166 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4102 } | 4167 } |
| 4103 | 4168 |
| 4104 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) | 4169 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 4105 { | 4170 { |
| 4171 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS equenceStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4106 if (UNLIKELY(info.Length() < 1)) { | 4172 if (UNLIKELY(info.Length() < 1)) { |
| 4107 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStr ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt h())), info.GetIsolate()); | 4173 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStr ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt h())), info.GetIsolate()); |
| 4108 return; | 4174 return; |
| 4109 } | 4175 } |
| 4110 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4176 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4111 V8TRYCATCH_VOID(Vector<String>, sequenceStringArg, toNativeArray<String>(inf o[0], 1, info.GetIsolate())); | 4177 V8TRYCATCH_VOID(Vector<String>, sequenceStringArg, toNativeArray<String>(inf o[0], 1, info.GetIsolate())); |
| 4112 imp->voidMethodSequenceStringArg(sequenceStringArg); | 4178 imp->voidMethodSequenceStringArg(sequenceStringArg); |
| 4113 } | 4179 } |
| 4114 | 4180 |
| 4115 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) | 4181 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) |
| 4116 { | 4182 { |
| 4117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4183 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4118 TestObjectPythonV8Internal::voidMethodSequenceStringArgMethod(info); | 4184 TestObjectPythonV8Internal::voidMethodSequenceStringArgMethod(info); |
| 4119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4185 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4120 } | 4186 } |
| 4121 | 4187 |
| 4122 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) | 4188 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) |
| 4123 { | 4189 { |
| 4190 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS equenceTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolat e()); | |
| 4124 if (UNLIKELY(info.Length() < 1)) { | 4191 if (UNLIKELY(info.Length() < 1)) { |
| 4125 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTes tInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1 , info.Length())), info.GetIsolate()); | 4192 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTes tInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1 , info.Length())), info.GetIsolate()); |
| 4126 return; | 4193 return; |
| 4127 } | 4194 } |
| 4128 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4195 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4129 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, sequenceTestInterfaceEm ptyArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); | 4196 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, sequenceTestInterfaceEm ptyArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); |
| 4130 imp->voidMethodSequenceTestInterfaceEmptyArg(sequenceTestInterfaceEmptyArg); | 4197 imp->voidMethodSequenceTestInterfaceEmptyArg(sequenceTestInterfaceEmptyArg); |
| 4131 } | 4198 } |
| 4132 | 4199 |
| 4133 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) | 4200 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) |
| 4134 { | 4201 { |
| 4135 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4136 TestObjectPythonV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(in fo); | 4203 TestObjectPythonV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(in fo); |
| 4137 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4138 } | 4205 } |
| 4139 | 4206 |
| 4140 static void voidMethodNullableStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) | 4207 static void voidMethodNullableStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 4141 { | 4208 { |
| 4209 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodN ullableStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4142 if (UNLIKELY(info.Length() < 1)) { | 4210 if (UNLIKELY(info.Length() < 1)) { |
| 4143 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNullableStr ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt h())), info.GetIsolate()); | 4211 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNullableStr ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt h())), info.GetIsolate()); |
| 4144 return; | 4212 return; |
| 4145 } | 4213 } |
| 4146 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4214 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4147 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate( ))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0) ; | 4215 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate( ))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0) ; |
| 4148 imp->voidMethodNullableStringArg(nullableTestInterfaceEmptyArg); | 4216 imp->voidMethodNullableStringArg(nullableTestInterfaceEmptyArg); |
| 4149 } | 4217 } |
| 4150 | 4218 |
| 4151 static void voidMethodNullableStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) | 4219 static void voidMethodNullableStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) |
| 4152 { | 4220 { |
| 4153 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4221 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4154 TestObjectPythonV8Internal::voidMethodNullableStringArgMethod(info); | 4222 TestObjectPythonV8Internal::voidMethodNullableStringArgMethod(info); |
| 4155 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4223 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4156 } | 4224 } |
| 4157 | 4225 |
| 4158 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info ) | 4226 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info ) |
| 4159 { | 4227 { |
| 4228 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testEnumMet hod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4160 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4229 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4161 v8SetReturnValueString(info, imp->testEnumMethod(), info.GetIsolate()); | 4230 v8SetReturnValueString(info, imp->testEnumMethod(), info.GetIsolate()); |
| 4162 } | 4231 } |
| 4163 | 4232 |
| 4164 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) | 4233 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) |
| 4165 { | 4234 { |
| 4166 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4235 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4167 TestObjectPythonV8Internal::testEnumMethodMethod(info); | 4236 TestObjectPythonV8Internal::testEnumMethodMethod(info); |
| 4168 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4237 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4169 } | 4238 } |
| 4170 | 4239 |
| 4171 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) | 4240 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) |
| 4172 { | 4241 { |
| 4242 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estEnumArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4173 if (UNLIKELY(info.Length() < 1)) { | 4243 if (UNLIKELY(info.Length() < 1)) { |
| 4174 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg ", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); | 4244 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg ", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| 4175 return; | 4245 return; |
| 4176 } | 4246 } |
| 4177 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4247 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4178 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in fo[0]); | 4248 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in fo[0]); |
| 4179 String string = testEnumTypeArg; | 4249 String string = testEnumTypeArg; |
| 4180 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) { | 4250 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) { |
| 4181 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg ", "TestObjectPython", "parameter 1 ('" + string + "') is not a valid enum value ."), info.GetIsolate()); | 4251 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg ", "TestObjectPython", "parameter 1 ('" + string + "') is not a valid enum value ."), info.GetIsolate()); |
| 4182 return; | 4252 return; |
| 4183 } | 4253 } |
| 4184 imp->voidMethodTestEnumArg(testEnumTypeArg); | 4254 imp->voidMethodTestEnumArg(testEnumTypeArg); |
| 4185 } | 4255 } |
| 4186 | 4256 |
| 4187 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) | 4257 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 4188 { | 4258 { |
| 4189 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4259 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4190 TestObjectPythonV8Internal::voidMethodTestEnumArgMethod(info); | 4260 TestObjectPythonV8Internal::voidMethodTestEnumArgMethod(info); |
| 4191 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4261 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4192 } | 4262 } |
| 4193 | 4263 |
| 4194 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) | 4264 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) |
| 4195 { | 4265 { |
| 4266 ExceptionState exceptionState(ExceptionState::ExecutionContext, "dictionaryM ethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4196 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4267 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4197 v8SetReturnValue(info, imp->dictionaryMethod()); | 4268 v8SetReturnValue(info, imp->dictionaryMethod()); |
| 4198 } | 4269 } |
| 4199 | 4270 |
| 4200 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) | 4271 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) |
| 4201 { | 4272 { |
| 4202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4273 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4203 TestObjectPythonV8Internal::dictionaryMethodMethod(info); | 4274 TestObjectPythonV8Internal::dictionaryMethodMethod(info); |
| 4204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4275 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4205 } | 4276 } |
| 4206 | 4277 |
| 4207 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) | 4278 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) |
| 4208 { | 4279 { |
| 4280 ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeFilterM ethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4209 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4281 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4210 v8SetReturnValue(info, imp->nodeFilterMethod()); | 4282 v8SetReturnValue(info, imp->nodeFilterMethod()); |
| 4211 } | 4283 } |
| 4212 | 4284 |
| 4213 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) | 4285 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) |
| 4214 { | 4286 { |
| 4215 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4287 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4216 TestObjectPythonV8Internal::nodeFilterMethodMethod(info); | 4288 TestObjectPythonV8Internal::nodeFilterMethodMethod(info); |
| 4217 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4289 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4218 } | 4290 } |
| 4219 | 4291 |
| 4220 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4292 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4221 { | 4293 { |
| 4294 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth od", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4222 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4295 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4223 v8SetReturnValue(info, imp->promiseMethod().v8Value()); | 4296 v8SetReturnValue(info, imp->promiseMethod().v8Value()); |
| 4224 } | 4297 } |
| 4225 | 4298 |
| 4226 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info) | 4299 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info) |
| 4227 { | 4300 { |
| 4228 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4301 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4229 TestObjectPythonV8Internal::promiseMethodMethod(info); | 4302 TestObjectPythonV8Internal::promiseMethodMethod(info); |
| 4230 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4303 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4231 } | 4304 } |
| 4232 | 4305 |
| 4233 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) | 4306 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 4234 { | 4307 { |
| 4308 ExceptionState exceptionState(ExceptionState::ExecutionContext, "serializedS criptValueMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4235 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4309 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4236 v8SetReturnValue(info, imp->serializedScriptValueMethod() ? imp->serializedS criptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIsola te()))); | 4310 v8SetReturnValue(info, imp->serializedScriptValueMethod() ? imp->serializedS criptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIsola te()))); |
| 4237 } | 4311 } |
| 4238 | 4312 |
| 4239 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) | 4313 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) |
| 4240 { | 4314 { |
| 4241 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4315 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4242 TestObjectPythonV8Internal::serializedScriptValueMethodMethod(info); | 4316 TestObjectPythonV8Internal::serializedScriptValueMethodMethod(info); |
| 4243 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4317 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4244 } | 4318 } |
| 4245 | 4319 |
| 4246 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) | 4320 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) |
| 4247 { | 4321 { |
| 4322 ExceptionState exceptionState(ExceptionState::ExecutionContext, "xPathNSReso lverMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4248 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4323 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4249 v8SetReturnValue(info, imp->xPathNSResolverMethod()); | 4324 v8SetReturnValue(info, imp->xPathNSResolverMethod()); |
| 4250 } | 4325 } |
| 4251 | 4326 |
| 4252 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) | 4327 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 4253 { | 4328 { |
| 4254 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4329 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4255 TestObjectPythonV8Internal::xPathNSResolverMethodMethod(info); | 4330 TestObjectPythonV8Internal::xPathNSResolverMethodMethod(info); |
| 4256 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4331 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4257 } | 4332 } |
| 4258 | 4333 |
| 4259 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) | 4334 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) |
| 4260 { | 4335 { |
| 4336 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD ictionaryArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4261 if (UNLIKELY(info.Length() < 1)) { | 4337 if (UNLIKELY(info.Length() < 1)) { |
| 4262 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()) ), info.GetIsolate()); | 4338 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()) ), info.GetIsolate()); |
| 4263 return; | 4339 return; |
| 4264 } | 4340 } |
| 4265 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4341 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4266 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola te())); | 4342 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola te())); |
| 4267 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { | 4343 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { |
| 4268 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA rg", "TestObjectPython", "parameter 1 ('dictionaryArg') is not an object."), inf o.GetIsolate()); | 4344 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA rg", "TestObjectPython", "parameter 1 ('dictionaryArg') is not an object."), inf o.GetIsolate()); |
| 4269 return; | 4345 return; |
| 4270 } | 4346 } |
| 4271 imp->voidMethodDictionaryArg(dictionaryArg); | 4347 imp->voidMethodDictionaryArg(dictionaryArg); |
| 4272 } | 4348 } |
| 4273 | 4349 |
| 4274 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) | 4350 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) |
| 4275 { | 4351 { |
| 4276 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4352 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4277 TestObjectPythonV8Internal::voidMethodDictionaryArgMethod(info); | 4353 TestObjectPythonV8Internal::voidMethodDictionaryArgMethod(info); |
| 4278 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4354 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4279 } | 4355 } |
| 4280 | 4356 |
| 4281 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) | 4357 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) |
| 4282 { | 4358 { |
| 4359 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodN odeFilterArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4283 if (UNLIKELY(info.Length() < 1)) { | 4360 if (UNLIKELY(info.Length() < 1)) { |
| 4284 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterA rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()) ), info.GetIsolate()); | 4361 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterA rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()) ), info.GetIsolate()); |
| 4285 return; | 4362 return; |
| 4286 } | 4363 } |
| 4287 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4364 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4288 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], inf o.GetIsolate())); | 4365 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], inf o.GetIsolate())); |
| 4289 imp->voidMethodNodeFilterArg(nodeFilterArg.release()); | 4366 imp->voidMethodNodeFilterArg(nodeFilterArg.release()); |
| 4290 } | 4367 } |
| 4291 | 4368 |
| 4292 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) | 4369 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) |
| 4293 { | 4370 { |
| 4294 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4371 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4295 TestObjectPythonV8Internal::voidMethodNodeFilterArgMethod(info); | 4372 TestObjectPythonV8Internal::voidMethodNodeFilterArgMethod(info); |
| 4296 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4373 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4297 } | 4374 } |
| 4298 | 4375 |
| 4299 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) | 4376 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) |
| 4300 { | 4377 { |
| 4378 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodP romiseArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4301 if (UNLIKELY(info.Length() < 1)) { | 4379 if (UNLIKELY(info.Length() < 1)) { |
| 4302 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg" , "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); | 4380 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg" , "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| 4303 return; | 4381 return; |
| 4304 } | 4382 } |
| 4305 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4383 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4306 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0])); | 4384 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0])); |
| 4307 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { | 4385 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { |
| 4308 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg" , "TestObjectPython", "parameter 1 ('promiseArg') is not an object."), info.GetI solate()); | 4386 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg" , "TestObjectPython", "parameter 1 ('promiseArg') is not an object."), info.GetI solate()); |
| 4309 return; | 4387 return; |
| 4310 } | 4388 } |
| 4311 imp->voidMethodPromiseArg(promiseArg); | 4389 imp->voidMethodPromiseArg(promiseArg); |
| 4312 } | 4390 } |
| 4313 | 4391 |
| 4314 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) | 4392 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) |
| 4315 { | 4393 { |
| 4316 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4317 TestObjectPythonV8Internal::voidMethodPromiseArgMethod(info); | 4395 TestObjectPythonV8Internal::voidMethodPromiseArgMethod(info); |
| 4318 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4319 } | 4397 } |
| 4320 | 4398 |
| 4321 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) | 4399 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) |
| 4322 { | 4400 { |
| 4401 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS erializedScriptValueArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4323 if (UNLIKELY(info.Length() < 1)) { | 4402 if (UNLIKELY(info.Length() < 1)) { |
| 4324 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSerializedS criptValueArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, inf o.Length())), info.GetIsolate()); | 4403 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSerializedS criptValueArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, inf o.Length())), info.GetIsolate()); |
| 4325 return; | 4404 return; |
| 4326 } | 4405 } |
| 4327 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4406 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4328 bool serializedScriptValueArgDidThrow = false; | 4407 bool serializedScriptValueArgDidThrow = false; |
| 4329 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal ue::create(info[0], 0, 0, serializedScriptValueArgDidThrow, info.GetIsolate()); | 4408 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal ue::create(info[0], 0, 0, serializedScriptValueArgDidThrow, info.GetIsolate()); |
| 4330 if (serializedScriptValueArgDidThrow) | 4409 if (serializedScriptValueArgDidThrow) |
| 4331 return; | 4410 return; |
| 4332 imp->voidMethodSerializedScriptValueArg(serializedScriptValueArg); | 4411 imp->voidMethodSerializedScriptValueArg(serializedScriptValueArg); |
| 4333 } | 4412 } |
| 4334 | 4413 |
| 4335 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) | 4414 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) |
| 4336 { | 4415 { |
| 4337 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4416 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4338 TestObjectPythonV8Internal::voidMethodSerializedScriptValueArgMethod(info); | 4417 TestObjectPythonV8Internal::voidMethodSerializedScriptValueArgMethod(info); |
| 4339 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4340 } | 4419 } |
| 4341 | 4420 |
| 4342 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) | 4421 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) |
| 4343 { | 4422 { |
| 4423 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodX PathNSResolverArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4344 if (UNLIKELY(info.Length() < 1)) { | 4424 if (UNLIKELY(info.Length() < 1)) { |
| 4345 throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSReso lverArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng th())), info.GetIsolate()); | 4425 throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSReso lverArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng th())), info.GetIsolate()); |
| 4346 return; | 4426 return; |
| 4347 } | 4427 } |
| 4348 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4428 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4349 V8TRYCATCH_VOID(RefPtr<XPathNSResolver>, xPathNSResolverArg, toXPathNSResolv er(info[0], info.GetIsolate())); | 4429 V8TRYCATCH_VOID(RefPtr<XPathNSResolver>, xPathNSResolverArg, toXPathNSResolv er(info[0], info.GetIsolate())); |
| 4350 imp->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); | 4430 imp->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); |
| 4351 } | 4431 } |
| 4352 | 4432 |
| 4353 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) | 4433 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) |
| 4354 { | 4434 { |
| 4355 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4356 TestObjectPythonV8Internal::voidMethodXPathNSResolverArgMethod(info); | 4436 TestObjectPythonV8Internal::voidMethodXPathNSResolverArgMethod(info); |
| 4357 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4358 } | 4438 } |
| 4359 | 4439 |
| 4360 static void voidMethodSequenceDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) | 4440 static void voidMethodSequenceDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) |
| 4361 { | 4441 { |
| 4442 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS equenceDictionaryArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4362 if (UNLIKELY(info.Length() < 1)) { | 4443 if (UNLIKELY(info.Length() < 1)) { |
| 4363 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceDic tionaryArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L ength())), info.GetIsolate()); | 4444 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceDic tionaryArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L ength())), info.GetIsolate()); |
| 4364 return; | 4445 return; |
| 4365 } | 4446 } |
| 4366 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4447 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4367 V8TRYCATCH_VOID(Vector<Dictionary>, sequenceDictionaryArg, toNativeArray<Dic tionary>(info[0], 1, info.GetIsolate())); | 4448 V8TRYCATCH_VOID(Vector<Dictionary>, sequenceDictionaryArg, toNativeArray<Dic tionary>(info[0], 1, info.GetIsolate())); |
| 4368 imp->voidMethodSequenceDictionaryArg(sequenceDictionaryArg); | 4449 imp->voidMethodSequenceDictionaryArg(sequenceDictionaryArg); |
| 4369 } | 4450 } |
| 4370 | 4451 |
| 4371 static void voidMethodSequenceDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) | 4452 static void voidMethodSequenceDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) |
| 4372 { | 4453 { |
| 4373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4374 TestObjectPythonV8Internal::voidMethodSequenceDictionaryArgMethod(info); | 4455 TestObjectPythonV8Internal::voidMethodSequenceDictionaryArgMethod(info); |
| 4375 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4376 } | 4457 } |
| 4377 | 4458 |
| 4378 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) | 4459 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) |
| 4379 { | 4460 { |
| 4461 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4380 if (UNLIKELY(info.Length() < 2)) { | 4462 if (UNLIKELY(info.Length() < 2)) { |
| 4381 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgLo ngArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length ())), info.GetIsolate()); | 4463 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgLo ngArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length ())), info.GetIsolate()); |
| 4382 return; | 4464 return; |
| 4383 } | 4465 } |
| 4384 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4466 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4385 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ; | 4467 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ; |
| 4386 V8TRYCATCH_VOID(int, longArg, toInt32(info[1])); | 4468 V8TRYCATCH_VOID(int, longArg, toInt32(info[1])); |
| 4387 imp->voidMethodStringArgLongArg(stringArg, longArg); | 4469 imp->voidMethodStringArgLongArg(stringArg, longArg); |
| 4388 } | 4470 } |
| 4389 | 4471 |
| 4390 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) | 4472 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) |
| 4391 { | 4473 { |
| 4392 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4474 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4393 TestObjectPythonV8Internal::voidMethodStringArgLongArgMethod(info); | 4475 TestObjectPythonV8Internal::voidMethodStringArgLongArgMethod(info); |
| 4394 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4476 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4395 } | 4477 } |
| 4396 | 4478 |
| 4397 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) | 4479 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 4398 { | 4480 { |
| 4481 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4399 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4482 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4400 if (UNLIKELY(info.Length() <= 0)) { | 4483 if (UNLIKELY(info.Length() <= 0)) { |
| 4401 imp->voidMethodOptionalStringArg(); | 4484 imp->voidMethodOptionalStringArg(); |
| 4402 return; | 4485 return; |
| 4403 } | 4486 } |
| 4404 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg, info[0]); | 4487 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg, info[0]); |
| 4405 imp->voidMethodOptionalStringArg(optionalStringArg); | 4488 imp->voidMethodOptionalStringArg(optionalStringArg); |
| 4406 } | 4489 } |
| 4407 | 4490 |
| 4408 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) | 4491 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) |
| 4409 { | 4492 { |
| 4410 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4493 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4411 TestObjectPythonV8Internal::voidMethodOptionalStringArgMethod(info); | 4494 TestObjectPythonV8Internal::voidMethodOptionalStringArgMethod(info); |
| 4412 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4495 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4413 } | 4496 } |
| 4414 | 4497 |
| 4415 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) | 4498 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) |
| 4416 { | 4499 { |
| 4500 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolat e()); | |
| 4417 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4501 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4418 if (UNLIKELY(info.Length() <= 0)) { | 4502 if (UNLIKELY(info.Length() <= 0)) { |
| 4419 imp->voidMethodOptionalTestInterfaceEmptyArg(); | 4503 imp->voidMethodOptionalTestInterfaceEmptyArg(); |
| 4420 return; | 4504 return; |
| 4421 } | 4505 } |
| 4422 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate( ))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0) ; | 4506 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate( ))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0) ; |
| 4423 imp->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg); | 4507 imp->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg); |
| 4424 } | 4508 } |
| 4425 | 4509 |
| 4426 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) | 4510 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) |
| 4427 { | 4511 { |
| 4428 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4512 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4429 TestObjectPythonV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(in fo); | 4513 TestObjectPythonV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(in fo); |
| 4430 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4514 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4431 } | 4515 } |
| 4432 | 4516 |
| 4433 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) | 4517 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 4434 { | 4518 { |
| 4519 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4435 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4520 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4436 if (UNLIKELY(info.Length() <= 0)) { | 4521 if (UNLIKELY(info.Length() <= 0)) { |
| 4437 imp->voidMethodOptionalLongArg(); | 4522 imp->voidMethodOptionalLongArg(); |
| 4438 return; | 4523 return; |
| 4439 } | 4524 } |
| 4440 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); | 4525 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 4441 imp->voidMethodOptionalLongArg(optionalLongArg); | 4526 imp->voidMethodOptionalLongArg(optionalLongArg); |
| 4442 } | 4527 } |
| 4443 | 4528 |
| 4444 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) | 4529 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) |
| 4445 { | 4530 { |
| 4446 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4531 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4447 TestObjectPythonV8Internal::voidMethodOptionalLongArgMethod(info); | 4532 TestObjectPythonV8Internal::voidMethodOptionalLongArgMethod(info); |
| 4448 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4533 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4449 } | 4534 } |
| 4450 | 4535 |
| 4451 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) | 4536 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 4452 { | 4537 { |
| 4538 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4453 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4539 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4454 if (UNLIKELY(info.Length() <= 0)) { | 4540 if (UNLIKELY(info.Length() <= 0)) { |
| 4455 v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(), info.Ge tIsolate()); | 4541 v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(), info.Ge tIsolate()); |
| 4456 return; | 4542 return; |
| 4457 } | 4543 } |
| 4458 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); | 4544 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 4459 v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(optionalLongAr g), info.GetIsolate()); | 4545 v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(optionalLongAr g), info.GetIsolate()); |
| 4460 } | 4546 } |
| 4461 | 4547 |
| 4462 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) | 4548 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) |
| 4463 { | 4549 { |
| 4464 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4550 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4465 TestObjectPythonV8Internal::stringMethodOptionalLongArgMethod(info); | 4551 TestObjectPythonV8Internal::stringMethodOptionalLongArgMethod(info); |
| 4466 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4552 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4467 } | 4553 } |
| 4468 | 4554 |
| 4469 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) | 4555 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) |
| 4470 { | 4556 { |
| 4557 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolat e()); | |
| 4471 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4558 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4472 if (UNLIKELY(info.Length() <= 0)) { | 4559 if (UNLIKELY(info.Length() <= 0)) { |
| 4473 v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg()); | 4560 v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg()); |
| 4474 return; | 4561 return; |
| 4475 } | 4562 } |
| 4476 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); | 4563 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 4477 v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg(optional LongArg)); | 4564 v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg(optional LongArg)); |
| 4478 } | 4565 } |
| 4479 | 4566 |
| 4480 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) | 4567 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) |
| 4481 { | 4568 { |
| 4482 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4483 TestObjectPythonV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(in fo); | 4570 TestObjectPythonV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(in fo); |
| 4484 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4485 } | 4572 } |
| 4486 | 4573 |
| 4487 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) | 4574 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 4488 { | 4575 { |
| 4576 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4489 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4577 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4490 if (UNLIKELY(info.Length() <= 0)) { | 4578 if (UNLIKELY(info.Length() <= 0)) { |
| 4491 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg()); | 4579 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg()); |
| 4492 return; | 4580 return; |
| 4493 } | 4581 } |
| 4494 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); | 4582 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 4495 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg(optionalLongArg)); | 4583 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg(optionalLongArg)); |
| 4496 } | 4584 } |
| 4497 | 4585 |
| 4498 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) | 4586 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) |
| 4499 { | 4587 { |
| 4500 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4501 TestObjectPythonV8Internal::longMethodOptionalLongArgMethod(info); | 4589 TestObjectPythonV8Internal::longMethodOptionalLongArgMethod(info); |
| 4502 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4590 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4503 } | 4591 } |
| 4504 | 4592 |
| 4505 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) | 4593 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) |
| 4506 { | 4594 { |
| 4595 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4507 if (UNLIKELY(info.Length() < 1)) { | 4596 if (UNLIKELY(info.Length() < 1)) { |
| 4508 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti onalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info. Length())), info.GetIsolate()); | 4597 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti onalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info. Length())), info.GetIsolate()); |
| 4509 return; | 4598 return; |
| 4510 } | 4599 } |
| 4511 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4600 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4512 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4601 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4513 if (UNLIKELY(info.Length() <= 1)) { | 4602 if (UNLIKELY(info.Length() <= 1)) { |
| 4514 imp->voidMethodLongArgOptionalLongArg(longArg); | 4603 imp->voidMethodLongArgOptionalLongArg(longArg); |
| 4515 return; | 4604 return; |
| 4516 } | 4605 } |
| 4517 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[1])); | 4606 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[1])); |
| 4518 imp->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); | 4607 imp->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); |
| 4519 } | 4608 } |
| 4520 | 4609 |
| 4521 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) | 4610 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) |
| 4522 { | 4611 { |
| 4523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4612 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4524 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgMethod(info); | 4613 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgMethod(info); |
| 4525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4614 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4526 } | 4615 } |
| 4527 | 4616 |
| 4528 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) | 4617 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) |
| 4529 { | 4618 { |
| 4619 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.G etIsolate()); | |
| 4530 if (UNLIKELY(info.Length() < 1)) { | 4620 if (UNLIKELY(info.Length() < 1)) { |
| 4531 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti onalLongArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArg uments(1, info.Length())), info.GetIsolate()); | 4621 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti onalLongArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArg uments(1, info.Length())), info.GetIsolate()); |
| 4532 return; | 4622 return; |
| 4533 } | 4623 } |
| 4534 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4624 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4535 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4625 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4536 if (UNLIKELY(info.Length() <= 1)) { | 4626 if (UNLIKELY(info.Length() <= 1)) { |
| 4537 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); | 4627 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); |
| 4538 return; | 4628 return; |
| 4539 } | 4629 } |
| 4540 V8TRYCATCH_VOID(int, optionalLongArg1, toInt32(info[1])); | 4630 V8TRYCATCH_VOID(int, optionalLongArg1, toInt32(info[1])); |
| 4541 if (UNLIKELY(info.Length() <= 2)) { | 4631 if (UNLIKELY(info.Length() <= 2)) { |
| 4542 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLo ngArg1); | 4632 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLo ngArg1); |
| 4543 return; | 4633 return; |
| 4544 } | 4634 } |
| 4545 V8TRYCATCH_VOID(int, optionalLongArg2, toInt32(info[2])); | 4635 V8TRYCATCH_VOID(int, optionalLongArg2, toInt32(info[2])); |
| 4546 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongAr g1, optionalLongArg2); | 4636 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongAr g1, optionalLongArg2); |
| 4547 } | 4637 } |
| 4548 | 4638 |
| 4549 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 4639 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4550 { | 4640 { |
| 4551 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4641 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4552 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgM ethod(info); | 4642 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgM ethod(info); |
| 4553 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4643 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4554 } | 4644 } |
| 4555 | 4645 |
| 4556 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) | 4646 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) |
| 4557 { | 4647 { |
| 4648 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.Ge tIsolate()); | |
| 4558 if (UNLIKELY(info.Length() < 1)) { | 4649 if (UNLIKELY(info.Length() < 1)) { |
| 4559 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti onalTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArgu ments(1, info.Length())), info.GetIsolate()); | 4650 throwTypeError(ExceptionMessages::failedToExecute("voidMethodLongArgOpti onalTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArgu ments(1, info.Length())), info.GetIsolate()); |
| 4560 return; | 4651 return; |
| 4561 } | 4652 } |
| 4562 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4653 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4563 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4654 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4564 if (UNLIKELY(info.Length() <= 1)) { | 4655 if (UNLIKELY(info.Length() <= 1)) { |
| 4565 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); | 4656 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); |
| 4566 return; | 4657 return; |
| 4567 } | 4658 } |
| 4568 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); | 4659 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); |
| 4569 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestInt erfaceEmpty); | 4660 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestInt erfaceEmpty); |
| 4570 } | 4661 } |
| 4571 | 4662 |
| 4572 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) | 4663 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) |
| 4573 { | 4664 { |
| 4574 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4665 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4575 TestObjectPythonV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMe thod(info); | 4666 TestObjectPythonV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMe thod(info); |
| 4576 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4667 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4577 } | 4668 } |
| 4578 | 4669 |
| 4579 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) | 4670 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) |
| 4580 { | 4671 { |
| 4672 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObjectPython", info.Holder(), info.Ge tIsolate()); | |
| 4581 if (UNLIKELY(info.Length() < 1)) { | 4673 if (UNLIKELY(info.Length() < 1)) { |
| 4582 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArgu ments(1, info.Length())), info.GetIsolate()); | 4674 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyArgOptionalLongArg", "TestObjectPython", ExceptionMessages::notEnoughArgu ments(1, info.Length())), info.GetIsolate()); |
| 4583 return; | 4675 return; |
| 4584 } | 4676 } |
| 4585 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4677 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4586 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); | 4678 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0); |
| 4587 if (UNLIKELY(info.Length() <= 1)) { | 4679 if (UNLIKELY(info.Length() <= 1)) { |
| 4588 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfac eEmpty); | 4680 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfac eEmpty); |
| 4589 return; | 4681 return; |
| 4590 } | 4682 } |
| 4591 V8TRYCATCH_VOID(int, longArg, toInt32(info[1])); | 4683 V8TRYCATCH_VOID(int, longArg, toInt32(info[1])); |
| 4592 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmp ty, longArg); | 4684 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmp ty, longArg); |
| 4593 } | 4685 } |
| 4594 | 4686 |
| 4595 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) | 4687 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) |
| 4596 { | 4688 { |
| 4597 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4689 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4598 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMe thod(info); | 4690 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMe thod(info); |
| 4599 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4600 } | 4692 } |
| 4601 | 4693 |
| 4602 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) | 4694 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) |
| 4603 { | 4695 { |
| 4696 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalDictionaryArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4604 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4697 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4605 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info. GetIsolate())); | 4698 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info. GetIsolate())); |
| 4606 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO bject()) { | 4699 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO bject()) { |
| 4607 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic tionaryArg", "TestObjectPython", "parameter 1 ('optionalDictionaryArg') is not a n object."), info.GetIsolate()); | 4700 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic tionaryArg", "TestObjectPython", "parameter 1 ('optionalDictionaryArg') is not a n object."), info.GetIsolate()); |
| 4608 return; | 4701 return; |
| 4609 } | 4702 } |
| 4610 imp->voidMethodOptionalDictionaryArg(optionalDictionaryArg); | 4703 imp->voidMethodOptionalDictionaryArg(optionalDictionaryArg); |
| 4611 } | 4704 } |
| 4612 | 4705 |
| 4613 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) | 4706 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) |
| 4614 { | 4707 { |
| 4615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4708 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4616 TestObjectPythonV8Internal::voidMethodOptionalDictionaryArgMethod(info); | 4709 TestObjectPythonV8Internal::voidMethodOptionalDictionaryArgMethod(info); |
| 4617 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4710 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4618 } | 4711 } |
| 4619 | 4712 |
| 4620 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) | 4713 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 4621 { | 4714 { |
| 4715 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV ariadicStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4622 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4716 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4623 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String >(info, 0)); | 4717 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String >(info, 0)); |
| 4624 imp->voidMethodVariadicStringArg(variadicStringArgs); | 4718 imp->voidMethodVariadicStringArg(variadicStringArgs); |
| 4625 } | 4719 } |
| 4626 | 4720 |
| 4627 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) | 4721 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) |
| 4628 { | 4722 { |
| 4629 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4723 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4630 TestObjectPythonV8Internal::voidMethodVariadicStringArgMethod(info); | 4724 TestObjectPythonV8Internal::voidMethodVariadicStringArgMethod(info); |
| 4631 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4725 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4632 } | 4726 } |
| 4633 | 4727 |
| 4634 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) | 4728 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) |
| 4635 { | 4729 { |
| 4730 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgVariadicStringArg", "TestObjectPython", info.Holder(), info.GetIsolate() ); | |
| 4636 if (UNLIKELY(info.Length() < 1)) { | 4731 if (UNLIKELY(info.Length() < 1)) { |
| 4637 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVa riadicStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i nfo.Length())), info.GetIsolate()); | 4732 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVa riadicStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i nfo.Length())), info.GetIsolate()); |
| 4638 return; | 4733 return; |
| 4639 } | 4734 } |
| 4640 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4735 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4641 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ; | 4736 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ; |
| 4642 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String >(info, 1)); | 4737 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String >(info, 1)); |
| 4643 imp->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 4738 imp->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
| 4644 } | 4739 } |
| 4645 | 4740 |
| 4646 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) | 4741 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) |
| 4647 { | 4742 { |
| 4648 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4743 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4649 TestObjectPythonV8Internal::voidMethodStringArgVariadicStringArgMethod(info) ; | 4744 TestObjectPythonV8Internal::voidMethodStringArgVariadicStringArgMethod(info) ; |
| 4650 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4745 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4651 } | 4746 } |
| 4652 | 4747 |
| 4653 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) | 4748 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) |
| 4654 { | 4749 { |
| 4750 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV ariadicTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolat e()); | |
| 4655 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4751 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4656 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 4752 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
| 4657 for (int i = 0; i < info.Length(); ++i) { | 4753 for (int i = 0; i < info.Length(); ++i) { |
| 4658 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate(), world Type(info.GetIsolate()))) { | 4754 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate(), world Type(info.GetIsolate()))) { |
| 4659 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi cTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type 'TestIn terfaceEmpty'."), info.GetIsolate()); | 4755 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi cTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type 'TestIn terfaceEmpty'."), info.GetIsolate()); |
| 4660 return; | 4756 return; |
| 4661 } | 4757 } |
| 4662 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8: :Handle<v8::Object>::Cast(info[i]))); | 4758 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8: :Handle<v8::Object>::Cast(info[i]))); |
| 4663 } | 4759 } |
| 4664 imp->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs) ; | 4760 imp->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs) ; |
| 4665 } | 4761 } |
| 4666 | 4762 |
| 4667 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) | 4763 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) |
| 4668 { | 4764 { |
| 4669 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4765 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4670 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(in fo); | 4766 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(in fo); |
| 4671 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4767 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4672 } | 4768 } |
| 4673 | 4769 |
| 4674 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info) | 4770 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info) |
| 4675 { | 4771 { |
| 4772 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", info.Hol der(), info.GetIsolate()); | |
| 4676 if (UNLIKELY(info.Length() < 1)) { | 4773 if (UNLIKELY(info.Length() < 1)) { |
| 4677 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages: :notEnoughArguments(1, info.Length())), info.GetIsolate()); | 4774 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages: :notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| 4678 return; | 4775 return; |
| 4679 } | 4776 } |
| 4680 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4777 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4681 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); | 4778 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); |
| 4682 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 4779 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
| 4683 for (int i = 1; i < info.Length(); ++i) { | 4780 for (int i = 1; i < info.Length(); ++i) { |
| 4684 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate(), world Type(info.GetIsolate()))) { | 4781 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate(), world Type(info.GetIsolate()))) { |
| 4685 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", "parameter 2 i s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); | 4782 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", "parameter 2 i s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); |
| 4686 return; | 4783 return; |
| 4687 } | 4784 } |
| 4688 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8: :Handle<v8::Object>::Cast(info[i]))); | 4785 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8: :Handle<v8::Object>::Cast(info[i]))); |
| 4689 } | 4786 } |
| 4690 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf aceEmptyArg, variadicTestInterfaceEmptyArgs); | 4787 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf aceEmptyArg, variadicTestInterfaceEmptyArgs); |
| 4691 } | 4788 } |
| 4692 | 4789 |
| 4693 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) | 4790 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4694 { | 4791 { |
| 4695 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4792 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4696 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter faceEmptyArgMethod(info); | 4793 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter faceEmptyArgMethod(info); |
| 4697 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4794 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4698 } | 4795 } |
| 4699 | 4796 |
| 4700 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 4797 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4701 { | 4798 { |
| 4799 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4702 if (UNLIKELY(info.Length() < 1)) { | 4800 if (UNLIKELY(info.Length() < 1)) { |
| 4703 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 4801 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 4704 return; | 4802 return; |
| 4705 } | 4803 } |
| 4706 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4804 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4707 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4805 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4708 imp->overloadedMethodA(longArg); | 4806 imp->overloadedMethodA(longArg); |
| 4709 } | 4807 } |
| 4710 | 4808 |
| 4711 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 4809 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4712 { | 4810 { |
| 4811 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4713 if (UNLIKELY(info.Length() < 2)) { | 4812 if (UNLIKELY(info.Length() < 2)) { |
| 4714 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", " TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), inf o.GetIsolate()); | 4813 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", " TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())), inf o.GetIsolate()); |
| 4715 return; | 4814 return; |
| 4716 } | 4815 } |
| 4717 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4816 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4718 V8TRYCATCH_VOID(int, longArg1, toInt32(info[0])); | 4817 V8TRYCATCH_VOID(int, longArg1, toInt32(info[0])); |
| 4719 V8TRYCATCH_VOID(int, longArg2, toInt32(info[1])); | 4818 V8TRYCATCH_VOID(int, longArg2, toInt32(info[1])); |
| 4720 imp->overloadedMethodA(longArg1, longArg2); | 4819 imp->overloadedMethodA(longArg1, longArg2); |
| 4721 } | 4820 } |
| 4722 | 4821 |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 4739 | 4838 |
| 4740 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 4839 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 4741 { | 4840 { |
| 4742 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4841 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4743 TestObjectPythonV8Internal::overloadedMethodAMethod(info); | 4842 TestObjectPythonV8Internal::overloadedMethodAMethod(info); |
| 4744 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4843 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4745 } | 4844 } |
| 4746 | 4845 |
| 4747 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 4846 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4748 { | 4847 { |
| 4848 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4749 if (UNLIKELY(info.Length() < 1)) { | 4849 if (UNLIKELY(info.Length() < 1)) { |
| 4750 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 4850 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 4751 return; | 4851 return; |
| 4752 } | 4852 } |
| 4753 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4853 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4754 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4854 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4755 imp->overloadedMethodB(longArg); | 4855 imp->overloadedMethodB(longArg); |
| 4756 } | 4856 } |
| 4757 | 4857 |
| 4758 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 4858 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4759 { | 4859 { |
| 4860 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4760 if (UNLIKELY(info.Length() < 1)) { | 4861 if (UNLIKELY(info.Length() < 1)) { |
| 4761 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 4862 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 4762 return; | 4863 return; |
| 4763 } | 4864 } |
| 4764 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4865 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4765 V8TRYCATCH_VOID(int, longArg1, toInt32(info[0])); | 4866 V8TRYCATCH_VOID(int, longArg1, toInt32(info[0])); |
| 4766 if (UNLIKELY(info.Length() <= 1)) { | 4867 if (UNLIKELY(info.Length() <= 1)) { |
| 4767 imp->overloadedMethodB(longArg1); | 4868 imp->overloadedMethodB(longArg1); |
| 4768 return; | 4869 return; |
| 4769 } | 4870 } |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 4790 | 4891 |
| 4791 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 4892 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 4792 { | 4893 { |
| 4793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4894 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4794 TestObjectPythonV8Internal::overloadedMethodBMethod(info); | 4895 TestObjectPythonV8Internal::overloadedMethodBMethod(info); |
| 4795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4896 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4796 } | 4897 } |
| 4797 | 4898 |
| 4798 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 4899 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4799 { | 4900 { |
| 4901 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4800 if (UNLIKELY(info.Length() < 1)) { | 4902 if (UNLIKELY(info.Length() < 1)) { |
| 4801 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodC", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 4903 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodC", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 4802 return; | 4904 return; |
| 4803 } | 4905 } |
| 4804 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4906 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4805 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4907 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4806 imp->overloadedMethodC(longArg); | 4908 imp->overloadedMethodC(longArg); |
| 4807 } | 4909 } |
| 4808 | 4910 |
| 4809 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 4911 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4810 { | 4912 { |
| 4913 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4811 if (UNLIKELY(info.Length() < 1)) { | 4914 if (UNLIKELY(info.Length() < 1)) { |
| 4812 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodC", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 4915 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodC", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 4813 return; | 4916 return; |
| 4814 } | 4917 } |
| 4815 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4918 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4816 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4919 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4817 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); | 4920 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); |
| 4818 imp->overloadedMethodC(longArg, longArgs); | 4921 imp->overloadedMethodC(longArg, longArgs); |
| 4819 } | 4922 } |
| 4820 | 4923 |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 4837 | 4940 |
| 4838 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 4941 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 4839 { | 4942 { |
| 4840 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4943 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4841 TestObjectPythonV8Internal::overloadedMethodCMethod(info); | 4944 TestObjectPythonV8Internal::overloadedMethodCMethod(info); |
| 4842 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4945 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4843 } | 4946 } |
| 4844 | 4947 |
| 4845 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 4948 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4846 { | 4949 { |
| 4950 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4847 if (UNLIKELY(info.Length() < 1)) { | 4951 if (UNLIKELY(info.Length() < 1)) { |
| 4848 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 4952 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 4849 return; | 4953 return; |
| 4850 } | 4954 } |
| 4851 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4955 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4852 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 4956 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4853 imp->overloadedMethodD(longArg); | 4957 imp->overloadedMethodD(longArg); |
| 4854 } | 4958 } |
| 4855 | 4959 |
| 4856 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 4960 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4857 { | 4961 { |
| 4962 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4858 if (UNLIKELY(info.Length() < 1)) { | 4963 if (UNLIKELY(info.Length() < 1)) { |
| 4859 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 4964 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 4860 return; | 4965 return; |
| 4861 } | 4966 } |
| 4862 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4967 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4863 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); | 4968 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); |
| 4864 imp->overloadedMethodD(testInterfaceEmptyArg); | 4969 imp->overloadedMethodD(testInterfaceEmptyArg); |
| 4865 } | 4970 } |
| 4866 | 4971 |
| 4867 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) | 4972 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 4883 | 4988 |
| 4884 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 4989 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 4885 { | 4990 { |
| 4886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4991 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4887 TestObjectPythonV8Internal::overloadedMethodDMethod(info); | 4992 TestObjectPythonV8Internal::overloadedMethodDMethod(info); |
| 4888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4889 } | 4994 } |
| 4890 | 4995 |
| 4891 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 4996 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4892 { | 4997 { |
| 4998 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4893 if (UNLIKELY(info.Length() < 1)) { | 4999 if (UNLIKELY(info.Length() < 1)) { |
| 4894 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 5000 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 4895 return; | 5001 return; |
| 4896 } | 5002 } |
| 4897 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5003 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4898 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5004 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4899 imp->overloadedMethodE(longArg); | 5005 imp->overloadedMethodE(longArg); |
| 4900 } | 5006 } |
| 4901 | 5007 |
| 4902 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 5008 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4903 { | 5009 { |
| 5010 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4904 if (UNLIKELY(info.Length() < 1)) { | 5011 if (UNLIKELY(info.Length() < 1)) { |
| 4905 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 5012 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 4906 return; | 5013 return; |
| 4907 } | 5014 } |
| 4908 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5015 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4909 V8TRYCATCH_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, in fo.GetIsolate())); | 5016 V8TRYCATCH_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, in fo.GetIsolate())); |
| 4910 imp->overloadedMethodE(longArrayArg); | 5017 imp->overloadedMethodE(longArrayArg); |
| 4911 } | 5018 } |
| 4912 | 5019 |
| 4913 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) | 5020 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 4929 | 5036 |
| 4930 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 5037 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 4931 { | 5038 { |
| 4932 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5039 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4933 TestObjectPythonV8Internal::overloadedMethodEMethod(info); | 5040 TestObjectPythonV8Internal::overloadedMethodEMethod(info); |
| 4934 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5041 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4935 } | 5042 } |
| 4936 | 5043 |
| 4937 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 5044 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4938 { | 5045 { |
| 5046 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4939 if (UNLIKELY(info.Length() < 1)) { | 5047 if (UNLIKELY(info.Length() < 1)) { |
| 4940 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 5048 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 4941 return; | 5049 return; |
| 4942 } | 5050 } |
| 4943 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5051 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4944 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5052 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 4945 imp->overloadedMethodF(longArg); | 5053 imp->overloadedMethodF(longArg); |
| 4946 } | 5054 } |
| 4947 | 5055 |
| 4948 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 5056 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4949 { | 5057 { |
| 5058 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4950 if (UNLIKELY(info.Length() < 1)) { | 5059 if (UNLIKELY(info.Length() < 1)) { |
| 4951 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 5060 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 4952 return; | 5061 return; |
| 4953 } | 5062 } |
| 4954 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5063 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4955 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate( ))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0) ; | 5064 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn terfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate( ))) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0) ; |
| 4956 imp->overloadedMethodF(testInterfaceEmptyNullableArg); | 5065 imp->overloadedMethodF(testInterfaceEmptyNullableArg); |
| 4957 } | 5066 } |
| 4958 | 5067 |
| 4959 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) | 5068 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 4975 | 5084 |
| 4976 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 5085 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 4977 { | 5086 { |
| 4978 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5087 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4979 TestObjectPythonV8Internal::overloadedMethodFMethod(info); | 5088 TestObjectPythonV8Internal::overloadedMethodFMethod(info); |
| 4980 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5089 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4981 } | 5090 } |
| 4982 | 5091 |
| 4983 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 5092 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4984 { | 5093 { |
| 5094 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4985 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5095 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4986 imp->overloadedMethodG(); | 5096 imp->overloadedMethodG(); |
| 4987 } | 5097 } |
| 4988 | 5098 |
| 4989 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) | 5099 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 4990 { | 5100 { |
| 5101 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 4991 if (UNLIKELY(info.Length() < 1)) { | 5102 if (UNLIKELY(info.Length() < 1)) { |
| 4992 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); | 5103 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", " TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); |
| 4993 return; | 5104 return; |
| 4994 } | 5105 } |
| 4995 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5106 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 4996 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS tringArg, info[0]); | 5107 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS tringArg, info[0]); |
| 4997 imp->overloadedMethodG(strictTypeCheckingStringArg); | 5108 imp->overloadedMethodG(strictTypeCheckingStringArg); |
| 4998 } | 5109 } |
| 4999 | 5110 |
| 5000 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) | 5111 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 5012 | 5123 |
| 5013 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) | 5124 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 5014 { | 5125 { |
| 5015 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5126 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5016 TestObjectPythonV8Internal::overloadedMethodGMethod(info); | 5127 TestObjectPythonV8Internal::overloadedMethodGMethod(info); |
| 5017 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5128 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5018 } | 5129 } |
| 5019 | 5130 |
| 5020 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn fo<v8::Value>& info) | 5131 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn fo<v8::Value>& info) |
| 5021 { | 5132 { |
| 5133 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5022 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5134 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5023 imp->overloadedPerWorldBindingsMethod(); | 5135 imp->overloadedPerWorldBindingsMethod(); |
| 5024 } | 5136 } |
| 5025 | 5137 |
| 5026 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) | 5138 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) |
| 5027 { | 5139 { |
| 5140 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5028 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5141 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5029 imp->overloadedPerWorldBindingsMethod(); | 5142 imp->overloadedPerWorldBindingsMethod(); |
| 5030 } | 5143 } |
| 5031 | 5144 |
| 5032 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info) | 5145 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info) |
| 5033 { | 5146 { |
| 5147 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5034 if (UNLIKELY(info.Length() < 1)) { | 5148 if (UNLIKELY(info.Length() < 1)) { |
| 5035 throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBin dingsMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info. Length())), info.GetIsolate()); | 5149 throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBin dingsMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info. Length())), info.GetIsolate()); |
| 5036 return; | 5150 return; |
| 5037 } | 5151 } |
| 5038 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5152 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5039 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5153 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 5040 imp->overloadedPerWorldBindingsMethod(longArg); | 5154 imp->overloadedPerWorldBindingsMethod(longArg); |
| 5041 } | 5155 } |
| 5042 | 5156 |
| 5043 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) | 5157 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 5055 | 5169 |
| 5056 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) | 5170 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) |
| 5057 { | 5171 { |
| 5058 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5172 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5059 TestObjectPythonV8Internal::overloadedPerWorldBindingsMethodMethod(info); | 5173 TestObjectPythonV8Internal::overloadedPerWorldBindingsMethodMethod(info); |
| 5060 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5174 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5061 } | 5175 } |
| 5062 | 5176 |
| 5063 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) | 5177 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) |
| 5064 { | 5178 { |
| 5179 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5065 if (UNLIKELY(info.Length() < 1)) { | 5180 if (UNLIKELY(info.Length() < 1)) { |
| 5066 throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBin dingsMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info. Length())), info.GetIsolate()); | 5181 throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldBin dingsMethod", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info. Length())), info.GetIsolate()); |
| 5067 return; | 5182 return; |
| 5068 } | 5183 } |
| 5069 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5184 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5070 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5185 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 5071 imp->overloadedPerWorldBindingsMethod(longArg); | 5186 imp->overloadedPerWorldBindingsMethod(longArg); |
| 5072 } | 5187 } |
| 5073 | 5188 |
| 5074 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info) | 5189 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info) |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 5086 | 5201 |
| 5087 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8: :FunctionCallbackInfo<v8::Value>& info) | 5202 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8: :FunctionCallbackInfo<v8::Value>& info) |
| 5088 { | 5203 { |
| 5089 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5204 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5090 TestObjectPythonV8Internal::overloadedPerWorldBindingsMethodMethodForMainWor ld(info); | 5205 TestObjectPythonV8Internal::overloadedPerWorldBindingsMethodMethodForMainWor ld(info); |
| 5091 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5206 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5092 } | 5207 } |
| 5093 | 5208 |
| 5094 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) | 5209 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) |
| 5095 { | 5210 { |
| 5211 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5096 if (UNLIKELY(info.Length() < 1)) { | 5212 if (UNLIKELY(info.Length() < 1)) { |
| 5097 throwTypeError(ExceptionMessages::failedToExecute("overloadedStaticMetho d", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())) , info.GetIsolate()); | 5213 throwTypeError(ExceptionMessages::failedToExecute("overloadedStaticMetho d", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())) , info.GetIsolate()); |
| 5098 return; | 5214 return; |
| 5099 } | 5215 } |
| 5100 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); | 5216 V8TRYCATCH_VOID(int, longArg, toInt32(info[0])); |
| 5101 TestObjectPython::overloadedStaticMethod(longArg); | 5217 TestObjectPython::overloadedStaticMethod(longArg); |
| 5102 } | 5218 } |
| 5103 | 5219 |
| 5104 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) | 5220 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) |
| 5105 { | 5221 { |
| 5222 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5106 if (UNLIKELY(info.Length() < 2)) { | 5223 if (UNLIKELY(info.Length() < 2)) { |
| 5107 throwTypeError(ExceptionMessages::failedToExecute("overloadedStaticMetho d", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())) , info.GetIsolate()); | 5224 throwTypeError(ExceptionMessages::failedToExecute("overloadedStaticMetho d", "TestObjectPython", ExceptionMessages::notEnoughArguments(2, info.Length())) , info.GetIsolate()); |
| 5108 return; | 5225 return; |
| 5109 } | 5226 } |
| 5110 V8TRYCATCH_VOID(int, longArg1, toInt32(info[0])); | 5227 V8TRYCATCH_VOID(int, longArg1, toInt32(info[0])); |
| 5111 V8TRYCATCH_VOID(int, longArg2, toInt32(info[1])); | 5228 V8TRYCATCH_VOID(int, longArg2, toInt32(info[1])); |
| 5112 TestObjectPython::overloadedStaticMethod(longArg1, longArg2); | 5229 TestObjectPython::overloadedStaticMethod(longArg1, longArg2); |
| 5113 } | 5230 } |
| 5114 | 5231 |
| 5115 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) | 5232 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 5131 | 5248 |
| 5132 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) | 5249 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) |
| 5133 { | 5250 { |
| 5134 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5251 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5135 TestObjectPythonV8Internal::overloadedStaticMethodMethod(info); | 5252 TestObjectPythonV8Internal::overloadedStaticMethodMethod(info); |
| 5136 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5253 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5137 } | 5254 } |
| 5138 | 5255 |
| 5139 static void addEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) | 5256 static void addEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) |
| 5140 { | 5257 { |
| 5258 ExceptionState exceptionState(ExceptionState::ExecutionContext, "addEventLis tener", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5141 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); | 5259 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); |
| 5142 if (DOMWindow* window = impl->toDOMWindow()) { | 5260 if (DOMWindow* window = impl->toDOMWindow()) { |
| 5143 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 5144 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptio nState)) { | 5261 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptio nState)) { |
| 5145 exceptionState.throwIfNeeded(); | 5262 exceptionState.throwIfNeeded(); |
| 5146 return; | 5263 return; |
| 5147 } | 5264 } |
| 5148 if (!window->document()) | 5265 if (!window->document()) |
| 5149 return; | 5266 return; |
| 5150 } | 5267 } |
| 5151 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[ 1], false, ListenerFindOrCreate); | 5268 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[ 1], false, ListenerFindOrCreate); |
| 5152 if (listener) { | 5269 if (listener) { |
| 5153 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev entName, info[0]); | 5270 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev entName, info[0]); |
| 5154 impl->addEventListener(eventName, listener, info[2]->BooleanValue()); | 5271 impl->addEventListener(eventName, listener, info[2]->BooleanValue()); |
| 5155 if (!impl->toNode()) | 5272 if (!impl->toNode()) |
| 5156 createHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e ventListenerCacheIndex, info.GetIsolate()); | 5273 createHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e ventListenerCacheIndex, info.GetIsolate()); |
| 5157 } | 5274 } |
| 5158 } | 5275 } |
| 5159 | 5276 |
| 5160 static void addEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) | 5277 static void addEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) |
| 5161 { | 5278 { |
| 5162 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5279 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5163 TestObjectPythonV8Internal::addEventListenerMethod(info); | 5280 TestObjectPythonV8Internal::addEventListenerMethod(info); |
| 5164 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5281 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5165 } | 5282 } |
| 5166 | 5283 |
| 5167 static void removeEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 5284 static void removeEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5168 { | 5285 { |
| 5286 ExceptionState exceptionState(ExceptionState::ExecutionContext, "removeEvent Listener", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5169 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); | 5287 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); |
| 5170 if (DOMWindow* window = impl->toDOMWindow()) { | 5288 if (DOMWindow* window = impl->toDOMWindow()) { |
| 5171 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 5172 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptio nState)) { | 5289 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptio nState)) { |
| 5173 exceptionState.throwIfNeeded(); | 5290 exceptionState.throwIfNeeded(); |
| 5174 return; | 5291 return; |
| 5175 } | 5292 } |
| 5176 if (!window->document()) | 5293 if (!window->document()) |
| 5177 return; | 5294 return; |
| 5178 } | 5295 } |
| 5179 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[ 1], false, ListenerFindOnly); | 5296 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[ 1], false, ListenerFindOnly); |
| 5180 if (listener) { | 5297 if (listener) { |
| 5181 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev entName, info[0]); | 5298 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev entName, info[0]); |
| 5182 impl->removeEventListener(eventName, listener.get(), info[2]->BooleanVal ue()); | 5299 impl->removeEventListener(eventName, listener.get(), info[2]->BooleanVal ue()); |
| 5183 if (!impl->toNode()) | 5300 if (!impl->toNode()) |
| 5184 removeHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e ventListenerCacheIndex, info.GetIsolate()); | 5301 removeHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e ventListenerCacheIndex, info.GetIsolate()); |
| 5185 } | 5302 } |
| 5186 } | 5303 } |
| 5187 | 5304 |
| 5188 static void removeEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) | 5305 static void removeEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 5189 { | 5306 { |
| 5190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5307 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5191 TestObjectPythonV8Internal::removeEventListenerMethod(info); | 5308 TestObjectPythonV8Internal::removeEventListenerMethod(info); |
| 5192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5309 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5193 } | 5310 } |
| 5194 | 5311 |
| 5195 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) | 5312 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) |
| 5196 { | 5313 { |
| 5314 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5197 if (UNLIKELY(info.Length() < 1)) { | 5315 if (UNLIKELY(info.Length() < 1)) { |
| 5198 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign edShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L ength())), info.GetIsolate()); | 5316 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign edShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L ength())), info.GetIsolate()); |
| 5199 return; | 5317 return; |
| 5200 } | 5318 } |
| 5201 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5319 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5202 unsigned clampUnsignedShortArg = 0; | 5320 unsigned clampUnsignedShortArg = 0; |
| 5203 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal ue()); | 5321 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal ue()); |
| 5204 if (!std::isnan(clampUnsignedShortArgNativeValue)) | 5322 if (!std::isnan(clampUnsignedShortArgNativeValue)) |
| 5205 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat iveValue); | 5323 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat iveValue); |
| 5206 imp->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); | 5324 imp->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); |
| 5207 } | 5325 } |
| 5208 | 5326 |
| 5209 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) | 5327 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) |
| 5210 { | 5328 { |
| 5211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5329 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5212 TestObjectPythonV8Internal::voidMethodClampUnsignedShortArgMethod(info); | 5330 TestObjectPythonV8Internal::voidMethodClampUnsignedShortArgMethod(info); |
| 5213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5331 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5214 } | 5332 } |
| 5215 | 5333 |
| 5216 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) | 5334 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) |
| 5217 { | 5335 { |
| 5336 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5218 if (UNLIKELY(info.Length() < 1)) { | 5337 if (UNLIKELY(info.Length() < 1)) { |
| 5219 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign edLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Le ngth())), info.GetIsolate()); | 5338 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign edLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Le ngth())), info.GetIsolate()); |
| 5220 return; | 5339 return; |
| 5221 } | 5340 } |
| 5222 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5341 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5223 unsigned clampUnsignedLongArg = 0; | 5342 unsigned clampUnsignedLongArg = 0; |
| 5224 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValu e()); | 5343 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValu e()); |
| 5225 if (!std::isnan(clampUnsignedLongArgNativeValue)) | 5344 if (!std::isnan(clampUnsignedLongArgNativeValue)) |
| 5226 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative Value); | 5345 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative Value); |
| 5227 imp->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); | 5346 imp->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); |
| 5228 } | 5347 } |
| 5229 | 5348 |
| 5230 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) | 5349 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) |
| 5231 { | 5350 { |
| 5232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5351 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5233 TestObjectPythonV8Internal::voidMethodClampUnsignedLongArgMethod(info); | 5352 TestObjectPythonV8Internal::voidMethodClampUnsignedLongArgMethod(info); |
| 5234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5353 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5235 } | 5354 } |
| 5236 | 5355 |
| 5237 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) | 5356 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) |
| 5238 { | 5357 { |
| 5358 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.G etIsolate()); | |
| 5239 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5359 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5240 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg, V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.Get Isolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0 ])) : 0); | 5360 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg, V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate(), worldType(info.Get Isolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[0 ])) : 0); |
| 5241 imp->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInt erfaceEmptyArg); | 5361 imp->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInt erfaceEmptyArg); |
| 5242 } | 5362 } |
| 5243 | 5363 |
| 5244 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 5364 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5245 { | 5365 { |
| 5246 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5366 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5247 TestObjectPythonV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgM ethod(info); | 5367 TestObjectPythonV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgM ethod(info); |
| 5248 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5368 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5249 } | 5369 } |
| 5250 | 5370 |
| 5251 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) | 5371 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) |
| 5252 { | 5372 { |
| 5373 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5253 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5374 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5254 V8TRYCATCH_VOID(int, defaultUndefinedLongArg, toInt32(info[0])); | 5375 V8TRYCATCH_VOID(int, defaultUndefinedLongArg, toInt32(info[0])); |
| 5255 imp->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); | 5376 imp->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
| 5256 } | 5377 } |
| 5257 | 5378 |
| 5258 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) | 5379 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) |
| 5259 { | 5380 { |
| 5260 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5381 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5261 TestObjectPythonV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); | 5382 TestObjectPythonV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); |
| 5262 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5383 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5263 } | 5384 } |
| 5264 | 5385 |
| 5265 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback Info<v8::Value>& info) | 5386 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback Info<v8::Value>& info) |
| 5266 { | 5387 { |
| 5388 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedStringArg", "TestObjectPython", info.Holder(), info.GetIsolate()) ; | |
| 5267 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5389 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5268 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr ingArg, info[0]); | 5390 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr ingArg, info[0]); |
| 5269 imp->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); | 5391 imp->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
| 5270 } | 5392 } |
| 5271 | 5393 |
| 5272 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) | 5394 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) |
| 5273 { | 5395 { |
| 5274 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5396 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5275 TestObjectPythonV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); | 5397 TestObjectPythonV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); |
| 5276 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5398 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5277 } | 5399 } |
| 5278 | 5400 |
| 5279 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) | 5401 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) |
| 5280 { | 5402 { |
| 5403 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultNullStringStringArg", "TestObjectPython", info.Holder(), info.GetIsolate() ); | |
| 5281 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5404 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5282 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt ringArg, argumentOrNull(info, 0)); | 5405 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt ringArg, argumentOrNull(info, 0)); |
| 5283 imp->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); | 5406 imp->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); |
| 5284 } | 5407 } |
| 5285 | 5408 |
| 5286 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) | 5409 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) |
| 5287 { | 5410 { |
| 5288 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5411 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5289 TestObjectPythonV8Internal::voidMethodDefaultNullStringStringArgMethod(info) ; | 5412 TestObjectPythonV8Internal::voidMethodDefaultNullStringStringArgMethod(info) ; |
| 5290 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5413 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5291 } | 5414 } |
| 5292 | 5415 |
| 5293 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) | 5416 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 5294 { | 5417 { |
| 5418 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5295 if (UNLIKELY(info.Length() < 1)) { | 5419 if (UNLIKELY(info.Length() < 1)) { |
| 5296 throwTypeError(ExceptionMessages::failedToExecute("voidMethodEnforceRang eLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Len gth())), info.GetIsolate()); | 5420 throwTypeError(ExceptionMessages::failedToExecute("voidMethodEnforceRang eLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Len gth())), info.GetIsolate()); |
| 5297 return; | 5421 return; |
| 5298 } | 5422 } |
| 5299 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5423 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5300 V8TRYCATCH_WITH_TYPECHECK_VOID(int, enforceRangeLongArg, toInt32(info[0], En forceRange, ok), info.GetIsolate()); | 5424 V8TRYCATCH_WITH_TYPECHECK_VOID(int, enforceRangeLongArg, toInt32(info[0], En forceRange, ok), info.GetIsolate()); |
| 5301 imp->voidMethodEnforceRangeLongArg(enforceRangeLongArg); | 5425 imp->voidMethodEnforceRangeLongArg(enforceRangeLongArg); |
| 5302 } | 5426 } |
| 5303 | 5427 |
| 5304 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) | 5428 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) |
| 5305 { | 5429 { |
| 5306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5430 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5307 TestObjectPythonV8Internal::voidMethodEnforceRangeLongArgMethod(info); | 5431 TestObjectPythonV8Internal::voidMethodEnforceRangeLongArgMethod(info); |
| 5308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5432 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5309 } | 5433 } |
| 5310 | 5434 |
| 5311 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) | 5435 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) |
| 5312 { | 5436 { |
| 5437 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT reatNullAsNullStringStringArg", "TestObjectPython", info.Holder(), info.GetIsola te()); | |
| 5313 if (UNLIKELY(info.Length() < 1)) { | 5438 if (UNLIKELY(info.Length() < 1)) { |
| 5314 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs NullStringStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments( 1, info.Length())), info.GetIsolate()); | 5439 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs NullStringStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments( 1, info.Length())), info.GetIsolate()); |
| 5315 return; | 5440 return; |
| 5316 } | 5441 } |
| 5317 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5442 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5318 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, treatN ullAsNullStringStringArg, info[0]); | 5443 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, treatN ullAsNullStringStringArg, info[0]); |
| 5319 imp->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringArg ); | 5444 imp->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringArg ); |
| 5320 } | 5445 } |
| 5321 | 5446 |
| 5322 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) | 5447 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) |
| 5323 { | 5448 { |
| 5324 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5449 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5325 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(i nfo); | 5450 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(i nfo); |
| 5326 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5451 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5327 } | 5452 } |
| 5328 | 5453 |
| 5329 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) | 5454 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5330 { | 5455 { |
| 5456 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT reatNullAsNullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", in fo.Holder(), info.GetIsolate()); | |
| 5331 if (UNLIKELY(info.Length() < 1)) { | 5457 if (UNLIKELY(info.Length() < 1)) { |
| 5332 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs NullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", ExceptionMes sages::notEnoughArguments(1, info.Length())), info.GetIsolate()); | 5458 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs NullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", ExceptionMes sages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
| 5333 return; | 5459 return; |
| 5334 } | 5460 } |
| 5335 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5461 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5336 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, treatNullAsNullStringStringArg, info[0]); | 5462 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, treatNullAsNullStringStringArg, info[0]); |
| 5337 imp->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(trea tNullAsNullStringStringArg); | 5463 imp->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(trea tNullAsNullStringStringArg); |
| 5338 } | 5464 } |
| 5339 | 5465 |
| 5340 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 5466 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5341 { | 5467 { |
| 5342 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5343 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsN ullStringStringArgMethod(info); | 5469 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsN ullStringStringArgMethod(info); |
| 5344 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5345 } | 5471 } |
| 5346 | 5472 |
| 5347 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) | 5473 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) |
| 5348 { | 5474 { |
| 5475 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog gingAccessForAllWorldsMethod", "TestObjectPython", info.Holder(), info.GetIsolat e()); | |
| 5349 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5476 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5350 imp->activityLoggingAccessForAllWorldsMethod(); | 5477 imp->activityLoggingAccessForAllWorldsMethod(); |
| 5351 } | 5478 } |
| 5352 | 5479 |
| 5353 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) | 5480 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) |
| 5354 { | 5481 { |
| 5355 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5482 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5356 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 5483 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); |
| 5357 if (contextData && contextData->activityLogger()) { | 5484 if (contextData && contextData->activityLogger()) { |
| 5358 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); | 5485 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); |
| 5359 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data(), "Method"); | 5486 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data(), "Method"); |
| 5360 } | 5487 } |
| 5361 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsMethodMethod(in fo); | 5488 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsMethodMethod(in fo); |
| 5362 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5489 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5363 } | 5490 } |
| 5364 | 5491 |
| 5365 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) | 5492 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 5366 { | 5493 { |
| 5494 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScr iptStateVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5367 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5495 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5368 ScriptState* currentState = ScriptState::current(); | 5496 ScriptState* currentState = ScriptState::current(); |
| 5369 if (!currentState) | 5497 if (!currentState) |
| 5370 return; | 5498 return; |
| 5371 ScriptState& state = *currentState; | 5499 ScriptState& state = *currentState; |
| 5372 imp->callWithScriptStateVoidMethod(&state); | 5500 imp->callWithScriptStateVoidMethod(&state); |
| 5373 if (state.hadException()) { | 5501 if (state.hadException()) { |
| 5374 v8::Local<v8::Value> exception = state.exception(); | 5502 v8::Local<v8::Value> exception = state.exception(); |
| 5375 state.clearException(); | 5503 state.clearException(); |
| 5376 throwError(exception, info.GetIsolate()); | 5504 throwError(exception, info.GetIsolate()); |
| 5377 return; | 5505 return; |
| 5378 } | 5506 } |
| 5379 } | 5507 } |
| 5380 | 5508 |
| 5381 static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) | 5509 static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) |
| 5382 { | 5510 { |
| 5383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5384 TestObjectPythonV8Internal::callWithScriptStateVoidMethodMethod(info); | 5512 TestObjectPythonV8Internal::callWithScriptStateVoidMethodMethod(info); |
| 5385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5386 } | 5514 } |
| 5387 | 5515 |
| 5388 static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) | 5516 static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 5389 { | 5517 { |
| 5518 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScr iptStateLongMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5390 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5519 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5391 ScriptState* currentState = ScriptState::current(); | 5520 ScriptState* currentState = ScriptState::current(); |
| 5392 if (!currentState) | 5521 if (!currentState) |
| 5393 return; | 5522 return; |
| 5394 ScriptState& state = *currentState; | 5523 ScriptState& state = *currentState; |
| 5395 int result = imp->callWithScriptStateLongMethod(&state); | 5524 int result = imp->callWithScriptStateLongMethod(&state); |
| 5396 if (state.hadException()) { | 5525 if (state.hadException()) { |
| 5397 v8::Local<v8::Value> exception = state.exception(); | 5526 v8::Local<v8::Value> exception = state.exception(); |
| 5398 state.clearException(); | 5527 state.clearException(); |
| 5399 throwError(exception, info.GetIsolate()); | 5528 throwError(exception, info.GetIsolate()); |
| 5400 return; | 5529 return; |
| 5401 } | 5530 } |
| 5402 v8SetReturnValueInt(info, result); | 5531 v8SetReturnValueInt(info, result); |
| 5403 } | 5532 } |
| 5404 | 5533 |
| 5405 static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) | 5534 static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) |
| 5406 { | 5535 { |
| 5407 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5408 TestObjectPythonV8Internal::callWithScriptStateLongMethodMethod(info); | 5537 TestObjectPythonV8Internal::callWithScriptStateLongMethodMethod(info); |
| 5409 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5410 } | 5539 } |
| 5411 | 5540 |
| 5412 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) | 5541 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) |
| 5413 { | 5542 { |
| 5543 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5414 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5544 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5415 ExecutionContext* scriptContext = getExecutionContext(); | 5545 ExecutionContext* scriptContext = getExecutionContext(); |
| 5416 imp->callWithExecutionContextVoidMethod(scriptContext); | 5546 imp->callWithExecutionContextVoidMethod(scriptContext); |
| 5417 } | 5547 } |
| 5418 | 5548 |
| 5419 static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) | 5549 static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) |
| 5420 { | 5550 { |
| 5421 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5551 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5422 TestObjectPythonV8Internal::callWithExecutionContextVoidMethodMethod(info); | 5552 TestObjectPythonV8Internal::callWithExecutionContextVoidMethodMethod(info); |
| 5423 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5553 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5424 } | 5554 } |
| 5425 | 5555 |
| 5426 static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) | 5556 static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) |
| 5427 { | 5557 { |
| 5558 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScr iptStateExecutionContextVoidMethod", "TestObjectPython", info.Holder(), info.Get Isolate()); | |
| 5428 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5559 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5429 ScriptState* currentState = ScriptState::current(); | 5560 ScriptState* currentState = ScriptState::current(); |
| 5430 if (!currentState) | 5561 if (!currentState) |
| 5431 return; | 5562 return; |
| 5432 ScriptState& state = *currentState; | 5563 ScriptState& state = *currentState; |
| 5433 ExecutionContext* scriptContext = getExecutionContext(); | 5564 ExecutionContext* scriptContext = getExecutionContext(); |
| 5434 imp->callWithScriptStateExecutionContextVoidMethod(&state, scriptContext); | 5565 imp->callWithScriptStateExecutionContextVoidMethod(&state, scriptContext); |
| 5435 if (state.hadException()) { | 5566 if (state.hadException()) { |
| 5436 v8::Local<v8::Value> exception = state.exception(); | 5567 v8::Local<v8::Value> exception = state.exception(); |
| 5437 state.clearException(); | 5568 state.clearException(); |
| 5438 throwError(exception, info.GetIsolate()); | 5569 throwError(exception, info.GetIsolate()); |
| 5439 return; | 5570 return; |
| 5440 } | 5571 } |
| 5441 } | 5572 } |
| 5442 | 5573 |
| 5443 static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) | 5574 static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) |
| 5444 { | 5575 { |
| 5445 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5576 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5446 TestObjectPythonV8Internal::callWithScriptStateExecutionContextVoidMethodMet hod(info); | 5577 TestObjectPythonV8Internal::callWithScriptStateExecutionContextVoidMethodMet hod(info); |
| 5447 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5578 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5448 } | 5579 } |
| 5449 | 5580 |
| 5450 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info) | 5581 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info) |
| 5451 { | 5582 { |
| 5583 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScr iptStateScriptArgumentsVoidMethod", "TestObjectPython", info.Holder(), info.GetI solate()); | |
| 5452 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5584 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5453 ScriptState* currentState = ScriptState::current(); | 5585 ScriptState* currentState = ScriptState::current(); |
| 5454 if (!currentState) | 5586 if (!currentState) |
| 5455 return; | 5587 return; |
| 5456 ScriptState& state = *currentState; | 5588 ScriptState& state = *currentState; |
| 5457 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 0)); | 5589 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 0)); |
| 5458 imp->callWithScriptStateScriptArgumentsVoidMethod(&state, scriptArguments.re lease()); | 5590 imp->callWithScriptStateScriptArgumentsVoidMethod(&state, scriptArguments.re lease()); |
| 5459 if (state.hadException()) { | 5591 if (state.hadException()) { |
| 5460 v8::Local<v8::Value> exception = state.exception(); | 5592 v8::Local<v8::Value> exception = state.exception(); |
| 5461 state.clearException(); | 5593 state.clearException(); |
| 5462 throwError(exception, info.GetIsolate()); | 5594 throwError(exception, info.GetIsolate()); |
| 5463 return; | 5595 return; |
| 5464 } | 5596 } |
| 5465 } | 5597 } |
| 5466 | 5598 |
| 5467 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) | 5599 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) |
| 5468 { | 5600 { |
| 5469 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5601 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5470 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodMeth od(info); | 5602 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodMeth od(info); |
| 5471 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5603 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5472 } | 5604 } |
| 5473 | 5605 |
| 5474 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info) | 5606 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5475 { | 5607 { |
| 5608 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScr iptStateScriptArgumentsVoidMethodOptionalBooleanArg", "TestObjectPython", info.H older(), info.GetIsolate()); | |
| 5476 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5609 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5477 if (UNLIKELY(info.Length() <= 0)) { | 5610 if (UNLIKELY(info.Length() <= 0)) { |
| 5478 ScriptState* currentState = ScriptState::current(); | 5611 ScriptState* currentState = ScriptState::current(); |
| 5479 if (!currentState) | 5612 if (!currentState) |
| 5480 return; | 5613 return; |
| 5481 ScriptState& state = *currentState; | 5614 ScriptState& state = *currentState; |
| 5482 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); | 5615 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); |
| 5483 imp->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(&sta te, scriptArguments.release()); | 5616 imp->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(&sta te, scriptArguments.release()); |
| 5484 if (state.hadException()) { | 5617 if (state.hadException()) { |
| 5485 v8::Local<v8::Value> exception = state.exception(); | 5618 v8::Local<v8::Value> exception = state.exception(); |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 5506 | 5639 |
| 5507 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod Callback(const v8::FunctionCallbackInfo<v8::Value>& info) | 5640 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod Callback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5508 { | 5641 { |
| 5509 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5642 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5510 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodOpti onalBooleanArgMethod(info); | 5643 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodOpti onalBooleanArgMethod(info); |
| 5511 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5644 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5512 } | 5645 } |
| 5513 | 5646 |
| 5514 static void callWithActiveWindowMethod(const v8::FunctionCallbackInfo<v8::Value> & info) | 5647 static void callWithActiveWindowMethod(const v8::FunctionCallbackInfo<v8::Value> & info) |
| 5515 { | 5648 { |
| 5649 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithAct iveWindow", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5516 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5650 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5517 imp->callWithActiveWindow(activeDOMWindow()); | 5651 imp->callWithActiveWindow(activeDOMWindow()); |
| 5518 } | 5652 } |
| 5519 | 5653 |
| 5520 static void callWithActiveWindowMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) | 5654 static void callWithActiveWindowMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) |
| 5521 { | 5655 { |
| 5522 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5656 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5523 TestObjectPythonV8Internal::callWithActiveWindowMethod(info); | 5657 TestObjectPythonV8Internal::callWithActiveWindowMethod(info); |
| 5524 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5658 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5525 } | 5659 } |
| 5526 | 5660 |
| 5527 static void callWithActiveWindowScriptWindowMethod(const v8::FunctionCallbackInf o<v8::Value>& info) | 5661 static void callWithActiveWindowScriptWindowMethod(const v8::FunctionCallbackInf o<v8::Value>& info) |
| 5528 { | 5662 { |
| 5663 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithAct iveWindowScriptWindow", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5529 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5664 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5530 imp->callWithActiveWindowScriptWindow(activeDOMWindow(), firstDOMWindow()); | 5665 imp->callWithActiveWindowScriptWindow(activeDOMWindow(), firstDOMWindow()); |
| 5531 } | 5666 } |
| 5532 | 5667 |
| 5533 static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) | 5668 static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) |
| 5534 { | 5669 { |
| 5535 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5670 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5536 TestObjectPythonV8Internal::callWithActiveWindowScriptWindowMethod(info); | 5671 TestObjectPythonV8Internal::callWithActiveWindowScriptWindowMethod(info); |
| 5537 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5672 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5538 } | 5673 } |
| 5539 | 5674 |
| 5540 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info) | 5675 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info) |
| 5541 { | 5676 { |
| 5677 ExceptionState exceptionState(ExceptionState::ExecutionContext, "checkSecuri tyForNodeVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5542 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5678 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5543 if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeVoidM ethod(exceptionState), exceptionState)) { | 5679 if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeVoidM ethod(exceptionState), exceptionState)) { |
| 5544 v8SetReturnValueNull(info); | 5680 v8SetReturnValueNull(info); |
| 5545 exceptionState.throwIfNeeded(); | 5681 exceptionState.throwIfNeeded(); |
| 5546 return; | 5682 return; |
| 5547 } | 5683 } |
| 5548 imp->checkSecurityForNodeVoidMethod(); | 5684 imp->checkSecurityForNodeVoidMethod(); |
| 5549 } | 5685 } |
| 5550 | 5686 |
| 5551 static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) | 5687 static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) |
| 5552 { | 5688 { |
| 5553 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5689 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5554 TestObjectPythonV8Internal::checkSecurityForNodeVoidMethodMethod(info); | 5690 TestObjectPythonV8Internal::checkSecurityForNodeVoidMethodMethod(info); |
| 5555 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5556 } | 5692 } |
| 5557 | 5693 |
| 5558 #if ENABLE(CONDITION) | 5694 #if ENABLE(CONDITION) |
| 5559 static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info) | 5695 static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info) |
| 5560 { | 5696 { |
| 5697 ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditional ConditionVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5561 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5698 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5562 imp->conditionalConditionVoidMethod(); | 5699 imp->conditionalConditionVoidMethod(); |
| 5563 } | 5700 } |
| 5564 #endif // ENABLE(CONDITION) | 5701 #endif // ENABLE(CONDITION) |
| 5565 | 5702 |
| 5566 #if ENABLE(CONDITION) | 5703 #if ENABLE(CONDITION) |
| 5567 static void conditionalConditionVoidMethodMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) | 5704 static void conditionalConditionVoidMethodMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) |
| 5568 { | 5705 { |
| 5569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5706 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5570 TestObjectPythonV8Internal::conditionalConditionVoidMethodMethod(info); | 5707 TestObjectPythonV8Internal::conditionalConditionVoidMethodMethod(info); |
| 5571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5708 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5572 } | 5709 } |
| 5573 #endif // ENABLE(CONDITION) | 5710 #endif // ENABLE(CONDITION) |
| 5574 | 5711 |
| 5575 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 5712 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| 5576 static void conditionalCondition1AndCondition2VoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info) | 5713 static void conditionalCondition1AndCondition2VoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info) |
| 5577 { | 5714 { |
| 5715 ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditional Condition1AndCondition2VoidMethod", "TestObjectPython", info.Holder(), info.GetI solate()); | |
| 5578 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5716 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5579 imp->conditionalCondition1AndCondition2VoidMethod(); | 5717 imp->conditionalCondition1AndCondition2VoidMethod(); |
| 5580 } | 5718 } |
| 5581 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 5719 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| 5582 | 5720 |
| 5583 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 5721 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| 5584 static void conditionalCondition1AndCondition2VoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) | 5722 static void conditionalCondition1AndCondition2VoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) |
| 5585 { | 5723 { |
| 5586 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5724 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5587 TestObjectPythonV8Internal::conditionalCondition1AndCondition2VoidMethodMeth od(info); | 5725 TestObjectPythonV8Internal::conditionalCondition1AndCondition2VoidMethodMeth od(info); |
| 5588 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5726 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5589 } | 5727 } |
| 5590 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 5728 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
| 5591 | 5729 |
| 5592 #if ENABLE(CONDITION) | 5730 #if ENABLE(CONDITION) |
| 5593 static void conditionalConditionStaticVoidMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) | 5731 static void conditionalConditionStaticVoidMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) |
| 5594 { | 5732 { |
| 5733 ExceptionState exceptionState(ExceptionState::ExecutionContext, "conditional ConditionStaticVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate() ); | |
| 5595 TestObjectPython::conditionalConditionStaticVoidMethod(); | 5734 TestObjectPython::conditionalConditionStaticVoidMethod(); |
| 5596 } | 5735 } |
| 5597 #endif // ENABLE(CONDITION) | 5736 #endif // ENABLE(CONDITION) |
| 5598 | 5737 |
| 5599 #if ENABLE(CONDITION) | 5738 #if ENABLE(CONDITION) |
| 5600 static void conditionalConditionStaticVoidMethodMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) | 5739 static void conditionalConditionStaticVoidMethodMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) |
| 5601 { | 5740 { |
| 5602 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5741 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5603 TestObjectPythonV8Internal::conditionalConditionStaticVoidMethodMethod(info) ; | 5742 TestObjectPythonV8Internal::conditionalConditionStaticVoidMethodMethod(info) ; |
| 5604 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5743 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 5616 static void conditionalConditionCustomVoidMethodMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) | 5755 static void conditionalConditionCustomVoidMethodMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) |
| 5617 { | 5756 { |
| 5618 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5757 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5619 V8TestObjectPython::conditionalConditionCustomVoidMethodMethodCustom(info); | 5758 V8TestObjectPython::conditionalConditionCustomVoidMethodMethodCustom(info); |
| 5620 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5759 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5621 } | 5760 } |
| 5622 #endif // ENABLE(CONDITION) | 5761 #endif // ENABLE(CONDITION) |
| 5623 | 5762 |
| 5624 static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) | 5763 static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) |
| 5625 { | 5764 { |
| 5765 ExceptionState exceptionState(ExceptionState::ExecutionContext, "customEleme ntCallbacksVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5626 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5766 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5627 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 5767 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 5628 imp->customElementCallbacksVoidMethod(); | 5768 imp->customElementCallbacksVoidMethod(); |
| 5629 } | 5769 } |
| 5630 | 5770 |
| 5631 static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) | 5771 static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) |
| 5632 { | 5772 { |
| 5633 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5773 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5634 TestObjectPythonV8Internal::customElementCallbacksVoidMethodMethod(info); | 5774 TestObjectPythonV8Internal::customElementCallbacksVoidMethodMethod(info); |
| 5635 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5775 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5636 } | 5776 } |
| 5637 | 5777 |
| 5638 static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) | 5778 static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) |
| 5639 { | 5779 { |
| 5780 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecatedV oidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5640 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5781 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5641 imp->deprecatedVoidMethod(); | 5782 imp->deprecatedVoidMethod(); |
| 5642 } | 5783 } |
| 5643 | 5784 |
| 5644 static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) | 5785 static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) |
| 5645 { | 5786 { |
| 5646 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5787 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5647 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::voidMetho d); | 5788 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::voidMetho d); |
| 5648 TestObjectPythonV8Internal::deprecatedVoidMethodMethod(info); | 5789 TestObjectPythonV8Internal::deprecatedVoidMethodMethod(info); |
| 5649 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5790 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5650 } | 5791 } |
| 5651 | 5792 |
| 5652 static void doNotCheckSignatureVoidMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) | 5793 static void doNotCheckSignatureVoidMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 5653 { | 5794 { |
| 5795 ExceptionState exceptionState(ExceptionState::ExecutionContext, "doNotCheckS ignatureVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5654 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5796 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5655 imp->doNotCheckSignatureVoidMethod(); | 5797 imp->doNotCheckSignatureVoidMethod(); |
| 5656 } | 5798 } |
| 5657 | 5799 |
| 5658 static void doNotCheckSignatureVoidMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) | 5800 static void doNotCheckSignatureVoidMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) |
| 5659 { | 5801 { |
| 5660 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5802 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5661 TestObjectPythonV8Internal::doNotCheckSignatureVoidMethodMethod(info); | 5803 TestObjectPythonV8Internal::doNotCheckSignatureVoidMethodMethod(info); |
| 5662 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5804 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5663 } | 5805 } |
| 5664 | 5806 |
| 5665 static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) | 5807 static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) |
| 5666 { | 5808 { |
| 5809 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implemented AsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5667 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5810 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5668 imp->implementedAsMethodName(); | 5811 imp->implementedAsMethodName(); |
| 5669 } | 5812 } |
| 5670 | 5813 |
| 5671 static void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) | 5814 static void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) |
| 5672 { | 5815 { |
| 5673 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5816 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5674 TestObjectPythonV8Internal::implementedAsVoidMethodMethod(info); | 5817 TestObjectPythonV8Internal::implementedAsVoidMethodMethod(info); |
| 5675 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5818 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5676 } | 5819 } |
| 5677 | 5820 |
| 5678 static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 5821 static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5679 { | 5822 { |
| 5823 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsVo idMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5680 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5824 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5681 imp->measureAsVoidMethod(); | 5825 imp->measureAsVoidMethod(); |
| 5682 } | 5826 } |
| 5683 | 5827 |
| 5684 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) | 5828 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 5685 { | 5829 { |
| 5686 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5830 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5687 UseCounter::count(activeDOMWindow(), UseCounter::TestFeature); | 5831 UseCounter::count(activeDOMWindow(), UseCounter::TestFeature); |
| 5688 TestObjectPythonV8Internal::measureAsVoidMethodMethod(info); | 5832 TestObjectPythonV8Internal::measureAsVoidMethodMethod(info); |
| 5689 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5833 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5690 } | 5834 } |
| 5691 | 5835 |
| 5692 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) | 5836 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) |
| 5693 { | 5837 { |
| 5838 ExceptionState exceptionState(ExceptionState::ExecutionContext, "notEnumerab leVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5694 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5839 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5695 imp->notEnumerableVoidMethod(); | 5840 imp->notEnumerableVoidMethod(); |
| 5696 } | 5841 } |
| 5697 | 5842 |
| 5698 static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) | 5843 static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) |
| 5699 { | 5844 { |
| 5700 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5845 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5701 TestObjectPythonV8Internal::notEnumerableVoidMethodMethod(info); | 5846 TestObjectPythonV8Internal::notEnumerableVoidMethodMethod(info); |
| 5702 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5847 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5703 } | 5848 } |
| 5704 | 5849 |
| 5705 static void perContextEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) | 5850 static void perContextEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) |
| 5706 { | 5851 { |
| 5852 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perContextE nabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5707 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5853 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5708 imp->perContextEnabledVoidMethod(); | 5854 imp->perContextEnabledVoidMethod(); |
| 5709 } | 5855 } |
| 5710 | 5856 |
| 5711 static void perContextEnabledVoidMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) | 5857 static void perContextEnabledVoidMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) |
| 5712 { | 5858 { |
| 5713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5859 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5714 TestObjectPythonV8Internal::perContextEnabledVoidMethodMethod(info); | 5860 TestObjectPythonV8Internal::perContextEnabledVoidMethodMethod(info); |
| 5715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5861 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5716 } | 5862 } |
| 5717 | 5863 |
| 5718 static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) | 5864 static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) |
| 5719 { | 5865 { |
| 5866 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin dingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5720 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5867 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5721 imp->perWorldBindingsVoidMethod(); | 5868 imp->perWorldBindingsVoidMethod(); |
| 5722 } | 5869 } |
| 5723 | 5870 |
| 5724 static void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) | 5871 static void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) |
| 5725 { | 5872 { |
| 5726 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5873 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5727 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethod(info); | 5874 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethod(info); |
| 5728 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5875 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5729 } | 5876 } |
| 5730 | 5877 |
| 5731 static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallb ackInfo<v8::Value>& info) | 5878 static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallb ackInfo<v8::Value>& info) |
| 5732 { | 5879 { |
| 5880 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin dingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5733 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5881 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5734 imp->perWorldBindingsVoidMethod(); | 5882 imp->perWorldBindingsVoidMethod(); |
| 5735 } | 5883 } |
| 5736 | 5884 |
| 5737 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct ionCallbackInfo<v8::Value>& info) | 5885 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct ionCallbackInfo<v8::Value>& info) |
| 5738 { | 5886 { |
| 5739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5887 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5740 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(inf o); | 5888 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(inf o); |
| 5741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5889 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5742 } | 5890 } |
| 5743 | 5891 |
| 5744 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) | 5892 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) |
| 5745 { | 5893 { |
| 5894 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog gingForAllWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5746 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5895 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5747 imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 5896 imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
| 5748 } | 5897 } |
| 5749 | 5898 |
| 5750 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) | 5899 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5751 { | 5900 { |
| 5752 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5901 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5753 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 5902 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); |
| 5754 if (contextData && contextData->activityLogger()) { | 5903 if (contextData && contextData->activityLogger()) { |
| 5755 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); | 5904 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); |
| 5756 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method") ; | 5905 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method") ; |
| 5757 } | 5906 } |
| 5758 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM ethodMethod(info); | 5907 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM ethodMethod(info); |
| 5759 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5908 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5760 } | 5909 } |
| 5761 | 5910 |
| 5762 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) | 5911 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5763 { | 5912 { |
| 5913 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog gingForAllWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5764 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5914 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5765 imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 5915 imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
| 5766 } | 5916 } |
| 5767 | 5917 |
| 5768 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 5918 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5769 { | 5919 { |
| 5770 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5920 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5771 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 5921 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); |
| 5772 if (contextData && contextData->activityLogger()) { | 5922 if (contextData && contextData->activityLogger()) { |
| 5773 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); | 5923 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); |
| 5774 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method") ; | 5924 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method") ; |
| 5775 } | 5925 } |
| 5776 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM ethodMethodForMainWorld(info); | 5926 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM ethodMethodForMainWorld(info); |
| 5777 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5927 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5778 } | 5928 } |
| 5779 | 5929 |
| 5780 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) | 5930 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) |
| 5781 { | 5931 { |
| 5932 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog gingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holde r(), info.GetIsolate()); | |
| 5782 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5933 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5783 imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 5934 imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
| 5784 } | 5935 } |
| 5785 | 5936 |
| 5786 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) | 5937 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5787 { | 5938 { |
| 5788 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5939 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5789 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); | 5940 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); |
| 5790 if (contextData && contextData->activityLogger()) { | 5941 if (contextData && contextData->activityLogger()) { |
| 5791 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); | 5942 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle <v8::Value> >(info, 0); |
| 5792 contextData->activityLogger()->log("TestObjectPython.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Met hod"); | 5943 contextData->activityLogger()->log("TestObjectPython.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Met hod"); |
| 5793 } | 5944 } |
| 5794 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings VoidMethodMethod(info); | 5945 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings VoidMethodMethod(info); |
| 5795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5946 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5796 } | 5947 } |
| 5797 | 5948 |
| 5798 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 5949 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5799 { | 5950 { |
| 5951 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activityLog gingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObjectPython", info.Holde r(), info.GetIsolate()); | |
| 5800 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5952 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5801 imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 5953 imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
| 5802 } | 5954 } |
| 5803 | 5955 |
| 5804 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 5956 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5805 { | 5957 { |
| 5806 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5958 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5807 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings VoidMethodMethodForMainWorld(info); | 5959 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings VoidMethodMethodForMainWorld(info); |
| 5808 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5960 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5809 } | 5961 } |
| 5810 | 5962 |
| 5811 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) | 5963 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) |
| 5812 { | 5964 { |
| 5965 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin dingsVoidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.G etIsolate()); | |
| 5813 if (UNLIKELY(info.Length() < 1)) { | 5966 if (UNLIKELY(info.Length() < 1)) { |
| 5814 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg uments(1, info.Length())), info.GetIsolate()); | 5967 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg uments(1, info.Length())), info.GetIsolate()); |
| 5815 return; | 5968 return; |
| 5816 } | 5969 } |
| 5817 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5970 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5818 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); | 5971 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); |
| 5819 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 5972 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
| 5820 } | 5973 } |
| 5821 | 5974 |
| 5822 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 5975 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5823 { | 5976 { |
| 5824 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5977 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5825 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM ethod(info); | 5978 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM ethod(info); |
| 5826 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5979 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5827 } | 5980 } |
| 5828 | 5981 |
| 5829 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info) | 5982 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info) |
| 5830 { | 5983 { |
| 5984 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin dingsVoidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.G etIsolate()); | |
| 5831 if (UNLIKELY(info.Length() < 1)) { | 5985 if (UNLIKELY(info.Length() < 1)) { |
| 5832 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg uments(1, info.Length())), info.GetIsolate()); | 5986 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg uments(1, info.Length())), info.GetIsolate()); |
| 5833 return; | 5987 return; |
| 5834 } | 5988 } |
| 5835 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5989 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5836 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); | 5990 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); |
| 5837 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 5991 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
| 5838 } | 5992 } |
| 5839 | 5993 |
| 5840 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info) | 5994 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5841 { | 5995 { |
| 5842 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5996 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5843 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM ethodForMainWorld(info); | 5997 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM ethodForMainWorld(info); |
| 5844 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 5998 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5845 } | 5999 } |
| 5846 | 6000 |
| 5847 static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) | 6001 static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) |
| 5848 { | 6002 { |
| 6003 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5849 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6004 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5850 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 5851 imp->raisesExceptionVoidMethod(exceptionState); | 6005 imp->raisesExceptionVoidMethod(exceptionState); |
| 5852 if (exceptionState.throwIfNeeded()) | 6006 if (exceptionState.throwIfNeeded()) |
| 5853 return; | 6007 return; |
| 5854 } | 6008 } |
| 5855 | 6009 |
| 5856 static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) | 6010 static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) |
| 5857 { | 6011 { |
| 5858 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6012 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5859 TestObjectPythonV8Internal::raisesExceptionVoidMethodMethod(info); | 6013 TestObjectPythonV8Internal::raisesExceptionVoidMethodMethod(info); |
| 5860 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6014 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5861 } | 6015 } |
| 5862 | 6016 |
| 5863 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) | 6017 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) |
| 5864 { | 6018 { |
| 6019 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsola te()); | |
| 5865 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6020 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5866 ExceptionState exceptionState(info.Holder(), info.GetIsolate()); | |
| 5867 if (UNLIKELY(info.Length() <= 0)) { | 6021 if (UNLIKELY(info.Length() <= 0)) { |
| 5868 imp->raisesExceptionVoidMethodOptionalLongArg(exceptionState); | 6022 imp->raisesExceptionVoidMethodOptionalLongArg(exceptionState); |
| 5869 if (exceptionState.throwIfNeeded()) | 6023 if (exceptionState.throwIfNeeded()) |
| 5870 return; | 6024 return; |
| 5871 return; | 6025 return; |
| 5872 } | 6026 } |
| 5873 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); | 6027 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); |
| 5874 imp->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionStat e); | 6028 imp->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionStat e); |
| 5875 if (exceptionState.throwIfNeeded()) | 6029 if (exceptionState.throwIfNeeded()) |
| 5876 return; | 6030 return; |
| 5877 } | 6031 } |
| 5878 | 6032 |
| 5879 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) | 6033 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) |
| 5880 { | 6034 { |
| 5881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6035 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5882 TestObjectPythonV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(i nfo); | 6036 TestObjectPythonV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(i nfo); |
| 5883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6037 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5884 } | 6038 } |
| 5885 | 6039 |
| 5886 static void readOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 6040 static void readOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 5887 { | 6041 { |
| 6042 ExceptionState exceptionState(ExceptionState::ExecutionContext, "readOnlyVoi dMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5888 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6043 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5889 imp->readOnlyVoidMethod(); | 6044 imp->readOnlyVoidMethod(); |
| 5890 } | 6045 } |
| 5891 | 6046 |
| 5892 static void readOnlyVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) | 6047 static void readOnlyVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) |
| 5893 { | 6048 { |
| 5894 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6049 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5895 TestObjectPythonV8Internal::readOnlyVoidMethodMethod(info); | 6050 TestObjectPythonV8Internal::readOnlyVoidMethodMethod(info); |
| 5896 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6051 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5897 } | 6052 } |
| 5898 | 6053 |
| 5899 static void notEnumerableReadOnlyVoidMethodMethod(const v8::FunctionCallbackInfo <v8::Value>& info) | 6054 static void notEnumerableReadOnlyVoidMethodMethod(const v8::FunctionCallbackInfo <v8::Value>& info) |
| 5900 { | 6055 { |
| 6056 ExceptionState exceptionState(ExceptionState::ExecutionContext, "notEnumerab leReadOnlyVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5901 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6057 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5902 imp->notEnumerableReadOnlyVoidMethod(); | 6058 imp->notEnumerableReadOnlyVoidMethod(); |
| 5903 } | 6059 } |
| 5904 | 6060 |
| 5905 static void notEnumerableReadOnlyVoidMethodMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) | 6061 static void notEnumerableReadOnlyVoidMethodMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) |
| 5906 { | 6062 { |
| 5907 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6063 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5908 TestObjectPythonV8Internal::notEnumerableReadOnlyVoidMethodMethod(info); | 6064 TestObjectPythonV8Internal::notEnumerableReadOnlyVoidMethodMethod(info); |
| 5909 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6065 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5910 } | 6066 } |
| 5911 | 6067 |
| 5912 static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) | 6068 static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) |
| 5913 { | 6069 { |
| 6070 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 5914 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6071 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5915 imp->runtimeEnabledVoidMethod(); | 6072 imp->runtimeEnabledVoidMethod(); |
| 5916 } | 6073 } |
| 5917 | 6074 |
| 5918 static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) | 6075 static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) |
| 5919 { | 6076 { |
| 5920 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6077 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5921 TestObjectPythonV8Internal::runtimeEnabledVoidMethodMethod(info); | 6078 TestObjectPythonV8Internal::runtimeEnabledVoidMethodMethod(info); |
| 5922 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6079 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5923 } | 6080 } |
| 5924 | 6081 |
| 5925 static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) | 6082 static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) |
| 5926 { | 6083 { |
| 6084 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin dingsRuntimeEnabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsola te()); | |
| 5927 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6085 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5928 imp->perWorldBindingsRuntimeEnabledVoidMethod(); | 6086 imp->perWorldBindingsRuntimeEnabledVoidMethod(); |
| 5929 } | 6087 } |
| 5930 | 6088 |
| 5931 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) | 6089 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) |
| 5932 { | 6090 { |
| 5933 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6091 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5934 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethod(i nfo); | 6092 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethod(i nfo); |
| 5935 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6093 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5936 } | 6094 } |
| 5937 | 6095 |
| 5938 static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8: :FunctionCallbackInfo<v8::Value>& info) | 6096 static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8: :FunctionCallbackInfo<v8::Value>& info) |
| 5939 { | 6097 { |
| 6098 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin dingsRuntimeEnabledVoidMethod", "TestObjectPython", info.Holder(), info.GetIsola te()); | |
| 5940 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6099 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5941 imp->perWorldBindingsRuntimeEnabledVoidMethod(); | 6100 imp->perWorldBindingsRuntimeEnabledVoidMethod(); |
| 5942 } | 6101 } |
| 5943 | 6102 |
| 5944 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c onst v8::FunctionCallbackInfo<v8::Value>& info) | 6103 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c onst v8::FunctionCallbackInfo<v8::Value>& info) |
| 5945 { | 6104 { |
| 5946 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5947 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodFo rMainWorld(info); | 6106 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodFo rMainWorld(info); |
| 5948 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5949 } | 6108 } |
| 5950 | 6109 |
| 5951 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info) | 6110 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info) |
| 5952 { | 6111 { |
| 6112 ExceptionState exceptionState(ExceptionState::ExecutionContext, "strictTypeC heckingVoidMethodTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info .GetIsolate()); | |
| 5953 if (UNLIKELY(info.Length() < 1)) { | 6113 if (UNLIKELY(info.Length() < 1)) { |
| 5954 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughA rguments(1, info.Length())), info.GetIsolate()); | 6114 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughA rguments(1, info.Length())), info.GetIsolate()); |
| 5955 return; | 6115 return; |
| 5956 } | 6116 } |
| 5957 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6117 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5958 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt y::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))) { | 6118 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt y::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))) { |
| 5959 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type ' TestInterfaceEmpty'."), info.GetIsolate()); | 6119 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type ' TestInterfaceEmpty'."), info.GetIsolate()); |
| 5960 return; | 6120 return; |
| 5961 } | 6121 } |
| 5962 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); | 6122 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); |
| 5963 imp->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg ); | 6123 imp->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg ); |
| 5964 } | 6124 } |
| 5965 | 6125 |
| 5966 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info) | 6126 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info) |
| 5967 { | 6127 { |
| 5968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6128 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5969 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyAr gMethod(info); | 6129 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyAr gMethod(info); |
| 5970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6130 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5971 } | 6131 } |
| 5972 | 6132 |
| 5973 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) | 6133 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) |
| 5974 { | 6134 { |
| 6135 ExceptionState exceptionState(ExceptionState::ExecutionContext, "treatReturn edNullStringAsNullStringMethod", "TestObjectPython", info.Holder(), info.GetIsol ate()); | |
| 5975 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6136 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5976 v8SetReturnValueStringOrNull(info, imp->treatReturnedNullStringAsNullStringM ethod(), info.GetIsolate()); | 6137 v8SetReturnValueStringOrNull(info, imp->treatReturnedNullStringAsNullStringM ethod(), info.GetIsolate()); |
| 5977 } | 6138 } |
| 5978 | 6139 |
| 5979 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) | 6140 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) |
| 5980 { | 6141 { |
| 5981 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6142 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5982 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringMethodMethod( info); | 6143 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringMethodMethod( info); |
| 5983 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6144 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5984 } | 6145 } |
| 5985 | 6146 |
| 5986 static void treatReturnedNullStringAsUndefinedStringMethodMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) | 6147 static void treatReturnedNullStringAsUndefinedStringMethodMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) |
| 5987 { | 6148 { |
| 6149 ExceptionState exceptionState(ExceptionState::ExecutionContext, "treatReturn edNullStringAsUndefinedStringMethod", "TestObjectPython", info.Holder(), info.Ge tIsolate()); | |
| 5988 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6150 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 5989 v8SetReturnValueStringOrUndefined(info, imp->treatReturnedNullStringAsUndefi nedStringMethod(), info.GetIsolate()); | 6151 v8SetReturnValueStringOrUndefined(info, imp->treatReturnedNullStringAsUndefi nedStringMethod(), info.GetIsolate()); |
| 5990 } | 6152 } |
| 5991 | 6153 |
| 5992 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) | 6154 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) |
| 5993 { | 6155 { |
| 5994 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5995 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringMethodMe thod(info); | 6157 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringMethodMe thod(info); |
| 5996 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 5997 } | 6159 } |
| 5998 | 6160 |
| 5999 static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) | 6161 static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) |
| 6000 { | 6162 { |
| 6163 ExceptionState exceptionState(ExceptionState::ExecutionContext, "unforgeable VoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | |
| 6001 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6164 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 6002 imp->unforgeableVoidMethod(); | 6165 imp->unforgeableVoidMethod(); |
| 6003 } | 6166 } |
| 6004 | 6167 |
| 6005 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) | 6168 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) |
| 6006 { | 6169 { |
| 6007 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6170 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6008 TestObjectPythonV8Internal::unforgeableVoidMethodMethod(info); | 6171 TestObjectPythonV8Internal::unforgeableVoidMethodMethod(info); |
| 6009 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 6172 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 6010 } | 6173 } |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6539 fromInternalPointer(object)->deref(); | 6702 fromInternalPointer(object)->deref(); |
| 6540 } | 6703 } |
| 6541 | 6704 |
| 6542 template<> | 6705 template<> |
| 6543 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) | 6706 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) |
| 6544 { | 6707 { |
| 6545 return toV8(impl, creationContext, isolate); | 6708 return toV8(impl, creationContext, isolate); |
| 6546 } | 6709 } |
| 6547 | 6710 |
| 6548 } // namespace WebCore | 6711 } // namespace WebCore |
| OLD | NEW |