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

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

Issue 68563003: Create DOM exceptions in the correct context. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased onto df9a982fbe97 Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void >& info) 1548 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void >& info)
1549 { 1549 {
1550 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1550 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1551 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeSet ter(jsValue, info); 1551 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeSet ter(jsValue, info);
1552 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1552 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1553 } 1553 }
1554 1554
1555 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 1555 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info)
1556 { 1556 {
1557 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 1557 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1558 ExceptionState exceptionState(info.GetIsolate()); 1558 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
1559 if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeReado nlyDocumentAttribute(), exceptionState)) { 1559 if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeReado nlyDocumentAttribute(), exceptionState)) {
1560 v8SetReturnValueNull(info); 1560 v8SetReturnValueNull(info);
1561 exceptionState.throwIfNeeded(); 1561 exceptionState.throwIfNeeded();
1562 return; 1562 return;
1563 } 1563 }
1564 v8SetReturnValueFast(info, imp->checkSecurityForNodeReadonlyDocumentAttribut e(), imp); 1564 v8SetReturnValueFast(info, imp->checkSecurityForNodeReadonlyDocumentAttribut e(), imp);
1565 } 1565 }
1566 1566
1567 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1567 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1568 { 1568 {
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1908 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1909 { 1909 {
1910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1911 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeSetter(jsValue , info); 1911 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeSetter(jsValue , info);
1912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1913 } 1913 }
1914 1914
1915 static void getterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 1915 static void getterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
1916 { 1916 {
1917 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 1917 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
1918 ExceptionState exceptionState(info.GetIsolate()); 1918 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
1919 int jsValue = imp->getterRaisesExceptionLongAttribute(exceptionState); 1919 int jsValue = imp->getterRaisesExceptionLongAttribute(exceptionState);
1920 if (UNLIKELY(exceptionState.throwIfNeeded())) 1920 if (UNLIKELY(exceptionState.throwIfNeeded()))
1921 return; 1921 return;
1922 v8SetReturnValueInt(info, jsValue); 1922 v8SetReturnValueInt(info, jsValue);
1923 } 1923 }
1924 1924
1925 static void getterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1925 static void getterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1926 { 1926 {
1927 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1927 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1928 TestObjectPythonV8Internal::getterRaisesExceptionLongAttributeAttributeGette r(info); 1928 TestObjectPythonV8Internal::getterRaisesExceptionLongAttributeAttributeGette r(info);
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
2433 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info) 2433 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info)
2434 { 2434 {
2435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2436 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); 2436 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info);
2437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 2437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
2438 } 2438 }
2439 2439
2440 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 2440 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
2441 { 2441 {
2442 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 2442 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
2443 ExceptionState exceptionState(info.GetIsolate()); 2443 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
2444 int jsValue = imp->raisesExceptionLongAttribute(exceptionState); 2444 int jsValue = imp->raisesExceptionLongAttribute(exceptionState);
2445 if (UNLIKELY(exceptionState.throwIfNeeded())) 2445 if (UNLIKELY(exceptionState.throwIfNeeded()))
2446 return; 2446 return;
2447 v8SetReturnValueInt(info, jsValue); 2447 v8SetReturnValueInt(info, jsValue);
2448 } 2448 }
2449 2449
2450 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 2450 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
2451 { 2451 {
2452 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2452 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2453 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeGetter(info ); 2453 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeGetter(info );
2454 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 2454 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
2455 } 2455 }
2456 2456
2457 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info) 2457 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info)
2458 { 2458 {
2459 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 2459 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
2460 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); 2460 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
2461 ExceptionState exceptionState(info.GetIsolate()); 2461 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
2462 imp->setRaisesExceptionLongAttribute(cppValue, exceptionState); 2462 imp->setRaisesExceptionLongAttribute(cppValue, exceptionState);
2463 exceptionState.throwIfNeeded(); 2463 exceptionState.throwIfNeeded();
2464 } 2464 }
2465 2465
2466 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2466 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2467 { 2467 {
2468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2469 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeSetter(jsVa lue, info); 2469 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeSetter(jsVa lue, info);
2470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 2470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
2471 } 2471 }
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
2930 { 2930 {
2931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2932 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette r(info); 2932 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette r(info);
2933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 2933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
2934 } 2934 }
2935 2935
2936 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> jsValue, const v8::PropertyCallbackInfo<void>& info) 2936 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> jsValue, const v8::PropertyCallbackInfo<void>& info)
2937 { 2937 {
2938 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 2938 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
2939 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue)); 2939 V8TRYCATCH_VOID(int, cppValue, toInt32(jsValue));
2940 ExceptionState exceptionState(info.GetIsolate()); 2940 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
2941 imp->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); 2941 imp->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState);
2942 exceptionState.throwIfNeeded(); 2942 exceptionState.throwIfNeeded();
2943 } 2943 }
2944 2944
2945 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2945 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2946 { 2946 {
2947 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2947 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2948 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeSette r(jsValue, info); 2948 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeSette r(jsValue, info);
2949 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 2949 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
2950 } 2950 }
(...skipping 2238 matching lines...) Expand 10 before | Expand all | Expand 10 after
5189 { 5189 {
5190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5191 TestObjectPythonV8Internal::overloadedStaticMethodMethod(info); 5191 TestObjectPythonV8Internal::overloadedStaticMethodMethod(info);
5192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 5192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
5193 } 5193 }
5194 5194
5195 static void addEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 5195 static void addEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
5196 { 5196 {
5197 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); 5197 EventTarget* impl = V8TestObjectPython::toNative(info.Holder());
5198 if (DOMWindow* window = impl->toDOMWindow()) { 5198 if (DOMWindow* window = impl->toDOMWindow()) {
5199 ExceptionState exceptionState(info.GetIsolate()); 5199 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
5200 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptio nState)) { 5200 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptio nState)) {
5201 exceptionState.throwIfNeeded(); 5201 exceptionState.throwIfNeeded();
5202 return; 5202 return;
5203 } 5203 }
5204 if (!window->document()) 5204 if (!window->document())
5205 return; 5205 return;
5206 } 5206 }
5207 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[ 1], false, ListenerFindOrCreate); 5207 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[ 1], false, ListenerFindOrCreate);
5208 if (listener) { 5208 if (listener) {
5209 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev entName, info[0]); 5209 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev entName, info[0]);
5210 impl->addEventListener(eventName, listener, info[2]->BooleanValue()); 5210 impl->addEventListener(eventName, listener, info[2]->BooleanValue());
5211 if (!impl->toNode()) 5211 if (!impl->toNode())
5212 createHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e ventListenerCacheIndex, info.GetIsolate()); 5212 createHiddenDependency(info.Holder(), info[1], V8TestObjectPython::e ventListenerCacheIndex, info.GetIsolate());
5213 } 5213 }
5214 } 5214 }
5215 5215
5216 static void addEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5216 static void addEventListenerMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5217 { 5217 {
5218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5219 TestObjectPythonV8Internal::addEventListenerMethod(info); 5219 TestObjectPythonV8Internal::addEventListenerMethod(info);
5220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 5220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
5221 } 5221 }
5222 5222
5223 static void removeEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5223 static void removeEventListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5224 { 5224 {
5225 EventTarget* impl = V8TestObjectPython::toNative(info.Holder()); 5225 EventTarget* impl = V8TestObjectPython::toNative(info.Holder());
5226 if (DOMWindow* window = impl->toDOMWindow()) { 5226 if (DOMWindow* window = impl->toDOMWindow()) {
5227 ExceptionState exceptionState(info.GetIsolate()); 5227 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
5228 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptio nState)) { 5228 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptio nState)) {
5229 exceptionState.throwIfNeeded(); 5229 exceptionState.throwIfNeeded();
5230 return; 5230 return;
5231 } 5231 }
5232 if (!window->document()) 5232 if (!window->document())
5233 return; 5233 return;
5234 } 5234 }
5235 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[ 1], false, ListenerFindOnly); 5235 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[ 1], false, ListenerFindOnly);
5236 if (listener) { 5236 if (listener) {
5237 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev entName, info[0]); 5237 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, ev entName, info[0]);
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
5896 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info) 5896 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info)
5897 { 5897 {
5898 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5898 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5899 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM ethodForMainWorld(info); 5899 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM ethodForMainWorld(info);
5900 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 5900 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
5901 } 5901 }
5902 5902
5903 static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5903 static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5904 { 5904 {
5905 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 5905 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
5906 ExceptionState exceptionState(info.GetIsolate()); 5906 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
5907 imp->raisesExceptionVoidMethod(exceptionState); 5907 imp->raisesExceptionVoidMethod(exceptionState);
5908 if (exceptionState.throwIfNeeded()) 5908 if (exceptionState.throwIfNeeded())
5909 return; 5909 return;
5910 } 5910 }
5911 5911
5912 static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5912 static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5913 { 5913 {
5914 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5914 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5915 TestObjectPythonV8Internal::raisesExceptionVoidMethodMethod(info); 5915 TestObjectPythonV8Internal::raisesExceptionVoidMethodMethod(info);
5916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 5916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
5917 } 5917 }
5918 5918
5919 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 5919 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
5920 { 5920 {
5921 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); 5921 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
5922 ExceptionState exceptionState(info.GetIsolate()); 5922 ExceptionState exceptionState(info.Holder(), info.GetIsolate());
5923 if (UNLIKELY(info.Length() <= 0)) { 5923 if (UNLIKELY(info.Length() <= 0)) {
5924 imp->raisesExceptionVoidMethodOptionalLongArg(exceptionState); 5924 imp->raisesExceptionVoidMethodOptionalLongArg(exceptionState);
5925 if (exceptionState.throwIfNeeded()) 5925 if (exceptionState.throwIfNeeded())
5926 return; 5926 return;
5927 return; 5927 return;
5928 } 5928 }
5929 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0])); 5929 V8TRYCATCH_VOID(int, optionalLongArg, toInt32(info[0]));
5930 imp->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionStat e); 5930 imp->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionStat e);
5931 if (exceptionState.throwIfNeeded()) 5931 if (exceptionState.throwIfNeeded())
5932 return; 5932 return;
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
6545 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); 6545 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT ypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
6546 return wrapper; 6546 return wrapper;
6547 } 6547 }
6548 6548
6549 void V8TestObjectPython::derefObject(void* object) 6549 void V8TestObjectPython::derefObject(void* object)
6550 { 6550 {
6551 fromInternalPointer(object)->deref(); 6551 fromInternalPointer(object)->deref();
6552 } 6552 }
6553 6553
6554 } // namespace WebCore 6554 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.cpp ('k') | Source/bindings/tests/results/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698