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

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

Issue 25675003: IDL compiler: remove nop return from end of getters and setters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 2 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 /* 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 WrapperTypeInfo V8TestEventConstructor::info = { V8TestEventConstructor::GetTemp late, V8TestEventConstructor::derefObject, 0, 0, 0, V8TestEventConstructor::inst allPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype }; 59 WrapperTypeInfo V8TestEventConstructor::info = { V8TestEventConstructor::GetTemp late, V8TestEventConstructor::derefObject, 0, 0, 0, V8TestEventConstructor::inst allPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype };
60 60
61 namespace TestEventConstructorV8Internal { 61 namespace TestEventConstructorV8Internal {
62 62
63 template <typename T> void V8_USE(T) { } 63 template <typename T> void V8_USE(T) { }
64 64
65 static void attr1AttributeGetter(v8::Local<v8::String> name, const v8::PropertyC allbackInfo<v8::Value>& info) 65 static void attr1AttributeGetter(v8::Local<v8::String> name, const v8::PropertyC allbackInfo<v8::Value>& info)
66 { 66 {
67 TestEventConstructor* imp = V8TestEventConstructor::toNative(info.Holder()); 67 TestEventConstructor* imp = V8TestEventConstructor::toNative(info.Holder());
68 v8SetReturnValueString(info, imp->attr1(), info.GetIsolate()); 68 v8SetReturnValueString(info, imp->attr1(), info.GetIsolate());
69 return;
70 } 69 }
71 70
72 static void attr1AttributeGetterCallback(v8::Local<v8::String> name, const v8::P ropertyCallbackInfo<v8::Value>& info) 71 static void attr1AttributeGetterCallback(v8::Local<v8::String> name, const v8::P ropertyCallbackInfo<v8::Value>& info)
73 { 72 {
74 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 73 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
75 TestEventConstructorV8Internal::attr1AttributeGetter(name, info); 74 TestEventConstructorV8Internal::attr1AttributeGetter(name, info);
76 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 75 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
77 } 76 }
78 77
79 static void attr2AttributeGetter(v8::Local<v8::String> name, const v8::PropertyC allbackInfo<v8::Value>& info) 78 static void attr2AttributeGetter(v8::Local<v8::String> name, const v8::PropertyC allbackInfo<v8::Value>& info)
80 { 79 {
81 TestEventConstructor* imp = V8TestEventConstructor::toNative(info.Holder()); 80 TestEventConstructor* imp = V8TestEventConstructor::toNative(info.Holder());
82 v8SetReturnValueString(info, imp->attr2(), info.GetIsolate()); 81 v8SetReturnValueString(info, imp->attr2(), info.GetIsolate());
83 return;
84 } 82 }
85 83
86 static void attr2AttributeGetterCallback(v8::Local<v8::String> name, const v8::P ropertyCallbackInfo<v8::Value>& info) 84 static void attr2AttributeGetterCallback(v8::Local<v8::String> name, const v8::P ropertyCallbackInfo<v8::Value>& info)
87 { 85 {
88 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 86 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
89 TestEventConstructorV8Internal::attr2AttributeGetter(name, info); 87 TestEventConstructorV8Internal::attr2AttributeGetter(name, info);
90 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 88 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
91 } 89 }
92 90
93 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) 91 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args)
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 V8DOMWrapper::associateObjectWithWrapper<V8TestEventConstructor>(impl, &info , wrapper, isolate, WrapperConfiguration::Independent); 200 V8DOMWrapper::associateObjectWithWrapper<V8TestEventConstructor>(impl, &info , wrapper, isolate, WrapperConfiguration::Independent);
203 return wrapper; 201 return wrapper;
204 } 202 }
205 203
206 void V8TestEventConstructor::derefObject(void* object) 204 void V8TestEventConstructor::derefObject(void* object)
207 { 205 {
208 fromInternalPointer(object)->deref(); 206 fromInternalPointer(object)->deref();
209 } 207 }
210 208
211 } // namespace WebCore 209 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestActiveDOMObject.cpp ('k') | Source/bindings/tests/results/V8TestException.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698