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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 { 83 {
84 if (UNLIKELY(!impl)) 84 if (UNLIKELY(!impl))
85 return v8NullWithCheck(isolate); 85 return v8NullWithCheck(isolate);
86 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterface>(im pl, isolate); 86 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterface>(im pl, isolate);
87 if (!wrapper.IsEmpty()) 87 if (!wrapper.IsEmpty())
88 return wrapper; 88 return wrapper;
89 return wrap(impl, creationContext, isolate); 89 return wrap(impl, creationContext, isolate);
90 } 90 }
91 91
92 template<typename CallbackInfo> 92 template<typename CallbackInfo>
93 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterface* im pl, v8::Handle<v8::Object> creationContext) 93 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterface* im pl)
94 { 94 {
95 if (UNLIKELY(!impl)) { 95 if (UNLIKELY(!impl)) {
96 v8SetReturnValueNull(callbackInfo); 96 v8SetReturnValueNull(callbackInfo);
97 return; 97 return;
98 } 98 }
99 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterface>(callbackInfo.Ge tReturnValue(), impl)) 99 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterface>(callbackInfo.Ge tReturnValue(), impl))
100 return; 100 return;
101 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate()); 101 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
102 v8SetReturnValue(callbackInfo, wrapper); 102 v8SetReturnValue(callbackInfo, wrapper);
103 } 103 }
104 104
105 template<typename CallbackInfo> 105 template<typename CallbackInfo>
106 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI nterface* impl, v8::Handle<v8::Object> creationContext) 106 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI nterface* impl)
107 { 107 {
108 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); 108 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld);
109 if (UNLIKELY(!impl)) { 109 if (UNLIKELY(!impl)) {
110 v8SetReturnValueNull(callbackInfo); 110 v8SetReturnValueNull(callbackInfo);
111 return; 111 return;
112 } 112 }
113 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterface>(cal lbackInfo.GetReturnValue(), impl)) 113 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterface>(cal lbackInfo.GetReturnValue(), impl))
114 return; 114 return;
115 v8::Handle<v8::Value> wrapper = wrap(impl, creationContext, callbackInfo.Get Isolate()); 115 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate());
116 v8SetReturnValue(callbackInfo, wrapper); 116 v8SetReturnValue(callbackInfo, wrapper);
117 } 117 }
118 118
119 template<class CallbackInfo, class Wrappable> 119 template<class CallbackInfo, class Wrappable>
120 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestInterface * impl, Wrappable* wrappable) 120 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestInterface * impl, Wrappable* wrappable)
121 { 121 {
122 if (UNLIKELY(!impl)) { 122 if (UNLIKELY(!impl)) {
123 v8SetReturnValueNull(callbackInfo); 123 v8SetReturnValueNull(callbackInfo);
124 return; 124 return;
125 } 125 }
126 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestInterface>(callbackInf o.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) 126 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestInterface>(callbackInf o.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
127 return; 127 return;
128 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 128 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
129 v8SetReturnValue(callbackInfo, wrapper); 129 v8SetReturnValue(callbackInfo, wrapper);
130 } 130 }
131 131
132 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestInterface > impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate) 132 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestInterface > impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate)
133 { 133 {
134 return toV8(impl.get(), creationContext, isolate); 134 return toV8(impl.get(), creationContext, isolate);
135 } 135 }
136 136
137 template<class CallbackInfo> 137 template<class CallbackInfo>
138 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestIn terface > impl, v8::Handle<v8::Object> creationContext) 138 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestIn terface > impl)
139 { 139 {
140 v8SetReturnValue(callbackInfo, impl.get(), creationContext); 140 v8SetReturnValue(callbackInfo, impl.get());
141 } 141 }
142 142
143 template<class CallbackInfo> 143 template<class CallbackInfo>
144 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestInterface > impl, v8::Handle<v8::Object> creationContext) 144 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestInterface > impl)
145 { 145 {
146 v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); 146 v8SetReturnValueForMainWorld(callbackInfo, impl.get());
147 } 147 }
148 148
149 template<class CallbackInfo, class Wrappable> 149 template<class CallbackInfo, class Wrappable>
150 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterface > impl, Wrappable* wrappable) 150 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterface > impl, Wrappable* wrappable)
151 { 151 {
152 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 152 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
153 } 153 }
154 154
155 } 155 }
156 156
157 #endif // ENABLE(Condition1) || ENABLE(Condition2) 157 #endif // ENABLE(Condition1) || ENABLE(Condition2)
158 158
159 #endif // V8TestInterface_h 159 #endif // V8TestInterface_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestExtendedEvent.h ('k') | Source/bindings/tests/results/V8TestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698