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

Side by Side Diff: Source/bindings/tests/results/V8TestNamedConstructor.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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 { 81 {
82 if (UNLIKELY(!impl)) 82 if (UNLIKELY(!impl))
83 return v8NullWithCheck(isolate); 83 return v8NullWithCheck(isolate);
84 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestNamedConstruc tor>(impl, isolate); 84 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestNamedConstruc tor>(impl, isolate);
85 if (!wrapper.IsEmpty()) 85 if (!wrapper.IsEmpty())
86 return wrapper; 86 return wrapper;
87 return wrap(impl, creationContext, isolate); 87 return wrap(impl, creationContext, isolate);
88 } 88 }
89 89
90 template<typename CallbackInfo> 90 template<typename CallbackInfo>
91 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestNamedConstruc tor* impl, v8::Handle<v8::Object> creationContext) 91 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestNamedConstruc tor* impl)
92 { 92 {
93 if (UNLIKELY(!impl)) { 93 if (UNLIKELY(!impl)) {
94 v8SetReturnValueNull(callbackInfo); 94 v8SetReturnValueNull(callbackInfo);
95 return; 95 return;
96 } 96 }
97 if (DOMDataStore::setReturnValueFromWrapper<V8TestNamedConstructor>(callback Info.GetReturnValue(), impl)) 97 if (DOMDataStore::setReturnValueFromWrapper<V8TestNamedConstructor>(callback Info.GetReturnValue(), impl))
98 return; 98 return;
99 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate()); 99 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
100 v8SetReturnValue(callbackInfo, wrapper); 100 v8SetReturnValue(callbackInfo, wrapper);
101 } 101 }
102 102
103 template<typename CallbackInfo> 103 template<typename CallbackInfo>
104 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestN amedConstructor* impl, v8::Handle<v8::Object> creationContext) 104 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestN amedConstructor* impl)
105 { 105 {
106 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); 106 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld);
107 if (UNLIKELY(!impl)) { 107 if (UNLIKELY(!impl)) {
108 v8SetReturnValueNull(callbackInfo); 108 v8SetReturnValueNull(callbackInfo);
109 return; 109 return;
110 } 110 }
111 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestNamedConstruct or>(callbackInfo.GetReturnValue(), impl)) 111 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestNamedConstruct or>(callbackInfo.GetReturnValue(), impl))
112 return; 112 return;
113 v8::Handle<v8::Value> wrapper = wrap(impl, creationContext, callbackInfo.Get Isolate()); 113 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate());
114 v8SetReturnValue(callbackInfo, wrapper); 114 v8SetReturnValue(callbackInfo, wrapper);
115 } 115 }
116 116
117 template<class CallbackInfo, class Wrappable> 117 template<class CallbackInfo, class Wrappable>
118 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestNamedCons tructor* impl, Wrappable* wrappable) 118 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestNamedCons tructor* impl, Wrappable* wrappable)
119 { 119 {
120 if (UNLIKELY(!impl)) { 120 if (UNLIKELY(!impl)) {
121 v8SetReturnValueNull(callbackInfo); 121 v8SetReturnValueNull(callbackInfo);
122 return; 122 return;
123 } 123 }
124 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestNamedConstructor>(call backInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) 124 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestNamedConstructor>(call backInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
125 return; 125 return;
126 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 126 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
127 v8SetReturnValue(callbackInfo, wrapper); 127 v8SetReturnValue(callbackInfo, wrapper);
128 } 128 }
129 129
130 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestNamedConstructor > impl, v8::Ha ndle<v8::Object> creationContext, v8::Isolate* isolate) 130 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestNamedConstructor > impl, v8::Ha ndle<v8::Object> creationContext, v8::Isolate* isolate)
131 { 131 {
132 return toV8(impl.get(), creationContext, isolate); 132 return toV8(impl.get(), creationContext, isolate);
133 } 133 }
134 134
135 template<class CallbackInfo> 135 template<class CallbackInfo>
136 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestNa medConstructor > impl, v8::Handle<v8::Object> creationContext) 136 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestNa medConstructor > impl)
137 { 137 {
138 v8SetReturnValue(callbackInfo, impl.get(), creationContext); 138 v8SetReturnValue(callbackInfo, impl.get());
139 } 139 }
140 140
141 template<class CallbackInfo> 141 template<class CallbackInfo>
142 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestNamedConstructor > impl, v8::Handle<v8::Object> creationContext) 142 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestNamedConstructor > impl)
143 { 143 {
144 v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); 144 v8SetReturnValueForMainWorld(callbackInfo, impl.get());
145 } 145 }
146 146
147 template<class CallbackInfo, class Wrappable> 147 template<class CallbackInfo, class Wrappable>
148 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stNamedConstructor > impl, Wrappable* wrappable) 148 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stNamedConstructor > impl, Wrappable* wrappable)
149 { 149 {
150 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 150 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
151 } 151 }
152 152
153 } 153 }
154 154
155 #endif // V8TestNamedConstructor_h 155 #endif // V8TestNamedConstructor_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestMediaQueryListListener.h ('k') | Source/bindings/tests/results/V8TestNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698