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

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

Issue 297513008: Decrease call sites of ScriptState::current() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 { 851 {
852 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 852 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
853 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info); 853 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info);
854 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 854 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
855 } 855 }
856 856
857 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 857 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
858 { 858 {
859 v8::Handle<v8::Object> holder = info.Holder(); 859 v8::Handle<v8::Object> holder = info.Holder();
860 TestObject* impl = V8TestObject::toNative(holder); 860 TestObject* impl = V8TestObject::toNative(holder);
861 TONATIVE_VOID(RefPtrWillBeRawPtr<NodeFilter>, cppValue, toNodeFilter(v8Value , info.Holder(), info.GetIsolate())); 861 TONATIVE_VOID(RefPtrWillBeRawPtr<NodeFilter>, cppValue, toNodeFilter(v8Value , info.Holder(), ScriptState::current(info.GetIsolate())));
862 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); 862 impl->setNodeFilterAttribute(WTF::getPtr(cppValue));
863 } 863 }
864 864
865 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 865 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
866 { 866 {
867 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 867 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
868 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info); 868 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info);
869 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 869 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
870 } 870 }
871 871
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1854 { 1854 {
1855 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1855 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1856 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8 Value, info); 1856 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8 Value, info);
1857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1858 } 1858 }
1859 1859
1860 static void callWithScriptStateAnyAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 1860 static void callWithScriptStateAnyAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
1861 { 1861 {
1862 v8::Handle<v8::Object> holder = info.Holder(); 1862 v8::Handle<v8::Object> holder = info.Holder();
1863 TestObject* impl = V8TestObject::toNative(holder); 1863 TestObject* impl = V8TestObject::toNative(holder);
1864 ScriptState* state = ScriptState::current(info.GetIsolate()); 1864 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
1865 v8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(state).v8Value( )); 1865 v8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(scriptState).v8 Value());
1866 } 1866 }
1867 1867
1868 static void callWithScriptStateAnyAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1868 static void callWithScriptStateAnyAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1869 { 1869 {
1870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1871 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeGetter(info); 1871 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeGetter(info);
1872 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1872 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1873 } 1873 }
1874 1874
1875 static void callWithScriptStateAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1875 static void callWithScriptStateAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1876 { 1876 {
1877 v8::Handle<v8::Object> holder = info.Holder(); 1877 v8::Handle<v8::Object> holder = info.Holder();
1878 TestObject* impl = V8TestObject::toNative(holder); 1878 TestObject* impl = V8TestObject::toNative(holder);
1879 TONATIVE_VOID(ScriptValue, cppValue, ScriptValue(ScriptState::current(info.G etIsolate()), v8Value)); 1879 TONATIVE_VOID(ScriptValue, cppValue, ScriptValue(ScriptState::current(info.G etIsolate()), v8Value));
1880 impl->setCallWithScriptStateAnyAttribute(state, cppValue); 1880 impl->setCallWithScriptStateAnyAttribute(scriptState, cppValue);
1881 } 1881 }
1882 1882
1883 static void callWithScriptStateAnyAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 1883 static void callWithScriptStateAnyAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
1884 { 1884 {
1885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1886 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeSetter(v8Value , info); 1886 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeSetter(v8Value , info);
1887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1888 } 1888 }
1889 1889
1890 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 1890 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
1891 { 1891 {
1892 v8::Handle<v8::Object> holder = info.Holder(); 1892 v8::Handle<v8::Object> holder = info.Holder();
1893 TestObject* impl = V8TestObject::toNative(holder); 1893 TestObject* impl = V8TestObject::toNative(holder);
1894 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 1894 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
1895 ScriptState* state = ScriptState::current(info.GetIsolate()); 1895 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
1896 v8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttrib ute(state, scriptContext).v8Value()); 1896 v8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttrib ute(scriptState, scriptContext).v8Value());
1897 } 1897 }
1898 1898
1899 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1899 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1900 { 1900 {
1901 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1901 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1902 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteGetter(info); 1902 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteGetter(info);
1903 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1903 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1904 } 1904 }
1905 1905
1906 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1906 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1907 { 1907 {
1908 v8::Handle<v8::Object> holder = info.Holder(); 1908 v8::Handle<v8::Object> holder = info.Holder();
1909 TestObject* impl = V8TestObject::toNative(holder); 1909 TestObject* impl = V8TestObject::toNative(holder);
1910 TONATIVE_VOID(ScriptValue, cppValue, ScriptValue(ScriptState::current(info.G etIsolate()), v8Value)); 1910 TONATIVE_VOID(ScriptValue, cppValue, ScriptValue(ScriptState::current(info.G etIsolate()), v8Value));
1911 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 1911 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
1912 impl->setCallWithExecutionContextAndScriptStateAnyAttribute(state, scriptCon text, cppValue); 1912 impl->setCallWithExecutionContextAndScriptStateAnyAttribute(scriptState, scr iptContext, cppValue);
1913 } 1913 }
1914 1914
1915 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 1915 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
1916 { 1916 {
1917 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1917 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1918 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteSetter(v8Value, info); 1918 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteSetter(v8Value, info);
1919 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1919 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1920 } 1920 }
1921 1921
1922 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 1922 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info)
(...skipping 3387 matching lines...) Expand 10 before | Expand all | Expand 10 after
5310 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info) 5310 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info)
5311 { 5311 {
5312 if (UNLIKELY(info.Length() < 1)) { 5312 if (UNLIKELY(info.Length() < 1)) {
5313 throwMinimumArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg ", "TestObject", 1, info.Length(), info.GetIsolate()); 5313 throwMinimumArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg ", "TestObject", 1, info.Length(), info.GetIsolate());
5314 return; 5314 return;
5315 } 5315 }
5316 TestObject* impl = V8TestObject::toNative(info.Holder()); 5316 TestObject* impl = V8TestObject::toNative(info.Holder());
5317 RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg; 5317 RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg;
5318 { 5318 {
5319 v8::TryCatch block; 5319 v8::TryCatch block;
5320 TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener ::create(ScriptValue(ScriptState::current(info.GetIsolate()), info[0]))); 5320 TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener ::create(ScriptState::current(info.GetIsolate()), ScriptValue(ScriptState::curre nt(info.GetIsolate()), info[0])));
5321 } 5321 }
5322 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); 5322 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg);
5323 } 5323 }
5324 5324
5325 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 5325 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
5326 { 5326 {
5327 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5327 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5328 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); 5328 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info);
5329 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5329 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5330 } 5330 }
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
6123 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6123 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6124 { 6124 {
6125 if (UNLIKELY(info.Length() < 1)) { 6125 if (UNLIKELY(info.Length() < 1)) {
6126 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 6126 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
6127 return; 6127 return;
6128 } 6128 }
6129 TestObject* impl = V8TestObject::toNative(info.Holder()); 6129 TestObject* impl = V8TestObject::toNative(info.Holder());
6130 RefPtrWillBeRawPtr<NodeFilter> nodeFilterArg; 6130 RefPtrWillBeRawPtr<NodeFilter> nodeFilterArg;
6131 { 6131 {
6132 v8::TryCatch block; 6132 v8::TryCatch block;
6133 TONATIVE_VOID_INTERNAL(nodeFilterArg, toNodeFilter(info[0], info.Holder( ), info.GetIsolate())); 6133 TONATIVE_VOID_INTERNAL(nodeFilterArg, toNodeFilter(info[0], info.Holder( ), ScriptState::current(info.GetIsolate())));
6134 } 6134 }
6135 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); 6135 impl->voidMethodNodeFilterArg(nodeFilterArg.release());
6136 } 6136 }
6137 6137
6138 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6138 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6139 { 6139 {
6140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6141 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); 6141 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info);
6142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6143 } 6143 }
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after
7580 static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 7580 static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
7581 { 7581 {
7582 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7582 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7583 TestObjectV8Internal::callWithExecutionContextVoidMethodMethod(info); 7583 TestObjectV8Internal::callWithExecutionContextVoidMethodMethod(info);
7584 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7584 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7585 } 7585 }
7586 7586
7587 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 7587 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
7588 { 7588 {
7589 TestObject* impl = V8TestObject::toNative(info.Holder()); 7589 TestObject* impl = V8TestObject::toNative(info.Holder());
7590 ScriptState* state = ScriptState::current(info.GetIsolate()); 7590 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7591 impl->callWithScriptStateVoidMethod(state); 7591 impl->callWithScriptStateVoidMethod(scriptState);
7592 } 7592 }
7593 7593
7594 static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 7594 static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
7595 { 7595 {
7596 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7596 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7597 TestObjectV8Internal::callWithScriptStateVoidMethodMethod(info); 7597 TestObjectV8Internal::callWithScriptStateVoidMethodMethod(info);
7598 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7598 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7599 } 7599 }
7600 7600
7601 static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 7601 static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
7602 { 7602 {
7603 TestObject* impl = V8TestObject::toNative(info.Holder()); 7603 TestObject* impl = V8TestObject::toNative(info.Holder());
7604 ScriptState* state = ScriptState::current(info.GetIsolate()); 7604 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7605 int result = impl->callWithScriptStateLongMethod(state); 7605 int result = impl->callWithScriptStateLongMethod(scriptState);
7606 v8SetReturnValueInt(info, result); 7606 v8SetReturnValueInt(info, result);
7607 } 7607 }
7608 7608
7609 static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 7609 static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
7610 { 7610 {
7611 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7611 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7612 TestObjectV8Internal::callWithScriptStateLongMethodMethod(info); 7612 TestObjectV8Internal::callWithScriptStateLongMethodMethod(info);
7613 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7613 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7614 } 7614 }
7615 7615
7616 static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 7616 static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
7617 { 7617 {
7618 TestObject* impl = V8TestObject::toNative(info.Holder()); 7618 TestObject* impl = V8TestObject::toNative(info.Holder());
7619 ScriptState* state = ScriptState::current(info.GetIsolate()); 7619 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7620 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 7620 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
7621 impl->callWithScriptStateExecutionContextVoidMethod(state, scriptContext); 7621 impl->callWithScriptStateExecutionContextVoidMethod(scriptState, scriptConte xt);
7622 } 7622 }
7623 7623
7624 static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) 7624 static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
7625 { 7625 {
7626 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7626 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7627 TestObjectV8Internal::callWithScriptStateExecutionContextVoidMethodMethod(in fo); 7627 TestObjectV8Internal::callWithScriptStateExecutionContextVoidMethodMethod(in fo);
7628 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7628 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7629 } 7629 }
7630 7630
7631 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info) 7631 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio nCallbackInfo<v8::Value>& info)
7632 { 7632 {
7633 TestObject* impl = V8TestObject::toNative(info.Holder()); 7633 TestObject* impl = V8TestObject::toNative(info.Holder());
7634 ScriptState* state = ScriptState::current(info.GetIsolate()); 7634 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7635 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 0)); 7635 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 0));
7636 impl->callWithScriptStateScriptArgumentsVoidMethod(state, scriptArguments.re lease()); 7636 impl->callWithScriptStateScriptArgumentsVoidMethod(scriptState, scriptArgume nts.release());
7637 } 7637 }
7638 7638
7639 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 7639 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
7640 { 7640 {
7641 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7641 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7642 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf o); 7642 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf o);
7643 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7643 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7644 } 7644 }
7645 7645
7646 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info) 7646 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info)
7647 { 7647 {
7648 TestObject* impl = V8TestObject::toNative(info.Holder()); 7648 TestObject* impl = V8TestObject::toNative(info.Holder());
7649 bool optionalBooleanArg; 7649 bool optionalBooleanArg;
7650 { 7650 {
7651 v8::TryCatch block; 7651 v8::TryCatch block;
7652 if (UNLIKELY(info.Length() <= 0)) { 7652 if (UNLIKELY(info.Length() <= 0)) {
7653 ScriptState* state = ScriptState::current(info.GetIsolate()); 7653 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7654 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7654 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
7655 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg (state, scriptArguments.release()); 7655 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg (scriptState, scriptArguments.release());
7656 return; 7656 return;
7657 } 7657 }
7658 TONATIVE_VOID_INTERNAL(optionalBooleanArg, info[0]->BooleanValue()); 7658 TONATIVE_VOID_INTERNAL(optionalBooleanArg, info[0]->BooleanValue());
7659 } 7659 }
7660 ScriptState* state = ScriptState::current(info.GetIsolate()); 7660 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7661 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7661 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
7662 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(state, scriptArguments.release(), optionalBooleanArg); 7662 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(scriptS tate, scriptArguments.release(), optionalBooleanArg);
7663 } 7663 }
7664 7664
7665 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod Callback(const v8::FunctionCallbackInfo<v8::Value>& info) 7665 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod Callback(const v8::FunctionCallbackInfo<v8::Value>& info)
7666 { 7666 {
7667 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7667 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7668 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo oleanArgMethod(info); 7668 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo oleanArgMethod(info);
7669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7670 } 7670 }
7671 7671
7672 static void callWithActiveWindowMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 7672 static void callWithActiveWindowMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
(...skipping 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after
9349 fromInternalPointer(object)->deref(); 9349 fromInternalPointer(object)->deref();
9350 } 9350 }
9351 9351
9352 template<> 9352 template<>
9353 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9353 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9354 { 9354 {
9355 return toV8(impl, creationContext, isolate); 9355 return toV8(impl, creationContext, isolate);
9356 } 9356 }
9357 9357
9358 } // namespace WebCore 9358 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698