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

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

Issue 214143003: Bindings: use |holder| local variable in attribute getters and setters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: |holder| only Created 6 years, 9 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #if ENABLE(Condition1) || ENABLE(Condition2) 8 #if ENABLE(Condition1) || ENABLE(Condition2)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 85 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo)
86 { 86 {
87 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 87 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
88 TestInterfaceV8Internal::implementsStaticStringAttributeAttributeSetter(jsVa lue, info); 88 TestInterfaceV8Internal::implementsStaticStringAttributeAttributeSetter(jsVa lue, info);
89 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 89 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
90 } 90 }
91 91
92 static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyC allbackInfo<v8::Value>& info) 92 static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyC allbackInfo<v8::Value>& info)
93 { 93 {
94 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 94 v8::Handle<v8::Object> holder = info.Holder();
95 TestInterface* impl = V8TestInterface::toNative(holder);
95 ASSERT(impl); 96 ASSERT(impl);
96 v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribu te(*impl), info.GetIsolate()); 97 v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribu te(*impl), info.GetIsolate());
97 } 98 }
98 99
99 static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v 8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 100 static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v 8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
100 { 101 {
101 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
102 TestInterfaceV8Internal::implementsReadonlyStringAttributeAttributeGetter(in fo); 103 TestInterfaceV8Internal::implementsReadonlyStringAttributeAttributeGetter(in fo);
103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
104 } 105 }
105 106
106 static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 107 static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
107 { 108 {
108 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 109 v8::Handle<v8::Object> holder = info.Holder();
110 TestInterface* impl = V8TestInterface::toNative(holder);
109 ASSERT(impl); 111 ASSERT(impl);
110 v8SetReturnValueString(info, TestImplements::implementsStringAttribute(*impl ), info.GetIsolate()); 112 v8SetReturnValueString(info, TestImplements::implementsStringAttribute(*impl ), info.GetIsolate());
111 } 113 }
112 114
113 static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 115 static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
114 { 116 {
115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
116 TestInterfaceV8Internal::implementsStringAttributeAttributeGetter(info); 118 TestInterfaceV8Internal::implementsStringAttributeAttributeGetter(info);
117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
118 } 120 }
119 121
120 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 122 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
121 { 123 {
122 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 124 v8::Handle<v8::Object> holder = info.Holder();
125 TestInterface* impl = V8TestInterface::toNative(holder);
123 ASSERT(impl); 126 ASSERT(impl);
124 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 127 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
125 TestImplements::setImplementsStringAttribute(*impl, cppValue); 128 TestImplements::setImplementsStringAttribute(*impl, cppValue);
126 } 129 }
127 130
128 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 131 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
129 { 132 {
130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
131 TestInterfaceV8Internal::implementsStringAttributeAttributeSetter(jsValue, i nfo); 134 TestInterfaceV8Internal::implementsStringAttributeAttributeSetter(jsValue, i nfo);
132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
133 } 136 }
134 137
135 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 138 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
136 { 139 {
137 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 140 v8::Handle<v8::Object> holder = info.Holder();
141 TestInterface* impl = V8TestInterface::toNative(holder);
138 ASSERT(impl); 142 ASSERT(impl);
139 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsNodeAttribu te(*impl)), impl); 143 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsNodeAttribu te(*impl)), impl);
140 } 144 }
141 145
142 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 146 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
143 { 147 {
144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 148 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
145 TestInterfaceV8Internal::implementsNodeAttributeAttributeGetter(info); 149 TestInterfaceV8Internal::implementsNodeAttributeAttributeGetter(info);
146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 150 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
147 } 151 }
148 152
149 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 153 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
150 { 154 {
151 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 155 v8::Handle<v8::Object> holder = info.Holder();
156 TestInterface* impl = V8TestInterface::toNative(holder);
152 ASSERT(impl); 157 ASSERT(impl);
153 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 158 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
154 TestImplements::setImplementsNodeAttribute(*impl, WTF::getPtr(cppValue)); 159 TestImplements::setImplementsNodeAttribute(*impl, WTF::getPtr(cppValue));
155 } 160 }
156 161
157 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 162 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
158 { 163 {
159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 164 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
160 TestInterfaceV8Internal::implementsNodeAttributeAttributeSetter(jsValue, inf o); 165 TestInterfaceV8Internal::implementsNodeAttributeAttributeSetter(jsValue, inf o);
161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 166 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
162 } 167 }
163 168
164 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 169 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
165 { 170 {
166 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 171 v8::Handle<v8::Object> holder = info.Holder();
172 TestInterface* impl = V8TestInterface::toNative(holder);
167 ASSERT(impl); 173 ASSERT(impl);
168 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(*im pl); 174 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(*im pl);
169 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8: :Value>(v8::Null(info.GetIsolate()))); 175 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8: :Value>(v8::Null(info.GetIsolate())));
170 } 176 }
171 177
172 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 178 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
173 { 179 {
174 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 180 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
175 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeGetter(info ); 181 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeGetter(info );
176 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 182 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
177 } 183 }
178 184
179 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 185 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
180 { 186 {
181 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 187 v8::Handle<v8::Object> holder = info.Holder();
188 TestInterface* impl = V8TestInterface::toNative(holder);
182 ASSERT(impl); 189 ASSERT(impl);
183 moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEvent HandlerAttribute(*impl), jsValue, V8TestInterface::eventListenerCacheIndex, info .GetIsolate()); 190 moveEventListenerToNewWrapper(holder, TestImplements::implementsEventHandler Attribute(*impl), jsValue, V8TestInterface::eventListenerCacheIndex, info.GetIso late());
184 TestImplements::setImplementsEventHandlerAttribute(*impl, V8EventListenerLis t::getEventListener(jsValue, true, ListenerFindOrCreate)); 191 TestImplements::setImplementsEventHandlerAttribute(*impl, V8EventListenerLis t::getEventListener(jsValue, true, ListenerFindOrCreate));
185 } 192 }
186 193
187 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 194 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo)
188 { 195 {
189 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
190 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeSetter(jsVa lue, info); 197 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeSetter(jsVa lue, info);
191 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
192 } 199 }
193 200
194 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 201 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info)
195 { 202 {
196 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 203 v8::Handle<v8::Object> holder = info.Holder();
204 TestInterface* impl = V8TestInterface::toNative(holder);
197 ASSERT(impl); 205 ASSERT(impl);
198 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsRuntimeEnab ledNodeAttribute(*impl)), impl); 206 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsRuntimeEnab ledNodeAttribute(*impl)), impl);
199 } 207 }
200 208
201 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 209 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
202 { 210 {
203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
204 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeGette r(info); 212 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeGette r(info);
205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
206 } 214 }
207 215
208 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 216 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
209 { 217 {
210 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 218 v8::Handle<v8::Object> holder = info.Holder();
219 TestInterface* impl = V8TestInterface::toNative(holder);
211 ASSERT(impl); 220 ASSERT(impl);
212 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 221 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
213 TestImplements::setImplementsRuntimeEnabledNodeAttribute(*impl, WTF::getPtr( cppValue)); 222 TestImplements::setImplementsRuntimeEnabledNodeAttribute(*impl, WTF::getPtr( cppValue));
214 } 223 }
215 224
216 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info) 225 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info)
217 { 226 {
218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 227 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
219 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSette r(jsValue, info); 228 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSette r(jsValue, info);
220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 229 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
221 } 230 }
222 231
223 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info) 232 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info)
224 { 233 {
225 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 234 v8::Handle<v8::Object> holder = info.Holder();
235 TestInterface* impl = V8TestInterface::toNative(holder);
226 ASSERT(impl); 236 ASSERT(impl);
227 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsPerContextE nabledNodeAttribute(*impl)), impl); 237 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsPerContextE nabledNodeAttribute(*impl)), impl);
228 } 238 }
229 239
230 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 240 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
231 { 241 {
232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 242 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
233 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeGe tter(info); 243 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeGe tter(info);
234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 244 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
235 } 245 }
236 246
237 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 247 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
238 { 248 {
239 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 249 v8::Handle<v8::Object> holder = info.Holder();
250 TestInterface* impl = V8TestInterface::toNative(holder);
240 ASSERT(impl); 251 ASSERT(impl);
241 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 252 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
242 TestImplements::setImplementsPerContextEnabledNodeAttribute(*impl, WTF::getP tr(cppValue)); 253 TestImplements::setImplementsPerContextEnabledNodeAttribute(*impl, WTF::getP tr(cppValue));
243 } 254 }
244 255
245 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info) 256 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info)
246 { 257 {
247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 258 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
248 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeSe tter(jsValue, info); 259 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeSe tter(jsValue, info);
249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 260 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 { 305 {
295 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
296 TestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(jsValue, info ); 307 TestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(jsValue, info );
297 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
298 } 309 }
299 #endif // ENABLE(CONDITION_PARTIAL) 310 #endif // ENABLE(CONDITION_PARTIAL)
300 311
301 #if ENABLE(CONDITION_PARTIAL) 312 #if ENABLE(CONDITION_PARTIAL)
302 static void supplementalStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 313 static void supplementalStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
303 { 314 {
304 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 315 v8::Handle<v8::Object> holder = info.Holder();
316 TestInterface* impl = V8TestInterface::toNative(holder);
305 ASSERT(impl); 317 ASSERT(impl);
306 v8SetReturnValueString(info, TestPartialInterface::supplementalStr1(*impl), info.GetIsolate()); 318 v8SetReturnValueString(info, TestPartialInterface::supplementalStr1(*impl), info.GetIsolate());
307 } 319 }
308 #endif // ENABLE(CONDITION_PARTIAL) 320 #endif // ENABLE(CONDITION_PARTIAL)
309 321
310 #if ENABLE(CONDITION_PARTIAL) 322 #if ENABLE(CONDITION_PARTIAL)
311 static void supplementalStr1AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 323 static void supplementalStr1AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
312 { 324 {
313 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 325 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
314 TestInterfaceV8Internal::supplementalStr1AttributeGetter(info); 326 TestInterfaceV8Internal::supplementalStr1AttributeGetter(info);
315 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 327 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
316 } 328 }
317 #endif // ENABLE(CONDITION_PARTIAL) 329 #endif // ENABLE(CONDITION_PARTIAL)
318 330
319 #if ENABLE(CONDITION_PARTIAL) 331 #if ENABLE(CONDITION_PARTIAL)
320 static void supplementalStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 332 static void supplementalStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
321 { 333 {
322 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 334 v8::Handle<v8::Object> holder = info.Holder();
335 TestInterface* impl = V8TestInterface::toNative(holder);
323 ASSERT(impl); 336 ASSERT(impl);
324 v8SetReturnValueString(info, TestPartialInterface::supplementalStr2(*impl), info.GetIsolate()); 337 v8SetReturnValueString(info, TestPartialInterface::supplementalStr2(*impl), info.GetIsolate());
325 } 338 }
326 #endif // ENABLE(CONDITION_PARTIAL) 339 #endif // ENABLE(CONDITION_PARTIAL)
327 340
328 #if ENABLE(CONDITION_PARTIAL) 341 #if ENABLE(CONDITION_PARTIAL)
329 static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 342 static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
330 { 343 {
331 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 344 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
332 TestInterfaceV8Internal::supplementalStr2AttributeGetter(info); 345 TestInterfaceV8Internal::supplementalStr2AttributeGetter(info);
333 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 346 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
334 } 347 }
335 #endif // ENABLE(CONDITION_PARTIAL) 348 #endif // ENABLE(CONDITION_PARTIAL)
336 349
337 #if ENABLE(CONDITION_PARTIAL) 350 #if ENABLE(CONDITION_PARTIAL)
338 static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 351 static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
339 { 352 {
340 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 353 v8::Handle<v8::Object> holder = info.Holder();
354 TestInterface* impl = V8TestInterface::toNative(holder);
341 ASSERT(impl); 355 ASSERT(impl);
342 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 356 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
343 TestPartialInterface::setSupplementalStr2(*impl, cppValue); 357 TestPartialInterface::setSupplementalStr2(*impl, cppValue);
344 } 358 }
345 #endif // ENABLE(CONDITION_PARTIAL) 359 #endif // ENABLE(CONDITION_PARTIAL)
346 360
347 #if ENABLE(CONDITION_PARTIAL) 361 #if ENABLE(CONDITION_PARTIAL)
348 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 362 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
349 { 363 {
350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 364 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
351 TestInterfaceV8Internal::supplementalStr2AttributeSetter(jsValue, info); 365 TestInterfaceV8Internal::supplementalStr2AttributeSetter(jsValue, info);
352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 366 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
353 } 367 }
354 #endif // ENABLE(CONDITION_PARTIAL) 368 #endif // ENABLE(CONDITION_PARTIAL)
355 369
356 #if ENABLE(CONDITION_PARTIAL) 370 #if ENABLE(CONDITION_PARTIAL)
357 static void supplementalNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 371 static void supplementalNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
358 { 372 {
359 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 373 v8::Handle<v8::Object> holder = info.Holder();
374 TestInterface* impl = V8TestInterface::toNative(holder);
360 ASSERT(impl); 375 ASSERT(impl);
361 v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::supplementalNod e(*impl)), impl); 376 v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::supplementalNod e(*impl)), impl);
362 } 377 }
363 #endif // ENABLE(CONDITION_PARTIAL) 378 #endif // ENABLE(CONDITION_PARTIAL)
364 379
365 #if ENABLE(CONDITION_PARTIAL) 380 #if ENABLE(CONDITION_PARTIAL)
366 static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 381 static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
367 { 382 {
368 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
369 TestInterfaceV8Internal::supplementalNodeAttributeGetter(info); 384 TestInterfaceV8Internal::supplementalNodeAttributeGetter(info);
370 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
371 } 386 }
372 #endif // ENABLE(CONDITION_PARTIAL) 387 #endif // ENABLE(CONDITION_PARTIAL)
373 388
374 #if ENABLE(CONDITION_PARTIAL) 389 #if ENABLE(CONDITION_PARTIAL)
375 static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 390 static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
376 { 391 {
377 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 392 v8::Handle<v8::Object> holder = info.Holder();
393 TestInterface* impl = V8TestInterface::toNative(holder);
378 ASSERT(impl); 394 ASSERT(impl);
379 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 395 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
380 TestPartialInterface::setSupplementalNode(*impl, WTF::getPtr(cppValue)); 396 TestPartialInterface::setSupplementalNode(*impl, WTF::getPtr(cppValue));
381 } 397 }
382 #endif // ENABLE(CONDITION_PARTIAL) 398 #endif // ENABLE(CONDITION_PARTIAL)
383 399
384 #if ENABLE(CONDITION_PARTIAL) 400 #if ENABLE(CONDITION_PARTIAL)
385 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 401 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
386 { 402 {
387 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
388 TestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, info); 404 TestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, info);
389 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
390 } 406 }
391 #endif // ENABLE(CONDITION_PARTIAL) 407 #endif // ENABLE(CONDITION_PARTIAL)
392 408
393 #if ENABLE(CONDITION_PARTIAL) 409 #if ENABLE(CONDITION_PARTIAL)
394 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 410 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
395 { 411 {
396 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 412 v8::Handle<v8::Object> holder = info.Holder();
413 TestInterface* impl = V8TestInterface::toNative(holder);
397 ASSERT(impl); 414 ASSERT(impl);
398 v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::node13(*impl)), impl); 415 v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::node13(*impl)), impl);
399 } 416 }
400 #endif // ENABLE(CONDITION_PARTIAL) 417 #endif // ENABLE(CONDITION_PARTIAL)
401 418
402 #if ENABLE(CONDITION_PARTIAL) 419 #if ENABLE(CONDITION_PARTIAL)
403 static void Node13AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info) 420 static void Node13AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info)
404 { 421 {
405 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 422 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
406 TestInterfaceV8Internal::Node13AttributeGetter(info); 423 TestInterfaceV8Internal::Node13AttributeGetter(info);
407 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 424 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
408 } 425 }
409 #endif // ENABLE(CONDITION_PARTIAL) 426 #endif // ENABLE(CONDITION_PARTIAL)
410 427
411 #if ENABLE(CONDITION_PARTIAL) 428 #if ENABLE(CONDITION_PARTIAL)
412 static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info) 429 static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info)
413 { 430 {
414 TestInterface* impl = V8TestInterface::toNative(info.Holder()); 431 v8::Handle<v8::Object> holder = info.Holder();
432 TestInterface* impl = V8TestInterface::toNative(holder);
415 ASSERT(impl); 433 ASSERT(impl);
416 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 434 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
417 TestPartialInterface::setNode13(*impl, WTF::getPtr(cppValue)); 435 TestPartialInterface::setNode13(*impl, WTF::getPtr(cppValue));
418 } 436 }
419 #endif // ENABLE(CONDITION_PARTIAL) 437 #endif // ENABLE(CONDITION_PARTIAL)
420 438
421 #if ENABLE(CONDITION_PARTIAL) 439 #if ENABLE(CONDITION_PARTIAL)
422 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 440 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
423 { 441 {
424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 442 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 } 902 }
885 903
886 template<> 904 template<>
887 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 905 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
888 { 906 {
889 return toV8(impl, creationContext, isolate); 907 return toV8(impl, creationContext, isolate);
890 } 908 }
891 909
892 } // namespace WebCore 910 } // namespace WebCore
893 #endif // ENABLE(Condition1) || ENABLE(Condition2) 911 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698