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

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

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 114 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo)
115 { 115 {
116 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 116 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
117 TestInterfaceV8Internal::implementsStaticStringAttributeAttributeSetter(jsVa lue, info); 117 TestInterfaceV8Internal::implementsStaticStringAttributeAttributeSetter(jsVa lue, info);
118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
119 } 119 }
120 120
121 static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyC allbackInfo<v8::Value>& info) 121 static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyC allbackInfo<v8::Value>& info)
122 { 122 {
123 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 123 TestInterface* imp = V8TestInterface::toNative(info.Holder());
124 v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribu te(imp), info.GetIsolate()); 124 ASSERT(imp);
125 v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribu te(*imp), info.GetIsolate());
125 } 126 }
126 127
127 static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v 8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 128 static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v 8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
128 { 129 {
129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
130 TestInterfaceV8Internal::implementsReadonlyStringAttributeAttributeGetter(in fo); 131 TestInterfaceV8Internal::implementsReadonlyStringAttributeAttributeGetter(in fo);
131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
132 } 133 }
133 134
134 static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 135 static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
135 { 136 {
136 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 137 TestInterface* imp = V8TestInterface::toNative(info.Holder());
137 v8SetReturnValueString(info, TestImplements::implementsStringAttribute(imp), info.GetIsolate()); 138 ASSERT(imp);
139 v8SetReturnValueString(info, TestImplements::implementsStringAttribute(*imp) , info.GetIsolate());
138 } 140 }
139 141
140 static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 142 static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
141 { 143 {
142 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
143 TestInterfaceV8Internal::implementsStringAttributeAttributeGetter(info); 145 TestInterfaceV8Internal::implementsStringAttributeAttributeGetter(info);
144 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
145 } 147 }
146 148
147 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 149 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
148 { 150 {
149 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 151 TestInterface* imp = V8TestInterface::toNative(info.Holder());
150 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 152 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
151 TestImplements::setImplementsStringAttribute(imp, cppValue); 153 ASSERT(imp);
154 TestImplements::setImplementsStringAttribute(*imp, cppValue);
152 } 155 }
153 156
154 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 157 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
155 { 158 {
156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
157 TestInterfaceV8Internal::implementsStringAttributeAttributeSetter(jsValue, i nfo); 160 TestInterfaceV8Internal::implementsStringAttributeAttributeSetter(jsValue, i nfo);
158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
159 } 162 }
160 163
161 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 164 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
162 { 165 {
163 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 166 TestInterface* imp = V8TestInterface::toNative(info.Holder());
164 v8SetReturnValueFast(info, TestImplements::implementsNodeAttribute(imp), imp ); 167 ASSERT(imp);
168 v8SetReturnValueFast(info, TestImplements::implementsNodeAttribute(*imp), im p);
165 } 169 }
166 170
167 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 171 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
168 { 172 {
169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
170 TestInterfaceV8Internal::implementsNodeAttributeAttributeGetter(info); 174 TestInterfaceV8Internal::implementsNodeAttributeAttributeGetter(info);
171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
172 } 176 }
173 177
174 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 178 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
175 { 179 {
176 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 180 TestInterface* imp = V8TestInterface::toNative(info.Holder());
177 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 181 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
178 TestImplements::setImplementsNodeAttribute(imp, WTF::getPtr(cppValue)); 182 ASSERT(imp);
183 TestImplements::setImplementsNodeAttribute(*imp, WTF::getPtr(cppValue));
179 } 184 }
180 185
181 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 186 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
182 { 187 {
183 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
184 TestInterfaceV8Internal::implementsNodeAttributeAttributeSetter(jsValue, inf o); 189 TestInterfaceV8Internal::implementsNodeAttributeAttributeSetter(jsValue, inf o);
185 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
186 } 191 }
187 192
188 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 193 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
189 { 194 {
190 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 195 TestInterface* imp = V8TestInterface::toNative(info.Holder());
191 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(imp ); 196 ASSERT(imp);
197 ASSERT(imp);
198 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(*im p);
192 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8:: Value>(v8::Null(info.GetIsolate()))); 199 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8:: Value>(v8::Null(info.GetIsolate())));
193 } 200 }
194 201
195 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 202 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
196 { 203 {
197 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 204 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
198 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeGetter(info ); 205 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeGetter(info );
199 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 206 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
200 } 207 }
201 208
202 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 209 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
203 { 210 {
204 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 211 TestInterface* imp = V8TestInterface::toNative(info.Holder());
205 moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEvent HandlerAttribute(imp), jsValue, V8TestInterface::eventListenerCacheIndex, info.G etIsolate()); 212 ASSERT(imp);
206 TestImplements::setImplementsEventHandlerAttribute(imp, V8EventListenerList: :getEventListener(jsValue, true, ListenerFindOrCreate)); 213 moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEvent HandlerAttribute(*imp), jsValue, V8TestInterface::eventListenerCacheIndex, info. GetIsolate());
214 ASSERT(imp);
215 TestImplements::setImplementsEventHandlerAttribute(*imp, V8EventListenerList ::getEventListener(jsValue, true, ListenerFindOrCreate));
207 } 216 }
208 217
209 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 218 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo)
210 { 219 {
211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 220 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
212 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeSetter(jsVa lue, info); 221 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeSetter(jsVa lue, info);
213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 222 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
214 } 223 }
215 224
216 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 225 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info)
217 { 226 {
218 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 227 TestInterface* imp = V8TestInterface::toNative(info.Holder());
219 v8SetReturnValueFast(info, TestImplements::implementsRuntimeEnabledNodeAttri bute(imp), imp); 228 ASSERT(imp);
229 v8SetReturnValueFast(info, TestImplements::implementsRuntimeEnabledNodeAttri bute(*imp), imp);
220 } 230 }
221 231
222 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 232 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
223 { 233 {
224 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 234 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
225 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeGette r(info); 235 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeGette r(info);
226 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 236 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
227 } 237 }
228 238
229 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 239 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
230 { 240 {
231 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 241 TestInterface* imp = V8TestInterface::toNative(info.Holder());
232 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 242 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
233 TestImplements::setImplementsRuntimeEnabledNodeAttribute(imp, WTF::getPtr(cp pValue)); 243 ASSERT(imp);
244 TestImplements::setImplementsRuntimeEnabledNodeAttribute(*imp, WTF::getPtr(c ppValue));
234 } 245 }
235 246
236 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info) 247 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info)
237 { 248 {
238 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 249 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
239 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSette r(jsValue, info); 250 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSette r(jsValue, info);
240 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 251 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
241 } 252 }
242 253
243 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info) 254 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info)
244 { 255 {
245 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 256 TestInterface* imp = V8TestInterface::toNative(info.Holder());
246 v8SetReturnValueFast(info, TestImplements::implementsPerContextEnabledNodeAt tribute(imp), imp); 257 ASSERT(imp);
258 v8SetReturnValueFast(info, TestImplements::implementsPerContextEnabledNodeAt tribute(*imp), imp);
247 } 259 }
248 260
249 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 261 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
250 { 262 {
251 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
252 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeGe tter(info); 264 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeGe tter(info);
253 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
254 } 266 }
255 267
256 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 268 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
257 { 269 {
258 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 270 TestInterface* imp = V8TestInterface::toNative(info.Holder());
259 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 271 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
260 TestImplements::setImplementsPerContextEnabledNodeAttribute(imp, WTF::getPtr (cppValue)); 272 ASSERT(imp);
273 TestImplements::setImplementsPerContextEnabledNodeAttribute(*imp, WTF::getPt r(cppValue));
261 } 274 }
262 275
263 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info) 276 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info)
264 { 277 {
265 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
266 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeSe tter(jsValue, info); 279 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeSe tter(jsValue, info);
267 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
268 } 281 }
269 282
270 #if ENABLE(CONDITION_PARTIAL) 283 #if ENABLE(CONDITION_PARTIAL)
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
314 TestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(jsValue, info ); 327 TestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(jsValue, info );
315 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
316 } 329 }
317 #endif // ENABLE(CONDITION_PARTIAL) 330 #endif // ENABLE(CONDITION_PARTIAL)
318 331
319 #if ENABLE(CONDITION_PARTIAL) 332 #if ENABLE(CONDITION_PARTIAL)
320 static void supplementalStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 333 static void supplementalStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
321 { 334 {
322 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 335 TestInterface* imp = V8TestInterface::toNative(info.Holder());
323 v8SetReturnValueString(info, TestPartialInterface::supplementalStr1(imp), in fo.GetIsolate()); 336 ASSERT(imp);
337 v8SetReturnValueString(info, TestPartialInterface::supplementalStr1(*imp), i nfo.GetIsolate());
324 } 338 }
325 #endif // ENABLE(CONDITION_PARTIAL) 339 #endif // ENABLE(CONDITION_PARTIAL)
326 340
327 #if ENABLE(CONDITION_PARTIAL) 341 #if ENABLE(CONDITION_PARTIAL)
328 static void supplementalStr1AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 342 static void supplementalStr1AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
329 { 343 {
330 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 344 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
331 TestInterfaceV8Internal::supplementalStr1AttributeGetter(info); 345 TestInterfaceV8Internal::supplementalStr1AttributeGetter(info);
332 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 346 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
333 } 347 }
334 #endif // ENABLE(CONDITION_PARTIAL) 348 #endif // ENABLE(CONDITION_PARTIAL)
335 349
336 #if ENABLE(CONDITION_PARTIAL) 350 #if ENABLE(CONDITION_PARTIAL)
337 static void supplementalStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 351 static void supplementalStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
338 { 352 {
339 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 353 TestInterface* imp = V8TestInterface::toNative(info.Holder());
340 v8SetReturnValueString(info, TestPartialInterface::supplementalStr2(imp), in fo.GetIsolate()); 354 ASSERT(imp);
355 v8SetReturnValueString(info, TestPartialInterface::supplementalStr2(*imp), i nfo.GetIsolate());
341 } 356 }
342 #endif // ENABLE(CONDITION_PARTIAL) 357 #endif // ENABLE(CONDITION_PARTIAL)
343 358
344 #if ENABLE(CONDITION_PARTIAL) 359 #if ENABLE(CONDITION_PARTIAL)
345 static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 360 static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
346 { 361 {
347 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 362 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
348 TestInterfaceV8Internal::supplementalStr2AttributeGetter(info); 363 TestInterfaceV8Internal::supplementalStr2AttributeGetter(info);
349 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 364 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
350 } 365 }
351 #endif // ENABLE(CONDITION_PARTIAL) 366 #endif // ENABLE(CONDITION_PARTIAL)
352 367
353 #if ENABLE(CONDITION_PARTIAL) 368 #if ENABLE(CONDITION_PARTIAL)
354 static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 369 static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
355 { 370 {
356 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 371 TestInterface* imp = V8TestInterface::toNative(info.Holder());
357 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 372 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
358 TestPartialInterface::setSupplementalStr2(imp, cppValue); 373 ASSERT(imp);
374 TestPartialInterface::setSupplementalStr2(*imp, cppValue);
359 } 375 }
360 #endif // ENABLE(CONDITION_PARTIAL) 376 #endif // ENABLE(CONDITION_PARTIAL)
361 377
362 #if ENABLE(CONDITION_PARTIAL) 378 #if ENABLE(CONDITION_PARTIAL)
363 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 379 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
364 { 380 {
365 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 381 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
366 TestInterfaceV8Internal::supplementalStr2AttributeSetter(jsValue, info); 382 TestInterfaceV8Internal::supplementalStr2AttributeSetter(jsValue, info);
367 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 383 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
368 } 384 }
369 #endif // ENABLE(CONDITION_PARTIAL) 385 #endif // ENABLE(CONDITION_PARTIAL)
370 386
371 #if ENABLE(CONDITION_PARTIAL) 387 #if ENABLE(CONDITION_PARTIAL)
372 static void supplementalNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 388 static void supplementalNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
373 { 389 {
374 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 390 TestInterface* imp = V8TestInterface::toNative(info.Holder());
375 v8SetReturnValueFast(info, TestPartialInterface::supplementalNode(imp), imp) ; 391 ASSERT(imp);
392 v8SetReturnValueFast(info, TestPartialInterface::supplementalNode(*imp), imp );
376 } 393 }
377 #endif // ENABLE(CONDITION_PARTIAL) 394 #endif // ENABLE(CONDITION_PARTIAL)
378 395
379 #if ENABLE(CONDITION_PARTIAL) 396 #if ENABLE(CONDITION_PARTIAL)
380 static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 397 static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
381 { 398 {
382 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 399 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
383 TestInterfaceV8Internal::supplementalNodeAttributeGetter(info); 400 TestInterfaceV8Internal::supplementalNodeAttributeGetter(info);
384 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 401 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
385 } 402 }
386 #endif // ENABLE(CONDITION_PARTIAL) 403 #endif // ENABLE(CONDITION_PARTIAL)
387 404
388 #if ENABLE(CONDITION_PARTIAL) 405 #if ENABLE(CONDITION_PARTIAL)
389 static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 406 static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
390 { 407 {
391 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 408 TestInterface* imp = V8TestInterface::toNative(info.Holder());
392 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 409 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
393 TestPartialInterface::setSupplementalNode(imp, WTF::getPtr(cppValue)); 410 ASSERT(imp);
411 TestPartialInterface::setSupplementalNode(*imp, WTF::getPtr(cppValue));
394 } 412 }
395 #endif // ENABLE(CONDITION_PARTIAL) 413 #endif // ENABLE(CONDITION_PARTIAL)
396 414
397 #if ENABLE(CONDITION_PARTIAL) 415 #if ENABLE(CONDITION_PARTIAL)
398 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 416 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
399 { 417 {
400 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 418 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
401 TestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, info); 419 TestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, info);
402 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 420 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
403 } 421 }
404 #endif // ENABLE(CONDITION_PARTIAL) 422 #endif // ENABLE(CONDITION_PARTIAL)
405 423
406 #if ENABLE(CONDITION_PARTIAL) 424 #if ENABLE(CONDITION_PARTIAL)
407 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o) 425 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf o)
408 { 426 {
409 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 427 TestInterface* imp = V8TestInterface::toNative(info.Holder());
410 v8SetReturnValueFast(info, TestPartialInterface::node13(imp), imp); 428 ASSERT(imp);
429 v8SetReturnValueFast(info, TestPartialInterface::node13(*imp), imp);
411 } 430 }
412 #endif // ENABLE(CONDITION_PARTIAL) 431 #endif // ENABLE(CONDITION_PARTIAL)
413 432
414 #if ENABLE(CONDITION_PARTIAL) 433 #if ENABLE(CONDITION_PARTIAL)
415 static void Node13AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info) 434 static void Node13AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope rtyCallbackInfo<v8::Value>& info)
416 { 435 {
417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 436 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
418 TestInterfaceV8Internal::Node13AttributeGetter(info); 437 TestInterfaceV8Internal::Node13AttributeGetter(info);
419 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 438 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
420 } 439 }
421 #endif // ENABLE(CONDITION_PARTIAL) 440 #endif // ENABLE(CONDITION_PARTIAL)
422 441
423 #if ENABLE(CONDITION_PARTIAL) 442 #if ENABLE(CONDITION_PARTIAL)
424 static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info) 443 static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info)
425 { 444 {
426 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 445 TestInterface* imp = V8TestInterface::toNative(info.Holder());
427 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 446 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue));
428 TestPartialInterface::setNode13(imp, WTF::getPtr(cppValue)); 447 ASSERT(imp);
448 TestPartialInterface::setNode13(*imp, WTF::getPtr(cppValue));
429 } 449 }
430 #endif // ENABLE(CONDITION_PARTIAL) 450 #endif // ENABLE(CONDITION_PARTIAL)
431 451
432 #if ENABLE(CONDITION_PARTIAL) 452 #if ENABLE(CONDITION_PARTIAL)
433 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 453 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
434 { 454 {
435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 455 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
436 TestInterfaceV8Internal::Node13AttributeSetter(jsValue, info); 456 TestInterfaceV8Internal::Node13AttributeSetter(jsValue, info);
437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 457 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
438 } 458 }
(...skipping 26 matching lines...) Expand all
465 static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 485 static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
466 { 486 {
467 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 487 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
468 TestInterfaceV8Internal::namedItemMethod(info); 488 TestInterfaceV8Internal::namedItemMethod(info);
469 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 489 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
470 } 490 }
471 491
472 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 492 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
473 { 493 {
474 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 494 TestInterface* imp = V8TestInterface::toNative(info.Holder());
475 TestImplements::implementsVoidMethod(imp); 495 ASSERT(imp);
496 TestImplements::implementsVoidMethod(*imp);
476 } 497 }
477 498
478 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 499 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
479 { 500 {
480 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 501 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
481 TestInterfaceV8Internal::implementsVoidMethodMethod(info); 502 TestInterfaceV8Internal::implementsVoidMethodMethod(info);
482 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 503 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
483 } 504 }
484 505
485 static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 506 static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
486 { 507 {
487 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsC omplexMethod", "TestInterface", info.Holder(), info.GetIsolate()); 508 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsC omplexMethod", "TestInterface", info.Holder(), info.GetIsolate());
488 if (UNLIKELY(info.Length() < 2)) { 509 if (UNLIKELY(info.Length() < 2)) {
489 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 510 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
490 exceptionState.throwIfNeeded(); 511 exceptionState.throwIfNeeded();
491 return; 512 return;
492 } 513 }
493 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 514 TestInterface* imp = V8TestInterface::toNative(info.Holder());
494 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); 515 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]);
495 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); 516 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[1]));
517 ASSERT(imp);
496 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 518 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
497 RefPtr<TestInterfaceEmpty> result = TestImplements::implementsComplexMethod( scriptContext, imp, strArg, testInterfaceEmptyArg, exceptionState); 519 RefPtr<TestInterfaceEmpty> result = TestImplements::implementsComplexMethod( scriptContext, *imp, strArg, testInterfaceEmptyArg, exceptionState);
498 if (exceptionState.throwIfNeeded()) 520 if (exceptionState.throwIfNeeded())
499 return; 521 return;
500 v8SetReturnValue(info, result.release()); 522 v8SetReturnValue(info, result.release());
501 } 523 }
502 524
503 static void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 525 static void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
504 { 526 {
505 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
506 TestInterfaceV8Internal::implementsComplexMethodMethod(info); 528 TestInterfaceV8Internal::implementsComplexMethodMethod(info);
507 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 529 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 15 matching lines...) Expand all
523 { 545 {
524 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 546 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
525 TestInterfaceV8Internal::implementsStaticVoidMethodMethod(info); 547 TestInterfaceV8Internal::implementsStaticVoidMethodMethod(info);
526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 548 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
527 } 549 }
528 550
529 #if ENABLE(CONDITION_PARTIAL) 551 #if ENABLE(CONDITION_PARTIAL)
530 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 552 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
531 { 553 {
532 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 554 TestInterface* imp = V8TestInterface::toNative(info.Holder());
533 TestPartialInterface::supplementalMethod1(imp); 555 ASSERT(imp);
556 TestPartialInterface::supplementalMethod1(*imp);
534 } 557 }
535 #endif // ENABLE(CONDITION_PARTIAL) 558 #endif // ENABLE(CONDITION_PARTIAL)
536 559
537 #if ENABLE(CONDITION_PARTIAL) 560 #if ENABLE(CONDITION_PARTIAL)
538 static void supplementalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 561 static void supplementalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
539 { 562 {
540 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 563 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
541 TestInterfaceV8Internal::supplementalMethod1Method(info); 564 TestInterfaceV8Internal::supplementalMethod1Method(info);
542 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 565 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
543 } 566 }
544 #endif // ENABLE(CONDITION_PARTIAL) 567 #endif // ENABLE(CONDITION_PARTIAL)
545 568
546 #if ENABLE(CONDITION_PARTIAL) 569 #if ENABLE(CONDITION_PARTIAL)
547 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 570 static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
548 { 571 {
549 ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementa lMethod2", "TestInterface", info.Holder(), info.GetIsolate()); 572 ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementa lMethod2", "TestInterface", info.Holder(), info.GetIsolate());
550 if (UNLIKELY(info.Length() < 2)) { 573 if (UNLIKELY(info.Length() < 2)) {
551 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 574 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
552 exceptionState.throwIfNeeded(); 575 exceptionState.throwIfNeeded();
553 return; 576 return;
554 } 577 }
555 TestInterface* imp = V8TestInterface::toNative(info.Holder()); 578 TestInterface* imp = V8TestInterface::toNative(info.Holder());
556 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); 579 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]);
557 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::toNativeWithTypeCheck(info.G etIsolate(), info[1])); 580 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::toNativeWithTypeCheck(info.G etIsolate(), info[1]));
581 ASSERT(imp);
558 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 582 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
559 RefPtr<TestObj> result = TestPartialInterface::supplementalMethod2(scriptCon text, imp, strArg, objArg, exceptionState); 583 RefPtr<TestObj> result = TestPartialInterface::supplementalMethod2(scriptCon text, *imp, strArg, objArg, exceptionState);
560 if (exceptionState.throwIfNeeded()) 584 if (exceptionState.throwIfNeeded())
561 return; 585 return;
562 v8SetReturnValue(info, result.release()); 586 v8SetReturnValue(info, result.release());
563 } 587 }
564 #endif // ENABLE(CONDITION_PARTIAL) 588 #endif // ENABLE(CONDITION_PARTIAL)
565 589
566 #if ENABLE(CONDITION_PARTIAL) 590 #if ENABLE(CONDITION_PARTIAL)
567 static void supplementalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 591 static void supplementalMethod2MethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
568 { 592 {
569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 593 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 } 909 }
886 910
887 template<> 911 template<>
888 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 912 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
889 { 913 {
890 return toV8(impl, creationContext, isolate); 914 return toV8(impl, creationContext, isolate);
891 } 915 }
892 916
893 } // namespace WebCore 917 } // namespace WebCore
894 #endif // ENABLE(Condition1) || ENABLE(Condition2) 918 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698