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/V8SupportTestInterface.cpp

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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 return; 320 return;
321 } 321 }
322 SupportTestInterface* imp = V8SupportTestInterface::toNative(args.Holder()); 322 SupportTestInterface* imp = V8SupportTestInterface::toNative(args.Holder());
323 ExceptionState es(args.GetIsolate()); 323 ExceptionState es(args.GetIsolate());
324 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); 324 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]);
325 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8 ::Object>::Cast(args[1])) : 0); 325 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8 ::Object>::Cast(args[1])) : 0);
326 ExecutionContext* scriptContext = getExecutionContext(); 326 ExecutionContext* scriptContext = getExecutionContext();
327 RefPtr<TestObj> result = SupportTestPartialInterface::supplementalMethod2(sc riptContext, imp, strArg, objArg, es); 327 RefPtr<TestObj> result = SupportTestPartialInterface::supplementalMethod2(sc riptContext, imp, strArg, objArg, es);
328 if (es.throwIfNeeded()) 328 if (es.throwIfNeeded())
329 return; 329 return;
330 v8SetReturnValue(args, result.release(), args.Holder()); 330 v8SetReturnValue(args, result.release());
331 } 331 }
332 332
333 #endif // ENABLE(Condition11) || ENABLE(Condition12) 333 #endif // ENABLE(Condition11) || ENABLE(Condition12)
334 334
335 #if ENABLE(Condition11) || ENABLE(Condition12) 335 #if ENABLE(Condition11) || ENABLE(Condition12)
336 336
337 static void supplementalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& args) 337 static void supplementalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& args)
338 { 338 {
339 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 339 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
340 SupportTestInterfaceV8Internal::supplementalMethod2Method(args); 340 SupportTestInterfaceV8Internal::supplementalMethod2Method(args);
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 V8DOMWrapper::associateObjectWithWrapper<V8SupportTestInterface>(impl, &wrap perTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); 506 V8DOMWrapper::associateObjectWithWrapper<V8SupportTestInterface>(impl, &wrap perTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
507 return wrapper; 507 return wrapper;
508 } 508 }
509 509
510 void V8SupportTestInterface::derefObject(void* object) 510 void V8SupportTestInterface::derefObject(void* object)
511 { 511 {
512 fromInternalPointer(object)->deref(); 512 fromInternalPointer(object)->deref();
513 } 513 }
514 514
515 } // namespace WebCore 515 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8SupportTestInterface.h ('k') | Source/bindings/tests/results/V8TestActiveDOMObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698