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

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

Issue 234403004: Rename V8TRYCATCH_* macros in v8/V8BindingMacros.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: BOOL*_BOOL -> BOOL* Created 6 years, 8 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 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 { 143 {
144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
145 TestObjectV8Internal::dateAttributeAttributeGetter(info); 145 TestObjectV8Internal::dateAttributeAttributeGetter(info);
146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
147 } 147 }
148 148
149 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 149 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
150 { 150 {
151 v8::Handle<v8::Object> holder = info.Holder(); 151 v8::Handle<v8::Object> holder = info.Holder();
152 TestObject* impl = V8TestObject::toNative(holder); 152 TestObject* impl = V8TestObject::toNative(holder);
153 V8TRYCATCH_VOID(double, cppValue, toCoreDate(v8Value)); 153 TONATIVE_VOID(double, cppValue, toCoreDate(v8Value));
154 impl->setDateAttribute(cppValue); 154 impl->setDateAttribute(cppValue);
155 } 155 }
156 156
157 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 157 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
158 { 158 {
159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
160 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info); 160 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info);
161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
162 } 162 }
163 163
164 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 164 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
165 { 165 {
166 v8::Handle<v8::Object> holder = info.Holder(); 166 v8::Handle<v8::Object> holder = info.Holder();
167 TestObject* impl = V8TestObject::toNative(holder); 167 TestObject* impl = V8TestObject::toNative(holder);
168 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); 168 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate());
169 } 169 }
170 170
171 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 171 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
172 { 172 {
173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
174 TestObjectV8Internal::stringAttributeAttributeGetter(info); 174 TestObjectV8Internal::stringAttributeAttributeGetter(info);
175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
176 } 176 }
177 177
178 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 178 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
179 { 179 {
180 v8::Handle<v8::Object> holder = info.Holder(); 180 v8::Handle<v8::Object> holder = info.Holder();
181 TestObject* impl = V8TestObject::toNative(holder); 181 TestObject* impl = V8TestObject::toNative(holder);
182 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 182 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
183 impl->setStringAttribute(cppValue); 183 impl->setStringAttribute(cppValue);
184 } 184 }
185 185
186 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 186 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
187 { 187 {
188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
189 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); 189 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info);
190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
191 } 191 }
192 192
193 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 193 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
194 { 194 {
195 v8::Handle<v8::Object> holder = info.Holder(); 195 v8::Handle<v8::Object> holder = info.Holder();
196 TestObject* impl = V8TestObject::toNative(holder); 196 TestObject* impl = V8TestObject::toNative(holder);
197 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); 197 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute()));
198 } 198 }
199 199
200 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 200 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
201 { 201 {
202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
203 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); 203 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info);
204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
205 } 205 }
206 206
207 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 207 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
208 { 208 {
209 v8::Handle<v8::Object> holder = info.Holder(); 209 v8::Handle<v8::Object> holder = info.Holder();
210 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt tribute", "TestObject", holder, info.GetIsolate()); 210 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt tribute", "TestObject", holder, info.GetIsolate());
211 TestObject* impl = V8TestObject::toNative(holder); 211 TestObject* impl = V8TestObject::toNative(holder);
212 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(v8Value, ex ceptionState), exceptionState); 212 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState);
213 impl->setDomTimeStampAttribute(cppValue); 213 impl->setDomTimeStampAttribute(cppValue);
214 } 214 }
215 215
216 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 216 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
217 { 217 {
218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
219 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); 219 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info);
220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
221 } 221 }
222 222
223 static void booleanAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 223 static void booleanAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
224 { 224 {
225 v8::Handle<v8::Object> holder = info.Holder(); 225 v8::Handle<v8::Object> holder = info.Holder();
226 TestObject* impl = V8TestObject::toNative(holder); 226 TestObject* impl = V8TestObject::toNative(holder);
227 v8SetReturnValueBool(info, impl->booleanAttribute()); 227 v8SetReturnValueBool(info, impl->booleanAttribute());
228 } 228 }
229 229
230 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 230 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
231 { 231 {
232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
233 TestObjectV8Internal::booleanAttributeAttributeGetter(info); 233 TestObjectV8Internal::booleanAttributeAttributeGetter(info);
234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
235 } 235 }
236 236
237 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 237 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
238 { 238 {
239 v8::Handle<v8::Object> holder = info.Holder(); 239 v8::Handle<v8::Object> holder = info.Holder();
240 TestObject* impl = V8TestObject::toNative(holder); 240 TestObject* impl = V8TestObject::toNative(holder);
241 V8TRYCATCH_VOID(bool, cppValue, v8Value->BooleanValue()); 241 TONATIVE_VOID(bool, cppValue, v8Value->BooleanValue());
242 impl->setBooleanAttribute(cppValue); 242 impl->setBooleanAttribute(cppValue);
243 } 243 }
244 244
245 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 245 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
246 { 246 {
247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
248 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info); 248 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info);
249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
250 } 250 }
251 251
252 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 252 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
253 { 253 {
254 v8::Handle<v8::Object> holder = info.Holder(); 254 v8::Handle<v8::Object> holder = info.Holder();
255 TestObject* impl = V8TestObject::toNative(holder); 255 TestObject* impl = V8TestObject::toNative(holder);
256 v8SetReturnValueInt(info, impl->byteAttribute()); 256 v8SetReturnValueInt(info, impl->byteAttribute());
257 } 257 }
258 258
259 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 259 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
260 { 260 {
261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
262 TestObjectV8Internal::byteAttributeAttributeGetter(info); 262 TestObjectV8Internal::byteAttributeAttributeGetter(info);
263 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 263 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
264 } 264 }
265 265
266 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 266 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
267 { 267 {
268 v8::Handle<v8::Object> holder = info.Holder(); 268 v8::Handle<v8::Object> holder = info.Holder();
269 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObject", holder, info.GetIsolate()); 269 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObject", holder, info.GetIsolate());
270 TestObject* impl = V8TestObject::toNative(holder); 270 TestObject* impl = V8TestObject::toNative(holder);
271 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt8(v8Value, exceptionState), ex ceptionState); 271 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt8(v8Value, exceptionState), exceptionState);
272 impl->setByteAttribute(cppValue); 272 impl->setByteAttribute(cppValue);
273 } 273 }
274 274
275 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 275 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
276 { 276 {
277 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 277 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
278 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); 278 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info);
279 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 279 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
280 } 280 }
281 281
282 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 282 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
283 { 283 {
284 v8::Handle<v8::Object> holder = info.Holder(); 284 v8::Handle<v8::Object> holder = info.Holder();
285 TestObject* impl = V8TestObject::toNative(holder); 285 TestObject* impl = V8TestObject::toNative(holder);
286 v8SetReturnValue(info, impl->doubleAttribute()); 286 v8SetReturnValue(info, impl->doubleAttribute());
287 } 287 }
288 288
289 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 289 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
290 { 290 {
291 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 291 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
292 TestObjectV8Internal::doubleAttributeAttributeGetter(info); 292 TestObjectV8Internal::doubleAttributeAttributeGetter(info);
293 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 293 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
294 } 294 }
295 295
296 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 296 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
297 { 297 {
298 v8::Handle<v8::Object> holder = info.Holder(); 298 v8::Handle<v8::Object> holder = info.Holder();
299 TestObject* impl = V8TestObject::toNative(holder); 299 TestObject* impl = V8TestObject::toNative(holder);
300 V8TRYCATCH_VOID(double, cppValue, static_cast<double>(v8Value->NumberValue() )); 300 TONATIVE_VOID(double, cppValue, static_cast<double>(v8Value->NumberValue())) ;
301 impl->setDoubleAttribute(cppValue); 301 impl->setDoubleAttribute(cppValue);
302 } 302 }
303 303
304 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 304 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
305 { 305 {
306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
307 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); 307 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info);
308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
309 } 309 }
310 310
311 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 311 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
312 { 312 {
313 v8::Handle<v8::Object> holder = info.Holder(); 313 v8::Handle<v8::Object> holder = info.Holder();
314 TestObject* impl = V8TestObject::toNative(holder); 314 TestObject* impl = V8TestObject::toNative(holder);
315 v8SetReturnValue(info, impl->floatAttribute()); 315 v8SetReturnValue(info, impl->floatAttribute());
316 } 316 }
317 317
318 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 318 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
319 { 319 {
320 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 320 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
321 TestObjectV8Internal::floatAttributeAttributeGetter(info); 321 TestObjectV8Internal::floatAttributeAttributeGetter(info);
322 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 322 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
323 } 323 }
324 324
325 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 325 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
326 { 326 {
327 v8::Handle<v8::Object> holder = info.Holder(); 327 v8::Handle<v8::Object> holder = info.Holder();
328 TestObject* impl = V8TestObject::toNative(holder); 328 TestObject* impl = V8TestObject::toNative(holder);
329 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue())) ; 329 TONATIVE_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue()));
330 impl->setFloatAttribute(cppValue); 330 impl->setFloatAttribute(cppValue);
331 } 331 }
332 332
333 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 333 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
334 { 334 {
335 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 335 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
336 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); 336 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info);
337 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 337 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
338 } 338 }
339 339
340 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 340 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
341 { 341 {
342 v8::Handle<v8::Object> holder = info.Holder(); 342 v8::Handle<v8::Object> holder = info.Holder();
343 TestObject* impl = V8TestObject::toNative(holder); 343 TestObject* impl = V8TestObject::toNative(holder);
344 v8SetReturnValueInt(info, impl->longAttribute()); 344 v8SetReturnValueInt(info, impl->longAttribute());
345 } 345 }
346 346
347 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 347 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
348 { 348 {
349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
350 TestObjectV8Internal::longAttributeAttributeGetter(info); 350 TestObjectV8Internal::longAttributeAttributeGetter(info);
351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
352 } 352 }
353 353
354 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 354 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
355 { 355 {
356 v8::Handle<v8::Object> holder = info.Holder(); 356 v8::Handle<v8::Object> holder = info.Holder();
357 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObject", holder, info.GetIsolate()); 357 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObject", holder, info.GetIsolate());
358 TestObject* impl = V8TestObject::toNative(holder); 358 TestObject* impl = V8TestObject::toNative(holder);
359 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 359 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
360 impl->setLongAttribute(cppValue); 360 impl->setLongAttribute(cppValue);
361 } 361 }
362 362
363 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 363 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
364 { 364 {
365 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 365 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
366 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); 366 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info);
367 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 367 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
368 } 368 }
369 369
370 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 370 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
371 { 371 {
372 v8::Handle<v8::Object> holder = info.Holder(); 372 v8::Handle<v8::Object> holder = info.Holder();
373 TestObject* impl = V8TestObject::toNative(holder); 373 TestObject* impl = V8TestObject::toNative(holder);
374 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); 374 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute()));
375 } 375 }
376 376
377 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 377 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
378 { 378 {
379 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 379 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
380 TestObjectV8Internal::longLongAttributeAttributeGetter(info); 380 TestObjectV8Internal::longLongAttributeAttributeGetter(info);
381 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 381 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
382 } 382 }
383 383
384 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 384 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
385 { 385 {
386 v8::Handle<v8::Object> holder = info.Holder(); 386 v8::Handle<v8::Object> holder = info.Holder();
387 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObject", holder, info.GetIsolate()); 387 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObject", holder, info.GetIsolate());
388 TestObject* impl = V8TestObject::toNative(holder); 388 TestObject* impl = V8TestObject::toNative(holder);
389 V8TRYCATCH_EXCEPTION_VOID(long long, cppValue, toInt64(v8Value, exceptionSta te), exceptionState); 389 TONATIVE_VOID_EXCEPTIONSTATE(long long, cppValue, toInt64(v8Value, exception State), exceptionState);
390 impl->setLongLongAttribute(cppValue); 390 impl->setLongLongAttribute(cppValue);
391 } 391 }
392 392
393 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 393 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
394 { 394 {
395 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 395 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
396 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); 396 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info);
397 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 397 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
398 } 398 }
399 399
400 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 400 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
401 { 401 {
402 v8::Handle<v8::Object> holder = info.Holder(); 402 v8::Handle<v8::Object> holder = info.Holder();
403 TestObject* impl = V8TestObject::toNative(holder); 403 TestObject* impl = V8TestObject::toNative(holder);
404 v8SetReturnValueUnsigned(info, impl->octetAttribute()); 404 v8SetReturnValueUnsigned(info, impl->octetAttribute());
405 } 405 }
406 406
407 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 407 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
408 { 408 {
409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
410 TestObjectV8Internal::octetAttributeAttributeGetter(info); 410 TestObjectV8Internal::octetAttributeAttributeGetter(info);
411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
412 } 412 }
413 413
414 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 414 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
415 { 415 {
416 v8::Handle<v8::Object> holder = info.Holder(); 416 v8::Handle<v8::Object> holder = info.Holder();
417 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObject", holder, info.GetIsolate()); 417 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObject", holder, info.GetIsolate());
418 TestObject* impl = V8TestObject::toNative(holder); 418 TestObject* impl = V8TestObject::toNative(holder);
419 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt8(v8Value, exceptionStat e), exceptionState); 419 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt8(v8Value, exceptionS tate), exceptionState);
420 impl->setOctetAttribute(cppValue); 420 impl->setOctetAttribute(cppValue);
421 } 421 }
422 422
423 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 423 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
424 { 424 {
425 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 425 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
426 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); 426 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info);
427 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 427 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
428 } 428 }
429 429
430 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 430 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
431 { 431 {
432 v8::Handle<v8::Object> holder = info.Holder(); 432 v8::Handle<v8::Object> holder = info.Holder();
433 TestObject* impl = V8TestObject::toNative(holder); 433 TestObject* impl = V8TestObject::toNative(holder);
434 v8SetReturnValueInt(info, impl->shortAttribute()); 434 v8SetReturnValueInt(info, impl->shortAttribute());
435 } 435 }
436 436
437 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 437 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
438 { 438 {
439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
440 TestObjectV8Internal::shortAttributeAttributeGetter(info); 440 TestObjectV8Internal::shortAttributeAttributeGetter(info);
441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
442 } 442 }
443 443
444 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 444 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
445 { 445 {
446 v8::Handle<v8::Object> holder = info.Holder(); 446 v8::Handle<v8::Object> holder = info.Holder();
447 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate()); 447 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate());
448 TestObject* impl = V8TestObject::toNative(holder); 448 TestObject* impl = V8TestObject::toNative(holder);
449 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt16(v8Value, exceptionState), e xceptionState); 449 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState) , exceptionState);
450 impl->setShortAttribute(cppValue); 450 impl->setShortAttribute(cppValue);
451 } 451 }
452 452
453 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 453 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
454 { 454 {
455 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 455 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
456 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); 456 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info);
457 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 457 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
458 } 458 }
459 459
460 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 460 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
461 { 461 {
462 v8::Handle<v8::Object> holder = info.Holder(); 462 v8::Handle<v8::Object> holder = info.Holder();
463 TestObject* impl = V8TestObject::toNative(holder); 463 TestObject* impl = V8TestObject::toNative(holder);
464 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); 464 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute());
465 } 465 }
466 466
467 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 467 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
468 { 468 {
469 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 469 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
470 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); 470 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info);
471 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 471 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
472 } 472 }
473 473
474 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 474 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
475 { 475 {
476 v8::Handle<v8::Object> holder = info.Holder(); 476 v8::Handle<v8::Object> holder = info.Holder();
477 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObject", holder, info.GetIsolate()); 477 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObject", holder, info.GetIsolate());
478 TestObject* impl = V8TestObject::toNative(holder); 478 TestObject* impl = V8TestObject::toNative(holder);
479 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(v8Value, exceptionSta te), exceptionState); 479 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception State), exceptionState);
480 impl->setUnsignedLongAttribute(cppValue); 480 impl->setUnsignedLongAttribute(cppValue);
481 } 481 }
482 482
483 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 483 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
484 { 484 {
485 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 485 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
486 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); 486 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info);
487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
488 } 488 }
489 489
490 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 490 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
491 { 491 {
492 v8::Handle<v8::Object> holder = info.Holder(); 492 v8::Handle<v8::Object> holder = info.Holder();
493 TestObject* impl = V8TestObject::toNative(holder); 493 TestObject* impl = V8TestObject::toNative(holder);
494 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute() )); 494 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute() ));
495 } 495 }
496 496
497 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 497 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
498 { 498 {
499 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 499 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
500 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); 500 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info);
501 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 501 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
502 } 502 }
503 503
504 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 504 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
505 { 505 {
506 v8::Handle<v8::Object> holder = info.Holder(); 506 v8::Handle<v8::Object> holder = info.Holder();
507 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObject", holder, info.GetIsolate()); 507 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObject", holder, info.GetIsolate());
508 TestObject* impl = V8TestObject::toNative(holder); 508 TestObject* impl = V8TestObject::toNative(holder);
509 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(v8Value, ex ceptionState), exceptionState); 509 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState);
510 impl->setUnsignedLongLongAttribute(cppValue); 510 impl->setUnsignedLongLongAttribute(cppValue);
511 } 511 }
512 512
513 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 513 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
514 { 514 {
515 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 515 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
516 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info ); 516 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info );
517 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 517 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
518 } 518 }
519 519
520 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 520 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
521 { 521 {
522 v8::Handle<v8::Object> holder = info.Holder(); 522 v8::Handle<v8::Object> holder = info.Holder();
523 TestObject* impl = V8TestObject::toNative(holder); 523 TestObject* impl = V8TestObject::toNative(holder);
524 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); 524 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute());
525 } 525 }
526 526
527 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 527 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
528 { 528 {
529 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 529 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
530 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); 530 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info);
531 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 531 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
532 } 532 }
533 533
534 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 534 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
535 { 535 {
536 v8::Handle<v8::Object> holder = info.Holder(); 536 v8::Handle<v8::Object> holder = info.Holder();
537 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObject", holder, info.GetIsolate()); 537 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObject", holder, info.GetIsolate());
538 TestObject* impl = V8TestObject::toNative(holder); 538 TestObject* impl = V8TestObject::toNative(holder);
539 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(v8Value, exceptionSta te), exceptionState); 539 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception State), exceptionState);
540 impl->setUnsignedShortAttribute(cppValue); 540 impl->setUnsignedShortAttribute(cppValue);
541 } 541 }
542 542
543 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 543 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
544 { 544 {
545 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 545 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
546 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); 546 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info);
547 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 547 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
548 } 548 }
549 549
550 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 550 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
551 { 551 {
552 v8::Handle<v8::Object> holder = info.Holder(); 552 v8::Handle<v8::Object> holder = info.Holder();
553 TestObject* impl = V8TestObject::toNative(holder); 553 TestObject* impl = V8TestObject::toNative(holder);
554 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()), impl); 554 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()), impl);
555 } 555 }
556 556
557 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 557 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
558 { 558 {
559 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 559 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
560 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info); 560 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info);
561 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 561 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
562 } 562 }
563 563
564 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 564 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
565 { 565 {
566 v8::Handle<v8::Object> holder = info.Holder(); 566 v8::Handle<v8::Object> holder = info.Holder();
567 TestObject* impl = V8TestObject::toNative(holder); 567 TestObject* impl = V8TestObject::toNative(holder);
568 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ eWithTypeCheck(info.GetIsolate(), v8Value)); 568 TONATIVE_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativeW ithTypeCheck(info.GetIsolate(), v8Value));
569 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); 569 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue));
570 } 570 }
571 571
572 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 572 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
573 { 573 {
574 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 574 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
575 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in fo); 575 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in fo);
576 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 576 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
577 } 577 }
578 578
579 static void testObjectAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 579 static void testObjectAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
580 { 580 {
581 v8::Handle<v8::Object> holder = info.Holder(); 581 v8::Handle<v8::Object> holder = info.Holder();
582 TestObject* impl = V8TestObject::toNative(holder); 582 TestObject* impl = V8TestObject::toNative(holder);
583 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl); 583 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl);
584 } 584 }
585 585
586 static void testObjectAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 586 static void testObjectAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
587 { 587 {
588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
589 TestObjectV8Internal::testObjectAttributeAttributeGetter(info); 589 TestObjectV8Internal::testObjectAttributeAttributeGetter(info);
590 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 590 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
591 } 591 }
592 592
593 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 593 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
594 { 594 {
595 v8::Handle<v8::Object> holder = info.Holder(); 595 v8::Handle<v8::Object> holder = info.Holder();
596 TestObject* impl = V8TestObject::toNative(holder); 596 TestObject* impl = V8TestObject::toNative(holder);
597 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), v8Value)); 597 TONATIVE_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(inf o.GetIsolate(), v8Value));
598 impl->setTestObjectAttribute(WTF::getPtr(cppValue)); 598 impl->setTestObjectAttribute(WTF::getPtr(cppValue));
599 } 599 }
600 600
601 static void testObjectAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 601 static void testObjectAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
602 { 602 {
603 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 603 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
604 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info); 604 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info);
605 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 605 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
606 } 606 }
607 607
608 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 608 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
609 { 609 {
610 v8::Handle<v8::Object> holder = info.Holder(); 610 v8::Handle<v8::Object> holder = info.Holder();
611 TestObject* impl = V8TestObject::toNative(holder); 611 TestObject* impl = V8TestObject::toNative(holder);
612 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value()); 612 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value());
613 } 613 }
614 614
615 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 615 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
616 { 616 {
617 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 617 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
618 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info); 618 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info);
619 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 619 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
620 } 620 }
621 621
622 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 622 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
623 { 623 {
624 v8::Handle<v8::Object> holder = info.Holder(); 624 v8::Handle<v8::Object> holder = info.Holder();
625 TestObject* impl = V8TestObject::toNative(holder); 625 TestObject* impl = V8TestObject::toNative(holder);
626 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate( ))); 626 TONATIVE_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate()) );
627 impl->setVoidCallbackFunctionAttribute(cppValue); 627 impl->setVoidCallbackFunctionAttribute(cppValue);
628 } 628 }
629 629
630 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 630 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
631 { 631 {
632 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 632 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
633 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value, info); 633 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value, info);
634 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 634 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
635 } 635 }
636 636
637 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 637 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info)
638 { 638 {
639 v8::Handle<v8::Object> holder = info.Holder(); 639 v8::Handle<v8::Object> holder = info.Holder();
640 TestObject* impl = V8TestObject::toNative(holder); 640 TestObject* impl = V8TestObject::toNative(holder);
641 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8 Value()); 641 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8 Value());
642 } 642 }
643 643
644 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 644 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
645 { 645 {
646 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 646 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
647 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet ter(info); 647 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet ter(info);
648 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 648 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
649 } 649 }
650 650
651 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 651 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
652 { 652 {
653 v8::Handle<v8::Object> holder = info.Holder(); 653 v8::Handle<v8::Object> holder = info.Holder();
654 TestObject* impl = V8TestObject::toNative(holder); 654 TestObject* impl = V8TestObject::toNative(holder);
655 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate( ))); 655 TONATIVE_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate()) );
656 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); 656 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue);
657 } 657 }
658 658
659 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 659 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
660 { 660 {
661 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 661 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
662 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet ter(v8Value, info); 662 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet ter(v8Value, info);
663 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 663 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
664 } 664 }
665 665
666 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 666 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
667 { 667 {
668 v8::Handle<v8::Object> holder = info.Holder(); 668 v8::Handle<v8::Object> holder = info.Holder();
669 TestObject* impl = V8TestObject::toNative(holder); 669 TestObject* impl = V8TestObject::toNative(holder);
670 v8SetReturnValueInt(info, impl->cssAttribute()); 670 v8SetReturnValueInt(info, impl->cssAttribute());
671 } 671 }
672 672
673 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 673 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
674 { 674 {
675 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 675 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
676 TestObjectV8Internal::cssAttributeAttributeGetter(info); 676 TestObjectV8Internal::cssAttributeAttributeGetter(info);
677 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 677 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
678 } 678 }
679 679
680 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 680 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
681 { 681 {
682 v8::Handle<v8::Object> holder = info.Holder(); 682 v8::Handle<v8::Object> holder = info.Holder();
683 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate()); 683 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate());
684 TestObject* impl = V8TestObject::toNative(holder); 684 TestObject* impl = V8TestObject::toNative(holder);
685 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 685 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
686 impl->setCSSAttribute(cppValue); 686 impl->setCSSAttribute(cppValue);
687 } 687 }
688 688
689 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 689 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
690 { 690 {
691 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 691 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
692 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); 692 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info);
693 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 693 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
694 } 694 }
695 695
696 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 696 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
697 { 697 {
698 v8::Handle<v8::Object> holder = info.Holder(); 698 v8::Handle<v8::Object> holder = info.Holder();
699 TestObject* impl = V8TestObject::toNative(holder); 699 TestObject* impl = V8TestObject::toNative(holder);
700 v8SetReturnValueInt(info, impl->imeAttribute()); 700 v8SetReturnValueInt(info, impl->imeAttribute());
701 } 701 }
702 702
703 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 703 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
704 { 704 {
705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
706 TestObjectV8Internal::imeAttributeAttributeGetter(info); 706 TestObjectV8Internal::imeAttributeAttributeGetter(info);
707 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 707 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
708 } 708 }
709 709
710 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 710 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
711 { 711 {
712 v8::Handle<v8::Object> holder = info.Holder(); 712 v8::Handle<v8::Object> holder = info.Holder();
713 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate()); 713 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate());
714 TestObject* impl = V8TestObject::toNative(holder); 714 TestObject* impl = V8TestObject::toNative(holder);
715 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 715 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
716 impl->setIMEAttribute(cppValue); 716 impl->setIMEAttribute(cppValue);
717 } 717 }
718 718
719 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 719 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
720 { 720 {
721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
722 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); 722 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info);
723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
724 } 724 }
725 725
726 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 726 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
727 { 727 {
728 v8::Handle<v8::Object> holder = info.Holder(); 728 v8::Handle<v8::Object> holder = info.Holder();
729 TestObject* impl = V8TestObject::toNative(holder); 729 TestObject* impl = V8TestObject::toNative(holder);
730 v8SetReturnValueInt(info, impl->svgAttribute()); 730 v8SetReturnValueInt(info, impl->svgAttribute());
731 } 731 }
732 732
733 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 733 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
734 { 734 {
735 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 735 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
736 TestObjectV8Internal::svgAttributeAttributeGetter(info); 736 TestObjectV8Internal::svgAttributeAttributeGetter(info);
737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
738 } 738 }
739 739
740 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 740 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
741 { 741 {
742 v8::Handle<v8::Object> holder = info.Holder(); 742 v8::Handle<v8::Object> holder = info.Holder();
743 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate()); 743 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate());
744 TestObject* impl = V8TestObject::toNative(holder); 744 TestObject* impl = V8TestObject::toNative(holder);
745 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 745 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
746 impl->setSVGAttribute(cppValue); 746 impl->setSVGAttribute(cppValue);
747 } 747 }
748 748
749 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 749 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
750 { 750 {
751 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 751 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
752 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); 752 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info);
753 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 753 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
754 } 754 }
755 755
756 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 756 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
757 { 757 {
758 v8::Handle<v8::Object> holder = info.Holder(); 758 v8::Handle<v8::Object> holder = info.Holder();
759 TestObject* impl = V8TestObject::toNative(holder); 759 TestObject* impl = V8TestObject::toNative(holder);
760 v8SetReturnValueInt(info, impl->xmlAttribute()); 760 v8SetReturnValueInt(info, impl->xmlAttribute());
761 } 761 }
762 762
763 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 763 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
764 { 764 {
765 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 765 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
766 TestObjectV8Internal::xmlAttributeAttributeGetter(info); 766 TestObjectV8Internal::xmlAttributeAttributeGetter(info);
767 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 767 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
768 } 768 }
769 769
770 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 770 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
771 { 771 {
772 v8::Handle<v8::Object> holder = info.Holder(); 772 v8::Handle<v8::Object> holder = info.Holder();
773 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate()); 773 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate());
774 TestObject* impl = V8TestObject::toNative(holder); 774 TestObject* impl = V8TestObject::toNative(holder);
775 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 775 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
776 impl->setXMLAttribute(cppValue); 776 impl->setXMLAttribute(cppValue);
777 } 777 }
778 778
779 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 779 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
780 { 780 {
781 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 781 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
782 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); 782 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info);
783 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 783 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
784 } 784 }
785 785
786 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 786 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
787 { 787 {
788 v8::Handle<v8::Object> holder = info.Holder(); 788 v8::Handle<v8::Object> holder = info.Holder();
789 TestObject* impl = V8TestObject::toNative(holder); 789 TestObject* impl = V8TestObject::toNative(holder);
790 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl); 790 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl);
791 } 791 }
792 792
793 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 793 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
794 { 794 {
795 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 795 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
796 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info); 796 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info);
797 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 797 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
798 } 798 }
799 799
800 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 800 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
801 { 801 {
802 v8::Handle<v8::Object> holder = info.Holder(); 802 v8::Handle<v8::Object> holder = info.Holder();
803 TestObject* impl = V8TestObject::toNative(holder); 803 TestObject* impl = V8TestObject::toNative(holder);
804 V8TRYCATCH_VOID(RefPtr<NodeFilter>, cppValue, toNodeFilter(v8Value, info.Get Isolate())); 804 TONATIVE_VOID(RefPtr<NodeFilter>, cppValue, toNodeFilter(v8Value, info.GetIs olate()));
805 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); 805 impl->setNodeFilterAttribute(WTF::getPtr(cppValue));
806 } 806 }
807 807
808 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 808 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
809 { 809 {
810 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 810 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
811 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info); 811 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info);
812 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 812 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
813 } 813 }
814 814
815 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 815 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
816 { 816 {
817 v8::Handle<v8::Object> holder = info.Holder(); 817 v8::Handle<v8::Object> holder = info.Holder();
818 TestObject* impl = V8TestObject::toNative(holder); 818 TestObject* impl = V8TestObject::toNative(holder);
819 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info. GetIsolate()))); 819 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info. GetIsolate())));
820 } 820 }
821 821
822 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 822 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
823 { 823 {
824 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 824 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
825 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); 825 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info);
826 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 826 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
827 } 827 }
828 828
829 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 829 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
830 { 830 {
831 v8::Handle<v8::Object> holder = info.Holder(); 831 v8::Handle<v8::Object> holder = info.Holder();
832 TestObject* impl = V8TestObject::toNative(holder); 832 TestObject* impl = V8TestObject::toNative(holder);
833 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptVal ue::create(v8Value, info.GetIsolate())); 833 TONATIVE_VOID(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptValue ::create(v8Value, info.GetIsolate()));
834 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); 834 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue));
835 } 835 }
836 836
837 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o) 837 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
838 { 838 {
839 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 839 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
840 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value, info); 840 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value, info);
841 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 841 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
842 } 842 }
843 843
844 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 844 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
845 { 845 {
846 v8::Handle<v8::Object> holder = info.Holder(); 846 v8::Handle<v8::Object> holder = info.Holder();
847 TestObject* impl = V8TestObject::toNative(holder); 847 TestObject* impl = V8TestObject::toNative(holder);
848 v8SetReturnValue(info, impl->anyAttribute().v8Value()); 848 v8SetReturnValue(info, impl->anyAttribute().v8Value());
849 } 849 }
850 850
851 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 851 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
852 { 852 {
853 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 853 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
854 TestObjectV8Internal::anyAttributeAttributeGetter(info); 854 TestObjectV8Internal::anyAttributeAttributeGetter(info);
855 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 855 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
856 } 856 }
857 857
858 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 858 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
859 { 859 {
860 v8::Handle<v8::Object> holder = info.Holder(); 860 v8::Handle<v8::Object> holder = info.Holder();
861 TestObject* impl = V8TestObject::toNative(holder); 861 TestObject* impl = V8TestObject::toNative(holder);
862 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate( ))); 862 TONATIVE_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate()) );
863 impl->setAnyAttribute(cppValue); 863 impl->setAnyAttribute(cppValue);
864 } 864 }
865 865
866 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 866 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
867 { 867 {
868 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 868 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
869 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info); 869 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info);
870 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 870 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
871 } 871 }
872 872
873 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 873 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
874 { 874 {
875 v8::Handle<v8::Object> holder = info.Holder(); 875 v8::Handle<v8::Object> holder = info.Holder();
876 TestObject* impl = V8TestObject::toNative(holder); 876 TestObject* impl = V8TestObject::toNative(holder);
877 v8SetReturnValue(info, impl->promiseAttribute().v8Value()); 877 v8SetReturnValue(info, impl->promiseAttribute().v8Value());
878 } 878 }
879 879
880 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 880 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
881 { 881 {
882 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 882 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
883 TestObjectV8Internal::promiseAttributeAttributeGetter(info); 883 TestObjectV8Internal::promiseAttributeAttributeGetter(info);
884 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 884 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
885 } 885 }
886 886
887 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 887 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
888 { 888 {
889 v8::Handle<v8::Object> holder = info.Holder(); 889 v8::Handle<v8::Object> holder = info.Holder();
890 TestObject* impl = V8TestObject::toNative(holder); 890 TestObject* impl = V8TestObject::toNative(holder);
891 V8TRYCATCH_VOID(ScriptPromise, cppValue, ScriptPromise(v8Value, info.GetIsol ate())); 891 TONATIVE_VOID(ScriptPromise, cppValue, ScriptPromise(v8Value, info.GetIsolat e()));
892 impl->setPromiseAttribute(cppValue); 892 impl->setPromiseAttribute(cppValue);
893 } 893 }
894 894
895 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 895 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
896 { 896 {
897 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 897 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
898 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info); 898 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info);
899 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 899 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
900 } 900 }
901 901
902 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 902 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
903 { 903 {
904 v8::Handle<v8::Object> holder = info.Holder(); 904 v8::Handle<v8::Object> holder = info.Holder();
905 TestObject* impl = V8TestObject::toNative(holder); 905 TestObject* impl = V8TestObject::toNative(holder);
906 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl); 906 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl);
907 } 907 }
908 908
909 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 909 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
910 { 910 {
911 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 911 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
912 TestObjectV8Internal::windowAttributeAttributeGetter(info); 912 TestObjectV8Internal::windowAttributeAttributeGetter(info);
913 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 913 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
914 } 914 }
915 915
916 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 916 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
917 { 917 {
918 v8::Handle<v8::Object> holder = info.Holder(); 918 v8::Handle<v8::Object> holder = info.Holder();
919 TestObject* impl = V8TestObject::toNative(holder); 919 TestObject* impl = V8TestObject::toNative(holder);
920 V8TRYCATCH_VOID(DOMWindow*, cppValue, toDOMWindow(v8Value, info.GetIsolate() )); 920 TONATIVE_VOID(DOMWindow*, cppValue, toDOMWindow(v8Value, info.GetIsolate())) ;
921 impl->setWindowAttribute(WTF::getPtr(cppValue)); 921 impl->setWindowAttribute(WTF::getPtr(cppValue));
922 } 922 }
923 923
924 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 924 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
925 { 925 {
926 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 926 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
927 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info); 927 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info);
928 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 928 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
929 } 929 }
930 930
931 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 931 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
932 { 932 {
933 v8::Handle<v8::Object> holder = info.Holder(); 933 v8::Handle<v8::Object> holder = info.Holder();
934 TestObject* impl = V8TestObject::toNative(holder); 934 TestObject* impl = V8TestObject::toNative(holder);
935 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl); 935 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl);
936 } 936 }
937 937
938 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 938 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
939 { 939 {
940 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 940 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
941 TestObjectV8Internal::documentAttributeAttributeGetter(info); 941 TestObjectV8Internal::documentAttributeAttributeGetter(info);
942 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 942 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
943 } 943 }
944 944
945 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 945 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
946 { 946 {
947 v8::Handle<v8::Object> holder = info.Holder(); 947 v8::Handle<v8::Object> holder = info.Holder();
948 TestObject* impl = V8TestObject::toNative(holder); 948 TestObject* impl = V8TestObject::toNative(holder);
949 V8TRYCATCH_VOID(Document*, cppValue, V8Document::toNativeWithTypeCheck(info. GetIsolate(), v8Value)); 949 TONATIVE_VOID(Document*, cppValue, V8Document::toNativeWithTypeCheck(info.Ge tIsolate(), v8Value));
950 impl->setDocumentAttribute(WTF::getPtr(cppValue)); 950 impl->setDocumentAttribute(WTF::getPtr(cppValue));
951 } 951 }
952 952
953 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 953 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
954 { 954 {
955 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 955 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
956 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info); 956 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info);
957 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 957 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
958 } 958 }
959 959
960 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 960 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
961 { 961 {
962 v8::Handle<v8::Object> holder = info.Holder(); 962 v8::Handle<v8::Object> holder = info.Holder();
963 TestObject* impl = V8TestObject::toNative(holder); 963 TestObject* impl = V8TestObject::toNative(holder);
964 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i mpl); 964 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i mpl);
965 } 965 }
966 966
967 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 967 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
968 { 968 {
969 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 969 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
970 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info); 970 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info);
971 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 971 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
972 } 972 }
973 973
974 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 974 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
975 { 975 {
976 v8::Handle<v8::Object> holder = info.Holder(); 976 v8::Handle<v8::Object> holder = info.Holder();
977 TestObject* impl = V8TestObject::toNative(holder); 977 TestObject* impl = V8TestObject::toNative(holder);
978 V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::toNativeWit hTypeCheck(info.GetIsolate(), v8Value)); 978 TONATIVE_VOID(DocumentFragment*, cppValue, V8DocumentFragment::toNativeWithT ypeCheck(info.GetIsolate(), v8Value));
979 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); 979 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue));
980 } 980 }
981 981
982 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 982 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
983 { 983 {
984 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 984 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
985 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info ); 985 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info );
986 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 986 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
987 } 987 }
988 988
989 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 989 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
990 { 990 {
991 v8::Handle<v8::Object> holder = info.Holder(); 991 v8::Handle<v8::Object> holder = info.Holder();
992 TestObject* impl = V8TestObject::toNative(holder); 992 TestObject* impl = V8TestObject::toNative(holder);
993 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl) ; 993 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl) ;
994 } 994 }
995 995
996 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 996 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
997 { 997 {
998 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 998 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
999 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info); 999 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info);
1000 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1000 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1001 } 1001 }
1002 1002
1003 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1003 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1004 { 1004 {
1005 v8::Handle<v8::Object> holder = info.Holder(); 1005 v8::Handle<v8::Object> holder = info.Holder();
1006 TestObject* impl = V8TestObject::toNative(holder); 1006 TestObject* impl = V8TestObject::toNative(holder);
1007 V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::toNativeWithTypeChe ck(info.GetIsolate(), v8Value)); 1007 TONATIVE_VOID(DocumentType*, cppValue, V8DocumentType::toNativeWithTypeCheck (info.GetIsolate(), v8Value));
1008 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue)); 1008 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue));
1009 } 1009 }
1010 1010
1011 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1011 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1012 { 1012 {
1013 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1013 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1014 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info); 1014 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info);
1015 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1015 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1016 } 1016 }
1017 1017
1018 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 1018 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
1019 { 1019 {
1020 v8::Handle<v8::Object> holder = info.Holder(); 1020 v8::Handle<v8::Object> holder = info.Holder();
1021 TestObject* impl = V8TestObject::toNative(holder); 1021 TestObject* impl = V8TestObject::toNative(holder);
1022 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl); 1022 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl);
1023 } 1023 }
1024 1024
1025 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1025 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1026 { 1026 {
1027 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1027 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1028 TestObjectV8Internal::elementAttributeAttributeGetter(info); 1028 TestObjectV8Internal::elementAttributeAttributeGetter(info);
1029 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1029 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1030 } 1030 }
1031 1031
1032 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1032 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1033 { 1033 {
1034 v8::Handle<v8::Object> holder = info.Holder(); 1034 v8::Handle<v8::Object> holder = info.Holder();
1035 TestObject* impl = V8TestObject::toNative(holder); 1035 TestObject* impl = V8TestObject::toNative(holder);
1036 V8TRYCATCH_VOID(Element*, cppValue, V8Element::toNativeWithTypeCheck(info.Ge tIsolate(), v8Value)); 1036 TONATIVE_VOID(Element*, cppValue, V8Element::toNativeWithTypeCheck(info.GetI solate(), v8Value));
1037 impl->setElementAttribute(WTF::getPtr(cppValue)); 1037 impl->setElementAttribute(WTF::getPtr(cppValue));
1038 } 1038 }
1039 1039
1040 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1040 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1041 { 1041 {
1042 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1042 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1043 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info); 1043 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info);
1044 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1044 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1045 } 1045 }
1046 1046
1047 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 1047 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
1048 { 1048 {
1049 v8::Handle<v8::Object> holder = info.Holder(); 1049 v8::Handle<v8::Object> holder = info.Holder();
1050 TestObject* impl = V8TestObject::toNative(holder); 1050 TestObject* impl = V8TestObject::toNative(holder);
1051 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl); 1051 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl);
1052 } 1052 }
1053 1053
1054 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 1054 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
1055 { 1055 {
1056 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1056 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1057 TestObjectV8Internal::nodeAttributeAttributeGetter(info); 1057 TestObjectV8Internal::nodeAttributeAttributeGetter(info);
1058 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1058 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1059 } 1059 }
1060 1060
1061 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 1061 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
1062 { 1062 {
1063 v8::Handle<v8::Object> holder = info.Holder(); 1063 v8::Handle<v8::Object> holder = info.Holder();
1064 TestObject* impl = V8TestObject::toNative(holder); 1064 TestObject* impl = V8TestObject::toNative(holder);
1065 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), v8Value)); 1065 TONATIVE_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsolate (), v8Value));
1066 impl->setNodeAttribute(WTF::getPtr(cppValue)); 1066 impl->setNodeAttribute(WTF::getPtr(cppValue));
1067 } 1067 }
1068 1068
1069 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1069 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1070 { 1070 {
1071 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1071 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1072 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); 1072 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info);
1073 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1073 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1074 } 1074 }
1075 1075
1076 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1076 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1077 { 1077 {
1078 v8::Handle<v8::Object> holder = info.Holder(); 1078 v8::Handle<v8::Object> holder = info.Holder();
1079 TestObject* impl = V8TestObject::toNative(holder); 1079 TestObject* impl = V8TestObject::toNative(holder);
1080 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl); 1080 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl);
1081 } 1081 }
1082 1082
1083 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1083 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1084 { 1084 {
1085 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1085 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1086 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info); 1086 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info);
1087 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1087 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1088 } 1088 }
1089 1089
1090 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1090 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1091 { 1091 {
1092 v8::Handle<v8::Object> holder = info.Holder(); 1092 v8::Handle<v8::Object> holder = info.Holder();
1093 TestObject* impl = V8TestObject::toNative(holder); 1093 TestObject* impl = V8TestObject::toNative(holder);
1094 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::toNativeWithTypeCheck(i nfo.GetIsolate(), v8Value)); 1094 TONATIVE_VOID(ShadowRoot*, cppValue, V8ShadowRoot::toNativeWithTypeCheck(inf o.GetIsolate(), v8Value));
1095 impl->setShadowRootAttribute(WTF::getPtr(cppValue)); 1095 impl->setShadowRootAttribute(WTF::getPtr(cppValue));
1096 } 1096 }
1097 1097
1098 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1098 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1099 { 1099 {
1100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1101 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info); 1101 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info);
1102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1103 } 1103 }
1104 1104
1105 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 1105 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
1106 { 1106 {
1107 v8::Handle<v8::Object> holder = info.Holder(); 1107 v8::Handle<v8::Object> holder = info.Holder();
1108 TestObject* impl = V8TestObject::toNative(holder); 1108 TestObject* impl = V8TestObject::toNative(holder);
1109 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl); 1109 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl);
1110 } 1110 }
1111 1111
1112 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 1112 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
1113 { 1113 {
1114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1115 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info); 1115 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info);
1116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1117 } 1117 }
1118 1118
1119 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 1119 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
1120 { 1120 {
1121 v8::Handle<v8::Object> holder = info.Holder(); 1121 v8::Handle<v8::Object> holder = info.Holder();
1122 TestObject* impl = V8TestObject::toNative(holder); 1122 TestObject* impl = V8TestObject::toNative(holder);
1123 V8TRYCATCH_VOID(ArrayBuffer*, cppValue, v8Value->IsArrayBuffer() ? V8ArrayBu ffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(v8Value)) : 0); 1123 TONATIVE_VOID(ArrayBuffer*, cppValue, v8Value->IsArrayBuffer() ? V8ArrayBuff er::toNative(v8::Handle<v8::ArrayBuffer>::Cast(v8Value)) : 0);
1124 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); 1124 impl->setArrayBufferAttribute(WTF::getPtr(cppValue));
1125 } 1125 }
1126 1126
1127 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1127 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1128 { 1128 {
1129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1130 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info); 1130 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info);
1131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1132 } 1132 }
1133 1133
1134 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1134 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1135 { 1135 {
1136 v8::Handle<v8::Object> holder = info.Holder(); 1136 v8::Handle<v8::Object> holder = info.Holder();
1137 TestObject* impl = V8TestObject::toNative(holder); 1137 TestObject* impl = V8TestObject::toNative(holder);
1138 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ; 1138 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ;
1139 } 1139 }
1140 1140
1141 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1141 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1142 { 1142 {
1143 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1143 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1144 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info); 1144 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info);
1145 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1145 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1146 } 1146 }
1147 1147
1148 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1148 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1149 { 1149 {
1150 v8::Handle<v8::Object> holder = info.Holder(); 1150 v8::Handle<v8::Object> holder = info.Holder();
1151 TestObject* impl = V8TestObject::toNative(holder); 1151 TestObject* impl = V8TestObject::toNative(holder);
1152 V8TRYCATCH_VOID(Float32Array*, cppValue, v8Value->IsFloat32Array() ? V8Float 32Array::toNative(v8::Handle<v8::Float32Array>::Cast(v8Value)) : 0); 1152 TONATIVE_VOID(Float32Array*, cppValue, v8Value->IsFloat32Array() ? V8Float32 Array::toNative(v8::Handle<v8::Float32Array>::Cast(v8Value)) : 0);
1153 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); 1153 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue));
1154 } 1154 }
1155 1155
1156 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1156 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1157 { 1157 {
1158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1159 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info); 1159 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info);
1160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1161 } 1161 }
1162 1162
1163 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1163 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1164 { 1164 {
1165 v8::Handle<v8::Object> holder = info.Holder(); 1165 v8::Handle<v8::Object> holder = info.Holder();
1166 TestObject* impl = V8TestObject::toNative(holder); 1166 TestObject* impl = V8TestObject::toNative(holder);
1167 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); 1167 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl);
1168 } 1168 }
1169 1169
1170 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1170 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1171 { 1171 {
1172 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1172 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1173 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info); 1173 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info);
1174 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1174 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1175 } 1175 }
1176 1176
1177 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1177 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1178 { 1178 {
1179 v8::Handle<v8::Object> holder = info.Holder(); 1179 v8::Handle<v8::Object> holder = info.Holder();
1180 TestObject* impl = V8TestObject::toNative(holder); 1180 TestObject* impl = V8TestObject::toNative(holder);
1181 V8TRYCATCH_VOID(Uint8Array*, cppValue, v8Value->IsUint8Array() ? V8Uint8Arra y::toNative(v8::Handle<v8::Uint8Array>::Cast(v8Value)) : 0); 1181 TONATIVE_VOID(Uint8Array*, cppValue, v8Value->IsUint8Array() ? V8Uint8Array: :toNative(v8::Handle<v8::Uint8Array>::Cast(v8Value)) : 0);
1182 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); 1182 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue));
1183 } 1183 }
1184 1184
1185 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1185 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1186 { 1186 {
1187 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1187 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1188 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info); 1188 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info);
1189 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1189 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1190 } 1190 }
1191 1191
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 { 1290 {
1291 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1291 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1292 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); 1292 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info);
1293 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1293 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1294 } 1294 }
1295 1295
1296 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 1296 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
1297 { 1297 {
1298 v8::Handle<v8::Object> holder = info.Holder(); 1298 v8::Handle<v8::Object> holder = info.Holder();
1299 TestObject* impl = V8TestObject::toNative(holder); 1299 TestObject* impl = V8TestObject::toNative(holder);
1300 V8TRYCATCH_VOID(Vector<String>, cppValue, toNativeArray<String>(v8Value, 0, info.GetIsolate())); 1300 TONATIVE_VOID(Vector<String>, cppValue, toNativeArray<String>(v8Value, 0, in fo.GetIsolate()));
1301 impl->setStringArrayAttribute(cppValue); 1301 impl->setStringArrayAttribute(cppValue);
1302 } 1302 }
1303 1303
1304 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1304 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1305 { 1305 {
1306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1307 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); 1307 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info);
1308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1309 } 1309 }
1310 1310
1311 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 1311 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
1312 { 1312 {
1313 v8::Handle<v8::Object> holder = info.Holder(); 1313 v8::Handle<v8::Object> holder = info.Holder();
1314 TestObject* impl = V8TestObject::toNative(holder); 1314 TestObject* impl = V8TestObject::toNative(holder);
1315 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayAttribute(), inf o.GetIsolate())); 1315 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayAttribute(), inf o.GetIsolate()));
1316 } 1316 }
1317 1317
1318 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1318 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1319 { 1319 {
1320 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1320 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1321 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); 1321 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info);
1322 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1322 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1323 } 1323 }
1324 1324
1325 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1325 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1326 { 1326 {
1327 v8::Handle<v8::Object> holder = info.Holder(); 1327 v8::Handle<v8::Object> holder = info.Holder();
1328 TestObject* impl = V8TestObject::toNative(holder); 1328 TestObject* impl = V8TestObject::toNative(holder);
1329 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNati veArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate()) )); 1329 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNative Array<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate()))) ;
1330 impl->setTestInterfaceEmptyArrayAttribute(cppValue); 1330 impl->setTestInterfaceEmptyArrayAttribute(cppValue);
1331 } 1331 }
1332 1332
1333 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 1333 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
1334 { 1334 {
1335 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1335 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1336 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info); 1336 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info);
1337 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1337 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1338 } 1338 }
1339 1339
1340 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1340 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1341 { 1341 {
1342 v8::Handle<v8::Object> holder = info.Holder(); 1342 v8::Handle<v8::Object> holder = info.Holder();
1343 TestObject* impl = V8TestObject::toNative(holder); 1343 TestObject* impl = V8TestObject::toNative(holder);
1344 v8SetReturnValue(info, v8Array(impl->floatArrayAttribute(), info.GetIsolate( ))); 1344 v8SetReturnValue(info, v8Array(impl->floatArrayAttribute(), info.GetIsolate( )));
1345 } 1345 }
1346 1346
1347 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1347 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1348 { 1348 {
1349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1350 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); 1350 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info);
1351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1352 } 1352 }
1353 1353
1354 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1354 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1355 { 1355 {
1356 v8::Handle<v8::Object> holder = info.Holder(); 1356 v8::Handle<v8::Object> holder = info.Holder();
1357 TestObject* impl = V8TestObject::toNative(holder); 1357 TestObject* impl = V8TestObject::toNative(holder);
1358 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(v8Value, 0, in fo.GetIsolate())); 1358 TONATIVE_VOID(Vector<float>, cppValue, toNativeArray<float>(v8Value, 0, info .GetIsolate()));
1359 impl->setFloatArrayAttribute(cppValue); 1359 impl->setFloatArrayAttribute(cppValue);
1360 } 1360 }
1361 1361
1362 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1362 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1363 { 1363 {
1364 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1364 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1365 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); 1365 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info);
1366 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1366 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1367 } 1367 }
1368 1368
(...skipping 14 matching lines...) Expand all
1383 { 1383 {
1384 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1384 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1385 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); 1385 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info);
1386 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1386 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1387 } 1387 }
1388 1388
1389 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1389 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1390 { 1390 {
1391 v8::Handle<v8::Object> holder = info.Holder(); 1391 v8::Handle<v8::Object> holder = info.Holder();
1392 TestObject* impl = V8TestObject::toNative(holder); 1392 TestObject* impl = V8TestObject::toNative(holder);
1393 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 1393 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
1394 impl->setStringOrNullAttribute(cppValue); 1394 impl->setStringOrNullAttribute(cppValue);
1395 } 1395 }
1396 1396
1397 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1397 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1398 { 1398 {
1399 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1399 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1400 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); 1400 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info);
1401 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1401 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1402 } 1402 }
1403 1403
(...skipping 15 matching lines...) Expand all
1419 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1419 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1420 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); 1420 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info);
1421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1422 } 1422 }
1423 1423
1424 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1424 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1425 { 1425 {
1426 v8::Handle<v8::Object> holder = info.Holder(); 1426 v8::Handle<v8::Object> holder = info.Holder();
1427 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObject", holder, info.GetIsolate()); 1427 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObject", holder, info.GetIsolate());
1428 TestObject* impl = V8TestObject::toNative(holder); 1428 TestObject* impl = V8TestObject::toNative(holder);
1429 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 1429 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1430 impl->setLongOrNullAttribute(cppValue); 1430 impl->setLongOrNullAttribute(cppValue);
1431 } 1431 }
1432 1432
1433 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1433 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1434 { 1434 {
1435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1436 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); 1436 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info);
1437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1438 } 1438 }
1439 1439
(...skipping 14 matching lines...) Expand all
1454 { 1454 {
1455 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1455 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1456 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info); 1456 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info);
1457 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1457 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1458 } 1458 }
1459 1459
1460 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 1460 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
1461 { 1461 {
1462 v8::Handle<v8::Object> holder = info.Holder(); 1462 v8::Handle<v8::Object> holder = info.Holder();
1463 TestObject* impl = V8TestObject::toNative(holder); 1463 TestObject* impl = V8TestObject::toNative(holder);
1464 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN ativeWithTypeCheck(info.GetIsolate(), v8Value)); 1464 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat iveWithTypeCheck(info.GetIsolate(), v8Value));
1465 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue)); 1465 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue));
1466 } 1466 }
1467 1467
1468 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1468 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1469 { 1469 {
1470 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1470 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1471 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i nfo); 1471 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i nfo);
1472 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1472 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1473 } 1473 }
1474 1474
1475 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 1475 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
1476 { 1476 {
1477 v8::Handle<v8::Object> holder = info.Holder(); 1477 v8::Handle<v8::Object> holder = info.Holder();
1478 TestObject* impl = V8TestObject::toNative(holder); 1478 TestObject* impl = V8TestObject::toNative(holder);
1479 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); 1479 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate());
1480 } 1480 }
1481 1481
1482 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1482 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
1483 { 1483 {
1484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1485 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); 1485 TestObjectV8Internal::testEnumAttributeAttributeGetter(info);
1486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1487 } 1487 }
1488 1488
1489 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1489 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1490 { 1490 {
1491 v8::Handle<v8::Object> holder = info.Holder(); 1491 v8::Handle<v8::Object> holder = info.Holder();
1492 TestObject* impl = V8TestObject::toNative(holder); 1492 TestObject* impl = V8TestObject::toNative(holder);
1493 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 1493 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
1494 String string = cppValue; 1494 String string = cppValue;
1495 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) 1495 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3"))
1496 return; 1496 return;
1497 impl->setTestEnumAttribute(cppValue); 1497 impl->setTestEnumAttribute(cppValue);
1498 } 1498 }
1499 1499
1500 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1500 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1501 { 1501 {
1502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1503 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); 1503 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info);
1504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1505 } 1505 }
1506 1506
1507 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1507 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1508 { 1508 {
1509 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs olate()); 1509 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs olate());
1510 } 1510 }
1511 1511
1512 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1512 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1513 { 1513 {
1514 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1514 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1515 TestObjectV8Internal::staticStringAttributeAttributeGetter(info); 1515 TestObjectV8Internal::staticStringAttributeAttributeGetter(info);
1516 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1516 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1517 } 1517 }
1518 1518
1519 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1519 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1520 { 1520 {
1521 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 1521 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
1522 TestObject::setStaticStringAttribute(cppValue); 1522 TestObject::setStaticStringAttribute(cppValue);
1523 } 1523 }
1524 1524
1525 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1525 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1526 { 1526 {
1527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1528 TestObjectV8Internal::staticStringAttributeAttributeSetter(v8Value, info); 1528 TestObjectV8Internal::staticStringAttributeAttributeSetter(v8Value, info);
1529 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1529 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1530 } 1530 }
1531 1531
1532 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1532 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1533 { 1533 {
1534 v8SetReturnValueInt(info, TestObject::staticLongAttribute()); 1534 v8SetReturnValueInt(info, TestObject::staticLongAttribute());
1535 } 1535 }
1536 1536
1537 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1537 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1538 { 1538 {
1539 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1539 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1540 TestObjectV8Internal::staticLongAttributeAttributeGetter(info); 1540 TestObjectV8Internal::staticLongAttributeAttributeGetter(info);
1541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1542 } 1542 }
1543 1543
1544 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1544 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1545 { 1545 {
1546 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr ibute", "TestObject", holder, info.GetIsolate()); 1546 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr ibute", "TestObject", holder, info.GetIsolate());
1547 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 1547 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1548 TestObject::setStaticLongAttribute(cppValue); 1548 TestObject::setStaticLongAttribute(cppValue);
1549 } 1549 }
1550 1550
1551 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1551 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1552 { 1552 {
1553 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1553 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1554 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); 1554 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info);
1555 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1555 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1556 } 1556 }
1557 1557
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA llWorldsLongAttribute", 0, 0, "Getter"); 1600 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA llWorldsLongAttribute", 0, 0, "Getter");
1601 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info); 1601 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info);
1602 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1602 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1603 } 1603 }
1604 1604
1605 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1605 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1606 { 1606 {
1607 v8::Handle<v8::Object> holder = info.Holder(); 1607 v8::Handle<v8::Object> holder = info.Holder();
1608 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1608 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1609 TestObject* impl = V8TestObject::toNative(holder); 1609 TestObject* impl = V8TestObject::toNative(holder);
1610 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 1610 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1611 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); 1611 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue);
1612 } 1612 }
1613 1613
1614 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 1614 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1615 { 1615 {
1616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1617 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1617 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1618 if (contextData && contextData->activityLogger()) { 1618 if (contextData && contextData->activityLogger()) {
1619 v8::Handle<v8::Value> loggerArg[] = { v8Value }; 1619 v8::Handle<v8::Value> loggerArg[] = { v8Value };
1620 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA llWorldsLongAttribute", 1, &loggerArg[0], "Setter"); 1620 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA llWorldsLongAttribute", 1, &loggerArg[0], "Setter");
(...skipping 17 matching lines...) Expand all
1638 contextData->activityLogger()->log("TestObject.activityLoggingGetterForA llWorldsLongAttribute", 0, 0, "Getter"); 1638 contextData->activityLogger()->log("TestObject.activityLoggingGetterForA llWorldsLongAttribute", 0, 0, "Getter");
1639 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info); 1639 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info);
1640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1641 } 1641 }
1642 1642
1643 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1643 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1644 { 1644 {
1645 v8::Handle<v8::Object> holder = info.Holder(); 1645 v8::Handle<v8::Object> holder = info.Holder();
1646 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1646 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1647 TestObject* impl = V8TestObject::toNative(holder); 1647 TestObject* impl = V8TestObject::toNative(holder);
1648 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 1648 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1649 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); 1649 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue);
1650 } 1650 }
1651 1651
1652 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 1652 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1653 { 1653 {
1654 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1654 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1655 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 1655 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
1656 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1656 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1657 } 1657 }
1658 1658
1659 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1659 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1660 { 1660 {
1661 v8::Handle<v8::Object> holder = info.Holder(); 1661 v8::Handle<v8::Object> holder = info.Holder();
1662 TestObject* impl = V8TestObject::toNative(holder); 1662 TestObject* impl = V8TestObject::toNative(holder);
1663 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu te()); 1663 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu te());
1664 } 1664 }
1665 1665
1666 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1666 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1667 { 1667 {
1668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1669 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eGetter(info); 1669 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eGetter(info);
1670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1671 } 1671 }
1672 1672
1673 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1673 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1674 { 1674 {
1675 v8::Handle<v8::Object> holder = info.Holder(); 1675 v8::Handle<v8::Object> holder = info.Holder();
1676 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1676 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1677 TestObject* impl = V8TestObject::toNative(holder); 1677 TestObject* impl = V8TestObject::toNative(holder);
1678 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 1678 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1679 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); 1679 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue);
1680 } 1680 }
1681 1681
1682 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 1682 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1683 { 1683 {
1684 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1684 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1685 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1685 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1686 if (contextData && contextData->activityLogger()) { 1686 if (contextData && contextData->activityLogger()) {
1687 v8::Handle<v8::Value> loggerArg[] = { v8Value }; 1687 v8::Handle<v8::Value> loggerArg[] = { v8Value };
1688 contextData->activityLogger()->log("TestObject.activityLoggingSetterForA llWorldsLongAttribute", 1, &loggerArg[0], "Setter"); 1688 contextData->activityLogger()->log("TestObject.activityLoggingSetterForA llWorldsLongAttribute", 1, &loggerArg[0], "Setter");
(...skipping 23 matching lines...) Expand all
1712 { 1712 {
1713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1714 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info); 1714 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info);
1715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1716 } 1716 }
1717 1717
1718 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 1718 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
1719 { 1719 {
1720 v8::Handle<v8::Object> holder = info.Holder(); 1720 v8::Handle<v8::Object> holder = info.Holder();
1721 TestObject* impl = V8TestObject::toNative(holder); 1721 TestObject* impl = V8TestObject::toNative(holder);
1722 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate( ))); 1722 TONATIVE_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate()) );
1723 impl->setCachedAttributeAnyAttribute(cppValue); 1723 impl->setCachedAttributeAnyAttribute(cppValue);
1724 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu e. 1724 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu e.
1725 } 1725 }
1726 1726
1727 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1727 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1728 { 1728 {
1729 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1729 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1730 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in fo); 1730 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in fo);
1731 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1731 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1732 } 1732 }
(...skipping 10 matching lines...) Expand all
1743 { 1743 {
1744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1745 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in fo); 1745 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in fo);
1746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1747 } 1747 }
1748 1748
1749 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 1749 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
1750 { 1750 {
1751 v8::Handle<v8::Object> holder = info.Holder(); 1751 v8::Handle<v8::Object> holder = info.Holder();
1752 TestObject* impl = V8TestObject::toNative(holder); 1752 TestObject* impl = V8TestObject::toNative(holder);
1753 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate( ))); 1753 TONATIVE_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate()) );
1754 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 1754 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
1755 impl->setCallWithExecutionContextAnyAttribute(scriptContext, cppValue); 1755 impl->setCallWithExecutionContextAnyAttribute(scriptContext, cppValue);
1756 } 1756 }
1757 1757
1758 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 1758 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
1759 { 1759 {
1760 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1760 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1761 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8 Value, info); 1761 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8 Value, info);
1762 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1762 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1763 } 1763 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1799 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1800 } 1800 }
1801 #endif // ENABLE(CONDITION) 1801 #endif // ENABLE(CONDITION)
1802 1802
1803 #if ENABLE(CONDITION) 1803 #if ENABLE(CONDITION)
1804 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info) 1804 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info)
1805 { 1805 {
1806 v8::Handle<v8::Object> holder = info.Holder(); 1806 v8::Handle<v8::Object> holder = info.Holder();
1807 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObject", holder, info.GetIsolate()); 1807 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObject", holder, info.GetIsolate());
1808 TestObject* impl = V8TestObject::toNative(holder); 1808 TestObject* impl = V8TestObject::toNative(holder);
1809 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 1809 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1810 impl->setConditionalLongAttribute(cppValue); 1810 impl->setConditionalLongAttribute(cppValue);
1811 } 1811 }
1812 #endif // ENABLE(CONDITION) 1812 #endif // ENABLE(CONDITION)
1813 1813
1814 #if ENABLE(CONDITION) 1814 #if ENABLE(CONDITION)
1815 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1815 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1816 { 1816 {
1817 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1817 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1818 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info) ; 1818 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info) ;
1819 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1819 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 17 matching lines...) Expand all
1837 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1837 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1838 } 1838 }
1839 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 1839 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
1840 1840
1841 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 1841 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
1842 static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 1842 static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
1843 { 1843 {
1844 v8::Handle<v8::Object> holder = info.Holder(); 1844 v8::Handle<v8::Object> holder = info.Holder();
1845 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAnd LongAttribute", "TestObject", holder, info.GetIsolate()); 1845 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAnd LongAttribute", "TestObject", holder, info.GetIsolate());
1846 TestObject* impl = V8TestObject::toNative(holder); 1846 TestObject* impl = V8TestObject::toNative(holder);
1847 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 1847 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1848 impl->setConditionalAndLongAttribute(cppValue); 1848 impl->setConditionalAndLongAttribute(cppValue);
1849 } 1849 }
1850 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 1850 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
1851 1851
1852 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 1852 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
1853 static void conditionalAndLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1853 static void conditionalAndLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1854 { 1854 {
1855 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1855 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1856 TestObjectV8Internal::conditionalAndLongAttributeAttributeSetter(v8Value, in fo); 1856 TestObjectV8Internal::conditionalAndLongAttributeAttributeSetter(v8Value, in fo);
1857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 17 matching lines...) Expand all
1875 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1875 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1876 } 1876 }
1877 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) 1877 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
1878 1878
1879 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) 1879 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
1880 static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 1880 static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
1881 { 1881 {
1882 v8::Handle<v8::Object> holder = info.Holder(); 1882 v8::Handle<v8::Object> holder = info.Holder();
1883 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalOrL ongAttribute", "TestObject", holder, info.GetIsolate()); 1883 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalOrL ongAttribute", "TestObject", holder, info.GetIsolate());
1884 TestObject* impl = V8TestObject::toNative(holder); 1884 TestObject* impl = V8TestObject::toNative(holder);
1885 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 1885 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1886 impl->setConditionalOrLongAttribute(cppValue); 1886 impl->setConditionalOrLongAttribute(cppValue);
1887 } 1887 }
1888 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) 1888 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
1889 1889
1890 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) 1890 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
1891 static void conditionalOrLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1891 static void conditionalOrLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1892 { 1892 {
1893 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1893 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1894 TestObjectV8Internal::conditionalOrLongAttributeAttributeSetter(v8Value, inf o); 1894 TestObjectV8Internal::conditionalOrLongAttributeAttributeSetter(v8Value, inf o);
1895 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1895 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 19 matching lines...) Expand all
1915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1916 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); 1916 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info);
1917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1918 } 1918 }
1919 1919
1920 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 1920 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
1921 { 1921 {
1922 v8::Handle<v8::Object> holder = info.Holder(); 1922 v8::Handle<v8::Object> holder = info.Holder();
1923 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo ngAttribute", "TestObject", holder, info.GetIsolate()); 1923 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo ngAttribute", "TestObject", holder, info.GetIsolate());
1924 TestObject* impl = V8TestObject::toNative(holder); 1924 TestObject* impl = V8TestObject::toNative(holder);
1925 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 1925 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1926 impl->setCustomGetterLongAttribute(cppValue); 1926 impl->setCustomGetterLongAttribute(cppValue);
1927 } 1927 }
1928 1928
1929 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1929 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1930 { 1930 {
1931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1932 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info ); 1932 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info );
1933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1934 } 1934 }
1935 1935
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
2006 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::LongAttribute); 2006 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::LongAttribute);
2007 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); 2007 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info);
2008 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2008 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2009 } 2009 }
2010 2010
2011 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2011 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2012 { 2012 {
2013 v8::Handle<v8::Object> holder = info.Holder(); 2013 v8::Handle<v8::Object> holder = info.Holder();
2014 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate()); 2014 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate());
2015 TestObject* impl = V8TestObject::toNative(holder); 2015 TestObject* impl = V8TestObject::toNative(holder);
2016 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2016 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2017 impl->setDeprecatedLongAttribute(cppValue); 2017 impl->setDeprecatedLongAttribute(cppValue);
2018 } 2018 }
2019 2019
2020 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2020 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2021 { 2021 {
2022 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2022 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2023 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::LongAttribute); 2023 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::LongAttribute);
2024 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); 2024 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info);
2025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2026 } 2026 }
(...skipping 10 matching lines...) Expand all
2037 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2037 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2038 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); 2038 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info);
2039 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2039 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2040 } 2040 }
2041 2041
2042 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 2042 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
2043 { 2043 {
2044 v8::Handle<v8::Object> holder = info.Holder(); 2044 v8::Handle<v8::Object> holder = info.Holder();
2045 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo ngAttribute", "TestObject", holder, info.GetIsolate()); 2045 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo ngAttribute", "TestObject", holder, info.GetIsolate());
2046 TestObject* impl = V8TestObject::toNative(holder); 2046 TestObject* impl = V8TestObject::toNative(holder);
2047 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, EnforceRange, exce ptionState), exceptionState); 2047 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, EnforceRange, e xceptionState), exceptionState);
2048 impl->setEnforceRangeLongAttribute(cppValue); 2048 impl->setEnforceRangeLongAttribute(cppValue);
2049 } 2049 }
2050 2050
2051 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2051 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2052 { 2052 {
2053 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2053 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2054 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info ); 2054 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info );
2055 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2055 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2056 } 2056 }
2057 2057
2058 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info) 2058 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info)
2059 { 2059 {
2060 v8::Handle<v8::Object> holder = info.Holder(); 2060 v8::Handle<v8::Object> holder = info.Holder();
2061 TestObject* impl = V8TestObject::toNative(holder); 2061 TestObject* impl = V8TestObject::toNative(holder);
2062 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); 2062 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute());
2063 } 2063 }
2064 2064
2065 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2065 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2066 { 2066 {
2067 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2067 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2068 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info); 2068 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info);
2069 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2069 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2070 } 2070 }
2071 2071
2072 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2072 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2073 { 2073 {
2074 v8::Handle<v8::Object> holder = info.Holder(); 2074 v8::Handle<v8::Object> holder = info.Holder();
2075 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess orsLongAttribute", "TestObject", holder, info.GetIsolate()); 2075 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess orsLongAttribute", "TestObject", holder, info.GetIsolate());
2076 TestObject* impl = V8TestObject::toNative(holder); 2076 TestObject* impl = V8TestObject::toNative(holder);
2077 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2077 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2078 impl->setExposeJSAccessorsLongAttribute(cppValue); 2078 impl->setExposeJSAccessorsLongAttribute(cppValue);
2079 } 2079 }
2080 2080
2081 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2081 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2082 { 2082 {
2083 v8::Local<v8::Value> v8Value = info[0]; 2083 v8::Local<v8::Value> v8Value = info[0];
2084 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2084 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2085 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value, info); 2085 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value, info);
2086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2087 } 2087 }
(...skipping 10 matching lines...) Expand all
2098 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2098 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2099 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); 2099 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info);
2100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2101 } 2101 }
2102 2102
2103 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 2103 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
2104 { 2104 {
2105 v8::Handle<v8::Object> holder = info.Holder(); 2105 v8::Handle<v8::Object> holder = info.Holder();
2106 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObject", holder, info.GetIsolate()); 2106 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObject", holder, info.GetIsolate());
2107 TestObject* impl = V8TestObject::toNative(holder); 2107 TestObject* impl = V8TestObject::toNative(holder);
2108 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2108 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2109 impl->setImplementedAsName(cppValue); 2109 impl->setImplementedAsName(cppValue);
2110 } 2110 }
2111 2111
2112 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2112 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2113 { 2113 {
2114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2115 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o); 2115 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o);
2116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2117 } 2117 }
2118 2118
(...skipping 16 matching lines...) Expand all
2135 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2135 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2136 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in fo); 2136 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in fo);
2137 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2137 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2138 } 2138 }
2139 2139
2140 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2140 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2141 { 2141 {
2142 v8::Handle<v8::Object> holder = info.Holder(); 2142 v8::Handle<v8::Object> holder = info.Holder();
2143 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); 2143 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm plementedAsLongAttribute", "TestObject", holder, info.GetIsolate());
2144 TestObject* impl = V8TestObject::toNative(holder); 2144 TestObject* impl = V8TestObject::toNative(holder);
2145 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2145 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2146 impl->setImplementedAsNameWithCustomGetter(cppValue); 2146 impl->setImplementedAsNameWithCustomGetter(cppValue);
2147 } 2147 }
2148 2148
2149 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info) 2149 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
2150 { 2150 {
2151 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2151 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2152 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter( v8Value, info); 2152 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter( v8Value, info);
2153 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2153 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2154 } 2154 }
2155 2155
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 2187 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
2188 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); 2188 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info);
2189 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2189 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2190 } 2190 }
2191 2191
2192 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2192 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2193 { 2193 {
2194 v8::Handle<v8::Object> holder = info.Holder(); 2194 v8::Handle<v8::Object> holder = info.Holder();
2195 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate()); 2195 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate());
2196 TestObject* impl = V8TestObject::toNative(holder); 2196 TestObject* impl = V8TestObject::toNative(holder);
2197 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2197 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2198 impl->setMeasureAsLongAttribute(cppValue); 2198 impl->setMeasureAsLongAttribute(cppValue);
2199 } 2199 }
2200 2200
2201 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2201 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2202 { 2202 {
2203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2204 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 2204 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
2205 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); 2205 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info);
2206 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2206 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2207 } 2207 }
(...skipping 10 matching lines...) Expand all
2218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2219 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); 2219 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info);
2220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2221 } 2221 }
2222 2222
2223 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 2223 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
2224 { 2224 {
2225 v8::Handle<v8::Object> holder = info.Holder(); 2225 v8::Handle<v8::Object> holder = info.Holder();
2226 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObject", holder, info.GetIsolate()); 2226 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObject", holder, info.GetIsolate());
2227 TestObject* impl = V8TestObject::toNative(holder); 2227 TestObject* impl = V8TestObject::toNative(holder);
2228 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2228 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2229 impl->setNotEnumerableLongAttribute(cppValue); 2229 impl->setNotEnumerableLongAttribute(cppValue);
2230 } 2230 }
2231 2231
2232 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2232 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2233 { 2233 {
2234 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2234 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2235 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o); 2235 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o);
2236 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2236 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2237 } 2237 }
2238 2238
2239 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 2239 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
2240 { 2240 {
2241 v8::Handle<v8::Object> holder = info.Holder(); 2241 v8::Handle<v8::Object> holder = info.Holder();
2242 TestObject* impl = V8TestObject::toNative(holder); 2242 TestObject* impl = V8TestObject::toNative(holder);
2243 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); 2243 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute());
2244 } 2244 }
2245 2245
2246 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2246 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2247 { 2247 {
2248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2249 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); 2249 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info);
2250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2251 } 2251 }
2252 2252
2253 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 2253 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2254 { 2254 {
2255 v8::Handle<v8::Object> holder = info.Holder(); 2255 v8::Handle<v8::Object> holder = info.Holder();
2256 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledLongAttribute", "TestObject", holder, info.GetIsolate()); 2256 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledLongAttribute", "TestObject", holder, info.GetIsolate());
2257 TestObject* impl = V8TestObject::toNative(holder); 2257 TestObject* impl = V8TestObject::toNative(holder);
2258 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2258 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2259 impl->setPerContextEnabledLongAttribute(cppValue); 2259 impl->setPerContextEnabledLongAttribute(cppValue);
2260 } 2260 }
2261 2261
2262 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o) 2262 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
2263 { 2263 {
2264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2265 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value, info); 2265 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value, info);
2266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2267 } 2267 }
2268 2268
2269 static void perWorldBindingsLongAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 2269 static void perWorldBindingsLongAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
2270 { 2270 {
2271 v8::Handle<v8::Object> holder = info.Holder(); 2271 v8::Handle<v8::Object> holder = info.Holder();
2272 TestObject* impl = V8TestObject::toNative(holder); 2272 TestObject* impl = V8TestObject::toNative(holder);
2273 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); 2273 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute());
2274 } 2274 }
2275 2275
2276 static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 2276 static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
2277 { 2277 {
2278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2279 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeGetter(info); 2279 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeGetter(info);
2280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2281 } 2281 }
2282 2282
2283 static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 2283 static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
2284 { 2284 {
2285 v8::Handle<v8::Object> holder = info.Holder(); 2285 v8::Handle<v8::Object> holder = info.Holder();
2286 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin gsLongAttribute", "TestObject", holder, info.GetIsolate()); 2286 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin gsLongAttribute", "TestObject", holder, info.GetIsolate());
2287 TestObject* impl = V8TestObject::toNative(holder); 2287 TestObject* impl = V8TestObject::toNative(holder);
2288 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2288 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2289 impl->setPerWorldBindingsLongAttribute(cppValue); 2289 impl->setPerWorldBindingsLongAttribute(cppValue);
2290 } 2290 }
2291 2291
2292 static void perWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 2292 static void perWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
2293 { 2293 {
2294 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2294 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2295 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeSetter(v8Value, info); 2295 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeSetter(v8Value, info);
2296 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2296 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2297 } 2297 }
2298 2298
2299 static void perWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::P ropertyCallbackInfo<v8::Value>& info) 2299 static void perWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::P ropertyCallbackInfo<v8::Value>& info)
2300 { 2300 {
2301 v8::Handle<v8::Object> holder = info.Holder(); 2301 v8::Handle<v8::Object> holder = info.Holder();
2302 TestObject* impl = V8TestObject::toNative(holder); 2302 TestObject* impl = V8TestObject::toNative(holder);
2303 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); 2303 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute());
2304 } 2304 }
2305 2305
2306 static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8: :Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2306 static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8: :Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2307 { 2307 {
2308 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2308 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2309 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeGetterForMainWor ld(info); 2309 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeGetterForMainWor ld(info);
2310 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2310 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2311 } 2311 }
2312 2312
2313 static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2313 static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2314 { 2314 {
2315 v8::Handle<v8::Object> holder = info.Holder(); 2315 v8::Handle<v8::Object> holder = info.Holder();
2316 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin gsLongAttribute", "TestObject", holder, info.GetIsolate()); 2316 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin gsLongAttribute", "TestObject", holder, info.GetIsolate());
2317 TestObject* impl = V8TestObject::toNative(holder); 2317 TestObject* impl = V8TestObject::toNative(holder);
2318 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2318 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2319 impl->setPerWorldBindingsLongAttribute(cppValue); 2319 impl->setPerWorldBindingsLongAttribute(cppValue);
2320 } 2320 }
2321 2321
2322 static void perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8: :Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info) 2322 static void perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8: :Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info)
2323 { 2323 {
2324 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2324 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2325 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeSetterForMainWor ld(v8Value, info); 2325 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeSetterForMainWor ld(v8Value, info);
2326 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2326 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2327 } 2327 }
2328 2328
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW orldBindingsLongAttribute", 0, 0, "Getter"); 2411 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW orldBindingsLongAttribute", 0, 0, "Getter");
2412 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2412 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2413 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2413 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2414 } 2414 }
2415 2415
2416 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2416 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2417 { 2417 {
2418 v8::Handle<v8::Object> holder = info.Holder(); 2418 v8::Handle<v8::Object> holder = info.Holder();
2419 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2419 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2420 TestObject* impl = V8TestObject::toNative(holder); 2420 TestObject* impl = V8TestObject::toNative(holder);
2421 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2421 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2422 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2422 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2423 } 2423 }
2424 2424
2425 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 2425 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
2426 { 2426 {
2427 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2427 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2428 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2428 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2429 if (contextData && contextData->activityLogger()) { 2429 if (contextData && contextData->activityLogger()) {
2430 v8::Handle<v8::Value> loggerArg[] = { v8Value }; 2430 v8::Handle<v8::Value> loggerArg[] = { v8Value };
2431 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW orldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); 2431 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW orldBindingsLongAttribute", 1, &loggerArg[0], "Setter");
(...skipping 17 matching lines...) Expand all
2449 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW orldBindingsLongAttribute", 0, 0, "Getter"); 2449 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW orldBindingsLongAttribute", 0, 0, "Getter");
2450 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2450 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2451 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2451 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2452 } 2452 }
2453 2453
2454 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2454 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2455 { 2455 {
2456 v8::Handle<v8::Object> holder = info.Holder(); 2456 v8::Handle<v8::Object> holder = info.Holder();
2457 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2457 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2458 TestObject* impl = V8TestObject::toNative(holder); 2458 TestObject* impl = V8TestObject::toNative(holder);
2459 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2459 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2460 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2460 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2461 } 2461 }
2462 2462
2463 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 2463 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
2464 { 2464 {
2465 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2465 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2466 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2466 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2467 if (contextData && contextData->activityLogger()) { 2467 if (contextData && contextData->activityLogger()) {
2468 v8::Handle<v8::Value> loggerArg[] = { v8Value }; 2468 v8::Handle<v8::Value> loggerArg[] = { v8Value };
2469 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW orldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); 2469 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW orldBindingsLongAttribute", 1, &loggerArg[0], "Setter");
(...skipping 17 matching lines...) Expand all
2487 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); 2487 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter");
2488 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 2488 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
2489 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2489 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2490 } 2490 }
2491 2491
2492 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2492 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2493 { 2493 {
2494 v8::Handle<v8::Object> holder = info.Holder(); 2494 v8::Handle<v8::Object> holder = info.Holder();
2495 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2495 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2496 TestObject* impl = V8TestObject::toNative(holder); 2496 TestObject* impl = V8TestObject::toNative(holder);
2497 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2497 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2498 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2498 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2499 } 2499 }
2500 2500
2501 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 2501 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
2502 { 2502 {
2503 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2503 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2504 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2504 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2505 if (contextData && contextData->activityLogger()) { 2505 if (contextData && contextData->activityLogger()) {
2506 v8::Handle<v8::Value> loggerArg[] = { v8Value }; 2506 v8::Handle<v8::Value> loggerArg[] = { v8Value };
2507 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI solatedWorldsPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); 2507 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI solatedWorldsPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter");
(...skipping 14 matching lines...) Expand all
2522 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2522 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2523 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info); 2523 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info);
2524 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2524 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2525 } 2525 }
2526 2526
2527 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 2527 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
2528 { 2528 {
2529 v8::Handle<v8::Object> holder = info.Holder(); 2529 v8::Handle<v8::Object> holder = info.Holder();
2530 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2530 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2531 TestObject* impl = V8TestObject::toNative(holder); 2531 TestObject* impl = V8TestObject::toNative(holder);
2532 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2532 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2533 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2533 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2534 } 2534 }
2535 2535
2536 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 2536 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2537 { 2537 {
2538 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2538 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2539 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info); 2539 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info);
2540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2541 } 2541 }
2542 2542
(...skipping 12 matching lines...) Expand all
2555 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW orldBindingsLongAttribute", 0, 0, "Getter"); 2555 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW orldBindingsLongAttribute", 0, 0, "Getter");
2556 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2556 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2558 } 2558 }
2559 2559
2560 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2560 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2561 { 2561 {
2562 v8::Handle<v8::Object> holder = info.Holder(); 2562 v8::Handle<v8::Object> holder = info.Holder();
2563 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2563 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2564 TestObject* impl = V8TestObject::toNative(holder); 2564 TestObject* impl = V8TestObject::toNative(holder);
2565 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2565 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2566 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 2566 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
2567 } 2567 }
2568 2568
2569 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 2569 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
2570 { 2570 {
2571 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2571 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2572 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 2572 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
2573 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2573 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2574 } 2574 }
2575 2575
(...skipping 12 matching lines...) Expand all
2588 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW orldBindingsLongAttribute", 0, 0, "Getter"); 2588 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW orldBindingsLongAttribute", 0, 0, "Getter");
2589 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2589 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2590 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2590 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2591 } 2591 }
2592 2592
2593 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2593 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2594 { 2594 {
2595 v8::Handle<v8::Object> holder = info.Holder(); 2595 v8::Handle<v8::Object> holder = info.Holder();
2596 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2596 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2597 TestObject* impl = V8TestObject::toNative(holder); 2597 TestObject* impl = V8TestObject::toNative(holder);
2598 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2598 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2599 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 2599 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
2600 } 2600 }
2601 2601
2602 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 2602 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
2603 { 2603 {
2604 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2604 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2605 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 2605 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
2606 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2606 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2607 } 2607 }
2608 2608
(...skipping 12 matching lines...) Expand all
2621 contextData->activityLogger()->log("TestObject.activityLoggingGetterForI solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); 2621 contextData->activityLogger()->log("TestObject.activityLoggingGetterForI solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter");
2622 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 2622 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
2623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2624 } 2624 }
2625 2625
2626 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2626 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2627 { 2627 {
2628 v8::Handle<v8::Object> holder = info.Holder(); 2628 v8::Handle<v8::Object> holder = info.Holder();
2629 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2629 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2630 TestObject* impl = V8TestObject::toNative(holder); 2630 TestObject* impl = V8TestObject::toNative(holder);
2631 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2631 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2632 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2632 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2633 } 2633 }
2634 2634
2635 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 2635 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
2636 { 2636 {
2637 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2637 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2638 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 2638 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
2639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2640 } 2640 }
2641 2641
2642 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2642 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2643 { 2643 {
2644 v8::Handle<v8::Object> holder = info.Holder(); 2644 v8::Handle<v8::Object> holder = info.Holder();
2645 TestObject* impl = V8TestObject::toNative(holder); 2645 TestObject* impl = V8TestObject::toNative(holder);
2646 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2646 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
2647 } 2647 }
2648 2648
2649 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall backInfo<v8::Value>& info) 2649 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall backInfo<v8::Value>& info)
2650 { 2650 {
2651 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2651 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2652 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info); 2652 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info);
2653 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2653 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2654 } 2654 }
2655 2655
2656 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 2656 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
2657 { 2657 {
2658 v8::Handle<v8::Object> holder = info.Holder(); 2658 v8::Handle<v8::Object> holder = info.Holder();
2659 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2659 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2660 TestObject* impl = V8TestObject::toNative(holder); 2660 TestObject* impl = V8TestObject::toNative(holder);
2661 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2661 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2662 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2662 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2663 } 2663 }
2664 2664
2665 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 2665 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2666 { 2666 {
2667 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2667 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2668 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info); 2668 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info);
2669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2670 } 2670 }
2671 2671
(...skipping 11 matching lines...) Expand all
2683 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2683 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2684 } 2684 }
2685 2685
2686 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop ertyCallbackInfo<void>& info) 2686 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop ertyCallbackInfo<void>& info)
2687 { 2687 {
2688 v8::Handle<v8::Object> holder = info.Holder(); 2688 v8::Handle<v8::Object> holder = info.Holder();
2689 TestObject* proxyImpl = V8TestObject::toNative(holder); 2689 TestObject* proxyImpl = V8TestObject::toNative(holder);
2690 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); 2690 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->location());
2691 if (!impl) 2691 if (!impl)
2692 return; 2692 return;
2693 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 2693 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
2694 impl->setHref(cppValue); 2694 impl->setHref(cppValue);
2695 } 2695 }
2696 2696
2697 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2697 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2698 { 2698 {
2699 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2699 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2700 TestObjectV8Internal::locationAttributeSetter(v8Value, info); 2700 TestObjectV8Internal::locationAttributeSetter(v8Value, info);
2701 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2701 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2702 } 2702 }
2703 2703
(...skipping 11 matching lines...) Expand all
2715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2716 } 2716 }
2717 2717
2718 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 2718 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
2719 { 2719 {
2720 v8::Handle<v8::Object> holder = info.Holder(); 2720 v8::Handle<v8::Object> holder = info.Holder();
2721 TestObject* proxyImpl = V8TestObject::toNative(holder); 2721 TestObject* proxyImpl = V8TestObject::toNative(holder);
2722 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithException()); 2722 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithException());
2723 if (!impl) 2723 if (!impl)
2724 return; 2724 return;
2725 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 2725 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
2726 impl->setHrefThrows(cppValue); 2726 impl->setHrefThrows(cppValue);
2727 } 2727 }
2728 2728
2729 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2729 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2730 { 2730 {
2731 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2731 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2732 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); 2732 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info);
2733 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2733 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2734 } 2734 }
2735 2735
(...skipping 11 matching lines...) Expand all
2747 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2747 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2748 } 2748 }
2749 2749
2750 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 2750 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
2751 { 2751 {
2752 v8::Handle<v8::Object> holder = info.Holder(); 2752 v8::Handle<v8::Object> holder = info.Holder();
2753 TestObject* proxyImpl = V8TestObject::toNative(holder); 2753 TestObject* proxyImpl = V8TestObject::toNative(holder);
2754 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallWith()); 2754 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallWith());
2755 if (!impl) 2755 if (!impl)
2756 return; 2756 return;
2757 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 2757 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
2758 impl->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow( info.GetIsolate()), cppValue); 2758 impl->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow( info.GetIsolate()), cppValue);
2759 } 2759 }
2760 2760
2761 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2761 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2762 { 2762 {
2763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2764 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); 2764 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info);
2765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2766 } 2766 }
2767 2767
(...skipping 11 matching lines...) Expand all
2779 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2779 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2780 } 2780 }
2781 2781
2782 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 2782 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
2783 { 2783 {
2784 v8::Handle<v8::Object> holder = info.Holder(); 2784 v8::Handle<v8::Object> holder = info.Holder();
2785 TestObject* proxyImpl = V8TestObject::toNative(holder); 2785 TestObject* proxyImpl = V8TestObject::toNative(holder);
2786 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings( )); 2786 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings( ));
2787 if (!impl) 2787 if (!impl)
2788 return; 2788 return;
2789 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 2789 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
2790 impl->setHref(cppValue); 2790 impl->setHref(cppValue);
2791 } 2791 }
2792 2792
2793 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2793 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2794 { 2794 {
2795 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2795 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2796 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i nfo); 2796 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i nfo);
2797 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2797 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2798 } 2798 }
2799 2799
(...skipping 11 matching lines...) Expand all
2811 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2811 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2812 } 2812 }
2813 2813
2814 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2814 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2815 { 2815 {
2816 v8::Handle<v8::Object> holder = info.Holder(); 2816 v8::Handle<v8::Object> holder = info.Holder();
2817 TestObject* proxyImpl = V8TestObject::toNative(holder); 2817 TestObject* proxyImpl = V8TestObject::toNative(holder);
2818 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings( )); 2818 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings( ));
2819 if (!impl) 2819 if (!impl)
2820 return; 2820 return;
2821 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 2821 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
2822 impl->setHref(cppValue); 2822 impl->setHref(cppValue);
2823 } 2823 }
2824 2824
2825 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info) 2825 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info)
2826 { 2826 {
2827 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2827 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2828 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl d(v8Value, info); 2828 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl d(v8Value, info);
2829 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2829 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2830 } 2830 }
2831 2831
(...skipping 18 matching lines...) Expand all
2850 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2850 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2851 } 2851 }
2852 2852
2853 static void locationGarbageCollectedAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info) 2853 static void locationGarbageCollectedAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info)
2854 { 2854 {
2855 v8::Handle<v8::Object> holder = info.Holder(); 2855 v8::Handle<v8::Object> holder = info.Holder();
2856 TestObject* proxyImpl = V8TestObject::toNative(holder); 2856 TestObject* proxyImpl = V8TestObject::toNative(holder);
2857 RawPtr<TestInterfaceGarbageCollected> impl = WTF::getPtr(proxyImpl->location GarbageCollected()); 2857 RawPtr<TestInterfaceGarbageCollected> impl = WTF::getPtr(proxyImpl->location GarbageCollected());
2858 if (!impl) 2858 if (!impl)
2859 return; 2859 return;
2860 V8TRYCATCH_VOID(TestInterfaceGarbageCollected*, cppValue, V8TestInterfaceGar bageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); 2860 TONATIVE_VOID(TestInterfaceGarbageCollected*, cppValue, V8TestInterfaceGarba geCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value));
2861 impl->setAttr1(WTF::getPtr(cppValue)); 2861 impl->setAttr1(WTF::getPtr(cppValue));
2862 } 2862 }
2863 2863
2864 static void locationGarbageCollectedAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2864 static void locationGarbageCollectedAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2865 { 2865 {
2866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2867 TestObjectV8Internal::locationGarbageCollectedAttributeSetter(v8Value, info) ; 2867 TestObjectV8Internal::locationGarbageCollectedAttributeSetter(v8Value, info) ;
2868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2869 } 2869 }
2870 2870
(...skipping 18 matching lines...) Expand all
2889 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2889 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2890 } 2890 }
2891 2891
2892 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 2892 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2893 { 2893 {
2894 v8::Handle<v8::Object> holder = info.Holder(); 2894 v8::Handle<v8::Object> holder = info.Holder();
2895 TestObject* proxyImpl = V8TestObject::toNative(holder); 2895 TestObject* proxyImpl = V8TestObject::toNative(holder);
2896 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p roxyImpl->locationWillBeGarbageCollected()); 2896 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p roxyImpl->locationWillBeGarbageCollected());
2897 if (!impl) 2897 if (!impl)
2898 return; 2898 return;
2899 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); 2899 TONATIVE_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterfac eWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value));
2900 impl->setAttr1(WTF::getPtr(cppValue)); 2900 impl->setAttr1(WTF::getPtr(cppValue));
2901 } 2901 }
2902 2902
2903 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o) 2903 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
2904 { 2904 {
2905 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2905 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2906 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value, info); 2906 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value, info);
2907 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2907 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2908 } 2908 }
2909 2909
(...skipping 13 matching lines...) Expand all
2923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2924 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); 2924 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info);
2925 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2925 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2926 } 2926 }
2927 2927
2928 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 2928 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
2929 { 2929 {
2930 v8::Handle<v8::Object> holder = info.Holder(); 2930 v8::Handle<v8::Object> holder = info.Holder();
2931 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate()); 2931 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate());
2932 TestObject* impl = V8TestObject::toNative(holder); 2932 TestObject* impl = V8TestObject::toNative(holder);
2933 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2933 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2934 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); 2934 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState);
2935 exceptionState.throwIfNeeded(); 2935 exceptionState.throwIfNeeded();
2936 } 2936 }
2937 2937
2938 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2938 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2939 { 2939 {
2940 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2940 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2941 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i nfo); 2941 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i nfo);
2942 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2942 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2943 } 2943 }
(...skipping 14 matching lines...) Expand all
2958 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2958 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2959 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info ); 2959 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info );
2960 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2960 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2961 } 2961 }
2962 2962
2963 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 2963 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
2964 { 2964 {
2965 v8::Handle<v8::Object> holder = info.Holder(); 2965 v8::Handle<v8::Object> holder = info.Holder();
2966 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); 2966 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate());
2967 TestObject* impl = V8TestObject::toNative(holder); 2967 TestObject* impl = V8TestObject::toNative(holder);
2968 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2968 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2969 impl->setRaisesExceptionGetterLongAttribute(cppValue); 2969 impl->setRaisesExceptionGetterLongAttribute(cppValue);
2970 } 2970 }
2971 2971
2972 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2972 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2973 { 2973 {
2974 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2974 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2975 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va lue, info); 2975 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va lue, info);
2976 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2976 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2977 } 2977 }
2978 2978
2979 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 2979 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
2980 { 2980 {
2981 v8::Handle<v8::Object> holder = info.Holder(); 2981 v8::Handle<v8::Object> holder = info.Holder();
2982 TestObject* impl = V8TestObject::toNative(holder); 2982 TestObject* impl = V8TestObject::toNative(holder);
2983 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); 2983 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute());
2984 } 2984 }
2985 2985
2986 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2986 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2987 { 2987 {
2988 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2988 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2989 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info ); 2989 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info );
2990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2991 } 2991 }
2992 2992
2993 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 2993 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
2994 { 2994 {
2995 v8::Handle<v8::Object> holder = info.Holder(); 2995 v8::Handle<v8::Object> holder = info.Holder();
2996 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); 2996 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObject", holder, info.GetIsolate());
2997 TestObject* impl = V8TestObject::toNative(holder); 2997 TestObject* impl = V8TestObject::toNative(holder);
2998 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 2998 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2999 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); 2999 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState);
3000 exceptionState.throwIfNeeded(); 3000 exceptionState.throwIfNeeded();
3001 } 3001 }
3002 3002
3003 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3003 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3004 { 3004 {
3005 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3005 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3006 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va lue, info); 3006 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va lue, info);
3007 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3007 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3008 } 3008 }
(...skipping 14 matching lines...) Expand all
3023 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3023 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3024 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet ter(info); 3024 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet ter(info);
3025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3026 } 3026 }
3027 3027
3028 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3028 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3029 { 3029 {
3030 v8::Handle<v8::Object> holder = info.Holder(); 3030 v8::Handle<v8::Object> holder = info.Holder();
3031 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); 3031 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate());
3032 TestObject* impl = V8TestObject::toNative(holder); 3032 TestObject* impl = V8TestObject::toNative(holder);
3033 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ eWithTypeCheck(info.GetIsolate(), v8Value)); 3033 TONATIVE_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativeW ithTypeCheck(info.GetIsolate(), v8Value));
3034 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e xceptionState); 3034 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e xceptionState);
3035 exceptionState.throwIfNeeded(); 3035 exceptionState.throwIfNeeded();
3036 } 3036 }
3037 3037
3038 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 3038 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
3039 { 3039 {
3040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3041 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet ter(v8Value, info); 3041 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet ter(v8Value, info);
3042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3043 } 3043 }
(...skipping 23 matching lines...) Expand all
3067 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3067 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3068 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteGetter(info); 3068 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteGetter(info);
3069 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3069 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3070 } 3070 }
3071 3071
3072 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3072 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3073 { 3073 {
3074 v8::Handle<v8::Object> holder = info.Holder(); 3074 v8::Handle<v8::Object> holder = info.Holder();
3075 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); 3075 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate());
3076 TestObject* impl = V8TestObject::toNative(holder); 3076 TestObject* impl = V8TestObject::toNative(holder);
3077 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate( ))); 3077 TONATIVE_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate()) );
3078 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio nState); 3078 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio nState);
3079 exceptionState.throwIfNeeded(); 3079 exceptionState.throwIfNeeded();
3080 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval idate the cached value. 3080 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval idate the cached value.
3081 } 3081 }
3082 3082
3083 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 3083 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
3084 { 3084 {
3085 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3085 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3086 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteSetter(v8Value, info); 3086 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteSetter(v8Value, info);
3087 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3087 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 10 matching lines...) Expand all
3098 { 3098 {
3099 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3099 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3100 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info); 3100 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info);
3101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3102 } 3102 }
3103 3103
3104 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3104 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3105 { 3105 {
3106 v8::Handle<v8::Object> holder = info.Holder(); 3106 v8::Handle<v8::Object> holder = info.Holder();
3107 TestObject* impl = V8TestObject::toNative(holder); 3107 TestObject* impl = V8TestObject::toNative(holder);
3108 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN ativeWithTypeCheck(info.GetIsolate(), v8Value)); 3108 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat iveWithTypeCheck(info.GetIsolate(), v8Value));
3109 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3109 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3110 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue)); 3110 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue));
3111 } 3111 }
3112 3112
3113 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 3113 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
3114 { 3114 {
3115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3116 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3116 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3117 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value, info); 3117 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value, info);
3118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 10 matching lines...) Expand all
3129 { 3129 {
3130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3131 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet ter(info); 3131 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet ter(info);
3132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3133 } 3133 }
3134 3134
3135 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3135 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3136 { 3136 {
3137 v8::Handle<v8::Object> holder = info.Holder(); 3137 v8::Handle<v8::Object> holder = info.Holder();
3138 TestObject* impl = V8TestObject::toNative(holder); 3138 TestObject* impl = V8TestObject::toNative(holder);
3139 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN ativeWithTypeCheck(info.GetIsolate(), v8Value)); 3139 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat iveWithTypeCheck(info.GetIsolate(), v8Value));
3140 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3140 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3141 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue)); 3141 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue));
3142 } 3142 }
3143 3143
3144 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 3144 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
3145 { 3145 {
3146 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3146 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3147 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3147 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3148 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet ter(v8Value, info); 3148 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet ter(v8Value, info);
3149 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3149 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 10 matching lines...) Expand all
3160 { 3160 {
3161 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3161 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3162 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info); 3162 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info);
3163 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3163 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3164 } 3164 }
3165 3165
3166 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3166 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3167 { 3167 {
3168 v8::Handle<v8::Object> holder = info.Holder(); 3168 v8::Handle<v8::Object> holder = info.Holder();
3169 TestObject* impl = V8TestObject::toNative(holder); 3169 TestObject* impl = V8TestObject::toNative(holder);
3170 V8TRYCATCH_VOID(bool, cppValue, v8Value->BooleanValue()); 3170 TONATIVE_VOID(bool, cppValue, v8Value->BooleanValue());
3171 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3171 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3172 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); 3172 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue);
3173 } 3173 }
3174 3174
3175 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3175 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3176 { 3176 {
3177 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3177 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3178 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3178 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3179 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info); 3179 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info);
3180 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3180 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 11 matching lines...) Expand all
3192 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3192 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3193 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); 3193 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info);
3194 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3194 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3195 } 3195 }
3196 3196
3197 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 3197 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
3198 { 3198 {
3199 v8::Handle<v8::Object> holder = info.Holder(); 3199 v8::Handle<v8::Object> holder = info.Holder();
3200 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate()); 3200 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate());
3201 TestObject* impl = V8TestObject::toNative(holder); 3201 TestObject* impl = V8TestObject::toNative(holder);
3202 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 3202 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3203 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3203 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3204 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); 3204 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue);
3205 } 3205 }
3206 3206
3207 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3207 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3208 { 3208 {
3209 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3209 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3210 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3210 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3211 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); 3211 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info);
3212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 11 matching lines...) Expand all
3224 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3224 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3225 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); 3225 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info);
3226 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3226 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3227 } 3227 }
3228 3228
3229 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3229 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3230 { 3230 {
3231 v8::Handle<v8::Object> holder = info.Holder(); 3231 v8::Handle<v8::Object> holder = info.Holder();
3232 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate()); 3232 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate());
3233 TestObject* impl = V8TestObject::toNative(holder); 3233 TestObject* impl = V8TestObject::toNative(holder);
3234 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(v8Value, exceptionSta te), exceptionState); 3234 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception State), exceptionState);
3235 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3235 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3236 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); 3236 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue);
3237 } 3237 }
3238 3238
3239 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 3239 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
3240 { 3240 {
3241 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3241 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3242 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3242 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3243 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value, info); 3243 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value, info);
3244 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3244 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 11 matching lines...) Expand all
3256 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3256 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3257 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); 3257 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info);
3258 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3258 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3259 } 3259 }
3260 3260
3261 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3261 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3262 { 3262 {
3263 v8::Handle<v8::Object> holder = info.Holder(); 3263 v8::Handle<v8::Object> holder = info.Holder();
3264 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate()); 3264 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate());
3265 TestObject* impl = V8TestObject::toNative(holder); 3265 TestObject* impl = V8TestObject::toNative(holder);
3266 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(v8Value, exceptionSta te), exceptionState); 3266 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception State), exceptionState);
3267 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3267 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3268 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue); 3268 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue);
3269 } 3269 }
3270 3270
3271 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3271 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3272 { 3272 {
3273 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3273 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3274 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3274 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3275 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i nfo); 3275 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i nfo);
3276 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3276 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 10 matching lines...) Expand all
3287 { 3287 {
3288 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3288 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3289 TestObjectV8Internal::idAttributeGetter(info); 3289 TestObjectV8Internal::idAttributeGetter(info);
3290 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3290 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3291 } 3291 }
3292 3292
3293 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa llbackInfo<void>& info) 3293 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa llbackInfo<void>& info)
3294 { 3294 {
3295 v8::Handle<v8::Object> holder = info.Holder(); 3295 v8::Handle<v8::Object> holder = info.Holder();
3296 TestObject* impl = V8TestObject::toNative(holder); 3296 TestObject* impl = V8TestObject::toNative(holder);
3297 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3297 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3298 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3298 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3299 impl->setAttribute(HTMLNames::idAttr, cppValue); 3299 impl->setAttribute(HTMLNames::idAttr, cppValue);
3300 } 3300 }
3301 3301
3302 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value > v8Value, const v8::PropertyCallbackInfo<void>& info) 3302 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value > v8Value, const v8::PropertyCallbackInfo<void>& info)
3303 { 3303 {
3304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3305 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3305 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3306 TestObjectV8Internal::idAttributeSetter(v8Value, info); 3306 TestObjectV8Internal::idAttributeSetter(v8Value, info);
3307 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3307 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 10 matching lines...) Expand all
3318 { 3318 {
3319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3320 TestObjectV8Internal::nameAttributeGetter(info); 3320 TestObjectV8Internal::nameAttributeGetter(info);
3321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3322 } 3322 }
3323 3323
3324 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 3324 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info)
3325 { 3325 {
3326 v8::Handle<v8::Object> holder = info.Holder(); 3326 v8::Handle<v8::Object> holder = info.Holder();
3327 TestObject* impl = V8TestObject::toNative(holder); 3327 TestObject* impl = V8TestObject::toNative(holder);
3328 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3328 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3329 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3329 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3330 impl->setAttribute(HTMLNames::nameAttr, cppValue); 3330 impl->setAttribute(HTMLNames::nameAttr, cppValue);
3331 } 3331 }
3332 3332
3333 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 3333 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info)
3334 { 3334 {
3335 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3335 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3336 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3336 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3337 TestObjectV8Internal::nameAttributeSetter(v8Value, info); 3337 TestObjectV8Internal::nameAttributeSetter(v8Value, info);
3338 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3338 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 10 matching lines...) Expand all
3349 { 3349 {
3350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3351 TestObjectV8Internal::classAttributeGetter(info); 3351 TestObjectV8Internal::classAttributeGetter(info);
3352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3353 } 3353 }
3354 3354
3355 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert yCallbackInfo<void>& info) 3355 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert yCallbackInfo<void>& info)
3356 { 3356 {
3357 v8::Handle<v8::Object> holder = info.Holder(); 3357 v8::Handle<v8::Object> holder = info.Holder();
3358 TestObject* impl = V8TestObject::toNative(holder); 3358 TestObject* impl = V8TestObject::toNative(holder);
3359 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3359 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3360 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3360 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3361 impl->setAttribute(HTMLNames::classAttr, cppValue); 3361 impl->setAttribute(HTMLNames::classAttr, cppValue);
3362 } 3362 }
3363 3363
3364 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 3364 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
3365 { 3365 {
3366 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3366 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3367 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3367 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3368 TestObjectV8Internal::classAttributeSetter(v8Value, info); 3368 TestObjectV8Internal::classAttributeSetter(v8Value, info);
3369 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3369 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 10 matching lines...) Expand all
3380 { 3380 {
3381 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3381 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3382 TestObjectV8Internal::reflectedIdAttributeGetter(info); 3382 TestObjectV8Internal::reflectedIdAttributeGetter(info);
3383 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3383 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3384 } 3384 }
3385 3385
3386 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info) 3386 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info)
3387 { 3387 {
3388 v8::Handle<v8::Object> holder = info.Holder(); 3388 v8::Handle<v8::Object> holder = info.Holder();
3389 TestObject* impl = V8TestObject::toNative(holder); 3389 TestObject* impl = V8TestObject::toNative(holder);
3390 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3390 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3391 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3391 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3392 impl->setAttribute(HTMLNames::idAttr, cppValue); 3392 impl->setAttribute(HTMLNames::idAttr, cppValue);
3393 } 3393 }
3394 3394
3395 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3395 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3396 { 3396 {
3397 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3397 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3398 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3398 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3399 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); 3399 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info);
3400 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3400 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 10 matching lines...) Expand all
3411 { 3411 {
3412 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3412 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3413 TestObjectV8Internal::reflectedNameAttributeGetter(info); 3413 TestObjectV8Internal::reflectedNameAttributeGetter(info);
3414 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3414 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3415 } 3415 }
3416 3416
3417 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 3417 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
3418 { 3418 {
3419 v8::Handle<v8::Object> holder = info.Holder(); 3419 v8::Handle<v8::Object> holder = info.Holder();
3420 TestObject* impl = V8TestObject::toNative(holder); 3420 TestObject* impl = V8TestObject::toNative(holder);
3421 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3421 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3422 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3422 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3423 impl->setAttribute(HTMLNames::nameAttr, cppValue); 3423 impl->setAttribute(HTMLNames::nameAttr, cppValue);
3424 } 3424 }
3425 3425
3426 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3426 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3427 { 3427 {
3428 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3428 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3429 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3429 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3430 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); 3430 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info);
3431 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3431 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 10 matching lines...) Expand all
3442 { 3442 {
3443 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3443 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3444 TestObjectV8Internal::reflectedClassAttributeGetter(info); 3444 TestObjectV8Internal::reflectedClassAttributeGetter(info);
3445 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3445 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3446 } 3446 }
3447 3447
3448 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 3448 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
3449 { 3449 {
3450 v8::Handle<v8::Object> holder = info.Holder(); 3450 v8::Handle<v8::Object> holder = info.Holder();
3451 TestObject* impl = V8TestObject::toNative(holder); 3451 TestObject* impl = V8TestObject::toNative(holder);
3452 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3452 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3453 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3453 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3454 impl->setAttribute(HTMLNames::classAttr, cppValue); 3454 impl->setAttribute(HTMLNames::classAttr, cppValue);
3455 } 3455 }
3456 3456
3457 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3457 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3458 { 3458 {
3459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3460 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3460 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3461 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); 3461 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info);
3462 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3462 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 18 matching lines...) Expand all
3481 { 3481 {
3482 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3482 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3483 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); 3483 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info);
3484 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3484 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3485 } 3485 }
3486 3486
3487 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 3487 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
3488 { 3488 {
3489 v8::Handle<v8::Object> holder = info.Holder(); 3489 v8::Handle<v8::Object> holder = info.Holder();
3490 TestObject* impl = V8TestObject::toNative(holder); 3490 TestObject* impl = V8TestObject::toNative(holder);
3491 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3491 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3492 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3492 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3493 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); 3493 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue);
3494 } 3494 }
3495 3495
3496 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3496 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3497 { 3497 {
3498 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3498 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3499 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3499 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3500 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info ); 3500 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info );
3501 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3501 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 22 matching lines...) Expand all
3524 { 3524 {
3525 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3525 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3526 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); 3526 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info);
3527 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3527 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3528 } 3528 }
3529 3529
3530 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3530 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3531 { 3531 {
3532 v8::Handle<v8::Object> holder = info.Holder(); 3532 v8::Handle<v8::Object> holder = info.Holder();
3533 TestObject* impl = V8TestObject::toNative(holder); 3533 TestObject* impl = V8TestObject::toNative(holder);
3534 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3534 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3535 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3535 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3536 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); 3536 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue);
3537 } 3537 }
3538 3538
3539 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3539 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3540 { 3540 {
3541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3542 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3542 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3543 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); 3543 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info);
3544 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3544 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 20 matching lines...) Expand all
3565 { 3565 {
3566 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3566 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3567 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); 3567 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info);
3568 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3568 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3569 } 3569 }
3570 3570
3571 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 3571 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
3572 { 3572 {
3573 v8::Handle<v8::Object> holder = info.Holder(); 3573 v8::Handle<v8::Object> holder = info.Holder();
3574 TestObject* impl = V8TestObject::toNative(holder); 3574 TestObject* impl = V8TestObject::toNative(holder);
3575 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3575 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3576 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3576 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3577 impl->setAttribute(HTMLNames::otherAttr, cppValue); 3577 impl->setAttribute(HTMLNames::otherAttr, cppValue);
3578 } 3578 }
3579 3579
3580 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3580 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3581 { 3581 {
3582 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3582 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3583 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3583 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3584 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in fo); 3584 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in fo);
3585 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3585 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 20 matching lines...) Expand all
3606 { 3606 {
3607 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3607 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3608 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info ); 3608 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info );
3609 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3609 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3610 } 3610 }
3611 3611
3612 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 3612 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
3613 { 3613 {
3614 v8::Handle<v8::Object> holder = info.Holder(); 3614 v8::Handle<v8::Object> holder = info.Holder();
3615 TestObject* impl = V8TestObject::toNative(holder); 3615 TestObject* impl = V8TestObject::toNative(holder);
3616 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3616 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3617 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3617 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3618 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue); 3618 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue);
3619 } 3619 }
3620 3620
3621 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3621 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3622 { 3622 {
3623 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3623 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3624 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3624 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3625 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va lue, info); 3625 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va lue, info);
3626 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3626 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 22 matching lines...) Expand all
3649 { 3649 {
3650 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3650 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3651 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info); 3651 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info);
3652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3653 } 3653 }
3654 3654
3655 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3655 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3656 { 3656 {
3657 v8::Handle<v8::Object> holder = info.Holder(); 3657 v8::Handle<v8::Object> holder = info.Holder();
3658 TestObject* impl = V8TestObject::toNative(holder); 3658 TestObject* impl = V8TestObject::toNative(holder);
3659 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3659 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3660 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3660 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3661 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue); 3661 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue);
3662 } 3662 }
3663 3663
3664 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info) 3664 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info)
3665 { 3665 {
3666 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3666 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3667 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3667 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3668 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(v8Value, info); 3668 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(v8Value, info);
3669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
3753 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3753 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3754 } 3754 }
3755 3755
3756 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 3756 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
3757 { 3757 {
3758 v8::Handle<v8::Object> holder = info.Holder(); 3758 v8::Handle<v8::Object> holder = info.Holder();
3759 TestObject* proxyImpl = V8TestObject::toNative(holder); 3759 TestObject* proxyImpl = V8TestObject::toNative(holder);
3760 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceable()); 3760 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceable());
3761 if (!impl) 3761 if (!impl)
3762 return; 3762 return;
3763 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3763 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3764 impl->setHref(cppValue); 3764 impl->setHref(cppValue);
3765 } 3765 }
3766 3766
3767 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3767 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3768 { 3768 {
3769 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3769 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3770 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info); 3770 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info);
3771 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3771 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3772 } 3772 }
3773 3773
3774 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 3774 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
3775 { 3775 {
3776 v8::Handle<v8::Object> holder = info.Holder(); 3776 v8::Handle<v8::Object> holder = info.Holder();
3777 TestObject* impl = V8TestObject::toNative(holder); 3777 TestObject* impl = V8TestObject::toNative(holder);
3778 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); 3778 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute());
3779 } 3779 }
3780 3780
3781 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 3781 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
3782 { 3782 {
3783 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3783 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3784 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); 3784 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info);
3785 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3785 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3786 } 3786 }
3787 3787
3788 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 3788 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
3789 { 3789 {
3790 v8::Handle<v8::Object> holder = info.Holder(); 3790 v8::Handle<v8::Object> holder = info.Holder();
3791 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObject", holder, info.GetIsolate()); 3791 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObject", holder, info.GetIsolate());
3792 TestObject* impl = V8TestObject::toNative(holder); 3792 TestObject* impl = V8TestObject::toNative(holder);
3793 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 3793 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3794 impl->setRuntimeEnabledLongAttribute(cppValue); 3794 impl->setRuntimeEnabledLongAttribute(cppValue);
3795 } 3795 }
3796 3796
3797 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3797 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3798 { 3798 {
3799 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3799 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3800 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in fo); 3800 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in fo);
3801 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3801 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3802 } 3802 }
3803 3803
3804 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 3804 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
3805 { 3805 {
3806 v8::Handle<v8::Object> holder = info.Holder(); 3806 v8::Handle<v8::Object> holder = info.Holder();
3807 TestObject* impl = V8TestObject::toNative(holder); 3807 TestObject* impl = V8TestObject::toNative(holder);
3808 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute ()); 3808 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute ());
3809 } 3809 }
3810 3810
3811 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3811 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3812 { 3812 {
3813 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3813 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3814 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG etter(info); 3814 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG etter(info);
3815 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3815 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3816 } 3816 }
3817 3817
3818 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3818 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3819 { 3819 {
3820 v8::Handle<v8::Object> holder = info.Holder(); 3820 v8::Handle<v8::Object> holder = info.Holder();
3821 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 3821 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
3822 TestObject* impl = V8TestObject::toNative(holder); 3822 TestObject* impl = V8TestObject::toNative(holder);
3823 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 3823 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3824 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); 3824 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue);
3825 } 3825 }
3826 3826
3827 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 3827 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
3828 { 3828 {
3829 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3829 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3830 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS etter(v8Value, info); 3830 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS etter(v8Value, info);
3831 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3831 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3832 } 3832 }
3833 3833
(...skipping 14 matching lines...) Expand all
3848 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3848 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3849 } 3849 }
3850 #endif // ENABLE(CONDITION) 3850 #endif // ENABLE(CONDITION)
3851 3851
3852 #if ENABLE(CONDITION) 3852 #if ENABLE(CONDITION)
3853 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3853 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3854 { 3854 {
3855 v8::Handle<v8::Object> holder = info.Holder(); 3855 v8::Handle<v8::Object> holder = info.Holder();
3856 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 3856 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
3857 TestObject* impl = V8TestObject::toNative(holder); 3857 TestObject* impl = V8TestObject::toNative(holder);
3858 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 3858 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3859 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); 3859 impl->setConditionalRuntimeEnabledLongAttribute(cppValue);
3860 } 3860 }
3861 #endif // ENABLE(CONDITION) 3861 #endif // ENABLE(CONDITION)
3862 3862
3863 #if ENABLE(CONDITION) 3863 #if ENABLE(CONDITION)
3864 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info) 3864 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
3865 { 3865 {
3866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3867 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter( v8Value, info); 3867 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter( v8Value, info);
3868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 11 matching lines...) Expand all
3880 { 3880 {
3881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3882 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeGetter(info); 3882 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeGetter(info);
3883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3884 } 3884 }
3885 3885
3886 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3886 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3887 { 3887 {
3888 v8::Handle<v8::Object> holder = info.Holder(); 3888 v8::Handle<v8::Object> holder = info.Holder();
3889 TestObject* impl = V8TestObject::toNative(holder); 3889 TestObject* impl = V8TestObject::toNative(holder);
3890 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3890 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3891 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); 3891 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
3892 } 3892 }
3893 3893
3894 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper tyCallbackInfo<void>& info) 3894 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper tyCallbackInfo<void>& info)
3895 { 3895 {
3896 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3896 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3897 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeSetter(v8Value, info); 3897 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeSetter(v8Value, info);
3898 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3898 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3899 } 3899 }
3900 3900
3901 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 3901 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info)
3902 { 3902 {
3903 v8::Handle<v8::Object> holder = info.Holder(); 3903 v8::Handle<v8::Object> holder = info.Holder();
3904 TestObject* impl = V8TestObject::toNative(holder); 3904 TestObject* impl = V8TestObject::toNative(holder);
3905 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri bute(), info.GetIsolate()); 3905 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri bute(), info.GetIsolate());
3906 } 3906 }
3907 3907
3908 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3908 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3909 { 3909 {
3910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3911 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Getter(info); 3911 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Getter(info);
3912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3913 } 3913 }
3914 3914
3915 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3915 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3916 { 3916 {
3917 v8::Handle<v8::Object> holder = info.Holder(); 3917 v8::Handle<v8::Object> holder = info.Holder();
3918 TestObject* impl = V8TestObject::toNative(holder); 3918 TestObject* impl = V8TestObject::toNative(holder);
3919 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 3919 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3920 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 3920 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
3921 impl->setSetterCallWithExecutionContextStringAttribute(scriptContext, cppVal ue); 3921 impl->setSetterCallWithExecutionContextStringAttribute(scriptContext, cppVal ue);
3922 } 3922 }
3923 3923
3924 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback (v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback Info<void>& info) 3924 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback (v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback Info<void>& info)
3925 { 3925 {
3926 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3926 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3927 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Setter(v8Value, info); 3927 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Setter(v8Value, info);
3928 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3928 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3929 } 3929 }
3930 3930
3931 static void strictTypeCheckingFloatAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 3931 static void strictTypeCheckingFloatAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
3932 { 3932 {
3933 v8::Handle<v8::Object> holder = info.Holder(); 3933 v8::Handle<v8::Object> holder = info.Holder();
3934 TestObject* impl = V8TestObject::toNative(holder); 3934 TestObject* impl = V8TestObject::toNative(holder);
3935 v8SetReturnValue(info, impl->strictTypeCheckingFloatAttribute()); 3935 v8SetReturnValue(info, impl->strictTypeCheckingFloatAttribute());
3936 } 3936 }
3937 3937
3938 static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3938 static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3939 { 3939 {
3940 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3940 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3941 TestObjectV8Internal::strictTypeCheckingFloatAttributeAttributeGetter(info); 3941 TestObjectV8Internal::strictTypeCheckingFloatAttributeAttributeGetter(info);
3942 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3942 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3943 } 3943 }
3944 3944
3945 static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3945 static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3946 { 3946 {
3947 v8::Handle<v8::Object> holder = info.Holder(); 3947 v8::Handle<v8::Object> holder = info.Holder();
3948 TestObject* impl = V8TestObject::toNative(holder); 3948 TestObject* impl = V8TestObject::toNative(holder);
3949 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue())) ; 3949 TONATIVE_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue()));
3950 impl->setStrictTypeCheckingFloatAttribute(cppValue); 3950 impl->setStrictTypeCheckingFloatAttribute(cppValue);
3951 } 3951 }
3952 3952
3953 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 3953 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
3954 { 3954 {
3955 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3955 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3956 TestObjectV8Internal::strictTypeCheckingFloatAttributeAttributeSetter(v8Valu e, info); 3956 TestObjectV8Internal::strictTypeCheckingFloatAttributeAttributeSetter(v8Valu e, info);
3957 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3957 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3958 } 3958 }
3959 3959
(...skipping 14 matching lines...) Expand all
3974 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3974 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3975 { 3975 {
3976 v8::Handle<v8::Object> holder = info.Holder(); 3976 v8::Handle<v8::Object> holder = info.Holder();
3977 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec kingTestInterfaceAttribute", "TestObject", holder, info.GetIsolate()); 3977 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec kingTestInterfaceAttribute", "TestObject", holder, info.GetIsolate());
3978 if (!V8TestInterface::hasInstance(v8Value, info.GetIsolate())) { 3978 if (!V8TestInterface::hasInstance(v8Value, info.GetIsolate())) {
3979 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 3979 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
3980 exceptionState.throwIfNeeded(); 3980 exceptionState.throwIfNeeded();
3981 return; 3981 return;
3982 } 3982 }
3983 TestObject* impl = V8TestObject::toNative(holder); 3983 TestObject* impl = V8TestObject::toNative(holder);
3984 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN ativeWithTypeCheck(info.GetIsolate(), v8Value)); 3984 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat iveWithTypeCheck(info.GetIsolate(), v8Value));
3985 impl->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue)); 3985 impl->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue));
3986 } 3986 }
3987 3987
3988 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info) 3988 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info)
3989 { 3989 {
3990 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3990 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3991 TestObjectV8Internal::strictTypeCheckingTestInterfaceAttributeAttributeSette r(v8Value, info); 3991 TestObjectV8Internal::strictTypeCheckingTestInterfaceAttributeAttributeSette r(v8Value, info);
3992 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3992 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3993 } 3993 }
3994 3994
(...skipping 19 matching lines...) Expand all
4014 static void strictTypeCheckingNullableTestInterfaceAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4014 static void strictTypeCheckingNullableTestInterfaceAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4015 { 4015 {
4016 v8::Handle<v8::Object> holder = info.Holder(); 4016 v8::Handle<v8::Object> holder = info.Holder();
4017 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec kingNullableTestInterfaceAttribute", "TestObject", holder, info.GetIsolate()); 4017 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec kingNullableTestInterfaceAttribute", "TestObject", holder, info.GetIsolate());
4018 if (!isUndefinedOrNull(v8Value) && !V8TestInterface::hasInstance(v8Value, in fo.GetIsolate())) { 4018 if (!isUndefinedOrNull(v8Value) && !V8TestInterface::hasInstance(v8Value, in fo.GetIsolate())) {
4019 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 4019 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
4020 exceptionState.throwIfNeeded(); 4020 exceptionState.throwIfNeeded();
4021 return; 4021 return;
4022 } 4022 }
4023 TestObject* impl = V8TestObject::toNative(holder); 4023 TestObject* impl = V8TestObject::toNative(holder);
4024 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN ativeWithTypeCheck(info.GetIsolate(), v8Value)); 4024 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat iveWithTypeCheck(info.GetIsolate(), v8Value));
4025 impl->setStrictTypeCheckingNullableTestInterfaceAttribute(WTF::getPtr(cppVal ue)); 4025 impl->setStrictTypeCheckingNullableTestInterfaceAttribute(WTF::getPtr(cppVal ue));
4026 } 4026 }
4027 4027
4028 static void strictTypeCheckingNullableTestInterfaceAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 4028 static void strictTypeCheckingNullableTestInterfaceAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
4029 { 4029 {
4030 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4030 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4031 TestObjectV8Internal::strictTypeCheckingNullableTestInterfaceAttributeAttrib uteSetter(v8Value, info); 4031 TestObjectV8Internal::strictTypeCheckingNullableTestInterfaceAttributeAttrib uteSetter(v8Value, info);
4032 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4032 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4033 } 4033 }
4034 4034
4035 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info) 4035 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info)
4036 { 4036 {
4037 v8::Handle<v8::Object> holder = info.Holder(); 4037 v8::Handle<v8::Object> holder = info.Holder();
4038 TestObject* impl = V8TestObject::toNative(holder); 4038 TestObject* impl = V8TestObject::toNative(holder);
4039 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i nfo.GetIsolate()); 4039 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i nfo.GetIsolate());
4040 } 4040 }
4041 4041
4042 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4042 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4043 { 4043 {
4044 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4044 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4045 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in fo); 4045 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in fo);
4046 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4046 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4047 } 4047 }
4048 4048
4049 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 4049 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
4050 { 4050 {
4051 v8::Handle<v8::Object> holder = info.Holder(); 4051 v8::Handle<v8::Object> holder = info.Holder();
4052 TestObject* impl = V8TestObject::toNative(holder); 4052 TestObject* impl = V8TestObject::toNative(holder);
4053 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, v8Value); 4053 TOSTRING_VOID(V8StringResource<WithNullCheck>, cppValue, v8Value);
4054 impl->setTreatNullAsNullStringStringAttribute(cppValue); 4054 impl->setTreatNullAsNullStringStringAttribute(cppValue);
4055 } 4055 }
4056 4056
4057 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 4057 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
4058 { 4058 {
4059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4060 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8 Value, info); 4060 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8 Value, info);
4061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4062 } 4062 }
4063 4063
4064 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 4064 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
4065 { 4065 {
4066 v8::Handle<v8::Object> holder = info.Holder(); 4066 v8::Handle<v8::Object> holder = info.Holder();
4067 TestObject* impl = V8TestObject::toNative(holder); 4067 TestObject* impl = V8TestObject::toNative(holder);
4068 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Attribute(), info.GetIsolate()); 4068 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Attribute(), info.GetIsolate());
4069 } 4069 }
4070 4070
4071 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4071 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4072 { 4072 {
4073 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4073 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4074 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG etter(info); 4074 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG etter(info);
4075 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4075 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4076 } 4076 }
4077 4077
4078 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4078 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4079 { 4079 {
4080 v8::Handle<v8::Object> holder = info.Holder(); 4080 v8::Handle<v8::Object> holder = info.Holder();
4081 TestObject* impl = V8TestObject::toNative(holder); 4081 TestObject* impl = V8TestObject::toNative(holder);
4082 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 4082 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4083 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); 4083 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue);
4084 } 4084 }
4085 4085
4086 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 4086 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
4087 { 4087 {
4088 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4088 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4089 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS etter(v8Value, info); 4089 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS etter(v8Value, info);
4090 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4090 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4091 } 4091 }
4092 4092
4093 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 4093 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info)
4094 { 4094 {
4095 v8::Handle<v8::Object> holder = info.Holder(); 4095 v8::Handle<v8::Object> holder = info.Holder();
4096 TestObject* impl = V8TestObject::toNative(holder); 4096 TestObject* impl = V8TestObject::toNative(holder);
4097 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringAttribute(), info.GetIsolate()); 4097 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringAttribute(), info.GetIsolate());
4098 } 4098 }
4099 4099
4100 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4100 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4101 { 4101 {
4102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4103 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteGetter(info); 4103 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteGetter(info);
4104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4105 } 4105 }
4106 4106
4107 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4107 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4108 { 4108 {
4109 v8::Handle<v8::Object> holder = info.Holder(); 4109 v8::Handle<v8::Object> holder = info.Holder();
4110 TestObject* impl = V8TestObject::toNative(holder); 4110 TestObject* impl = V8TestObject::toNative(holder);
4111 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 4111 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4112 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); 4112 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue);
4113 } 4113 }
4114 4114
4115 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info) 4115 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info)
4116 { 4116 {
4117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4118 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteSetter(v8Value, info); 4118 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteSetter(v8Value, info);
4119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4120 } 4120 }
4121 4121
4122 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 4122 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
4123 { 4123 {
4124 v8::Handle<v8::Object> holder = info.Holder(); 4124 v8::Handle<v8::Object> holder = info.Holder();
4125 TestObject* impl = V8TestObject::toNative(holder); 4125 TestObject* impl = V8TestObject::toNative(holder);
4126 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri buteAttr), info.GetIsolate()); 4126 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri buteAttr), info.GetIsolate());
4127 } 4127 }
4128 4128
4129 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 4129 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info)
4130 { 4130 {
4131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4132 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); 4132 TestObjectV8Internal::urlStringAttributeAttributeGetter(info);
4133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4134 } 4134 }
4135 4135
4136 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 4136 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
4137 { 4137 {
4138 v8::Handle<v8::Object> holder = info.Holder(); 4138 v8::Handle<v8::Object> holder = info.Holder();
4139 TestObject* impl = V8TestObject::toNative(holder); 4139 TestObject* impl = V8TestObject::toNative(holder);
4140 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 4140 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4141 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4141 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
4142 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); 4142 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue);
4143 } 4143 }
4144 4144
4145 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4145 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4146 { 4146 {
4147 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4147 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4148 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4148 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
4149 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); 4149 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info);
4150 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4150 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 10 matching lines...) Expand all
4161 { 4161 {
4162 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4162 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4163 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); 4163 TestObjectV8Internal::urlStringAttributeAttributeGetter(info);
4164 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4164 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4165 } 4165 }
4166 4166
4167 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 4167 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
4168 { 4168 {
4169 v8::Handle<v8::Object> holder = info.Holder(); 4169 v8::Handle<v8::Object> holder = info.Holder();
4170 TestObject* impl = V8TestObject::toNative(holder); 4170 TestObject* impl = V8TestObject::toNative(holder);
4171 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 4171 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4172 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4172 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
4173 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); 4173 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue);
4174 } 4174 }
4175 4175
4176 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4176 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4177 { 4177 {
4178 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4178 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4179 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4179 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
4180 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); 4180 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info);
4181 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4181 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 13 matching lines...) Expand all
4195 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4195 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4196 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); 4196 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info);
4197 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4197 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4198 } 4198 }
4199 4199
4200 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info) 4200 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info)
4201 { 4201 {
4202 v8::Handle<v8::Object> holder = info.Holder(); 4202 v8::Handle<v8::Object> holder = info.Holder();
4203 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon gAttribute", "TestObject", holder, info.GetIsolate()); 4203 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon gAttribute", "TestObject", holder, info.GetIsolate());
4204 TestObject* impl = V8TestObject::toNative(holder); 4204 TestObject* impl = V8TestObject::toNative(holder);
4205 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState); 4205 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
4206 impl->setUnforgeableLongAttribute(cppValue); 4206 impl->setUnforgeableLongAttribute(cppValue);
4207 } 4207 }
4208 4208
4209 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4209 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4210 { 4210 {
4211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4212 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info) ; 4212 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info) ;
4213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4214 } 4214 }
4215 4215
4216 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 4216 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
4217 { 4217 {
4218 v8::Handle<v8::Object> holder = info.Holder(); 4218 v8::Handle<v8::Object> holder = info.Holder();
4219 TestObject* impl = V8TestObject::toNative(holder); 4219 TestObject* impl = V8TestObject::toNative(holder);
4220 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl ); 4220 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl );
4221 } 4221 }
4222 4222
4223 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4223 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4224 { 4224 {
4225 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4225 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4226 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info); 4226 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info);
4227 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4227 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4228 } 4228 }
4229 4229
4230 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4230 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4231 { 4231 {
4232 v8::Handle<v8::Object> holder = info.Holder(); 4232 v8::Handle<v8::Object> holder = info.Holder();
4233 TestObject* impl = V8TestObject::toNative(holder); 4233 TestObject* impl = V8TestObject::toNative(holder);
4234 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN ativeWithTypeCheck(info.GetIsolate(), v8Value)); 4234 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat iveWithTypeCheck(info.GetIsolate(), v8Value));
4235 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); 4235 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue));
4236 } 4236 }
4237 4237
4238 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4238 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4239 { 4239 {
4240 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4240 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4241 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info); 4241 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info);
4242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4243 } 4243 }
4244 4244
4245 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info) 4245 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info)
4246 { 4246 {
4247 v8::Handle<v8::Object> holder = info.Holder(); 4247 v8::Handle<v8::Object> holder = info.Holder();
4248 TestObject* impl = V8TestObject::toNative(holder); 4248 TestObject* impl = V8TestObject::toNative(holder);
4249 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedAt tribute()), impl); 4249 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedAt tribute()), impl);
4250 } 4250 }
4251 4251
4252 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4252 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4253 { 4253 {
4254 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4254 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4255 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeGetter( info); 4255 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeGetter( info);
4256 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4256 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4257 } 4257 }
4258 4258
4259 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4259 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4260 { 4260 {
4261 v8::Handle<v8::Object> holder = info.Holder(); 4261 v8::Handle<v8::Object> holder = info.Holder();
4262 TestObject* impl = V8TestObject::toNative(holder); 4262 TestObject* impl = V8TestObject::toNative(holder);
4263 V8TRYCATCH_VOID(TestInterfaceGarbageCollected*, cppValue, V8TestInterfaceGar bageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); 4263 TONATIVE_VOID(TestInterfaceGarbageCollected*, cppValue, V8TestInterfaceGarba geCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value));
4264 impl->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue)); 4264 impl->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue));
4265 } 4265 }
4266 4266
4267 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info) 4267 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
4268 { 4268 {
4269 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4269 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4270 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter( v8Value, info); 4270 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter( v8Value, info);
4271 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4271 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4272 } 4272 }
4273 4273
(...skipping 14 matching lines...) Expand all
4288 { 4288 {
4289 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4289 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4290 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG etter(info); 4290 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG etter(info);
4291 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4291 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4292 } 4292 }
4293 4293
4294 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4294 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4295 { 4295 {
4296 v8::Handle<v8::Object> holder = info.Holder(); 4296 v8::Handle<v8::Object> holder = info.Holder();
4297 TestObject* impl = V8TestObject::toNative(holder); 4297 TestObject* impl = V8TestObject::toNative(holder);
4298 V8TRYCATCH_VOID(TestInterfaceGarbageCollected*, cppValue, V8TestInterfaceGar bageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); 4298 TONATIVE_VOID(TestInterfaceGarbageCollected*, cppValue, V8TestInterfaceGarba geCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value));
4299 impl->setTestInterfaceGarbageCollectedOrNullAttribute(WTF::getPtr(cppValue)) ; 4299 impl->setTestInterfaceGarbageCollectedOrNullAttribute(WTF::getPtr(cppValue)) ;
4300 } 4300 }
4301 4301
4302 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 4302 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
4303 { 4303 {
4304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4305 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeS etter(v8Value, info); 4305 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeS etter(v8Value, info);
4306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4307 } 4307 }
4308 4308
4309 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 4309 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
4310 { 4310 {
4311 v8::Handle<v8::Object> holder = info.Holder(); 4311 v8::Handle<v8::Object> holder = info.Holder();
4312 TestObject* impl = V8TestObject::toNative(holder); 4312 TestObject* impl = V8TestObject::toNative(holder);
4313 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedAttribute()), impl); 4313 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedAttribute()), impl);
4314 } 4314 }
4315 4315
4316 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4316 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4317 { 4317 {
4318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4319 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG etter(info); 4319 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG etter(info);
4320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4321 } 4321 }
4322 4322
4323 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4323 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4324 { 4324 {
4325 v8::Handle<v8::Object> holder = info.Holder(); 4325 v8::Handle<v8::Object> holder = info.Holder();
4326 TestObject* impl = V8TestObject::toNative(holder); 4326 TestObject* impl = V8TestObject::toNative(holder);
4327 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); 4327 TONATIVE_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterfac eWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value));
4328 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)) ; 4328 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)) ;
4329 } 4329 }
4330 4330
4331 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 4331 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
4332 { 4332 {
4333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4334 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS etter(v8Value, info); 4334 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS etter(v8Value, info);
4335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4336 } 4336 }
4337 4337
(...skipping 14 matching lines...) Expand all
4352 { 4352 {
4353 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4353 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4354 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteGetter(info); 4354 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteGetter(info);
4355 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4355 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4356 } 4356 }
4357 4357
4358 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4358 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4359 { 4359 {
4360 v8::Handle<v8::Object> holder = info.Holder(); 4360 v8::Handle<v8::Object> holder = info.Holder();
4361 TestObject* impl = V8TestObject::toNative(holder); 4361 TestObject* impl = V8TestObject::toNative(holder);
4362 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value)); 4362 TONATIVE_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterfac eWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value));
4363 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV alue)); 4363 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV alue));
4364 } 4364 }
4365 4365
4366 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 4366 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
4367 { 4367 {
4368 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4368 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4369 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteSetter(v8Value, info); 4369 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteSetter(v8Value, info);
4370 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4370 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4371 } 4371 }
4372 4372
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
4613 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4613 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4614 } 4614 }
4615 4615
4616 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4616 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4617 { 4617 {
4618 if (UNLIKELY(info.Length() < 1)) { 4618 if (UNLIKELY(info.Length() < 1)) {
4619 throwArityTypeErrorForMethod("voidMethodDateArg", "TestObject", 1, info. Length(), info.GetIsolate()); 4619 throwArityTypeErrorForMethod("voidMethodDateArg", "TestObject", 1, info. Length(), info.GetIsolate());
4620 return; 4620 return;
4621 } 4621 }
4622 TestObject* impl = V8TestObject::toNative(info.Holder()); 4622 TestObject* impl = V8TestObject::toNative(info.Holder());
4623 V8TRYCATCH_VOID(double, dateArg, toCoreDate(info[0])); 4623 TONATIVE_VOID(double, dateArg, toCoreDate(info[0]));
4624 impl->voidMethodDateArg(dateArg); 4624 impl->voidMethodDateArg(dateArg);
4625 } 4625 }
4626 4626
4627 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4627 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4628 { 4628 {
4629 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4629 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4630 TestObjectV8Internal::voidMethodDateArgMethod(info); 4630 TestObjectV8Internal::voidMethodDateArgMethod(info);
4631 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4631 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4632 } 4632 }
4633 4633
4634 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4634 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4635 { 4635 {
4636 if (UNLIKELY(info.Length() < 1)) { 4636 if (UNLIKELY(info.Length() < 1)) {
4637 throwArityTypeErrorForMethod("voidMethodStringArg", "TestObject", 1, inf o.Length(), info.GetIsolate()); 4637 throwArityTypeErrorForMethod("voidMethodStringArg", "TestObject", 1, inf o.Length(), info.GetIsolate());
4638 return; 4638 return;
4639 } 4639 }
4640 TestObject* impl = V8TestObject::toNative(info.Holder()); 4640 TestObject* impl = V8TestObject::toNative(info.Holder());
4641 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ; 4641 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]);
4642 impl->voidMethodStringArg(stringArg); 4642 impl->voidMethodStringArg(stringArg);
4643 } 4643 }
4644 4644
4645 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 4645 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
4646 { 4646 {
4647 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4647 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4648 TestObjectV8Internal::voidMethodStringArgMethod(info); 4648 TestObjectV8Internal::voidMethodStringArgMethod(info);
4649 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4649 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4650 } 4650 }
4651 4651
4652 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 4652 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
4653 { 4653 {
4654 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); 4654 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate());
4655 if (UNLIKELY(info.Length() < 1)) { 4655 if (UNLIKELY(info.Length() < 1)) {
4656 throwArityTypeError(exceptionState, 1, info.Length()); 4656 throwArityTypeError(exceptionState, 1, info.Length());
4657 return; 4657 return;
4658 } 4658 }
4659 TestObject* impl = V8TestObject::toNative(info.Holder()); 4659 TestObject* impl = V8TestObject::toNative(info.Holder());
4660 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, domTimeStampArg, toUInt64(info [0], exceptionState), exceptionState); 4660 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, domTimeStampArg, toUInt64(i nfo[0], exceptionState), exceptionState);
4661 impl->voidMethodDOMTimeStampArg(domTimeStampArg); 4661 impl->voidMethodDOMTimeStampArg(domTimeStampArg);
4662 } 4662 }
4663 4663
4664 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 4664 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
4665 { 4665 {
4666 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4666 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4667 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); 4667 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info);
4668 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4668 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4669 } 4669 }
4670 4670
4671 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 4671 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
4672 { 4672 {
4673 if (UNLIKELY(info.Length() < 1)) { 4673 if (UNLIKELY(info.Length() < 1)) {
4674 throwArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject", 1, in fo.Length(), info.GetIsolate()); 4674 throwArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject", 1, in fo.Length(), info.GetIsolate());
4675 return; 4675 return;
4676 } 4676 }
4677 TestObject* impl = V8TestObject::toNative(info.Holder()); 4677 TestObject* impl = V8TestObject::toNative(info.Holder());
4678 V8TRYCATCH_VOID(bool, booleanArg, info[0]->BooleanValue()); 4678 TONATIVE_VOID(bool, booleanArg, info[0]->BooleanValue());
4679 impl->voidMethodBooleanArg(booleanArg); 4679 impl->voidMethodBooleanArg(booleanArg);
4680 } 4680 }
4681 4681
4682 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 4682 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
4683 { 4683 {
4684 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4684 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4685 TestObjectV8Internal::voidMethodBooleanArgMethod(info); 4685 TestObjectV8Internal::voidMethodBooleanArgMethod(info);
4686 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4686 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4687 } 4687 }
4688 4688
4689 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4689 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4690 { 4690 {
4691 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate()); 4691 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate());
4692 if (UNLIKELY(info.Length() < 1)) { 4692 if (UNLIKELY(info.Length() < 1)) {
4693 throwArityTypeError(exceptionState, 1, info.Length()); 4693 throwArityTypeError(exceptionState, 1, info.Length());
4694 return; 4694 return;
4695 } 4695 }
4696 TestObject* impl = V8TestObject::toNative(info.Holder()); 4696 TestObject* impl = V8TestObject::toNative(info.Holder());
4697 V8TRYCATCH_EXCEPTION_VOID(int, byteArg, toInt8(info[0], exceptionState), exc eptionState); 4697 TONATIVE_VOID_EXCEPTIONSTATE(int, byteArg, toInt8(info[0], exceptionState), exceptionState);
4698 impl->voidMethodByteArg(byteArg); 4698 impl->voidMethodByteArg(byteArg);
4699 } 4699 }
4700 4700
4701 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4701 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4702 { 4702 {
4703 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4703 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4704 TestObjectV8Internal::voidMethodByteArgMethod(info); 4704 TestObjectV8Internal::voidMethodByteArgMethod(info);
4705 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4705 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4706 } 4706 }
4707 4707
4708 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4708 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4709 { 4709 {
4710 if (UNLIKELY(info.Length() < 1)) { 4710 if (UNLIKELY(info.Length() < 1)) {
4711 throwArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject", 1, inf o.Length(), info.GetIsolate()); 4711 throwArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject", 1, inf o.Length(), info.GetIsolate());
4712 return; 4712 return;
4713 } 4713 }
4714 TestObject* impl = V8TestObject::toNative(info.Holder()); 4714 TestObject* impl = V8TestObject::toNative(info.Holder());
4715 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue( ))); 4715 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue()) );
4716 impl->voidMethodDoubleArg(doubleArg); 4716 impl->voidMethodDoubleArg(doubleArg);
4717 } 4717 }
4718 4718
4719 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 4719 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
4720 { 4720 {
4721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4722 TestObjectV8Internal::voidMethodDoubleArgMethod(info); 4722 TestObjectV8Internal::voidMethodDoubleArgMethod(info);
4723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4724 } 4724 }
4725 4725
4726 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4726 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4727 { 4727 {
4728 if (UNLIKELY(info.Length() < 1)) { 4728 if (UNLIKELY(info.Length() < 1)) {
4729 throwArityTypeErrorForMethod("voidMethodFloatArg", "TestObject", 1, info .Length(), info.GetIsolate()); 4729 throwArityTypeErrorForMethod("voidMethodFloatArg", "TestObject", 1, info .Length(), info.GetIsolate());
4730 return; 4730 return;
4731 } 4731 }
4732 TestObject* impl = V8TestObject::toNative(info.Holder()); 4732 TestObject* impl = V8TestObject::toNative(info.Holder());
4733 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())) ; 4733 TONATIVE_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue()));
4734 impl->voidMethodFloatArg(floatArg); 4734 impl->voidMethodFloatArg(floatArg);
4735 } 4735 }
4736 4736
4737 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 4737 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
4738 { 4738 {
4739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4740 TestObjectV8Internal::voidMethodFloatArgMethod(info); 4740 TestObjectV8Internal::voidMethodFloatArgMethod(info);
4741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4742 } 4742 }
4743 4743
4744 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4744 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4745 { 4745 {
4746 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate()); 4746 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate());
4747 if (UNLIKELY(info.Length() < 1)) { 4747 if (UNLIKELY(info.Length() < 1)) {
4748 throwArityTypeError(exceptionState, 1, info.Length()); 4748 throwArityTypeError(exceptionState, 1, info.Length());
4749 return; 4749 return;
4750 } 4750 }
4751 TestObject* impl = V8TestObject::toNative(info.Holder()); 4751 TestObject* impl = V8TestObject::toNative(info.Holder());
4752 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 4752 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
4753 impl->voidMethodLongArg(longArg); 4753 impl->voidMethodLongArg(longArg);
4754 } 4754 }
4755 4755
4756 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4756 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4757 { 4757 {
4758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4759 TestObjectV8Internal::voidMethodLongArgMethod(info); 4759 TestObjectV8Internal::voidMethodLongArgMethod(info);
4760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4761 } 4761 }
4762 4762
4763 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 4763 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
4764 { 4764 {
4765 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 4765 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate());
4766 if (UNLIKELY(info.Length() < 1)) { 4766 if (UNLIKELY(info.Length() < 1)) {
4767 throwArityTypeError(exceptionState, 1, info.Length()); 4767 throwArityTypeError(exceptionState, 1, info.Length());
4768 return; 4768 return;
4769 } 4769 }
4770 TestObject* impl = V8TestObject::toNative(info.Holder()); 4770 TestObject* impl = V8TestObject::toNative(info.Holder());
4771 V8TRYCATCH_EXCEPTION_VOID(long long, longLongArg, toInt64(info[0], exception State), exceptionState); 4771 TONATIVE_VOID_EXCEPTIONSTATE(long long, longLongArg, toInt64(info[0], except ionState), exceptionState);
4772 impl->voidMethodLongLongArg(longLongArg); 4772 impl->voidMethodLongLongArg(longLongArg);
4773 } 4773 }
4774 4774
4775 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 4775 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
4776 { 4776 {
4777 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4777 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4778 TestObjectV8Internal::voidMethodLongLongArgMethod(info); 4778 TestObjectV8Internal::voidMethodLongLongArgMethod(info);
4779 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4779 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4780 } 4780 }
4781 4781
4782 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4782 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4783 { 4783 {
4784 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate()); 4784 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate());
4785 if (UNLIKELY(info.Length() < 1)) { 4785 if (UNLIKELY(info.Length() < 1)) {
4786 throwArityTypeError(exceptionState, 1, info.Length()); 4786 throwArityTypeError(exceptionState, 1, info.Length());
4787 return; 4787 return;
4788 } 4788 }
4789 TestObject* impl = V8TestObject::toNative(info.Holder()); 4789 TestObject* impl = V8TestObject::toNative(info.Holder());
4790 V8TRYCATCH_EXCEPTION_VOID(unsigned, octetArg, toUInt8(info[0], exceptionStat e), exceptionState); 4790 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, octetArg, toUInt8(info[0], exceptionS tate), exceptionState);
4791 impl->voidMethodOctetArg(octetArg); 4791 impl->voidMethodOctetArg(octetArg);
4792 } 4792 }
4793 4793
4794 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 4794 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
4795 { 4795 {
4796 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4796 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4797 TestObjectV8Internal::voidMethodOctetArgMethod(info); 4797 TestObjectV8Internal::voidMethodOctetArgMethod(info);
4798 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4798 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4799 } 4799 }
4800 4800
4801 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4801 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4802 { 4802 {
4803 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate()); 4803 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate());
4804 if (UNLIKELY(info.Length() < 1)) { 4804 if (UNLIKELY(info.Length() < 1)) {
4805 throwArityTypeError(exceptionState, 1, info.Length()); 4805 throwArityTypeError(exceptionState, 1, info.Length());
4806 return; 4806 return;
4807 } 4807 }
4808 TestObject* impl = V8TestObject::toNative(info.Holder()); 4808 TestObject* impl = V8TestObject::toNative(info.Holder());
4809 V8TRYCATCH_EXCEPTION_VOID(int, shortArg, toInt16(info[0], exceptionState), e xceptionState); 4809 TONATIVE_VOID_EXCEPTIONSTATE(int, shortArg, toInt16(info[0], exceptionState) , exceptionState);
4810 impl->voidMethodShortArg(shortArg); 4810 impl->voidMethodShortArg(shortArg);
4811 } 4811 }
4812 4812
4813 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 4813 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
4814 { 4814 {
4815 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4815 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4816 TestObjectV8Internal::voidMethodShortArgMethod(info); 4816 TestObjectV8Internal::voidMethodShortArgMethod(info);
4817 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4817 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4818 } 4818 }
4819 4819
4820 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 4820 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
4821 { 4821 {
4822 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 4822 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
4823 if (UNLIKELY(info.Length() < 1)) { 4823 if (UNLIKELY(info.Length() < 1)) {
4824 throwArityTypeError(exceptionState, 1, info.Length()); 4824 throwArityTypeError(exceptionState, 1, info.Length());
4825 return; 4825 return;
4826 } 4826 }
4827 TestObject* impl = V8TestObject::toNative(info.Holder()); 4827 TestObject* impl = V8TestObject::toNative(info.Holder());
4828 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedLongArg, toUInt32(info[0], excep tionState), exceptionState); 4828 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, unsignedLongArg, toUInt32(info[0], ex ceptionState), exceptionState);
4829 impl->voidMethodUnsignedLongArg(unsignedLongArg); 4829 impl->voidMethodUnsignedLongArg(unsignedLongArg);
4830 } 4830 }
4831 4831
4832 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 4832 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
4833 { 4833 {
4834 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4834 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4835 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); 4835 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info);
4836 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4836 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4837 } 4837 }
4838 4838
4839 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 4839 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
4840 { 4840 {
4841 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 4841 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate());
4842 if (UNLIKELY(info.Length() < 1)) { 4842 if (UNLIKELY(info.Length() < 1)) {
4843 throwArityTypeError(exceptionState, 1, info.Length()); 4843 throwArityTypeError(exceptionState, 1, info.Length());
4844 return; 4844 return;
4845 } 4845 }
4846 TestObject* impl = V8TestObject::toNative(info.Holder()); 4846 TestObject* impl = V8TestObject::toNative(info.Holder());
4847 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, unsignedLongLongArg, toUInt64( info[0], exceptionState), exceptionState); 4847 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, unsignedLongLongArg, toUInt 64(info[0], exceptionState), exceptionState);
4848 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); 4848 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg);
4849 } 4849 }
4850 4850
4851 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 4851 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
4852 { 4852 {
4853 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4853 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4854 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); 4854 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info);
4855 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4855 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4856 } 4856 }
4857 4857
4858 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 4858 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
4859 { 4859 {
4860 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 4860 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
4861 if (UNLIKELY(info.Length() < 1)) { 4861 if (UNLIKELY(info.Length() < 1)) {
4862 throwArityTypeError(exceptionState, 1, info.Length()); 4862 throwArityTypeError(exceptionState, 1, info.Length());
4863 return; 4863 return;
4864 } 4864 }
4865 TestObject* impl = V8TestObject::toNative(info.Holder()); 4865 TestObject* impl = V8TestObject::toNative(info.Holder());
4866 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedShortArg, toUInt16(info[0], exce ptionState), exceptionState); 4866 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, unsignedShortArg, toUInt16(info[0], e xceptionState), exceptionState);
4867 impl->voidMethodUnsignedShortArg(unsignedShortArg); 4867 impl->voidMethodUnsignedShortArg(unsignedShortArg);
4868 } 4868 }
4869 4869
4870 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 4870 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
4871 { 4871 {
4872 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4872 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4873 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); 4873 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info);
4874 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4874 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4875 } 4875 }
4876 4876
(...skipping 10 matching lines...) Expand all
4887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4888 } 4888 }
4889 4889
4890 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 4890 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
4891 { 4891 {
4892 if (UNLIKELY(info.Length() < 1)) { 4892 if (UNLIKELY(info.Length() < 1)) {
4893 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", "TestObj ect", 1, info.Length(), info.GetIsolate()); 4893 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", "TestObj ect", 1, info.Length(), info.GetIsolate());
4894 return; 4894 return;
4895 } 4895 }
4896 TestObject* impl = V8TestObject::toNative(info.Holder()); 4896 TestObject* impl = V8TestObject::toNative(info.Holder());
4897 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 4897 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
4898 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 4898 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
4899 } 4899 }
4900 4900
4901 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 4901 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
4902 { 4902 {
4903 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4903 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4904 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); 4904 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info);
4905 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4905 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4906 } 4906 }
4907 4907
4908 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 4908 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
4909 { 4909 {
4910 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); 4910 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
4911 if (UNLIKELY(info.Length() < 2)) { 4911 if (UNLIKELY(info.Length() < 2)) {
4912 throwArityTypeError(exceptionState, 2, info.Length()); 4912 throwArityTypeError(exceptionState, 2, info.Length());
4913 return; 4913 return;
4914 } 4914 }
4915 TestObject* impl = V8TestObject::toNative(info.Holder()); 4915 TestObject* impl = V8TestObject::toNative(info.Holder());
4916 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 4916 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
4917 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); 4917 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[1]));
4918 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ; 4918 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ;
4919 } 4919 }
4920 4920
4921 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 4921 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
4922 { 4922 {
4923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4924 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); 4924 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info);
4925 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4925 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4926 } 4926 }
4927 4927
(...skipping 23 matching lines...) Expand all
4951 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4951 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4952 } 4952 }
4953 4953
4954 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 4954 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
4955 { 4955 {
4956 if (UNLIKELY(info.Length() < 1)) { 4956 if (UNLIKELY(info.Length() < 1)) {
4957 throwArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg", "TestO bject", 1, info.Length(), info.GetIsolate()); 4957 throwArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg", "TestO bject", 1, info.Length(), info.GetIsolate());
4958 return; 4958 return;
4959 } 4959 }
4960 TestObject* impl = V8TestObject::toNative(info.Holder()); 4960 TestObject* impl = V8TestObject::toNative(info.Holder());
4961 V8TRYCATCH_VOID(ScriptValue, voidCallbackFunctionArg, ScriptValue(info[0], i nfo.GetIsolate())); 4961 TONATIVE_VOID(ScriptValue, voidCallbackFunctionArg, ScriptValue(info[0], inf o.GetIsolate()));
4962 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); 4962 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg);
4963 } 4963 }
4964 4964
4965 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 4965 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
4966 { 4966 {
4967 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4967 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4968 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); 4968 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info);
4969 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4969 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4970 } 4970 }
4971 4971
4972 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info) 4972 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info)
4973 { 4973 {
4974 if (UNLIKELY(info.Length() < 1)) { 4974 if (UNLIKELY(info.Length() < 1)) {
4975 throwArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOptionalAnyAr g", "TestObject", 1, info.Length(), info.GetIsolate()); 4975 throwArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOptionalAnyAr g", "TestObject", 1, info.Length(), info.GetIsolate());
4976 return; 4976 return;
4977 } 4977 }
4978 TestObject* impl = V8TestObject::toNative(info.Holder()); 4978 TestObject* impl = V8TestObject::toNative(info.Holder());
4979 V8TRYCATCH_VOID(ScriptValue, anyCallbackFunctionOptionalAnyArgArg, ScriptVal ue(info[0], info.GetIsolate())); 4979 TONATIVE_VOID(ScriptValue, anyCallbackFunctionOptionalAnyArgArg, ScriptValue (info[0], info.GetIsolate()));
4980 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg); 4980 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg);
4981 } 4981 }
4982 4982
4983 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 4983 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
4984 { 4984 {
4985 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4985 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4986 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info ); 4986 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info );
4987 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4987 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4988 } 4988 }
4989 4989
(...skipping 23 matching lines...) Expand all
5013 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5013 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5014 } 5014 }
5015 5015
5016 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5016 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5017 { 5017 {
5018 if (UNLIKELY(info.Length() < 1)) { 5018 if (UNLIKELY(info.Length() < 1)) {
5019 throwArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5019 throwArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObject", 1, info.Length(), info.GetIsolate());
5020 return; 5020 return;
5021 } 5021 }
5022 TestObject* impl = V8TestObject::toNative(info.Holder()); 5022 TestObject* impl = V8TestObject::toNative(info.Holder());
5023 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare How>(info[0]->Int32Value())); 5023 TONATIVE_VOID(Range::CompareHow, compareHowArg, static_cast<Range::CompareHo w>(info[0]->Int32Value()));
5024 impl->voidMethodCompareHowArg(compareHowArg); 5024 impl->voidMethodCompareHowArg(compareHowArg);
5025 } 5025 }
5026 5026
5027 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5027 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5028 { 5028 {
5029 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5029 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5030 TestObjectV8Internal::voidMethodCompareHowArgMethod(info); 5030 TestObjectV8Internal::voidMethodCompareHowArgMethod(info);
5031 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5031 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5032 } 5032 }
5033 5033
5034 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5034 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5035 { 5035 {
5036 if (UNLIKELY(info.Length() < 1)) { 5036 if (UNLIKELY(info.Length() < 1)) {
5037 throwArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObject", 1 , info.Length(), info.GetIsolate()); 5037 throwArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObject", 1 , info.Length(), info.GetIsolate());
5038 return; 5038 return;
5039 } 5039 }
5040 TestObject* impl = V8TestObject::toNative(info.Holder()); 5040 TestObject* impl = V8TestObject::toNative(info.Holder());
5041 V8TRYCATCH_VOID(EventTarget*, eventTargetArg, V8DOMWrapper::isDOMWrapper(inf o[0]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget( v8::Handle<v8::Object>::Cast(info[0])) : 0); 5041 TONATIVE_VOID(EventTarget*, eventTargetArg, V8DOMWrapper::isDOMWrapper(info[ 0]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(v8 ::Handle<v8::Object>::Cast(info[0])) : 0);
5042 impl->voidMethodEventTargetArg(eventTargetArg); 5042 impl->voidMethodEventTargetArg(eventTargetArg);
5043 } 5043 }
5044 5044
5045 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5045 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5046 { 5046 {
5047 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5047 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5048 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); 5048 TestObjectV8Internal::voidMethodEventTargetArgMethod(info);
5049 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5049 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5050 } 5050 }
5051 5051
5052 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info) 5052 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info)
5053 { 5053 {
5054 if (UNLIKELY(info.Length() < 1)) { 5054 if (UNLIKELY(info.Length() < 1)) {
5055 throwArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg", "Tes tObject", 1, info.Length(), info.GetIsolate()); 5055 throwArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg", "Tes tObject", 1, info.Length(), info.GetIsolate());
5056 return; 5056 return;
5057 } 5057 }
5058 TestObject* impl = V8TestObject::toNative(info.Holder()); 5058 TestObject* impl = V8TestObject::toNative(info.Holder());
5059 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<MediaQueryListListener>, mediaQueryListLi stenerArg, MediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate() ))); 5059 TONATIVE_VOID(RefPtrWillBeRawPtr<MediaQueryListListener>, mediaQueryListList enerArg, MediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate())) );
5060 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); 5060 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg);
5061 } 5061 }
5062 5062
5063 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 5063 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
5064 { 5064 {
5065 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5065 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5066 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); 5066 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info);
5067 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5067 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5068 } 5068 }
5069 5069
5070 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 5070 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
5071 { 5071 {
5072 if (UNLIKELY(info.Length() < 1)) { 5072 if (UNLIKELY(info.Length() < 1)) {
5073 throwArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1, info.L ength(), info.GetIsolate()); 5073 throwArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1, info.L ength(), info.GetIsolate());
5074 return; 5074 return;
5075 } 5075 }
5076 TestObject* impl = V8TestObject::toNative(info.Holder()); 5076 TestObject* impl = V8TestObject::toNative(info.Holder());
5077 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate()) ); 5077 TONATIVE_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate()));
5078 impl->voidMethodAnyArg(anyArg); 5078 impl->voidMethodAnyArg(anyArg);
5079 } 5079 }
5080 5080
5081 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5081 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5082 { 5082 {
5083 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5083 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5084 TestObjectV8Internal::voidMethodAnyArgMethod(info); 5084 TestObjectV8Internal::voidMethodAnyArgMethod(info);
5085 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5085 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5086 } 5086 }
5087 5087
5088 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5088 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5089 { 5089 {
5090 if (UNLIKELY(info.Length() < 1)) { 5090 if (UNLIKELY(info.Length() < 1)) {
5091 throwArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1, info. Length(), info.GetIsolate()); 5091 throwArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1, info. Length(), info.GetIsolate());
5092 return; 5092 return;
5093 } 5093 }
5094 TestObject* impl = V8TestObject::toNative(info.Holder()); 5094 TestObject* impl = V8TestObject::toNative(info.Holder());
5095 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolat e(), info[0])); 5095 TONATIVE_VOID(Attr*, attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolate( ), info[0]));
5096 impl->voidMethodAttrArg(attrArg); 5096 impl->voidMethodAttrArg(attrArg);
5097 } 5097 }
5098 5098
5099 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5099 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5100 { 5100 {
5101 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5101 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5102 TestObjectV8Internal::voidMethodAttrArgMethod(info); 5102 TestObjectV8Internal::voidMethodAttrArgMethod(info);
5103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5104 } 5104 }
5105 5105
5106 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 5106 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
5107 { 5107 {
5108 if (UNLIKELY(info.Length() < 1)) { 5108 if (UNLIKELY(info.Length() < 1)) {
5109 throwArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject", 1, i nfo.Length(), info.GetIsolate()); 5109 throwArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject", 1, i nfo.Length(), info.GetIsolate());
5110 return; 5110 return;
5111 } 5111 }
5112 TestObject* impl = V8TestObject::toNative(info.Holder()); 5112 TestObject* impl = V8TestObject::toNative(info.Holder());
5113 V8TRYCATCH_VOID(Document*, documentArg, V8Document::toNativeWithTypeCheck(in fo.GetIsolate(), info[0])); 5113 TONATIVE_VOID(Document*, documentArg, V8Document::toNativeWithTypeCheck(info .GetIsolate(), info[0]));
5114 impl->voidMethodDocumentArg(documentArg); 5114 impl->voidMethodDocumentArg(documentArg);
5115 } 5115 }
5116 5116
5117 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 5117 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
5118 { 5118 {
5119 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5119 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5120 TestObjectV8Internal::voidMethodDocumentArgMethod(info); 5120 TestObjectV8Internal::voidMethodDocumentArgMethod(info);
5121 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5121 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5122 } 5122 }
5123 5123
5124 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5124 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5125 { 5125 {
5126 if (UNLIKELY(info.Length() < 1)) { 5126 if (UNLIKELY(info.Length() < 1)) {
5127 throwArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5127 throwArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestObject", 1, info.Length(), info.GetIsolate());
5128 return; 5128 return;
5129 } 5129 }
5130 TestObject* impl = V8TestObject::toNative(info.Holder()); 5130 TestObject* impl = V8TestObject::toNative(info.Holder());
5131 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::toNativeWith TypeCheck(info.GetIsolate(), info[0])); 5131 TONATIVE_VOID(DocumentType*, documentTypeArg, V8DocumentType::toNativeWithTy peCheck(info.GetIsolate(), info[0]));
5132 impl->voidMethodDocumentTypeArg(documentTypeArg); 5132 impl->voidMethodDocumentTypeArg(documentTypeArg);
5133 } 5133 }
5134 5134
5135 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5135 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5136 { 5136 {
5137 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5137 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5138 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info); 5138 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info);
5139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5140 } 5140 }
5141 5141
5142 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 5142 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
5143 { 5143 {
5144 if (UNLIKELY(info.Length() < 1)) { 5144 if (UNLIKELY(info.Length() < 1)) {
5145 throwArityTypeErrorForMethod("voidMethodElementArg", "TestObject", 1, in fo.Length(), info.GetIsolate()); 5145 throwArityTypeErrorForMethod("voidMethodElementArg", "TestObject", 1, in fo.Length(), info.GetIsolate());
5146 return; 5146 return;
5147 } 5147 }
5148 TestObject* impl = V8TestObject::toNative(info.Holder()); 5148 TestObject* impl = V8TestObject::toNative(info.Holder());
5149 V8TRYCATCH_VOID(Element*, elementArg, V8Element::toNativeWithTypeCheck(info. GetIsolate(), info[0])); 5149 TONATIVE_VOID(Element*, elementArg, V8Element::toNativeWithTypeCheck(info.Ge tIsolate(), info[0]));
5150 impl->voidMethodElementArg(elementArg); 5150 impl->voidMethodElementArg(elementArg);
5151 } 5151 }
5152 5152
5153 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5153 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5154 { 5154 {
5155 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5155 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5156 TestObjectV8Internal::voidMethodElementArgMethod(info); 5156 TestObjectV8Internal::voidMethodElementArgMethod(info);
5157 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5157 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5158 } 5158 }
5159 5159
5160 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5160 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5161 { 5161 {
5162 if (UNLIKELY(info.Length() < 1)) { 5162 if (UNLIKELY(info.Length() < 1)) {
5163 throwArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1, info. Length(), info.GetIsolate()); 5163 throwArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1, info. Length(), info.GetIsolate());
5164 return; 5164 return;
5165 } 5165 }
5166 TestObject* impl = V8TestObject::toNative(info.Holder()); 5166 TestObject* impl = V8TestObject::toNative(info.Holder());
5167 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolat e(), info[0])); 5167 TONATIVE_VOID(Node*, nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolate( ), info[0]));
5168 impl->voidMethodNodeArg(nodeArg); 5168 impl->voidMethodNodeArg(nodeArg);
5169 } 5169 }
5170 5170
5171 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5171 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5172 { 5172 {
5173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5174 TestObjectV8Internal::voidMethodNodeArgMethod(info); 5174 TestObjectV8Internal::voidMethodNodeArgMethod(info);
5175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5176 } 5176 }
5177 5177
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
5240 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5240 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5241 } 5241 }
5242 5242
5243 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5243 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5244 { 5244 {
5245 if (UNLIKELY(info.Length() < 1)) { 5245 if (UNLIKELY(info.Length() < 1)) {
5246 throwArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObject", 1 , info.Length(), info.GetIsolate()); 5246 throwArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObject", 1 , info.Length(), info.GetIsolate());
5247 return; 5247 return;
5248 } 5248 }
5249 TestObject* impl = V8TestObject::toNative(info.Holder()); 5249 TestObject* impl = V8TestObject::toNative(info.Holder());
5250 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); 5250 TONATIVE_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arr ayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
5251 impl->voidMethodArrayBufferArg(arrayBufferArg); 5251 impl->voidMethodArrayBufferArg(arrayBufferArg);
5252 } 5252 }
5253 5253
5254 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5254 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5255 { 5255 {
5256 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5256 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5257 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); 5257 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info);
5258 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5258 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5259 } 5259 }
5260 5260
5261 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 5261 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
5262 { 5262 {
5263 if (UNLIKELY(info.Length() < 1)) { 5263 if (UNLIKELY(info.Length() < 1)) {
5264 throwArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 5264 throwArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
5265 return; 5265 return;
5266 } 5266 }
5267 TestObject* impl = V8TestObject::toNative(info.Holder()); 5267 TestObject* impl = V8TestObject::toNative(info.Holder());
5268 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); 5268 TONATIVE_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arr ayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
5269 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); 5269 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg);
5270 } 5270 }
5271 5271
5272 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 5272 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
5273 { 5273 {
5274 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5274 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5275 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); 5275 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info);
5276 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5276 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5277 } 5277 }
5278 5278
5279 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5279 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5280 { 5280 {
5281 if (UNLIKELY(info.Length() < 1)) { 5281 if (UNLIKELY(info.Length() < 1)) {
5282 throwArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "TestObject ", 1, info.Length(), info.GetIsolate()); 5282 throwArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "TestObject ", 1, info.Length(), info.GetIsolate());
5283 return; 5283 return;
5284 } 5284 }
5285 TestObject* impl = V8TestObject::toNative(info.Holder()); 5285 TestObject* impl = V8TestObject::toNative(info.Holder());
5286 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBuffer View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[ 0])) : 0); 5286 TONATIVE_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBufferVi ew() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[0] )) : 0);
5287 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); 5287 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg);
5288 } 5288 }
5289 5289
5290 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 5290 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
5291 { 5291 {
5292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5293 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); 5293 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info);
5294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5295 } 5295 }
5296 5296
5297 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5297 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5298 { 5298 {
5299 if (UNLIKELY(info.Length() < 1)) { 5299 if (UNLIKELY(info.Length() < 1)) {
5300 throwArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5300 throwArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
5301 return; 5301 return;
5302 } 5302 }
5303 TestObject* impl = V8TestObject::toNative(info.Holder()); 5303 TestObject* impl = V8TestObject::toNative(info.Holder());
5304 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ? V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); 5304 TONATIVE_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ? V8 Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0);
5305 impl->voidMethodFloat32ArrayArg(float32ArrayArg); 5305 impl->voidMethodFloat32ArrayArg(float32ArrayArg);
5306 } 5306 }
5307 5307
5308 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5308 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5309 { 5309 {
5310 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5310 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5311 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); 5311 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info);
5312 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5312 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5313 } 5313 }
5314 5314
5315 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5315 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5316 { 5316 {
5317 if (UNLIKELY(info.Length() < 1)) { 5317 if (UNLIKELY(info.Length() < 1)) {
5318 throwArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5318 throwArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
5319 return; 5319 return;
5320 } 5320 }
5321 TestObject* impl = V8TestObject::toNative(info.Holder()); 5321 TestObject* impl = V8TestObject::toNative(info.Holder());
5322 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int3 2Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); 5322 TONATIVE_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int32A rray::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0);
5323 impl->voidMethodInt32ArrayArg(int32ArrayArg); 5323 impl->voidMethodInt32ArrayArg(int32ArrayArg);
5324 } 5324 }
5325 5325
5326 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5326 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5327 { 5327 {
5328 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5328 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5329 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); 5329 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info);
5330 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5330 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5331 } 5331 }
5332 5332
5333 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5333 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5334 { 5334 {
5335 if (UNLIKELY(info.Length() < 1)) { 5335 if (UNLIKELY(info.Length() < 1)) {
5336 throwArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5336 throwArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
5337 return; 5337 return;
5338 } 5338 }
5339 TestObject* impl = V8TestObject::toNative(info.Holder()); 5339 TestObject* impl = V8TestObject::toNative(info.Holder());
5340 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint 8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); 5340 TONATIVE_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint8A rray::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0);
5341 impl->voidMethodUint8ArrayArg(uint8ArrayArg); 5341 impl->voidMethodUint8ArrayArg(uint8ArrayArg);
5342 } 5342 }
5343 5343
5344 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5344 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5345 { 5345 {
5346 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5346 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5347 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info); 5347 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info);
5348 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5348 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5349 } 5349 }
5350 5350
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
5387 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5387 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5388 } 5388 }
5389 5389
5390 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 5390 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
5391 { 5391 {
5392 if (UNLIKELY(info.Length() < 1)) { 5392 if (UNLIKELY(info.Length() < 1)) {
5393 throwArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5393 throwArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObject", 1, info.Length(), info.GetIsolate());
5394 return; 5394 return;
5395 } 5395 }
5396 TestObject* impl = V8TestObject::toNative(info.Holder()); 5396 TestObject* impl = V8TestObject::toNative(info.Holder());
5397 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, in fo.GetIsolate())); 5397 TONATIVE_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, info .GetIsolate()));
5398 impl->voidMethodArrayLongArg(arrayLongArg); 5398 impl->voidMethodArrayLongArg(arrayLongArg);
5399 } 5399 }
5400 5400
5401 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 5401 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
5402 { 5402 {
5403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5404 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); 5404 TestObjectV8Internal::voidMethodArrayLongArgMethod(info);
5405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5406 } 5406 }
5407 5407
5408 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5408 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5409 { 5409 {
5410 if (UNLIKELY(info.Length() < 1)) { 5410 if (UNLIKELY(info.Length() < 1)) {
5411 throwArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObject", 1 , info.Length(), info.GetIsolate()); 5411 throwArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObject", 1 , info.Length(), info.GetIsolate());
5412 return; 5412 return;
5413 } 5413 }
5414 TestObject* impl = V8TestObject::toNative(info.Holder()); 5414 TestObject* impl = V8TestObject::toNative(info.Holder());
5415 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0 ], 1, info.GetIsolate())); 5415 TONATIVE_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
5416 impl->voidMethodArrayStringArg(arrayStringArg); 5416 impl->voidMethodArrayStringArg(arrayStringArg);
5417 } 5417 }
5418 5418
5419 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5419 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5420 { 5420 {
5421 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5421 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5422 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); 5422 TestObjectV8Internal::voidMethodArrayStringArgMethod(info);
5423 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5423 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5424 } 5424 }
5425 5425
5426 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 5426 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
5427 { 5427 {
5428 if (UNLIKELY(info.Length() < 1)) { 5428 if (UNLIKELY(info.Length() < 1)) {
5429 throwArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyArg", "Te stObject", 1, info.Length(), info.GetIsolate()); 5429 throwArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyArg", "Te stObject", 1, info.Length(), info.GetIsolate());
5430 return; 5430 return;
5431 } 5431 }
5432 TestObject* impl = V8TestObject::toNative(info.Holder()); 5432 TestObject* impl = V8TestObject::toNative(info.Holder());
5433 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); 5433 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmptyAr g, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, in fo.GetIsolate())));
5434 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); 5434 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg);
5435 } 5435 }
5436 5436
5437 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 5437 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
5438 { 5438 {
5439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5440 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); 5440 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info);
5441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5442 } 5442 }
5443 5443
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
5480 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5480 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5481 } 5481 }
5482 5482
5483 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5483 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5484 { 5484 {
5485 if (UNLIKELY(info.Length() < 1)) { 5485 if (UNLIKELY(info.Length() < 1)) {
5486 throwArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5486 throwArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestObject", 1, info.Length(), info.GetIsolate());
5487 return; 5487 return;
5488 } 5488 }
5489 TestObject* impl = V8TestObject::toNative(info.Holder()); 5489 TestObject* impl = V8TestObject::toNative(info.Holder());
5490 V8TRYCATCH_VOID(Vector<int>, longSequenceArg, toNativeArray<int>(info[0], 1, info.GetIsolate())); 5490 TONATIVE_VOID(Vector<int>, longSequenceArg, toNativeArray<int>(info[0], 1, i nfo.GetIsolate()));
5491 impl->voidMethodSequenceLongArg(longSequenceArg); 5491 impl->voidMethodSequenceLongArg(longSequenceArg);
5492 } 5492 }
5493 5493
5494 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5494 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5495 { 5495 {
5496 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5496 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5497 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); 5497 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info);
5498 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5498 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5499 } 5499 }
5500 5500
5501 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 5501 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
5502 { 5502 {
5503 if (UNLIKELY(info.Length() < 1)) { 5503 if (UNLIKELY(info.Length() < 1)) {
5504 throwArityTypeErrorForMethod("voidMethodSequenceStringArg", "TestObject" , 1, info.Length(), info.GetIsolate()); 5504 throwArityTypeErrorForMethod("voidMethodSequenceStringArg", "TestObject" , 1, info.Length(), info.GetIsolate());
5505 return; 5505 return;
5506 } 5506 }
5507 TestObject* impl = V8TestObject::toNative(info.Holder()); 5507 TestObject* impl = V8TestObject::toNative(info.Holder());
5508 V8TRYCATCH_VOID(Vector<String>, stringSequenceArg, toNativeArray<String>(inf o[0], 1, info.GetIsolate())); 5508 TONATIVE_VOID(Vector<String>, stringSequenceArg, toNativeArray<String>(info[ 0], 1, info.GetIsolate()));
5509 impl->voidMethodSequenceStringArg(stringSequenceArg); 5509 impl->voidMethodSequenceStringArg(stringSequenceArg);
5510 } 5510 }
5511 5511
5512 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 5512 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
5513 { 5513 {
5514 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5514 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5515 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); 5515 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info);
5516 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5516 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5517 } 5517 }
5518 5518
5519 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 5519 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
5520 { 5520 {
5521 if (UNLIKELY(info.Length() < 1)) { 5521 if (UNLIKELY(info.Length() < 1)) {
5522 throwArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5522 throwArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
5523 return; 5523 return;
5524 } 5524 }
5525 TestObject* impl = V8TestObject::toNative(info.Holder()); 5525 TestObject* impl = V8TestObject::toNative(info.Holder());
5526 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptySeque nceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); 5526 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptySequenc eArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
5527 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ; 5527 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ;
5528 } 5528 }
5529 5529
5530 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 5530 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
5531 { 5531 {
5532 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5532 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5533 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); 5533 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info);
5534 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5534 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5535 } 5535 }
5536 5536
5537 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info) 5537 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info)
5538 { 5538 {
5539 if (UNLIKELY(info.Length() < 1)) { 5539 if (UNLIKELY(info.Length() < 1)) {
5540 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullArg", "T estObject", 1, info.Length(), info.GetIsolate()); 5540 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullArg", "T estObject", 1, info.Length(), info.GetIsolate());
5541 return; 5541 return;
5542 } 5542 }
5543 TestObject* impl = V8TestObject::toNative(info.Holder()); 5543 TestObject* impl = V8TestObject::toNative(info.Holder());
5544 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 5544 TONATIVE_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestInte rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
5545 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); 5545 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg);
5546 } 5546 }
5547 5547
5548 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 5548 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
5549 { 5549 {
5550 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5550 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5551 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info); 5551 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info);
5552 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5552 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5553 } 5553 }
5554 5554
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
5630 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5630 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5631 } 5631 }
5632 5632
5633 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 5633 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
5634 { 5634 {
5635 if (UNLIKELY(info.Length() < 1)) { 5635 if (UNLIKELY(info.Length() < 1)) {
5636 throwArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject", 1, i nfo.Length(), info.GetIsolate()); 5636 throwArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject", 1, i nfo.Length(), info.GetIsolate());
5637 return; 5637 return;
5638 } 5638 }
5639 TestObject* impl = V8TestObject::toNative(info.Holder()); 5639 TestObject* impl = V8TestObject::toNative(info.Holder());
5640 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in fo[0]); 5640 TOSTRING_VOID(V8StringResource<>, testEnumTypeArg, info[0]);
5641 String string = testEnumTypeArg; 5641 String string = testEnumTypeArg;
5642 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) { 5642 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) {
5643 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg ", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), i nfo.GetIsolate()); 5643 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg ", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), i nfo.GetIsolate());
5644 return; 5644 return;
5645 } 5645 }
5646 impl->voidMethodTestEnumArg(testEnumTypeArg); 5646 impl->voidMethodTestEnumArg(testEnumTypeArg);
5647 } 5647 }
5648 5648
5649 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 5649 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
5650 { 5650 {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
5718 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5718 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5719 } 5719 }
5720 5720
5721 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5721 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5722 { 5722 {
5723 if (UNLIKELY(info.Length() < 1)) { 5723 if (UNLIKELY(info.Length() < 1)) {
5724 throwArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5724 throwArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObject", 1, info.Length(), info.GetIsolate());
5725 return; 5725 return;
5726 } 5726 }
5727 TestObject* impl = V8TestObject::toNative(info.Holder()); 5727 TestObject* impl = V8TestObject::toNative(info.Holder());
5728 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola te())); 5728 TONATIVE_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsolate ()));
5729 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { 5729 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) {
5730 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA rg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetI solate()); 5730 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA rg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetI solate());
5731 return; 5731 return;
5732 } 5732 }
5733 impl->voidMethodDictionaryArg(dictionaryArg); 5733 impl->voidMethodDictionaryArg(dictionaryArg);
5734 } 5734 }
5735 5735
5736 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5736 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5737 { 5737 {
5738 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5738 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 22 matching lines...) Expand all
5761 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5761 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5762 } 5762 }
5763 5763
5764 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5764 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5765 { 5765 {
5766 if (UNLIKELY(info.Length() < 1)) { 5766 if (UNLIKELY(info.Length() < 1)) {
5767 throwArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5767 throwArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObject", 1, info.Length(), info.GetIsolate());
5768 return; 5768 return;
5769 } 5769 }
5770 TestObject* impl = V8TestObject::toNative(info.Holder()); 5770 TestObject* impl = V8TestObject::toNative(info.Holder());
5771 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], inf o.GetIsolate())); 5771 TONATIVE_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], info. GetIsolate()));
5772 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); 5772 impl->voidMethodNodeFilterArg(nodeFilterArg.release());
5773 } 5773 }
5774 5774
5775 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5775 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5776 { 5776 {
5777 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5777 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5778 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); 5778 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info);
5779 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5779 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5780 } 5780 }
5781 5781
5782 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 5782 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
5783 { 5783 {
5784 if (UNLIKELY(info.Length() < 1)) { 5784 if (UNLIKELY(info.Length() < 1)) {
5785 throwArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject", 1, in fo.Length(), info.GetIsolate()); 5785 throwArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject", 1, in fo.Length(), info.GetIsolate());
5786 return; 5786 return;
5787 } 5787 }
5788 TestObject* impl = V8TestObject::toNative(info.Holder()); 5788 TestObject* impl = V8TestObject::toNative(info.Holder());
5789 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0], info.GetIs olate())); 5789 TONATIVE_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0], info.GetIsol ate()));
5790 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { 5790 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) {
5791 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg" , "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIsolate ()); 5791 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg" , "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIsolate ());
5792 return; 5792 return;
5793 } 5793 }
5794 impl->voidMethodPromiseArg(promiseArg); 5794 impl->voidMethodPromiseArg(promiseArg);
5795 } 5795 }
5796 5796
5797 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5797 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5798 { 5798 {
5799 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5799 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 22 matching lines...) Expand all
5822 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5822 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5823 } 5823 }
5824 5824
5825 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5825 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5826 { 5826 {
5827 if (UNLIKELY(info.Length() < 1)) { 5827 if (UNLIKELY(info.Length() < 1)) {
5828 throwArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "TestObject ", 1, info.Length(), info.GetIsolate()); 5828 throwArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "TestObject ", 1, info.Length(), info.GetIsolate());
5829 return; 5829 return;
5830 } 5830 }
5831 TestObject* impl = V8TestObject::toNative(info.Holder()); 5831 TestObject* impl = V8TestObject::toNative(info.Holder());
5832 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<XPathNSResolver>, xPathNSResolverArg, toX PathNSResolver(info[0], info.GetIsolate())); 5832 TONATIVE_VOID(RefPtrWillBeRawPtr<XPathNSResolver>, xPathNSResolverArg, toXPa thNSResolver(info[0], info.GetIsolate()));
5833 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); 5833 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release());
5834 } 5834 }
5835 5835
5836 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 5836 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
5837 { 5837 {
5838 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5838 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5839 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); 5839 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info);
5840 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5840 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5841 } 5841 }
5842 5842
5843 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 5843 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
5844 { 5844 {
5845 if (UNLIKELY(info.Length() < 1)) { 5845 if (UNLIKELY(info.Length() < 1)) {
5846 throwArityTypeErrorForMethod("voidMethodDictionarySequenceArg", "TestObj ect", 1, info.Length(), info.GetIsolate()); 5846 throwArityTypeErrorForMethod("voidMethodDictionarySequenceArg", "TestObj ect", 1, info.Length(), info.GetIsolate());
5847 return; 5847 return;
5848 } 5848 }
5849 TestObject* impl = V8TestObject::toNative(info.Holder()); 5849 TestObject* impl = V8TestObject::toNative(info.Holder());
5850 V8TRYCATCH_VOID(Vector<Dictionary>, dictionarySequenceArg, toNativeArray<Dic tionary>(info[0], 1, info.GetIsolate())); 5850 TONATIVE_VOID(Vector<Dictionary>, dictionarySequenceArg, toNativeArray<Dicti onary>(info[0], 1, info.GetIsolate()));
5851 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); 5851 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg);
5852 } 5852 }
5853 5853
5854 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 5854 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
5855 { 5855 {
5856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5857 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); 5857 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info);
5858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5859 } 5859 }
5860 5860
5861 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 5861 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
5862 { 5862 {
5863 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5863 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate());
5864 if (UNLIKELY(info.Length() < 2)) { 5864 if (UNLIKELY(info.Length() < 2)) {
5865 throwArityTypeError(exceptionState, 2, info.Length()); 5865 throwArityTypeError(exceptionState, 2, info.Length());
5866 return; 5866 return;
5867 } 5867 }
5868 TestObject* impl = V8TestObject::toNative(info.Holder()); 5868 TestObject* impl = V8TestObject::toNative(info.Holder());
5869 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ; 5869 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]);
5870 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex ceptionState); 5870 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState), exceptionState);
5871 impl->voidMethodStringArgLongArg(stringArg, longArg); 5871 impl->voidMethodStringArgLongArg(stringArg, longArg);
5872 } 5872 }
5873 5873
5874 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 5874 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
5875 { 5875 {
5876 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5876 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5877 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); 5877 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info);
5878 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5878 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5879 } 5879 }
5880 5880
5881 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 5881 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
5882 { 5882 {
5883 TestObject* impl = V8TestObject::toNative(info.Holder()); 5883 TestObject* impl = V8TestObject::toNative(info.Holder());
5884 if (UNLIKELY(info.Length() <= 0)) { 5884 if (UNLIKELY(info.Length() <= 0)) {
5885 impl->voidMethodOptionalStringArg(); 5885 impl->voidMethodOptionalStringArg();
5886 return; 5886 return;
5887 } 5887 }
5888 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg, info[0]); 5888 TOSTRING_VOID(V8StringResource<>, optionalStringArg, info[0]);
5889 impl->voidMethodOptionalStringArg(optionalStringArg); 5889 impl->voidMethodOptionalStringArg(optionalStringArg);
5890 } 5890 }
5891 5891
5892 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 5892 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
5893 { 5893 {
5894 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5894 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5895 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); 5895 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info);
5896 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5896 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5897 } 5897 }
5898 5898
5899 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 5899 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
5900 { 5900 {
5901 TestObject* impl = V8TestObject::toNative(info.Holder()); 5901 TestObject* impl = V8TestObject::toNative(info.Holder());
5902 if (UNLIKELY(info.Length() <= 0)) { 5902 if (UNLIKELY(info.Length() <= 0)) {
5903 impl->voidMethodOptionalTestInterfaceEmptyArg(); 5903 impl->voidMethodOptionalTestInterfaceEmptyArg();
5904 return; 5904 return;
5905 } 5905 }
5906 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 5906 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestInte rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
5907 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg) ; 5907 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg) ;
5908 } 5908 }
5909 5909
5910 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 5910 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
5911 { 5911 {
5912 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5912 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5913 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info); 5913 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info);
5914 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5914 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5915 } 5915 }
5916 5916
5917 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5917 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5918 { 5918 {
5919 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5919 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
5920 TestObject* impl = V8TestObject::toNative(info.Holder()); 5920 TestObject* impl = V8TestObject::toNative(info.Holder());
5921 if (UNLIKELY(info.Length() <= 0)) { 5921 if (UNLIKELY(info.Length() <= 0)) {
5922 impl->voidMethodOptionalLongArg(); 5922 impl->voidMethodOptionalLongArg();
5923 return; 5923 return;
5924 } 5924 }
5925 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt ate), exceptionState); 5925 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio nState), exceptionState);
5926 impl->voidMethodOptionalLongArg(optionalLongArg); 5926 impl->voidMethodOptionalLongArg(optionalLongArg);
5927 } 5927 }
5928 5928
5929 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5929 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5930 { 5930 {
5931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5932 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); 5932 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info);
5933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5934 } 5934 }
5935 5935
5936 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 5936 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
5937 { 5937 {
5938 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5938 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
5939 TestObject* impl = V8TestObject::toNative(info.Holder()); 5939 TestObject* impl = V8TestObject::toNative(info.Holder());
5940 if (UNLIKELY(info.Length() <= 0)) { 5940 if (UNLIKELY(info.Length() <= 0)) {
5941 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.G etIsolate()); 5941 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.G etIsolate());
5942 return; 5942 return;
5943 } 5943 }
5944 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt ate), exceptionState); 5944 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio nState), exceptionState);
5945 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate()); 5945 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate());
5946 } 5946 }
5947 5947
5948 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 5948 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
5949 { 5949 {
5950 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5950 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5951 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); 5951 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info);
5952 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5952 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5953 } 5953 }
5954 5954
5955 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 5955 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
5956 { 5956 {
5957 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5957 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
5958 TestObject* impl = V8TestObject::toNative(info.Holder()); 5958 TestObject* impl = V8TestObject::toNative(info.Holder());
5959 if (UNLIKELY(info.Length() <= 0)) { 5959 if (UNLIKELY(info.Length() <= 0)) {
5960 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg()); 5960 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg());
5961 return; 5961 return;
5962 } 5962 }
5963 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt ate), exceptionState); 5963 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio nState), exceptionState);
5964 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg)); 5964 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg));
5965 } 5965 }
5966 5966
5967 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 5967 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
5968 { 5968 {
5969 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5969 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5970 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); 5970 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info);
5971 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5971 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5972 } 5972 }
5973 5973
5974 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5974 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5975 { 5975 {
5976 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5976 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
5977 TestObject* impl = V8TestObject::toNative(info.Holder()); 5977 TestObject* impl = V8TestObject::toNative(info.Holder());
5978 if (UNLIKELY(info.Length() <= 0)) { 5978 if (UNLIKELY(info.Length() <= 0)) {
5979 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); 5979 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg());
5980 return; 5980 return;
5981 } 5981 }
5982 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt ate), exceptionState); 5982 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio nState), exceptionState);
5983 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); 5983 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg));
5984 } 5984 }
5985 5985
5986 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5986 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5987 { 5987 {
5988 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5988 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5989 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); 5989 TestObjectV8Internal::longMethodOptionalLongArgMethod(info);
5990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5991 } 5991 }
5992 5992
5993 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 5993 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
5994 { 5994 {
5995 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5995 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
5996 if (UNLIKELY(info.Length() < 1)) { 5996 if (UNLIKELY(info.Length() < 1)) {
5997 throwArityTypeError(exceptionState, 1, info.Length()); 5997 throwArityTypeError(exceptionState, 1, info.Length());
5998 return; 5998 return;
5999 } 5999 }
6000 TestObject* impl = V8TestObject::toNative(info.Holder()); 6000 TestObject* impl = V8TestObject::toNative(info.Holder());
6001 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6001 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6002 if (UNLIKELY(info.Length() <= 1)) { 6002 if (UNLIKELY(info.Length() <= 1)) {
6003 impl->voidMethodLongArgOptionalLongArg(longArg); 6003 impl->voidMethodLongArgOptionalLongArg(longArg);
6004 return; 6004 return;
6005 } 6005 }
6006 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[1], exceptionSt ate), exceptionState); 6006 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[1], exceptio nState), exceptionState);
6007 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); 6007 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg);
6008 } 6008 }
6009 6009
6010 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 6010 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
6011 { 6011 {
6012 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6012 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6013 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); 6013 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info);
6014 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6014 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6015 } 6015 }
6016 6016
6017 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 6017 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
6018 { 6018 {
6019 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol ate()); 6019 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol ate());
6020 if (UNLIKELY(info.Length() < 1)) { 6020 if (UNLIKELY(info.Length() < 1)) {
6021 throwArityTypeError(exceptionState, 1, info.Length()); 6021 throwArityTypeError(exceptionState, 1, info.Length());
6022 return; 6022 return;
6023 } 6023 }
6024 TestObject* impl = V8TestObject::toNative(info.Holder()); 6024 TestObject* impl = V8TestObject::toNative(info.Holder());
6025 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6025 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6026 if (UNLIKELY(info.Length() <= 1)) { 6026 if (UNLIKELY(info.Length() <= 1)) {
6027 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); 6027 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg);
6028 return; 6028 return;
6029 } 6029 }
6030 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg1, toInt32(info[1], exceptionS tate), exceptionState); 6030 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg1, toInt32(info[1], excepti onState), exceptionState);
6031 if (UNLIKELY(info.Length() <= 2)) { 6031 if (UNLIKELY(info.Length() <= 2)) {
6032 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL ongArg1); 6032 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL ongArg1);
6033 return; 6033 return;
6034 } 6034 }
6035 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg2, toInt32(info[2], exceptionS tate), exceptionState); 6035 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg2, toInt32(info[2], excepti onState), exceptionState);
6036 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA rg1, optionalLongArg2); 6036 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA rg1, optionalLongArg2);
6037 } 6037 }
6038 6038
6039 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6039 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6040 { 6040 {
6041 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6041 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6042 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod( info); 6042 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod( info);
6043 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6043 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6044 } 6044 }
6045 6045
6046 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 6046 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
6047 { 6047 {
6048 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola te()); 6048 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola te());
6049 if (UNLIKELY(info.Length() < 1)) { 6049 if (UNLIKELY(info.Length() < 1)) {
6050 throwArityTypeError(exceptionState, 1, info.Length()); 6050 throwArityTypeError(exceptionState, 1, info.Length());
6051 return; 6051 return;
6052 } 6052 }
6053 TestObject* impl = V8TestObject::toNative(info.Holder()); 6053 TestObject* impl = V8TestObject::toNative(info.Holder());
6054 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6054 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6055 if (UNLIKELY(info.Length() <= 1)) { 6055 if (UNLIKELY(info.Length() <= 1)) {
6056 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); 6056 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg);
6057 return; 6057 return;
6058 } 6058 }
6059 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); 6059 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInterfa ceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1]));
6060 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty); 6060 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty);
6061 } 6061 }
6062 6062
6063 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 6063 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
6064 { 6064 {
6065 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6065 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6066 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i nfo); 6066 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i nfo);
6067 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6067 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6068 } 6068 }
6069 6069
6070 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 6070 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
6071 { 6071 {
6072 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola te()); 6072 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola te());
6073 if (UNLIKELY(info.Length() < 1)) { 6073 if (UNLIKELY(info.Length() < 1)) {
6074 throwArityTypeError(exceptionState, 1, info.Length()); 6074 throwArityTypeError(exceptionState, 1, info.Length());
6075 return; 6075 return;
6076 } 6076 }
6077 TestObject* impl = V8TestObject::toNative(info.Holder()); 6077 TestObject* impl = V8TestObject::toNative(info.Holder());
6078 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6078 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInterfa ceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6079 if (UNLIKELY(info.Length() <= 1)) { 6079 if (UNLIKELY(info.Length() <= 1)) {
6080 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa ceEmpty); 6080 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa ceEmpty);
6081 return; 6081 return;
6082 } 6082 }
6083 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex ceptionState); 6083 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState), exceptionState);
6084 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg); 6084 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg);
6085 } 6085 }
6086 6086
6087 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 6087 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
6088 { 6088 {
6089 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6089 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6090 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i nfo); 6090 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i nfo);
6091 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6091 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6092 } 6092 }
6093 6093
6094 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 6094 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
6095 { 6095 {
6096 TestObject* impl = V8TestObject::toNative(info.Holder()); 6096 TestObject* impl = V8TestObject::toNative(info.Holder());
6097 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info. GetIsolate())); 6097 TONATIVE_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.Ge tIsolate()));
6098 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO bject()) { 6098 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO bject()) {
6099 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic tionaryArg", "TestObject", "parameter 1 ('optionalDictionaryArg') is not an obje ct."), info.GetIsolate()); 6099 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic tionaryArg", "TestObject", "parameter 1 ('optionalDictionaryArg') is not an obje ct."), info.GetIsolate());
6100 return; 6100 return;
6101 } 6101 }
6102 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); 6102 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg);
6103 } 6103 }
6104 6104
6105 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6105 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6106 { 6106 {
6107 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6107 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6108 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); 6108 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info);
6109 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6109 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6110 } 6110 }
6111 6111
6112 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6112 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6113 { 6113 {
6114 TestObject* impl = V8TestObject::toNative(info.Holder()); 6114 TestObject* impl = V8TestObject::toNative(info.Holder());
6115 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String >(info, 0)); 6115 TONATIVE_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String>( info, 0));
6116 impl->voidMethodVariadicStringArg(variadicStringArgs); 6116 impl->voidMethodVariadicStringArg(variadicStringArgs);
6117 } 6117 }
6118 6118
6119 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6119 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6120 { 6120 {
6121 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6121 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6122 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); 6122 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info);
6123 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6123 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6124 } 6124 }
6125 6125
6126 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 6126 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
6127 { 6127 {
6128 if (UNLIKELY(info.Length() < 1)) { 6128 if (UNLIKELY(info.Length() < 1)) {
6129 throwArityTypeErrorForMethod("voidMethodStringArgVariadicStringArg", "Te stObject", 1, info.Length(), info.GetIsolate()); 6129 throwArityTypeErrorForMethod("voidMethodStringArgVariadicStringArg", "Te stObject", 1, info.Length(), info.GetIsolate());
6130 return; 6130 return;
6131 } 6131 }
6132 TestObject* impl = V8TestObject::toNative(info.Holder()); 6132 TestObject* impl = V8TestObject::toNative(info.Holder());
6133 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ; 6133 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]);
6134 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String >(info, 1)); 6134 TONATIVE_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String>( info, 1));
6135 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); 6135 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs);
6136 } 6136 }
6137 6137
6138 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 6138 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
6139 { 6139 {
6140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6141 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); 6141 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info);
6142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6143 } 6143 }
6144 6144
(...skipping 18 matching lines...) Expand all
6163 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6163 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6164 } 6164 }
6165 6165
6166 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info) 6166 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info)
6167 { 6167 {
6168 if (UNLIKELY(info.Length() < 1)) { 6168 if (UNLIKELY(info.Length() < 1)) {
6169 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVariadicTes tInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 6169 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVariadicTes tInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
6170 return; 6170 return;
6171 } 6171 }
6172 TestObject* impl = V8TestObject::toNative(info.Holder()); 6172 TestObject* impl = V8TestObject::toNative(info.Holder());
6173 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6173 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6174 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; 6174 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs;
6175 for (int i = 1; i < info.Length(); ++i) { 6175 for (int i = 1; i < info.Length(); ++i) {
6176 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 6176 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
6177 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 6177 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
6178 return; 6178 return;
6179 } 6179 }
6180 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8: :Handle<v8::Object>::Cast(info[i]))); 6180 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8: :Handle<v8::Object>::Cast(info[i])));
6181 } 6181 }
6182 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs); 6182 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs);
6183 } 6183 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
6232 } 6232 }
6233 6233
6234 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6234 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6235 { 6235 {
6236 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 6236 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
6237 if (UNLIKELY(info.Length() < 1)) { 6237 if (UNLIKELY(info.Length() < 1)) {
6238 throwArityTypeError(exceptionState, 1, info.Length()); 6238 throwArityTypeError(exceptionState, 1, info.Length());
6239 return; 6239 return;
6240 } 6240 }
6241 TestObject* impl = V8TestObject::toNative(info.Holder()); 6241 TestObject* impl = V8TestObject::toNative(info.Holder());
6242 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6242 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6243 impl->overloadedMethodA(longArg); 6243 impl->overloadedMethodA(longArg);
6244 } 6244 }
6245 6245
6246 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6246 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6247 { 6247 {
6248 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 6248 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
6249 if (UNLIKELY(info.Length() < 2)) { 6249 if (UNLIKELY(info.Length() < 2)) {
6250 throwArityTypeError(exceptionState, 2, info.Length()); 6250 throwArityTypeError(exceptionState, 2, info.Length());
6251 return; 6251 return;
6252 } 6252 }
6253 TestObject* impl = V8TestObject::toNative(info.Holder()); 6253 TestObject* impl = V8TestObject::toNative(info.Holder());
6254 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e xceptionState); 6254 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState) , exceptionState);
6255 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e xceptionState); 6255 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState) , exceptionState);
6256 impl->overloadedMethodA(longArg1, longArg2); 6256 impl->overloadedMethodA(longArg1, longArg2);
6257 } 6257 }
6258 6258
6259 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6259 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6260 { 6260 {
6261 if (((info.Length() == 1))) { 6261 if (((info.Length() == 1))) {
6262 overloadedMethodA1Method(info); 6262 overloadedMethodA1Method(info);
6263 return; 6263 return;
6264 } 6264 }
6265 if (((info.Length() == 2))) { 6265 if (((info.Length() == 2))) {
(...skipping 17 matching lines...) Expand all
6283 } 6283 }
6284 6284
6285 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6285 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6286 { 6286 {
6287 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 6287 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
6288 if (UNLIKELY(info.Length() < 1)) { 6288 if (UNLIKELY(info.Length() < 1)) {
6289 throwArityTypeError(exceptionState, 1, info.Length()); 6289 throwArityTypeError(exceptionState, 1, info.Length());
6290 return; 6290 return;
6291 } 6291 }
6292 TestObject* impl = V8TestObject::toNative(info.Holder()); 6292 TestObject* impl = V8TestObject::toNative(info.Holder());
6293 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6293 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6294 impl->overloadedMethodB(longArg); 6294 impl->overloadedMethodB(longArg);
6295 } 6295 }
6296 6296
6297 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6297 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6298 { 6298 {
6299 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 6299 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
6300 if (UNLIKELY(info.Length() < 1)) { 6300 if (UNLIKELY(info.Length() < 1)) {
6301 throwArityTypeError(exceptionState, 1, info.Length()); 6301 throwArityTypeError(exceptionState, 1, info.Length());
6302 return; 6302 return;
6303 } 6303 }
6304 TestObject* impl = V8TestObject::toNative(info.Holder()); 6304 TestObject* impl = V8TestObject::toNative(info.Holder());
6305 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e xceptionState); 6305 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState) , exceptionState);
6306 if (UNLIKELY(info.Length() <= 1)) { 6306 if (UNLIKELY(info.Length() <= 1)) {
6307 impl->overloadedMethodB(longArg1); 6307 impl->overloadedMethodB(longArg1);
6308 return; 6308 return;
6309 } 6309 }
6310 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e xceptionState); 6310 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState) , exceptionState);
6311 impl->overloadedMethodB(longArg1, longArg2); 6311 impl->overloadedMethodB(longArg1, longArg2);
6312 } 6312 }
6313 6313
6314 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6314 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6315 { 6315 {
6316 if (((info.Length() == 1))) { 6316 if (((info.Length() == 1))) {
6317 overloadedMethodB1Method(info); 6317 overloadedMethodB1Method(info);
6318 return; 6318 return;
6319 } 6319 }
6320 if (((info.Length() == 1)) || ((info.Length() == 2))) { 6320 if (((info.Length() == 1)) || ((info.Length() == 2))) {
(...skipping 17 matching lines...) Expand all
6338 } 6338 }
6339 6339
6340 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6340 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6341 { 6341 {
6342 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 6342 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
6343 if (UNLIKELY(info.Length() < 1)) { 6343 if (UNLIKELY(info.Length() < 1)) {
6344 throwArityTypeError(exceptionState, 1, info.Length()); 6344 throwArityTypeError(exceptionState, 1, info.Length());
6345 return; 6345 return;
6346 } 6346 }
6347 TestObject* impl = V8TestObject::toNative(info.Holder()); 6347 TestObject* impl = V8TestObject::toNative(info.Holder());
6348 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6348 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6349 impl->overloadedMethodC(longArg); 6349 impl->overloadedMethodC(longArg);
6350 } 6350 }
6351 6351
6352 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6352 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6353 { 6353 {
6354 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 6354 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
6355 if (UNLIKELY(info.Length() < 1)) { 6355 if (UNLIKELY(info.Length() < 1)) {
6356 throwArityTypeError(exceptionState, 1, info.Length()); 6356 throwArityTypeError(exceptionState, 1, info.Length());
6357 return; 6357 return;
6358 } 6358 }
6359 TestObject* impl = V8TestObject::toNative(info.Holder()); 6359 TestObject* impl = V8TestObject::toNative(info.Holder());
6360 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6360 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6361 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); 6361 TONATIVE_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1));
6362 impl->overloadedMethodC(longArg, longArgs); 6362 impl->overloadedMethodC(longArg, longArgs);
6363 } 6363 }
6364 6364
6365 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6365 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6366 { 6366 {
6367 if (((info.Length() == 1))) { 6367 if (((info.Length() == 1))) {
6368 overloadedMethodC1Method(info); 6368 overloadedMethodC1Method(info);
6369 return; 6369 return;
6370 } 6370 }
6371 if () { 6371 if () {
(...skipping 17 matching lines...) Expand all
6389 } 6389 }
6390 6390
6391 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6391 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6392 { 6392 {
6393 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 6393 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
6394 if (UNLIKELY(info.Length() < 1)) { 6394 if (UNLIKELY(info.Length() < 1)) {
6395 throwArityTypeError(exceptionState, 1, info.Length()); 6395 throwArityTypeError(exceptionState, 1, info.Length());
6396 return; 6396 return;
6397 } 6397 }
6398 TestObject* impl = V8TestObject::toNative(info.Holder()); 6398 TestObject* impl = V8TestObject::toNative(info.Holder());
6399 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6399 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6400 impl->overloadedMethodD(longArg); 6400 impl->overloadedMethodD(longArg);
6401 } 6401 }
6402 6402
6403 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6403 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6404 { 6404 {
6405 if (UNLIKELY(info.Length() < 1)) { 6405 if (UNLIKELY(info.Length() < 1)) {
6406 throwArityTypeErrorForMethod("overloadedMethodD", "TestObject", 1, info. Length(), info.GetIsolate()); 6406 throwArityTypeErrorForMethod("overloadedMethodD", "TestObject", 1, info. Length(), info.GetIsolate());
6407 return; 6407 return;
6408 } 6408 }
6409 TestObject* impl = V8TestObject::toNative(info.Holder()); 6409 TestObject* impl = V8TestObject::toNative(info.Holder());
6410 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6410 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6411 impl->overloadedMethodD(testInterfaceEmptyArg); 6411 impl->overloadedMethodD(testInterfaceEmptyArg);
6412 } 6412 }
6413 6413
6414 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6414 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6415 { 6415 {
6416 if (((info.Length() == 1))) { 6416 if (((info.Length() == 1))) {
6417 overloadedMethodD1Method(info); 6417 overloadedMethodD1Method(info);
6418 return; 6418 return;
6419 } 6419 }
6420 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())))) { 6420 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())))) {
(...skipping 17 matching lines...) Expand all
6438 } 6438 }
6439 6439
6440 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6440 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6441 { 6441 {
6442 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate()); 6442 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate());
6443 if (UNLIKELY(info.Length() < 1)) { 6443 if (UNLIKELY(info.Length() < 1)) {
6444 throwArityTypeError(exceptionState, 1, info.Length()); 6444 throwArityTypeError(exceptionState, 1, info.Length());
6445 return; 6445 return;
6446 } 6446 }
6447 TestObject* impl = V8TestObject::toNative(info.Holder()); 6447 TestObject* impl = V8TestObject::toNative(info.Holder());
6448 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6448 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6449 impl->overloadedMethodE(longArg); 6449 impl->overloadedMethodE(longArg);
6450 } 6450 }
6451 6451
6452 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6452 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6453 { 6453 {
6454 if (UNLIKELY(info.Length() < 1)) { 6454 if (UNLIKELY(info.Length() < 1)) {
6455 throwArityTypeErrorForMethod("overloadedMethodE", "TestObject", 1, info. Length(), info.GetIsolate()); 6455 throwArityTypeErrorForMethod("overloadedMethodE", "TestObject", 1, info. Length(), info.GetIsolate());
6456 return; 6456 return;
6457 } 6457 }
6458 TestObject* impl = V8TestObject::toNative(info.Holder()); 6458 TestObject* impl = V8TestObject::toNative(info.Holder());
6459 V8TRYCATCH_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, in fo.GetIsolate())); 6459 TONATIVE_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, info .GetIsolate()));
6460 impl->overloadedMethodE(longArrayArg); 6460 impl->overloadedMethodE(longArrayArg);
6461 } 6461 }
6462 6462
6463 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6463 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6464 { 6464 {
6465 if (((info.Length() == 1))) { 6465 if (((info.Length() == 1))) {
6466 overloadedMethodE1Method(info); 6466 overloadedMethodE1Method(info);
6467 return; 6467 return;
6468 } 6468 }
6469 if (((info.Length() == 1) && (info[0]->IsArray()))) { 6469 if (((info.Length() == 1) && (info[0]->IsArray()))) {
(...skipping 17 matching lines...) Expand all
6487 } 6487 }
6488 6488
6489 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6489 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6490 { 6490 {
6491 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate()); 6491 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate());
6492 if (UNLIKELY(info.Length() < 1)) { 6492 if (UNLIKELY(info.Length() < 1)) {
6493 throwArityTypeError(exceptionState, 1, info.Length()); 6493 throwArityTypeError(exceptionState, 1, info.Length());
6494 return; 6494 return;
6495 } 6495 }
6496 TestObject* impl = V8TestObject::toNative(info.Holder()); 6496 TestObject* impl = V8TestObject::toNative(info.Holder());
6497 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6497 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6498 impl->overloadedMethodF(longArg); 6498 impl->overloadedMethodF(longArg);
6499 } 6499 }
6500 6500
6501 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6501 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6502 { 6502 {
6503 if (UNLIKELY(info.Length() < 1)) { 6503 if (UNLIKELY(info.Length() < 1)) {
6504 throwArityTypeErrorForMethod("overloadedMethodF", "TestObject", 1, info. Length(), info.GetIsolate()); 6504 throwArityTypeErrorForMethod("overloadedMethodF", "TestObject", 1, info. Length(), info.GetIsolate());
6505 return; 6505 return;
6506 } 6506 }
6507 TestObject* impl = V8TestObject::toNative(info.Holder()); 6507 TestObject* impl = V8TestObject::toNative(info.Holder());
6508 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6508 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestInte rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6509 impl->overloadedMethodF(testInterfaceEmptyNullableArg); 6509 impl->overloadedMethodF(testInterfaceEmptyNullableArg);
6510 } 6510 }
6511 6511
6512 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6512 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6513 { 6513 {
6514 if (((info.Length() == 1))) { 6514 if (((info.Length() == 1))) {
6515 overloadedMethodF1Method(info); 6515 overloadedMethodF1Method(info);
6516 return; 6516 return;
6517 } 6517 }
6518 if (((info.Length() == 1) && (info[0]->IsNull() || V8TestInterfaceEmpty::has Instance(info[0], info.GetIsolate())))) { 6518 if (((info.Length() == 1) && (info[0]->IsNull() || V8TestInterfaceEmpty::has Instance(info[0], info.GetIsolate())))) {
(...skipping 22 matching lines...) Expand all
6541 impl->overloadedMethodG(); 6541 impl->overloadedMethodG();
6542 } 6542 }
6543 6543
6544 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6544 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6545 { 6545 {
6546 if (UNLIKELY(info.Length() < 1)) { 6546 if (UNLIKELY(info.Length() < 1)) {
6547 throwArityTypeErrorForMethod("overloadedMethodG", "TestObject", 1, info. Length(), info.GetIsolate()); 6547 throwArityTypeErrorForMethod("overloadedMethodG", "TestObject", 1, info. Length(), info.GetIsolate());
6548 return; 6548 return;
6549 } 6549 }
6550 TestObject* impl = V8TestObject::toNative(info.Holder()); 6550 TestObject* impl = V8TestObject::toNative(info.Holder());
6551 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS tringArg, info[0]); 6551 TOSTRING_VOID(V8StringResource<>, strictTypeCheckingStringArg, info[0]);
6552 impl->overloadedMethodG(strictTypeCheckingStringArg); 6552 impl->overloadedMethodG(strictTypeCheckingStringArg);
6553 } 6553 }
6554 6554
6555 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6555 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6556 { 6556 {
6557 if (((info.Length() == 0))) { 6557 if (((info.Length() == 0))) {
6558 overloadedMethodG1Method(info); 6558 overloadedMethodG1Method(info);
6559 return; 6559 return;
6560 } 6560 }
6561 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || info[0]->IsStrin g() || info[0]->IsObject()))) { 6561 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || info[0]->IsStrin g() || info[0]->IsObject()))) {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
6613 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6613 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6614 } 6614 }
6615 6615
6616 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6616 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6617 { 6617 {
6618 if (UNLIKELY(info.Length() < 1)) { 6618 if (UNLIKELY(info.Length() < 1)) {
6619 throwArityTypeErrorForMethod("overloadedMethodI", "TestObject", 1, info. Length(), info.GetIsolate()); 6619 throwArityTypeErrorForMethod("overloadedMethodI", "TestObject", 1, info. Length(), info.GetIsolate());
6620 return; 6620 return;
6621 } 6621 }
6622 TestObject* impl = V8TestObject::toNative(info.Holder()); 6622 TestObject* impl = V8TestObject::toNative(info.Holder());
6623 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola te())); 6623 TONATIVE_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsolate ()));
6624 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { 6624 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) {
6625 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodI", " TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetIsolate ()); 6625 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodI", " TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetIsolate ());
6626 return; 6626 return;
6627 } 6627 }
6628 impl->overloadedMethodI(dictionaryArg); 6628 impl->overloadedMethodI(dictionaryArg);
6629 } 6629 }
6630 6630
6631 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6631 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6632 { 6632 {
6633 if (UNLIKELY(info.Length() < 1)) { 6633 if (UNLIKELY(info.Length() < 1)) {
6634 throwArityTypeErrorForMethod("overloadedMethodI", "TestObject", 1, info. Length(), info.GetIsolate()); 6634 throwArityTypeErrorForMethod("overloadedMethodI", "TestObject", 1, info. Length(), info.GetIsolate());
6635 return; 6635 return;
6636 } 6636 }
6637 TestObject* impl = V8TestObject::toNative(info.Holder()); 6637 TestObject* impl = V8TestObject::toNative(info.Holder());
6638 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue( ))); 6638 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue()) );
6639 impl->overloadedMethodI(doubleArg); 6639 impl->overloadedMethodI(doubleArg);
6640 } 6640 }
6641 6641
6642 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6642 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6643 { 6643 {
6644 if (((info.Length() == 1) && (info[0]->IsObject()))) { 6644 if (((info.Length() == 1) && (info[0]->IsObject()))) {
6645 overloadedMethodI1Method(info); 6645 overloadedMethodI1Method(info);
6646 return; 6646 return;
6647 } 6647 }
6648 if (((info.Length() == 1))) { 6648 if (((info.Length() == 1))) {
(...skipping 29 matching lines...) Expand all
6678 } 6678 }
6679 6679
6680 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 6680 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info)
6681 { 6681 {
6682 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 6682 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
6683 if (UNLIKELY(info.Length() < 1)) { 6683 if (UNLIKELY(info.Length() < 1)) {
6684 throwArityTypeError(exceptionState, 1, info.Length()); 6684 throwArityTypeError(exceptionState, 1, info.Length());
6685 return; 6685 return;
6686 } 6686 }
6687 TestObject* impl = V8TestObject::toNative(info.Holder()); 6687 TestObject* impl = V8TestObject::toNative(info.Holder());
6688 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6688 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6689 impl->overloadedPerWorldBindingsMethod(longArg); 6689 impl->overloadedPerWorldBindingsMethod(longArg);
6690 } 6690 }
6691 6691
6692 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 6692 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
6693 { 6693 {
6694 if (((info.Length() == 0))) { 6694 if (((info.Length() == 0))) {
6695 overloadedPerWorldBindingsMethod1Method(info); 6695 overloadedPerWorldBindingsMethod1Method(info);
6696 return; 6696 return;
6697 } 6697 }
6698 if (((info.Length() == 1))) { 6698 if (((info.Length() == 1))) {
(...skipping 11 matching lines...) Expand all
6710 } 6710 }
6711 6711
6712 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 6712 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info)
6713 { 6713 {
6714 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 6714 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
6715 if (UNLIKELY(info.Length() < 1)) { 6715 if (UNLIKELY(info.Length() < 1)) {
6716 throwArityTypeError(exceptionState, 1, info.Length()); 6716 throwArityTypeError(exceptionState, 1, info.Length());
6717 return; 6717 return;
6718 } 6718 }
6719 TestObject* impl = V8TestObject::toNative(info.Holder()); 6719 TestObject* impl = V8TestObject::toNative(info.Holder());
6720 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6720 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6721 impl->overloadedPerWorldBindingsMethod(longArg); 6721 impl->overloadedPerWorldBindingsMethod(longArg);
6722 } 6722 }
6723 6723
6724 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info) 6724 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info)
6725 { 6725 {
6726 if (((info.Length() == 0))) { 6726 if (((info.Length() == 0))) {
6727 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); 6727 overloadedPerWorldBindingsMethod1MethodForMainWorld(info);
6728 return; 6728 return;
6729 } 6729 }
6730 if (((info.Length() == 1))) { 6730 if (((info.Length() == 1))) {
(...skipping 10 matching lines...) Expand all
6741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6742 } 6742 }
6743 6743
6744 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6744 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6745 { 6745 {
6746 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 6746 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
6747 if (UNLIKELY(info.Length() < 1)) { 6747 if (UNLIKELY(info.Length() < 1)) {
6748 throwArityTypeError(exceptionState, 1, info.Length()); 6748 throwArityTypeError(exceptionState, 1, info.Length());
6749 return; 6749 return;
6750 } 6750 }
6751 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6751 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
6752 TestObject::overloadedStaticMethod(longArg); 6752 TestObject::overloadedStaticMethod(longArg);
6753 } 6753 }
6754 6754
6755 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6755 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6756 { 6756 {
6757 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 6757 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
6758 if (UNLIKELY(info.Length() < 2)) { 6758 if (UNLIKELY(info.Length() < 2)) {
6759 throwArityTypeError(exceptionState, 2, info.Length()); 6759 throwArityTypeError(exceptionState, 2, info.Length());
6760 return; 6760 return;
6761 } 6761 }
6762 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e xceptionState); 6762 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState) , exceptionState);
6763 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e xceptionState); 6763 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState) , exceptionState);
6764 TestObject::overloadedStaticMethod(longArg1, longArg2); 6764 TestObject::overloadedStaticMethod(longArg1, longArg2);
6765 } 6765 }
6766 6766
6767 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 6767 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
6768 { 6768 {
6769 if (((info.Length() == 1))) { 6769 if (((info.Length() == 1))) {
6770 overloadedStaticMethod1Method(info); 6770 overloadedStaticMethod1Method(info);
6771 return; 6771 return;
6772 } 6772 }
6773 if (((info.Length() == 2))) { 6773 if (((info.Length() == 2))) {
(...skipping 18 matching lines...) Expand all
6792 6792
6793 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 6793 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
6794 { 6794 {
6795 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 6795 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
6796 if (UNLIKELY(info.Length() < 1)) { 6796 if (UNLIKELY(info.Length() < 1)) {
6797 throwArityTypeError(exceptionState, 1, info.Length()); 6797 throwArityTypeError(exceptionState, 1, info.Length());
6798 return; 6798 return;
6799 } 6799 }
6800 TestObject* impl = V8TestObject::toNative(info.Holder()); 6800 TestObject* impl = V8TestObject::toNative(info.Holder());
6801 unsigned clampUnsignedShortArg = 0; 6801 unsigned clampUnsignedShortArg = 0;
6802 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal ue()); 6802 TONATIVE_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberValue ());
6803 if (!std::isnan(clampUnsignedShortArgNativeValue)) 6803 if (!std::isnan(clampUnsignedShortArgNativeValue))
6804 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat iveValue); 6804 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat iveValue);
6805 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); 6805 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg);
6806 } 6806 }
6807 6807
6808 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6808 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6809 { 6809 {
6810 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6810 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6811 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); 6811 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info);
6812 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6812 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6813 } 6813 }
6814 6814
6815 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 6815 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
6816 { 6816 {
6817 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6817 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
6818 if (UNLIKELY(info.Length() < 1)) { 6818 if (UNLIKELY(info.Length() < 1)) {
6819 throwArityTypeError(exceptionState, 1, info.Length()); 6819 throwArityTypeError(exceptionState, 1, info.Length());
6820 return; 6820 return;
6821 } 6821 }
6822 TestObject* impl = V8TestObject::toNative(info.Holder()); 6822 TestObject* impl = V8TestObject::toNative(info.Holder());
6823 unsigned clampUnsignedLongArg = 0; 6823 unsigned clampUnsignedLongArg = 0;
6824 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValu e()); 6824 TONATIVE_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValue( ));
6825 if (!std::isnan(clampUnsignedLongArgNativeValue)) 6825 if (!std::isnan(clampUnsignedLongArgNativeValue))
6826 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative Value); 6826 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative Value);
6827 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); 6827 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg);
6828 } 6828 }
6829 6829
6830 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 6830 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
6831 { 6831 {
6832 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6832 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6833 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); 6833 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info);
6834 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6834 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6835 } 6835 }
6836 6836
6837 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 6837 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
6838 { 6838 {
6839 TestObject* impl = V8TestObject::toNative(info.Holder()); 6839 TestObject* impl = V8TestObject::toNative(info.Holder());
6840 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6840 TONATIVE_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg, V8 TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6841 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn terfaceEmptyArg); 6841 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn terfaceEmptyArg);
6842 } 6842 }
6843 6843
6844 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6844 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6845 { 6845 {
6846 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6846 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6847 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info); 6847 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info);
6848 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6848 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6849 } 6849 }
6850 6850
6851 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 6851 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
6852 { 6852 {
6853 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6853 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate());
6854 TestObject* impl = V8TestObject::toNative(info.Holder()); 6854 TestObject* impl = V8TestObject::toNative(info.Holder());
6855 V8TRYCATCH_EXCEPTION_VOID(int, defaultUndefinedLongArg, toInt32(info[0], exc eptionState), exceptionState); 6855 TONATIVE_VOID_EXCEPTIONSTATE(int, defaultUndefinedLongArg, toInt32(info[0], exceptionState), exceptionState);
6856 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); 6856 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg);
6857 } 6857 }
6858 6858
6859 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 6859 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
6860 { 6860 {
6861 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6861 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6862 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); 6862 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info);
6863 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6863 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6864 } 6864 }
6865 6865
6866 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback Info<v8::Value>& info) 6866 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback Info<v8::Value>& info)
6867 { 6867 {
6868 TestObject* impl = V8TestObject::toNative(info.Holder()); 6868 TestObject* impl = V8TestObject::toNative(info.Holder());
6869 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr ingArg, info[0]); 6869 TOSTRING_VOID(V8StringResource<>, defaultUndefinedStringArg, info[0]);
6870 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); 6870 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg);
6871 } 6871 }
6872 6872
6873 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 6873 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
6874 { 6874 {
6875 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6875 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6876 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); 6876 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info);
6877 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6877 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6878 } 6878 }
6879 6879
6880 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 6880 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
6881 { 6881 {
6882 TestObject* impl = V8TestObject::toNative(info.Holder()); 6882 TestObject* impl = V8TestObject::toNative(info.Holder());
6883 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt ringArg, argumentOrNull(info, 0)); 6883 TOSTRING_VOID(V8StringResource<>, defaultNullStringStringArg, argumentOrNull (info, 0));
6884 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); 6884 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg);
6885 } 6885 }
6886 6886
6887 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 6887 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
6888 { 6888 {
6889 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6889 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6890 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info); 6890 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info);
6891 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6891 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6892 } 6892 }
6893 6893
6894 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 6894 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
6895 { 6895 {
6896 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6896 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate());
6897 if (UNLIKELY(info.Length() < 1)) { 6897 if (UNLIKELY(info.Length() < 1)) {
6898 throwArityTypeError(exceptionState, 1, info.Length()); 6898 throwArityTypeError(exceptionState, 1, info.Length());
6899 return; 6899 return;
6900 } 6900 }
6901 TestObject* impl = V8TestObject::toNative(info.Holder()); 6901 TestObject* impl = V8TestObject::toNative(info.Holder());
6902 V8TRYCATCH_EXCEPTION_VOID(int, enforceRangeLongArg, toInt32(info[0], Enforce Range, exceptionState), exceptionState); 6902 TONATIVE_VOID_EXCEPTIONSTATE(int, enforceRangeLongArg, toInt32(info[0], Enfo rceRange, exceptionState), exceptionState);
6903 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); 6903 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg);
6904 } 6904 }
6905 6905
6906 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 6906 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
6907 { 6907 {
6908 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6908 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6909 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); 6909 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info);
6910 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6910 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6911 } 6911 }
6912 6912
6913 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 6913 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
6914 { 6914 {
6915 if (UNLIKELY(info.Length() < 1)) { 6915 if (UNLIKELY(info.Length() < 1)) {
6916 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate()); 6916 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate());
6917 return; 6917 return;
6918 } 6918 }
6919 TestObject* impl = V8TestObject::toNative(info.Holder()); 6919 TestObject* impl = V8TestObject::toNative(info.Holder());
6920 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, treatN ullAsNullStringStringArg, info[0]); 6920 TOSTRING_VOID(V8StringResource<WithNullCheck>, treatNullAsNullStringStringAr g, info[0]);
6921 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g); 6921 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g);
6922 } 6922 }
6923 6923
6924 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 6924 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
6925 { 6925 {
6926 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6926 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6927 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); 6927 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info);
6928 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6928 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6929 } 6929 }
6930 6930
6931 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) 6931 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info)
6932 { 6932 {
6933 if (UNLIKELY(info.Length() < 1)) { 6933 if (UNLIKELY(info.Length() < 1)) {
6934 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTreatUndefi nedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate()); 6934 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTreatUndefi nedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate());
6935 return; 6935 return;
6936 } 6936 }
6937 TestObject* impl = V8TestObject::toNative(info.Holder()); 6937 TestObject* impl = V8TestObject::toNative(info.Holder());
6938 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, treatNullAsNullStringStringArg, info[0]); 6938 TOSTRING_VOID(V8StringResource<WithUndefinedOrNullCheck>, treatNullAsNullStr ingStringArg, info[0]);
6939 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg); 6939 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg);
6940 } 6940 }
6941 6941
6942 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6942 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6943 { 6943 {
6944 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6944 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6945 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr ingStringArgMethod(info); 6945 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr ingStringArgMethod(info);
6946 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6946 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6947 } 6947 }
6948 6948
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
7049 { 7049 {
7050 TestObject* impl = V8TestObject::toNative(info.Holder()); 7050 TestObject* impl = V8TestObject::toNative(info.Holder());
7051 if (UNLIKELY(info.Length() <= 0)) { 7051 if (UNLIKELY(info.Length() <= 0)) {
7052 ScriptState* state = ScriptState::current(); 7052 ScriptState* state = ScriptState::current();
7053 if (!state) 7053 if (!state)
7054 return; 7054 return;
7055 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7055 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
7056 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(sta te, scriptArguments.release()); 7056 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(sta te, scriptArguments.release());
7057 return; 7057 return;
7058 } 7058 }
7059 V8TRYCATCH_VOID(bool, optionalBooleanArg, info[0]->BooleanValue()); 7059 TONATIVE_VOID(bool, optionalBooleanArg, info[0]->BooleanValue());
7060 ScriptState* state = ScriptState::current(); 7060 ScriptState* state = ScriptState::current();
7061 if (!state) 7061 if (!state)
7062 return; 7062 return;
7063 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7063 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
7064 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(state, scriptArguments.release(), optionalBooleanArg); 7064 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(state, scriptArguments.release(), optionalBooleanArg);
7065 } 7065 }
7066 7066
7067 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod Callback(const v8::FunctionCallbackInfo<v8::Value>& info) 7067 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod Callback(const v8::FunctionCallbackInfo<v8::Value>& info)
7068 { 7068 {
7069 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7069 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
7132 7132
7133 static void callWithNewScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMet hod(const v8::FunctionCallbackInfo<v8::Value>& info) 7133 static void callWithNewScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMet hod(const v8::FunctionCallbackInfo<v8::Value>& info)
7134 { 7134 {
7135 TestObject* impl = V8TestObject::toNative(info.Holder()); 7135 TestObject* impl = V8TestObject::toNative(info.Holder());
7136 if (UNLIKELY(info.Length() <= 0)) { 7136 if (UNLIKELY(info.Length() <= 0)) {
7137 NewScriptState* state = NewScriptState::current(info.GetIsolate()); 7137 NewScriptState* state = NewScriptState::current(info.GetIsolate());
7138 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7138 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
7139 impl->callWithNewScriptStateScriptArgumentsVoidMethodOptionalBooleanArg( state, scriptArguments.release()); 7139 impl->callWithNewScriptStateScriptArgumentsVoidMethodOptionalBooleanArg( state, scriptArguments.release());
7140 return; 7140 return;
7141 } 7141 }
7142 V8TRYCATCH_VOID(bool, optionalBooleanArg, info[0]->BooleanValue()); 7142 TONATIVE_VOID(bool, optionalBooleanArg, info[0]->BooleanValue());
7143 NewScriptState* state = NewScriptState::current(info.GetIsolate()); 7143 NewScriptState* state = NewScriptState::current(info.GetIsolate());
7144 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7144 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
7145 impl->callWithNewScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(stat e, scriptArguments.release(), optionalBooleanArg); 7145 impl->callWithNewScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(stat e, scriptArguments.release(), optionalBooleanArg);
7146 } 7146 }
7147 7147
7148 static void callWithNewScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMet hodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 7148 static void callWithNewScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMet hodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7149 { 7149 {
7150 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7150 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7151 TestObjectV8Internal::callWithNewScriptStateScriptArgumentsVoidMethodOptiona lBooleanArgMethod(info); 7151 TestObjectV8Internal::callWithNewScriptStateScriptArgumentsVoidMethodOptiona lBooleanArgMethod(info);
7152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
7382 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7382 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7383 } 7383 }
7384 7384
7385 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 7385 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
7386 { 7386 {
7387 if (UNLIKELY(info.Length() < 1)) { 7387 if (UNLIKELY(info.Length() < 1)) {
7388 throwArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInterfaceEmp tyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 7388 throwArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInterfaceEmp tyArg", "TestObject", 1, info.Length(), info.GetIsolate());
7389 return; 7389 return;
7390 } 7390 }
7391 TestObject* impl = V8TestObject::toNative(info.Holder()); 7391 TestObject* impl = V8TestObject::toNative(info.Holder());
7392 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7392 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7393 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 7393 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
7394 } 7394 }
7395 7395
7396 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 7396 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7397 { 7397 {
7398 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7398 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7399 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info); 7399 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info);
7400 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7400 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7401 } 7401 }
7402 7402
7403 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info) 7403 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info)
7404 { 7404 {
7405 if (UNLIKELY(info.Length() < 1)) { 7405 if (UNLIKELY(info.Length() < 1)) {
7406 throwArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInterfaceEmp tyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 7406 throwArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInterfaceEmp tyArg", "TestObject", 1, info.Length(), info.GetIsolate());
7407 return; 7407 return;
7408 } 7408 }
7409 TestObject* impl = V8TestObject::toNative(info.Holder()); 7409 TestObject* impl = V8TestObject::toNative(info.Holder());
7410 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7410 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7411 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 7411 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
7412 } 7412 }
7413 7413
7414 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info) 7414 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info)
7415 { 7415 {
7416 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7416 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7417 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF orMainWorld(info); 7417 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF orMainWorld(info);
7418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7419 } 7419 }
7420 7420
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
7521 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 7521 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
7522 { 7522 {
7523 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7523 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7524 TestObject* impl = V8TestObject::toNative(info.Holder()); 7524 TestObject* impl = V8TestObject::toNative(info.Holder());
7525 if (UNLIKELY(info.Length() <= 0)) { 7525 if (UNLIKELY(info.Length() <= 0)) {
7526 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); 7526 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState);
7527 if (exceptionState.throwIfNeeded()) 7527 if (exceptionState.throwIfNeeded())
7528 return; 7528 return;
7529 return; 7529 return;
7530 } 7530 }
7531 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt ate), exceptionState); 7531 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio nState), exceptionState);
7532 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta te); 7532 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta te);
7533 if (exceptionState.throwIfNeeded()) 7533 if (exceptionState.throwIfNeeded())
7534 return; 7534 return;
7535 } 7535 }
7536 7536
7537 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 7537 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
7538 { 7538 {
7539 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7539 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7540 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info); 7540 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info);
7541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
7610 } 7610 }
7611 7611
7612 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 7612 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7613 { 7613 {
7614 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate()); 7614 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate());
7615 if (UNLIKELY(info.Length() < 1)) { 7615 if (UNLIKELY(info.Length() < 1)) {
7616 throwArityTypeError(exceptionState, 1, info.Length()); 7616 throwArityTypeError(exceptionState, 1, info.Length());
7617 return; 7617 return;
7618 } 7618 }
7619 TestObject* impl = V8TestObject::toNative(info.Holder()); 7619 TestObject* impl = V8TestObject::toNative(info.Holder());
7620 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 7620 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState);
7621 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 7621 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
7622 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext , longArg, exceptionState); 7622 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext , longArg, exceptionState);
7623 if (exceptionState.throwIfNeeded()) 7623 if (exceptionState.throwIfNeeded())
7624 return; 7624 return;
7625 } 7625 }
7626 7626
7627 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 7627 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
7628 { 7628 {
7629 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7629 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7630 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA rgMethod(info); 7630 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA rgMethod(info);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
7700 { 7700 {
7701 if (UNLIKELY(info.Length() < 1)) { 7701 if (UNLIKELY(info.Length() < 1)) {
7702 throwArityTypeErrorForMethod("strictTypeCheckingVoidMethodTestInterfaceE mptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 7702 throwArityTypeErrorForMethod("strictTypeCheckingVoidMethodTestInterfaceE mptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
7703 return; 7703 return;
7704 } 7704 }
7705 TestObject* impl = V8TestObject::toNative(info.Holder()); 7705 TestObject* impl = V8TestObject::toNative(info.Holder());
7706 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge tIsolate())) { 7706 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge tIsolate())) {
7707 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestIn terfaceEmpty'."), info.GetIsolate()); 7707 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestIn terfaceEmpty'."), info.GetIsolate());
7708 return; 7708 return;
7709 } 7709 }
7710 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7710 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7711 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyAr g); 7711 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyAr g);
7712 } 7712 }
7713 7713
7714 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info) 7714 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info)
7715 { 7715 {
7716 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7716 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7717 TestObjectV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyArgMetho d(info); 7717 TestObjectV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyArgMetho d(info);
7718 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7718 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7719 } 7719 }
7720 7720
7721 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 7721 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7722 { 7722 {
7723 if (UNLIKELY(info.Length() < 1)) { 7723 if (UNLIKELY(info.Length() < 1)) {
7724 throwArityTypeErrorForMethod("strictTypeCheckingVoidMethodTestInterfaceE mptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); 7724 throwArityTypeErrorForMethod("strictTypeCheckingVoidMethodTestInterfaceE mptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate());
7725 return; 7725 return;
7726 } 7726 }
7727 TestObject* impl = V8TestObject::toNative(info.Holder()); 7727 TestObject* impl = V8TestObject::toNative(info.Holder());
7728 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt y::hasInstance(info[0], info.GetIsolate())) { 7728 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt y::hasInstance(info[0], info.GetIsolate())) {
7729 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is not of type ' TestInterfaceEmpty'."), info.GetIsolate()); 7729 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is not of type ' TestInterfaceEmpty'."), info.GetIsolate());
7730 return; 7730 return;
7731 } 7731 }
7732 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7732 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7733 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArg(testInterfaceE mptyArg); 7733 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArg(testInterfaceE mptyArg);
7734 } 7734 }
7735 7735
7736 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethodCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info) 7736 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethodCallbac k(const v8::FunctionCallbackInfo<v8::Value>& info)
7737 { 7737 {
7738 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7738 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7739 TestObjectV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullAr gMethod(info); 7739 TestObjectV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullAr gMethod(info);
7740 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7740 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7741 } 7741 }
7742 7742
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
7779 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7779 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7780 } 7780 }
7781 7781
7782 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info) 7782 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
7783 { 7783 {
7784 if (UNLIKELY(info.Length() < 1)) { 7784 if (UNLIKELY(info.Length() < 1)) {
7785 throwArityTypeErrorForMethod("voidMethodTestInterfaceGarbageCollectedSeq uenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); 7785 throwArityTypeErrorForMethod("voidMethodTestInterfaceGarbageCollectedSeq uenceArg", "TestObject", 1, info.Length(), info.GetIsolate());
7786 return; 7786 return;
7787 } 7787 }
7788 TestObject* impl = V8TestObject::toNative(info.Holder()); 7788 TestObject* impl = V8TestObject::toNative(info.Holder());
7789 V8TRYCATCH_VOID(HeapVector<Member<TestInterfaceGarbageCollected> >, testInte rfaceGarbageCollectedSequenceArg, (toMemberNativeArray<TestInterfaceGarbageColle cted, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate()))); 7789 TONATIVE_VOID(HeapVector<Member<TestInterfaceGarbageCollected> >, testInterf aceGarbageCollectedSequenceArg, (toMemberNativeArray<TestInterfaceGarbageCollect ed, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate())));
7790 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg); 7790 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg);
7791 } 7791 }
7792 7792
7793 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 7793 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
7794 { 7794 {
7795 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7795 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7796 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info); 7796 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info);
7797 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7797 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7798 } 7798 }
7799 7799
7800 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 7800 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
7801 { 7801 {
7802 if (UNLIKELY(info.Length() < 1)) { 7802 if (UNLIKELY(info.Length() < 1)) {
7803 throwArityTypeErrorForMethod("voidMethodTestInterfaceGarbageCollectedArr ayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 7803 throwArityTypeErrorForMethod("voidMethodTestInterfaceGarbageCollectedArr ayArg", "TestObject", 1, info.Length(), info.GetIsolate());
7804 return; 7804 return;
7805 } 7805 }
7806 TestObject* impl = V8TestObject::toNative(info.Holder()); 7806 TestObject* impl = V8TestObject::toNative(info.Holder());
7807 V8TRYCATCH_VOID(HeapVector<Member<TestInterfaceGarbageCollected> >, testInte rfaceGarbageCollectedArrayArg, (toMemberNativeArray<TestInterfaceGarbageCollecte d, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate()))); 7807 TONATIVE_VOID(HeapVector<Member<TestInterfaceGarbageCollected> >, testInterf aceGarbageCollectedArrayArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate())));
7808 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg); 7808 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg);
7809 } 7809 }
7810 7810
7811 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 7811 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7812 { 7812 {
7813 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7813 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7814 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info); 7814 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info);
7815 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7815 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7816 } 7816 }
7817 7817
7818 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 7818 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7819 { 7819 {
7820 if (UNLIKELY(info.Length() < 1)) { 7820 if (UNLIKELY(info.Length() < 1)) {
7821 throwArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbageCollec tedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); 7821 throwArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbageCollec tedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate());
7822 return; 7822 return;
7823 } 7823 }
7824 TestObject* impl = V8TestObject::toNative(info.Holder()); 7824 TestObject* impl = V8TestObject::toNative(info.Holder());
7825 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba geCollected> >, testInterfaceWillBeGarbageCollectedSequenceArg, (toRefPtrWillBeM emberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarba geCollected>(info[0], 1, info.GetIsolate()))); 7825 TONATIVE_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbage Collected> >, testInterfaceWillBeGarbageCollectedSequenceArg, (toRefPtrWillBeMem berNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbage Collected>(info[0], 1, info.GetIsolate())));
7826 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg); 7826 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg);
7827 } 7827 }
7828 7828
7829 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 7829 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
7830 { 7830 {
7831 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7831 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7832 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info); 7832 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info);
7833 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7833 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7834 } 7834 }
7835 7835
7836 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 7836 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
7837 { 7837 {
7838 if (UNLIKELY(info.Length() < 1)) { 7838 if (UNLIKELY(info.Length() < 1)) {
7839 throwArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbageCollec tedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 7839 throwArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbageCollec tedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
7840 return; 7840 return;
7841 } 7841 }
7842 TestObject* impl = V8TestObject::toNative(info.Holder()); 7842 TestObject* impl = V8TestObject::toNative(info.Holder());
7843 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba geCollected> >, testInterfaceWillBeGarbageCollectedArrayArg, (toRefPtrWillBeMemb erNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageC ollected>(info[0], 1, info.GetIsolate()))); 7843 TONATIVE_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbage Collected> >, testInterfaceWillBeGarbageCollectedArrayArg, (toRefPtrWillBeMember NativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCol lected>(info[0], 1, info.GetIsolate())));
7844 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg); 7844 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg);
7845 } 7845 }
7846 7846
7847 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 7847 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
7848 { 7848 {
7849 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7849 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7850 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM ethod(info); 7850 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM ethod(info);
7851 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7851 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7852 } 7852 }
7853 7853
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
8348 fromInternalPointer(object)->deref(); 8348 fromInternalPointer(object)->deref();
8349 } 8349 }
8350 8350
8351 template<> 8351 template<>
8352 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 8352 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
8353 { 8353 {
8354 return toV8(impl, creationContext, isolate); 8354 return toV8(impl, creationContext, isolate);
8355 } 8355 }
8356 8356
8357 } // namespace WebCore 8357 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestNode.cpp ('k') | Source/bindings/tests/results/V8TestSpecialOperations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698