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

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

Issue 50073004: We don't need to pass |creationContext| to v8SetReturnValue family (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 { 88 {
89 if (UNLIKELY(!impl)) 89 if (UNLIKELY(!impl))
90 return v8NullWithCheck(isolate); 90 return v8NullWithCheck(isolate);
91 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestObjectPython> (impl, isolate); 91 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestObjectPython> (impl, isolate);
92 if (!wrapper.IsEmpty()) 92 if (!wrapper.IsEmpty())
93 return wrapper; 93 return wrapper;
94 return wrap(impl, creationContext, isolate); 94 return wrap(impl, creationContext, isolate);
95 } 95 }
96 96
97 template<typename CallbackInfo> 97 template<typename CallbackInfo>
98 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestObjectPython* impl, v8::Handle<v8::Object> creationContext) 98 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestObjectPython* impl)
99 { 99 {
100 if (UNLIKELY(!impl)) { 100 if (UNLIKELY(!impl)) {
101 v8SetReturnValueNull(callbackInfo); 101 v8SetReturnValueNull(callbackInfo);
102 return; 102 return;
103 } 103 }
104 if (DOMDataStore::setReturnValueFromWrapper<V8TestObjectPython>(callbackInfo .GetReturnValue(), impl)) 104 if (DOMDataStore::setReturnValueFromWrapper<V8TestObjectPython>(callbackInfo .GetReturnValue(), impl))
105 return; 105 return;
106 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate()); 106 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
107 v8SetReturnValue(callbackInfo, wrapper); 107 v8SetReturnValue(callbackInfo, wrapper);
108 } 108 }
109 109
110 template<typename CallbackInfo> 110 template<typename CallbackInfo>
111 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestO bjectPython* impl, v8::Handle<v8::Object> creationContext) 111 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestO bjectPython* impl)
112 { 112 {
113 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); 113 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld);
114 if (UNLIKELY(!impl)) { 114 if (UNLIKELY(!impl)) {
115 v8SetReturnValueNull(callbackInfo); 115 v8SetReturnValueNull(callbackInfo);
116 return; 116 return;
117 } 117 }
118 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestObjectPython>( callbackInfo.GetReturnValue(), impl)) 118 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestObjectPython>( callbackInfo.GetReturnValue(), impl))
119 return; 119 return;
120 v8::Handle<v8::Value> wrapper = wrap(impl, creationContext, callbackInfo.Get Isolate()); 120 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate());
121 v8SetReturnValue(callbackInfo, wrapper); 121 v8SetReturnValue(callbackInfo, wrapper);
122 } 122 }
123 123
124 template<class CallbackInfo, class Wrappable> 124 template<class CallbackInfo, class Wrappable>
125 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestObjectPyt hon* impl, Wrappable* wrappable) 125 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestObjectPyt hon* impl, Wrappable* wrappable)
126 { 126 {
127 if (UNLIKELY(!impl)) { 127 if (UNLIKELY(!impl)) {
128 v8SetReturnValueNull(callbackInfo); 128 v8SetReturnValueNull(callbackInfo);
129 return; 129 return;
130 } 130 }
131 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestObjectPython>(callback Info.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) 131 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestObjectPython>(callback Info.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
132 return; 132 return;
133 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 133 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
134 v8SetReturnValue(callbackInfo, wrapper); 134 v8SetReturnValue(callbackInfo, wrapper);
135 } 135 }
136 136
137 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestObjectPython > impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate) 137 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestObjectPython > impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate)
138 { 138 {
139 return toV8(impl.get(), creationContext, isolate); 139 return toV8(impl.get(), creationContext, isolate);
140 } 140 }
141 141
142 template<class CallbackInfo> 142 template<class CallbackInfo>
143 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestOb jectPython > impl, v8::Handle<v8::Object> creationContext) 143 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestOb jectPython > impl)
144 { 144 {
145 v8SetReturnValue(callbackInfo, impl.get(), creationContext); 145 v8SetReturnValue(callbackInfo, impl.get());
146 } 146 }
147 147
148 template<class CallbackInfo> 148 template<class CallbackInfo>
149 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestObjectPython > impl, v8::Handle<v8::Object> creationContext) 149 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestObjectPython > impl)
150 { 150 {
151 v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); 151 v8SetReturnValueForMainWorld(callbackInfo, impl.get());
152 } 152 }
153 153
154 template<class CallbackInfo, class Wrappable> 154 template<class CallbackInfo, class Wrappable>
155 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stObjectPython > impl, Wrappable* wrappable) 155 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stObjectPython > impl, Wrappable* wrappable)
156 { 156 {
157 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 157 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
158 } 158 }
159 159
160 } 160 }
161 161
162 #endif // V8TestObjectPython_h 162 #endif // V8TestObjectPython_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.cpp ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698