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

Side by Side Diff: Source/bindings/tests/results/V8TestEventTarget.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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 template <typename T> void V8_USE(T) { } 66 template <typename T> void V8_USE(T) { }
67 67
68 static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& args) 68 static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
69 { 69 {
70 if (UNLIKELY(args.Length() < 1)) { 70 if (UNLIKELY(args.Length() < 1)) {
71 throwTypeError(ExceptionMessages::failedToExecute("item", "TestEventTarg et", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsolate() ); 71 throwTypeError(ExceptionMessages::failedToExecute("item", "TestEventTarg et", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsolate() );
72 return; 72 return;
73 } 73 }
74 TestEventTarget* imp = V8TestEventTarget::toNative(args.Holder()); 74 TestEventTarget* imp = V8TestEventTarget::toNative(args.Holder());
75 V8TRYCATCH_VOID(unsigned, index, toUInt32(args[0])); 75 V8TRYCATCH_VOID(unsigned, index, toUInt32(args[0]));
76 v8SetReturnValue(args, imp->item(index), args.Holder()); 76 v8SetReturnValue(args, imp->item(index));
77 } 77 }
78 78
79 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) 79 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args)
80 { 80 {
81 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 81 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
82 TestEventTargetV8Internal::itemMethod(args); 82 TestEventTargetV8Internal::itemMethod(args);
83 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 83 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
84 } 84 }
85 85
86 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& args) 86 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
87 { 87 {
88 if (UNLIKELY(args.Length() < 1)) { 88 if (UNLIKELY(args.Length() < 1)) {
89 throwTypeError(ExceptionMessages::failedToExecute("namedItem", "TestEven tTarget", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsol ate()); 89 throwTypeError(ExceptionMessages::failedToExecute("namedItem", "TestEven tTarget", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsol ate());
90 return; 90 return;
91 } 91 }
92 TestEventTarget* imp = V8TestEventTarget::toNative(args.Holder()); 92 TestEventTarget* imp = V8TestEventTarget::toNative(args.Holder());
93 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, args[0]); 93 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, args[0]);
94 v8SetReturnValue(args, imp->namedItem(name), args.Holder()); 94 v8SetReturnValue(args, imp->namedItem(name));
95 } 95 }
96 96
97 static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& a rgs) 97 static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& a rgs)
98 { 98 {
99 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 99 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
100 TestEventTargetV8Internal::namedItemMethod(args); 100 TestEventTargetV8Internal::namedItemMethod(args);
101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
102 } 102 }
103 103
104 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo <v8::Value>& info) 104 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo <v8::Value>& info)
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 V8DOMWrapper::associateObjectWithWrapper<V8TestEventTarget>(impl, &wrapperTy peInfo, wrapper, isolate, WrapperConfiguration::Independent); 341 V8DOMWrapper::associateObjectWithWrapper<V8TestEventTarget>(impl, &wrapperTy peInfo, wrapper, isolate, WrapperConfiguration::Independent);
342 return wrapper; 342 return wrapper;
343 } 343 }
344 344
345 void V8TestEventTarget::derefObject(void* object) 345 void V8TestEventTarget::derefObject(void* object)
346 { 346 {
347 fromInternalPointer(object)->deref(); 347 fromInternalPointer(object)->deref();
348 } 348 }
349 349
350 } // namespace WebCore 350 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestEventTarget.h ('k') | Source/bindings/tests/results/V8TestException.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698