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

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

Issue 386613002: FYI: Compile fixes when always using a local for method return value Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-nullable-method-return-type
Patch Set: Created 6 years, 5 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
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 "V8TestInterfaceNode.h" 8 #include "V8TestInterfaceNode.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 { 203 {
204 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 204 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
205 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 205 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
206 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu e, info); 206 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu e, info);
207 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 207 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
208 } 208 }
209 209
210 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 210 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
211 { 211 {
212 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); 212 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
213 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyMethod()), im pl); 213 RefPtr<TestInterfaceEmpty> result = impl->testInterfaceEmptyMethod();
214 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl);
214 } 215 }
215 216
216 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 217 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
217 { 218 {
218 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 219 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
219 TestInterfaceNodeV8Internal::testInterfaceEmptyMethodMethod(info); 220 TestInterfaceNodeV8Internal::testInterfaceEmptyMethodMethod(info);
220 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 221 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
221 } 222 }
222 223
223 static void perWorldBindingsTestInterfaceEmptyMethodMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 224 static void perWorldBindingsTestInterfaceEmptyMethodMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
224 { 225 {
225 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); 226 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
226 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEm ptyMethod()), impl); 227 RefPtr<TestInterfaceEmpty> result = impl->perWorldBindingsTestInterfaceEmpty Method();
228 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl);
227 } 229 }
228 230
229 static void perWorldBindingsTestInterfaceEmptyMethodMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 231 static void perWorldBindingsTestInterfaceEmptyMethodMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
230 { 232 {
231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 233 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
232 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethod( info); 234 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethod( info);
233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 235 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
234 } 236 }
235 237
236 static void perWorldBindingsTestInterfaceEmptyMethodMethodForMainWorld(const v8: :FunctionCallbackInfo<v8::Value>& info) 238 static void perWorldBindingsTestInterfaceEmptyMethodMethodForMainWorld(const v8: :FunctionCallbackInfo<v8::Value>& info)
237 { 239 {
238 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); 240 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
239 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInt erfaceEmptyMethod())); 241 RefPtr<TestInterfaceEmpty> result = impl->perWorldBindingsTestInterfaceEmpty Method();
242 v8SetReturnValueForMainWorld(info, WTF::getPtr(result.release()));
240 } 243 }
241 244
242 static void perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld(c onst v8::FunctionCallbackInfo<v8::Value>& info) 245 static void perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld(c onst v8::FunctionCallbackInfo<v8::Value>& info)
243 { 246 {
244 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 247 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
245 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodF orMainWorld(info); 248 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodF orMainWorld(info);
246 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 249 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
247 } 250 }
248 251
249 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) 252 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(con st v8::FunctionCallbackInfo<v8::Value>& info)
250 { 253 {
251 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); 254 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
252 bool optionalBooleanArgument; 255 bool optionalBooleanArgument;
253 { 256 {
254 v8::TryCatch block; 257 v8::TryCatch block;
255 V8RethrowTryCatchScope rethrow(block); 258 V8RethrowTryCatchScope rethrow(block);
256 if (UNLIKELY(info.Length() <= 0)) { 259 if (UNLIKELY(info.Length() <= 0)) {
257 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInt erfaceEmptyMethodOptionalBooleanArg()), impl); 260 RefPtr<TestInterfaceEmpty> result = impl->perWorldBindingsTestInterf aceEmptyMethodOptionalBooleanArg();
261 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl);
258 return; 262 return;
259 } 263 }
260 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue()) ; 264 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue()) ;
261 } 265 }
262 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEm ptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl); 266 RefPtr<TestInterfaceEmpty> result = impl->perWorldBindingsTestInterfaceEmpty MethodOptionalBooleanArg(optionalBooleanArgument);
267 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl);
263 } 268 }
264 269
265 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 270 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
266 { 271 {
267 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 272 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
268 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona lBooleanArgMethod(info); 273 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona lBooleanArgMethod(info);
269 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 274 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
270 } 275 }
271 276
272 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 277 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
273 { 278 {
274 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); 279 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
275 bool optionalBooleanArgument; 280 bool optionalBooleanArgument;
276 { 281 {
277 v8::TryCatch block; 282 v8::TryCatch block;
278 V8RethrowTryCatchScope rethrow(block); 283 V8RethrowTryCatchScope rethrow(block);
279 if (UNLIKELY(info.Length() <= 0)) { 284 if (UNLIKELY(info.Length() <= 0)) {
280 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBinding sTestInterfaceEmptyMethodOptionalBooleanArg())); 285 RefPtr<TestInterfaceEmpty> result = impl->perWorldBindingsTestInterf aceEmptyMethodOptionalBooleanArg();
286 v8SetReturnValueForMainWorld(info, WTF::getPtr(result.release()));
281 return; 287 return;
282 } 288 }
283 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue()) ; 289 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue()) ;
284 } 290 }
285 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInt erfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument))); 291 RefPtr<TestInterfaceEmpty> result = impl->perWorldBindingsTestInterfaceEmpty MethodOptionalBooleanArg(optionalBooleanArgument);
292 v8SetReturnValueForMainWorld(info, WTF::getPtr(result.release()));
286 } 293 }
287 294
288 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 295 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
289 { 296 {
290 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 297 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
291 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona lBooleanArgMethodForMainWorld(info); 298 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona lBooleanArgMethodForMainWorld(info);
292 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 299 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
293 } 300 }
294 301
295 } // namespace TestInterfaceNodeV8Internal 302 } // namespace TestInterfaceNodeV8Internal
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 #endif // !ENABLE(OILPAN) 392 #endif // !ENABLE(OILPAN)
386 } 393 }
387 394
388 template<> 395 template<>
389 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec t> creationContext, v8::Isolate* isolate) 396 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec t> creationContext, v8::Isolate* isolate)
390 { 397 {
391 return toV8(impl, creationContext, isolate); 398 return toV8(impl, creationContext, isolate);
392 } 399 }
393 400
394 } // namespace WebCore 401 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698