OLD | NEW |
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 { | 171 { |
172 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 172 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
173 TestObjectV8Internal::stringAttributeAttributeGetter(info); | 173 TestObjectV8Internal::stringAttributeAttributeGetter(info); |
174 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 174 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
175 } | 175 } |
176 | 176 |
177 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 177 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
178 { | 178 { |
179 v8::Handle<v8::Object> holder = info.Holder(); | 179 v8::Handle<v8::Object> holder = info.Holder(); |
180 TestObject* impl = V8TestObject::toNative(holder); | 180 TestObject* impl = V8TestObject::toNative(holder); |
181 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 181 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
182 impl->setStringAttribute(cppValue); | 182 impl->setStringAttribute(cppValue); |
183 } | 183 } |
184 | 184 |
185 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 185 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
186 { | 186 { |
187 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 187 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
188 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); | 188 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); |
189 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 189 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
190 } | 190 } |
191 | 191 |
192 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 192 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
193 { | 193 { |
194 v8::Handle<v8::Object> holder = info.Holder(); | 194 v8::Handle<v8::Object> holder = info.Holder(); |
195 TestObject* impl = V8TestObject::toNative(holder); | 195 TestObject* impl = V8TestObject::toNative(holder); |
196 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); | 196 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); |
197 } | 197 } |
198 | 198 |
199 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 199 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
200 { | 200 { |
201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
202 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); | 202 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); |
203 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 203 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
204 } | 204 } |
205 | 205 |
206 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 206 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
207 { | 207 { |
208 v8::Handle<v8::Object> holder = info.Holder(); | 208 v8::Handle<v8::Object> holder = info.Holder(); |
209 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt
tribute", "TestObject", holder, info.GetIsolate()); | 209 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt
tribute", "TestObject", holder, info.GetIsolate()); |
210 TestObject* impl = V8TestObject::toNative(holder); | 210 TestObject* impl = V8TestObject::toNative(holder); |
211 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(v8Value, ex
ceptionState), exceptionState); | 211 V8TRYCATCH_VOID_EXCEPTION(unsigned long long, cppValue, toUInt64(v8Value, ex
ceptionState), exceptionState); |
212 impl->setDomTimeStampAttribute(cppValue); | 212 impl->setDomTimeStampAttribute(cppValue); |
213 } | 213 } |
214 | 214 |
215 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 215 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
216 { | 216 { |
217 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 217 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
218 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); | 218 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); |
219 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 219 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
220 } | 220 } |
221 | 221 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 260 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
261 TestObjectV8Internal::byteAttributeAttributeGetter(info); | 261 TestObjectV8Internal::byteAttributeAttributeGetter(info); |
262 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 262 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
263 } | 263 } |
264 | 264 |
265 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 265 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
266 { | 266 { |
267 v8::Handle<v8::Object> holder = info.Holder(); | 267 v8::Handle<v8::Object> holder = info.Holder(); |
268 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObject", holder, info.GetIsolate()); | 268 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObject", holder, info.GetIsolate()); |
269 TestObject* impl = V8TestObject::toNative(holder); | 269 TestObject* impl = V8TestObject::toNative(holder); |
270 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt8(v8Value, exceptionState), ex
ceptionState); | 270 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt8(v8Value, exceptionState), ex
ceptionState); |
271 impl->setByteAttribute(cppValue); | 271 impl->setByteAttribute(cppValue); |
272 } | 272 } |
273 | 273 |
274 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 274 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
275 { | 275 { |
276 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 276 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
277 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); | 277 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); |
278 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 278 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
279 } | 279 } |
280 | 280 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 348 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
349 TestObjectV8Internal::longAttributeAttributeGetter(info); | 349 TestObjectV8Internal::longAttributeAttributeGetter(info); |
350 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 350 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
351 } | 351 } |
352 | 352 |
353 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 353 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
354 { | 354 { |
355 v8::Handle<v8::Object> holder = info.Holder(); | 355 v8::Handle<v8::Object> holder = info.Holder(); |
356 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObject", holder, info.GetIsolate()); | 356 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObject", holder, info.GetIsolate()); |
357 TestObject* impl = V8TestObject::toNative(holder); | 357 TestObject* impl = V8TestObject::toNative(holder); |
358 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 358 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
359 impl->setLongAttribute(cppValue); | 359 impl->setLongAttribute(cppValue); |
360 } | 360 } |
361 | 361 |
362 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 362 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
363 { | 363 { |
364 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 364 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
365 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); | 365 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); |
366 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 366 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
367 } | 367 } |
368 | 368 |
369 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 369 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
370 { | 370 { |
371 v8::Handle<v8::Object> holder = info.Holder(); | 371 v8::Handle<v8::Object> holder = info.Holder(); |
372 TestObject* impl = V8TestObject::toNative(holder); | 372 TestObject* impl = V8TestObject::toNative(holder); |
373 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); | 373 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); |
374 } | 374 } |
375 | 375 |
376 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 376 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
377 { | 377 { |
378 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 378 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
379 TestObjectV8Internal::longLongAttributeAttributeGetter(info); | 379 TestObjectV8Internal::longLongAttributeAttributeGetter(info); |
380 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 380 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
381 } | 381 } |
382 | 382 |
383 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 383 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
384 { | 384 { |
385 v8::Handle<v8::Object> holder = info.Holder(); | 385 v8::Handle<v8::Object> holder = info.Holder(); |
386 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObject", holder, info.GetIsolate()); | 386 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObject", holder, info.GetIsolate()); |
387 TestObject* impl = V8TestObject::toNative(holder); | 387 TestObject* impl = V8TestObject::toNative(holder); |
388 V8TRYCATCH_EXCEPTION_VOID(long long, cppValue, toInt64(v8Value, exceptionSta
te), exceptionState); | 388 V8TRYCATCH_VOID_EXCEPTION(long long, cppValue, toInt64(v8Value, exceptionSta
te), exceptionState); |
389 impl->setLongLongAttribute(cppValue); | 389 impl->setLongLongAttribute(cppValue); |
390 } | 390 } |
391 | 391 |
392 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 392 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
393 { | 393 { |
394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
395 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); | 395 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); |
396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
397 } | 397 } |
398 | 398 |
399 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 399 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
400 { | 400 { |
401 v8::Handle<v8::Object> holder = info.Holder(); | 401 v8::Handle<v8::Object> holder = info.Holder(); |
402 TestObject* impl = V8TestObject::toNative(holder); | 402 TestObject* impl = V8TestObject::toNative(holder); |
403 v8SetReturnValueUnsigned(info, impl->octetAttribute()); | 403 v8SetReturnValueUnsigned(info, impl->octetAttribute()); |
404 } | 404 } |
405 | 405 |
406 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 406 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
407 { | 407 { |
408 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 408 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
409 TestObjectV8Internal::octetAttributeAttributeGetter(info); | 409 TestObjectV8Internal::octetAttributeAttributeGetter(info); |
410 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 410 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
411 } | 411 } |
412 | 412 |
413 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 413 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
414 { | 414 { |
415 v8::Handle<v8::Object> holder = info.Holder(); | 415 v8::Handle<v8::Object> holder = info.Holder(); |
416 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObject", holder, info.GetIsolate()); | 416 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObject", holder, info.GetIsolate()); |
417 TestObject* impl = V8TestObject::toNative(holder); | 417 TestObject* impl = V8TestObject::toNative(holder); |
418 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt8(v8Value, exceptionStat
e), exceptionState); | 418 V8TRYCATCH_VOID_EXCEPTION(unsigned, cppValue, toUInt8(v8Value, exceptionStat
e), exceptionState); |
419 impl->setOctetAttribute(cppValue); | 419 impl->setOctetAttribute(cppValue); |
420 } | 420 } |
421 | 421 |
422 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 422 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
423 { | 423 { |
424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
425 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); | 425 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); |
426 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 426 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
427 } | 427 } |
428 | 428 |
429 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 429 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
430 { | 430 { |
431 v8::Handle<v8::Object> holder = info.Holder(); | 431 v8::Handle<v8::Object> holder = info.Holder(); |
432 TestObject* impl = V8TestObject::toNative(holder); | 432 TestObject* impl = V8TestObject::toNative(holder); |
433 v8SetReturnValueInt(info, impl->shortAttribute()); | 433 v8SetReturnValueInt(info, impl->shortAttribute()); |
434 } | 434 } |
435 | 435 |
436 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 436 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
437 { | 437 { |
438 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 438 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
439 TestObjectV8Internal::shortAttributeAttributeGetter(info); | 439 TestObjectV8Internal::shortAttributeAttributeGetter(info); |
440 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 440 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
441 } | 441 } |
442 | 442 |
443 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 443 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
444 { | 444 { |
445 v8::Handle<v8::Object> holder = info.Holder(); | 445 v8::Handle<v8::Object> holder = info.Holder(); |
446 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); | 446 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); |
447 TestObject* impl = V8TestObject::toNative(holder); | 447 TestObject* impl = V8TestObject::toNative(holder); |
448 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt16(v8Value, exceptionState), e
xceptionState); | 448 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt16(v8Value, exceptionState), e
xceptionState); |
449 impl->setShortAttribute(cppValue); | 449 impl->setShortAttribute(cppValue); |
450 } | 450 } |
451 | 451 |
452 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 452 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
453 { | 453 { |
454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
455 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); | 455 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); |
456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
457 } | 457 } |
458 | 458 |
459 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 459 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
460 { | 460 { |
461 v8::Handle<v8::Object> holder = info.Holder(); | 461 v8::Handle<v8::Object> holder = info.Holder(); |
462 TestObject* impl = V8TestObject::toNative(holder); | 462 TestObject* impl = V8TestObject::toNative(holder); |
463 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); | 463 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); |
464 } | 464 } |
465 | 465 |
466 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 466 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
467 { | 467 { |
468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
469 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); | 469 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); |
470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
471 } | 471 } |
472 | 472 |
473 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 473 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
474 { | 474 { |
475 v8::Handle<v8::Object> holder = info.Holder(); | 475 v8::Handle<v8::Object> holder = info.Holder(); |
476 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObject", holder, info.GetIsolate()); | 476 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObject", holder, info.GetIsolate()); |
477 TestObject* impl = V8TestObject::toNative(holder); | 477 TestObject* impl = V8TestObject::toNative(holder); |
478 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(v8Value, exceptionSta
te), exceptionState); | 478 V8TRYCATCH_VOID_EXCEPTION(unsigned, cppValue, toUInt32(v8Value, exceptionSta
te), exceptionState); |
479 impl->setUnsignedLongAttribute(cppValue); | 479 impl->setUnsignedLongAttribute(cppValue); |
480 } | 480 } |
481 | 481 |
482 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 482 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
483 { | 483 { |
484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
485 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); | 485 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); |
486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
487 } | 487 } |
488 | 488 |
489 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 489 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
490 { | 490 { |
491 v8::Handle<v8::Object> holder = info.Holder(); | 491 v8::Handle<v8::Object> holder = info.Holder(); |
492 TestObject* impl = V8TestObject::toNative(holder); | 492 TestObject* impl = V8TestObject::toNative(holder); |
493 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute()
)); | 493 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute()
)); |
494 } | 494 } |
495 | 495 |
496 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 496 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
497 { | 497 { |
498 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 498 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
499 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); | 499 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); |
500 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 500 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
501 } | 501 } |
502 | 502 |
503 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 503 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
504 { | 504 { |
505 v8::Handle<v8::Object> holder = info.Holder(); | 505 v8::Handle<v8::Object> holder = info.Holder(); |
506 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 506 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
507 TestObject* impl = V8TestObject::toNative(holder); | 507 TestObject* impl = V8TestObject::toNative(holder); |
508 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(v8Value, ex
ceptionState), exceptionState); | 508 V8TRYCATCH_VOID_EXCEPTION(unsigned long long, cppValue, toUInt64(v8Value, ex
ceptionState), exceptionState); |
509 impl->setUnsignedLongLongAttribute(cppValue); | 509 impl->setUnsignedLongLongAttribute(cppValue); |
510 } | 510 } |
511 | 511 |
512 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 512 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
513 { | 513 { |
514 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 514 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
515 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info
); | 515 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info
); |
516 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 516 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
517 } | 517 } |
518 | 518 |
519 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 519 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
520 { | 520 { |
521 v8::Handle<v8::Object> holder = info.Holder(); | 521 v8::Handle<v8::Object> holder = info.Holder(); |
522 TestObject* impl = V8TestObject::toNative(holder); | 522 TestObject* impl = V8TestObject::toNative(holder); |
523 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); | 523 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); |
524 } | 524 } |
525 | 525 |
526 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 526 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
527 { | 527 { |
528 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 528 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
529 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); | 529 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); |
530 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 530 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
531 } | 531 } |
532 | 532 |
533 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 533 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
534 { | 534 { |
535 v8::Handle<v8::Object> holder = info.Holder(); | 535 v8::Handle<v8::Object> holder = info.Holder(); |
536 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObject", holder, info.GetIsolate()); | 536 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObject", holder, info.GetIsolate()); |
537 TestObject* impl = V8TestObject::toNative(holder); | 537 TestObject* impl = V8TestObject::toNative(holder); |
538 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(v8Value, exceptionSta
te), exceptionState); | 538 V8TRYCATCH_VOID_EXCEPTION(unsigned, cppValue, toUInt16(v8Value, exceptionSta
te), exceptionState); |
539 impl->setUnsignedShortAttribute(cppValue); | 539 impl->setUnsignedShortAttribute(cppValue); |
540 } | 540 } |
541 | 541 |
542 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 542 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
543 { | 543 { |
544 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 544 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
545 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); | 545 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); |
546 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 546 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
547 } | 547 } |
548 | 548 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 674 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
675 TestObjectV8Internal::cssAttributeAttributeGetter(info); | 675 TestObjectV8Internal::cssAttributeAttributeGetter(info); |
676 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 676 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
677 } | 677 } |
678 | 678 |
679 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 679 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
680 { | 680 { |
681 v8::Handle<v8::Object> holder = info.Holder(); | 681 v8::Handle<v8::Object> holder = info.Holder(); |
682 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObject", holder, info.GetIsolate()); | 682 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObject", holder, info.GetIsolate()); |
683 TestObject* impl = V8TestObject::toNative(holder); | 683 TestObject* impl = V8TestObject::toNative(holder); |
684 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 684 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
685 impl->setCSSAttribute(cppValue); | 685 impl->setCSSAttribute(cppValue); |
686 } | 686 } |
687 | 687 |
688 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 688 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
689 { | 689 { |
690 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 690 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
691 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); | 691 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); |
692 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 692 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
693 } | 693 } |
694 | 694 |
695 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 695 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
696 { | 696 { |
697 v8::Handle<v8::Object> holder = info.Holder(); | 697 v8::Handle<v8::Object> holder = info.Holder(); |
698 TestObject* impl = V8TestObject::toNative(holder); | 698 TestObject* impl = V8TestObject::toNative(holder); |
699 v8SetReturnValueInt(info, impl->imeAttribute()); | 699 v8SetReturnValueInt(info, impl->imeAttribute()); |
700 } | 700 } |
701 | 701 |
702 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 702 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
703 { | 703 { |
704 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 704 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
705 TestObjectV8Internal::imeAttributeAttributeGetter(info); | 705 TestObjectV8Internal::imeAttributeAttributeGetter(info); |
706 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 706 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
707 } | 707 } |
708 | 708 |
709 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 709 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
710 { | 710 { |
711 v8::Handle<v8::Object> holder = info.Holder(); | 711 v8::Handle<v8::Object> holder = info.Holder(); |
712 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObject", holder, info.GetIsolate()); | 712 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObject", holder, info.GetIsolate()); |
713 TestObject* impl = V8TestObject::toNative(holder); | 713 TestObject* impl = V8TestObject::toNative(holder); |
714 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 714 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
715 impl->setIMEAttribute(cppValue); | 715 impl->setIMEAttribute(cppValue); |
716 } | 716 } |
717 | 717 |
718 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 718 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
719 { | 719 { |
720 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 720 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
721 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); | 721 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); |
722 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 722 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
723 } | 723 } |
724 | 724 |
725 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 725 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
726 { | 726 { |
727 v8::Handle<v8::Object> holder = info.Holder(); | 727 v8::Handle<v8::Object> holder = info.Holder(); |
728 TestObject* impl = V8TestObject::toNative(holder); | 728 TestObject* impl = V8TestObject::toNative(holder); |
729 v8SetReturnValueInt(info, impl->svgAttribute()); | 729 v8SetReturnValueInt(info, impl->svgAttribute()); |
730 } | 730 } |
731 | 731 |
732 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 732 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
733 { | 733 { |
734 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 734 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
735 TestObjectV8Internal::svgAttributeAttributeGetter(info); | 735 TestObjectV8Internal::svgAttributeAttributeGetter(info); |
736 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 736 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
737 } | 737 } |
738 | 738 |
739 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 739 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
740 { | 740 { |
741 v8::Handle<v8::Object> holder = info.Holder(); | 741 v8::Handle<v8::Object> holder = info.Holder(); |
742 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObject", holder, info.GetIsolate()); | 742 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObject", holder, info.GetIsolate()); |
743 TestObject* impl = V8TestObject::toNative(holder); | 743 TestObject* impl = V8TestObject::toNative(holder); |
744 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 744 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
745 impl->setSVGAttribute(cppValue); | 745 impl->setSVGAttribute(cppValue); |
746 } | 746 } |
747 | 747 |
748 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 748 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
749 { | 749 { |
750 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 750 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
751 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); | 751 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); |
752 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 752 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
753 } | 753 } |
754 | 754 |
755 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 755 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
756 { | 756 { |
757 v8::Handle<v8::Object> holder = info.Holder(); | 757 v8::Handle<v8::Object> holder = info.Holder(); |
758 TestObject* impl = V8TestObject::toNative(holder); | 758 TestObject* impl = V8TestObject::toNative(holder); |
759 v8SetReturnValueInt(info, impl->xmlAttribute()); | 759 v8SetReturnValueInt(info, impl->xmlAttribute()); |
760 } | 760 } |
761 | 761 |
762 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 762 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
763 { | 763 { |
764 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 764 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
765 TestObjectV8Internal::xmlAttributeAttributeGetter(info); | 765 TestObjectV8Internal::xmlAttributeAttributeGetter(info); |
766 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 766 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
767 } | 767 } |
768 | 768 |
769 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 769 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
770 { | 770 { |
771 v8::Handle<v8::Object> holder = info.Holder(); | 771 v8::Handle<v8::Object> holder = info.Holder(); |
772 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObject", holder, info.GetIsolate()); | 772 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObject", holder, info.GetIsolate()); |
773 TestObject* impl = V8TestObject::toNative(holder); | 773 TestObject* impl = V8TestObject::toNative(holder); |
774 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 774 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
775 impl->setXMLAttribute(cppValue); | 775 impl->setXMLAttribute(cppValue); |
776 } | 776 } |
777 | 777 |
778 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 778 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
779 { | 779 { |
780 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 780 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
781 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); | 781 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); |
782 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 782 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
783 } | 783 } |
784 | 784 |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1382 { | 1382 { |
1383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1384 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); | 1384 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); |
1385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1386 } | 1386 } |
1387 | 1387 |
1388 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1388 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
1389 { | 1389 { |
1390 v8::Handle<v8::Object> holder = info.Holder(); | 1390 v8::Handle<v8::Object> holder = info.Holder(); |
1391 TestObject* impl = V8TestObject::toNative(holder); | 1391 TestObject* impl = V8TestObject::toNative(holder); |
1392 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 1392 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
1393 impl->setStringOrNullAttribute(cppValue); | 1393 impl->setStringOrNullAttribute(cppValue); |
1394 } | 1394 } |
1395 | 1395 |
1396 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1396 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1397 { | 1397 { |
1398 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1398 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1399 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); | 1399 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); |
1400 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1400 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1401 } | 1401 } |
1402 | 1402 |
(...skipping 15 matching lines...) Expand all Loading... |
1418 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1418 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1419 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); | 1419 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); |
1420 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1420 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1421 } | 1421 } |
1422 | 1422 |
1423 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1423 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
1424 { | 1424 { |
1425 v8::Handle<v8::Object> holder = info.Holder(); | 1425 v8::Handle<v8::Object> holder = info.Holder(); |
1426 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1426 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr
ibute", "TestObject", holder, info.GetIsolate()); |
1427 TestObject* impl = V8TestObject::toNative(holder); | 1427 TestObject* impl = V8TestObject::toNative(holder); |
1428 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1428 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1429 impl->setLongOrNullAttribute(cppValue); | 1429 impl->setLongOrNullAttribute(cppValue); |
1430 } | 1430 } |
1431 | 1431 |
1432 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1432 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1433 { | 1433 { |
1434 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1434 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1435 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); | 1435 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); |
1436 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1436 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1437 } | 1437 } |
1438 | 1438 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1482 { | 1482 { |
1483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1484 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); | 1484 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); |
1485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1486 } | 1486 } |
1487 | 1487 |
1488 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 1488 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
1489 { | 1489 { |
1490 v8::Handle<v8::Object> holder = info.Holder(); | 1490 v8::Handle<v8::Object> holder = info.Holder(); |
1491 TestObject* impl = V8TestObject::toNative(holder); | 1491 TestObject* impl = V8TestObject::toNative(holder); |
1492 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 1492 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
1493 String string = cppValue; | 1493 String string = cppValue; |
1494 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) | 1494 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) |
1495 return; | 1495 return; |
1496 impl->setTestEnumAttribute(cppValue); | 1496 impl->setTestEnumAttribute(cppValue); |
1497 } | 1497 } |
1498 | 1498 |
1499 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1499 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1500 { | 1500 { |
1501 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1501 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1502 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); | 1502 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); |
1503 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1503 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1504 } | 1504 } |
1505 | 1505 |
1506 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1506 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
1507 { | 1507 { |
1508 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs
olate()); | 1508 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs
olate()); |
1509 } | 1509 } |
1510 | 1510 |
1511 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1511 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1512 { | 1512 { |
1513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1514 TestObjectV8Internal::staticStringAttributeAttributeGetter(info); | 1514 TestObjectV8Internal::staticStringAttributeAttributeGetter(info); |
1515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1516 } | 1516 } |
1517 | 1517 |
1518 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1518 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
1519 { | 1519 { |
1520 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 1520 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
1521 TestObject::setStaticStringAttribute(cppValue); | 1521 TestObject::setStaticStringAttribute(cppValue); |
1522 } | 1522 } |
1523 | 1523 |
1524 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1524 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1525 { | 1525 { |
1526 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1526 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1527 TestObjectV8Internal::staticStringAttributeAttributeSetter(v8Value, info); | 1527 TestObjectV8Internal::staticStringAttributeAttributeSetter(v8Value, info); |
1528 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1528 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1529 } | 1529 } |
1530 | 1530 |
1531 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1531 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
1532 { | 1532 { |
1533 v8SetReturnValueInt(info, TestObject::staticLongAttribute()); | 1533 v8SetReturnValueInt(info, TestObject::staticLongAttribute()); |
1534 } | 1534 } |
1535 | 1535 |
1536 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1536 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1537 { | 1537 { |
1538 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1538 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1539 TestObjectV8Internal::staticLongAttributeAttributeGetter(info); | 1539 TestObjectV8Internal::staticLongAttributeAttributeGetter(info); |
1540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1541 } | 1541 } |
1542 | 1542 |
1543 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1543 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
1544 { | 1544 { |
1545 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1545 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr
ibute", "TestObject", holder, info.GetIsolate()); |
1546 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1546 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1547 TestObject::setStaticLongAttribute(cppValue); | 1547 TestObject::setStaticLongAttribute(cppValue); |
1548 } | 1548 } |
1549 | 1549 |
1550 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1550 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1551 { | 1551 { |
1552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1553 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); | 1553 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); |
1554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1555 } | 1555 } |
1556 | 1556 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1599 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA
llWorldsLongAttribute", 0, 0, "Getter"); | 1599 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA
llWorldsLongAttribute", 0, 0, "Getter"); |
1600 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); | 1600 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); |
1601 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1601 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1602 } | 1602 } |
1603 | 1603 |
1604 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1604 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1605 { | 1605 { |
1606 v8::Handle<v8::Object> holder = info.Holder(); | 1606 v8::Handle<v8::Object> holder = info.Holder(); |
1607 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1607 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
1608 TestObject* impl = V8TestObject::toNative(holder); | 1608 TestObject* impl = V8TestObject::toNative(holder); |
1609 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1609 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1610 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); | 1610 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); |
1611 } | 1611 } |
1612 | 1612 |
1613 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 1613 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
1614 { | 1614 { |
1615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1616 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1616 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1617 if (contextData && contextData->activityLogger()) { | 1617 if (contextData && contextData->activityLogger()) { |
1618 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 1618 v8::Handle<v8::Value> loggerArg[] = { v8Value }; |
1619 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA
llWorldsLongAttribute", 1, &loggerArg[0], "Setter"); | 1619 contextData->activityLogger()->log("TestObject.activityLoggingAccessForA
llWorldsLongAttribute", 1, &loggerArg[0], "Setter"); |
(...skipping 17 matching lines...) Expand all Loading... |
1637 contextData->activityLogger()->log("TestObject.activityLoggingGetterForA
llWorldsLongAttribute", 0, 0, "Getter"); | 1637 contextData->activityLogger()->log("TestObject.activityLoggingGetterForA
llWorldsLongAttribute", 0, 0, "Getter"); |
1638 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); | 1638 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); |
1639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1640 } | 1640 } |
1641 | 1641 |
1642 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1642 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1643 { | 1643 { |
1644 v8::Handle<v8::Object> holder = info.Holder(); | 1644 v8::Handle<v8::Object> holder = info.Holder(); |
1645 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1645 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
1646 TestObject* impl = V8TestObject::toNative(holder); | 1646 TestObject* impl = V8TestObject::toNative(holder); |
1647 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1647 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1648 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); | 1648 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); |
1649 } | 1649 } |
1650 | 1650 |
1651 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 1651 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
1652 { | 1652 { |
1653 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1653 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1654 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 1654 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); |
1655 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1655 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1656 } | 1656 } |
1657 | 1657 |
1658 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 1658 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
1659 { | 1659 { |
1660 v8::Handle<v8::Object> holder = info.Holder(); | 1660 v8::Handle<v8::Object> holder = info.Holder(); |
1661 TestObject* impl = V8TestObject::toNative(holder); | 1661 TestObject* impl = V8TestObject::toNative(holder); |
1662 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); | 1662 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); |
1663 } | 1663 } |
1664 | 1664 |
1665 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1665 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1666 { | 1666 { |
1667 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1667 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1668 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eGetter(info); | 1668 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eGetter(info); |
1669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1670 } | 1670 } |
1671 | 1671 |
1672 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1672 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1673 { | 1673 { |
1674 v8::Handle<v8::Object> holder = info.Holder(); | 1674 v8::Handle<v8::Object> holder = info.Holder(); |
1675 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 1675 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
1676 TestObject* impl = V8TestObject::toNative(holder); | 1676 TestObject* impl = V8TestObject::toNative(holder); |
1677 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1677 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1678 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); | 1678 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); |
1679 } | 1679 } |
1680 | 1680 |
1681 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 1681 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) |
1682 { | 1682 { |
1683 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1683 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1684 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1684 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1685 if (contextData && contextData->activityLogger()) { | 1685 if (contextData && contextData->activityLogger()) { |
1686 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 1686 v8::Handle<v8::Value> loggerArg[] = { v8Value }; |
1687 contextData->activityLogger()->log("TestObject.activityLoggingSetterForA
llWorldsLongAttribute", 1, &loggerArg[0], "Setter"); | 1687 contextData->activityLogger()->log("TestObject.activityLoggingSetterForA
llWorldsLongAttribute", 1, &loggerArg[0], "Setter"); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1798 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1798 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1799 } | 1799 } |
1800 #endif // ENABLE(CONDITION) | 1800 #endif // ENABLE(CONDITION) |
1801 | 1801 |
1802 #if ENABLE(CONDITION) | 1802 #if ENABLE(CONDITION) |
1803 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 1803 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) |
1804 { | 1804 { |
1805 v8::Handle<v8::Object> holder = info.Holder(); | 1805 v8::Handle<v8::Object> holder = info.Holder(); |
1806 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObject", holder, info.GetIsolate()); | 1806 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObject", holder, info.GetIsolate()); |
1807 TestObject* impl = V8TestObject::toNative(holder); | 1807 TestObject* impl = V8TestObject::toNative(holder); |
1808 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1808 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1809 impl->setConditionalLongAttribute(cppValue); | 1809 impl->setConditionalLongAttribute(cppValue); |
1810 } | 1810 } |
1811 #endif // ENABLE(CONDITION) | 1811 #endif // ENABLE(CONDITION) |
1812 | 1812 |
1813 #if ENABLE(CONDITION) | 1813 #if ENABLE(CONDITION) |
1814 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1814 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1815 { | 1815 { |
1816 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1816 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1817 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info)
; | 1817 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info)
; |
1818 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1818 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 17 matching lines...) Expand all Loading... |
1836 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1836 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1837 } | 1837 } |
1838 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1838 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1839 | 1839 |
1840 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1840 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1841 static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 1841 static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
1842 { | 1842 { |
1843 v8::Handle<v8::Object> holder = info.Holder(); | 1843 v8::Handle<v8::Object> holder = info.Holder(); |
1844 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAnd
LongAttribute", "TestObject", holder, info.GetIsolate()); | 1844 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAnd
LongAttribute", "TestObject", holder, info.GetIsolate()); |
1845 TestObject* impl = V8TestObject::toNative(holder); | 1845 TestObject* impl = V8TestObject::toNative(holder); |
1846 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1846 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1847 impl->setConditionalAndLongAttribute(cppValue); | 1847 impl->setConditionalAndLongAttribute(cppValue); |
1848 } | 1848 } |
1849 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1849 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1850 | 1850 |
1851 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1851 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1852 static void conditionalAndLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1852 static void conditionalAndLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1853 { | 1853 { |
1854 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1854 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1855 TestObjectV8Internal::conditionalAndLongAttributeAttributeSetter(v8Value, in
fo); | 1855 TestObjectV8Internal::conditionalAndLongAttributeAttributeSetter(v8Value, in
fo); |
1856 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1856 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 17 matching lines...) Expand all Loading... |
1874 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1874 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1875 } | 1875 } |
1876 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1876 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1877 | 1877 |
1878 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1878 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1879 static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 1879 static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
1880 { | 1880 { |
1881 v8::Handle<v8::Object> holder = info.Holder(); | 1881 v8::Handle<v8::Object> holder = info.Holder(); |
1882 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalOrL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 1882 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalOrL
ongAttribute", "TestObject", holder, info.GetIsolate()); |
1883 TestObject* impl = V8TestObject::toNative(holder); | 1883 TestObject* impl = V8TestObject::toNative(holder); |
1884 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1884 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1885 impl->setConditionalOrLongAttribute(cppValue); | 1885 impl->setConditionalOrLongAttribute(cppValue); |
1886 } | 1886 } |
1887 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1887 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1888 | 1888 |
1889 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1889 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1890 static void conditionalOrLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1890 static void conditionalOrLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1891 { | 1891 { |
1892 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1892 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1893 TestObjectV8Internal::conditionalOrLongAttributeAttributeSetter(v8Value, inf
o); | 1893 TestObjectV8Internal::conditionalOrLongAttributeAttributeSetter(v8Value, inf
o); |
1894 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1894 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 19 matching lines...) Expand all Loading... |
1914 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1914 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1915 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); | 1915 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); |
1916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1917 } | 1917 } |
1918 | 1918 |
1919 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 1919 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
1920 { | 1920 { |
1921 v8::Handle<v8::Object> holder = info.Holder(); | 1921 v8::Handle<v8::Object> holder = info.Holder(); |
1922 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 1922 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
1923 TestObject* impl = V8TestObject::toNative(holder); | 1923 TestObject* impl = V8TestObject::toNative(holder); |
1924 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 1924 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
1925 impl->setCustomGetterLongAttribute(cppValue); | 1925 impl->setCustomGetterLongAttribute(cppValue); |
1926 } | 1926 } |
1927 | 1927 |
1928 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1928 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1929 { | 1929 { |
1930 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1930 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1931 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info
); | 1931 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info
); |
1932 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1932 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1933 } | 1933 } |
1934 | 1934 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2005 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::LongAttribute); | 2005 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::LongAttribute); |
2006 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); | 2006 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); |
2007 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2007 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2008 } | 2008 } |
2009 | 2009 |
2010 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 2010 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
2011 { | 2011 { |
2012 v8::Handle<v8::Object> holder = info.Holder(); | 2012 v8::Handle<v8::Object> holder = info.Holder(); |
2013 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObject", holder, info.GetIsolate()); | 2013 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObject", holder, info.GetIsolate()); |
2014 TestObject* impl = V8TestObject::toNative(holder); | 2014 TestObject* impl = V8TestObject::toNative(holder); |
2015 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2015 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2016 impl->setDeprecatedLongAttribute(cppValue); | 2016 impl->setDeprecatedLongAttribute(cppValue); |
2017 } | 2017 } |
2018 | 2018 |
2019 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2019 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2020 { | 2020 { |
2021 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2021 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2022 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::LongAttribute); | 2022 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::LongAttribute); |
2023 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); | 2023 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); |
2024 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2024 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2025 } | 2025 } |
(...skipping 10 matching lines...) Expand all Loading... |
2036 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2036 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2037 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); | 2037 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); |
2038 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2038 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2039 } | 2039 } |
2040 | 2040 |
2041 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 2041 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
2042 { | 2042 { |
2043 v8::Handle<v8::Object> holder = info.Holder(); | 2043 v8::Handle<v8::Object> holder = info.Holder(); |
2044 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 2044 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
2045 TestObject* impl = V8TestObject::toNative(holder); | 2045 TestObject* impl = V8TestObject::toNative(holder); |
2046 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, EnforceRange, exce
ptionState), exceptionState); | 2046 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, EnforceRange, exce
ptionState), exceptionState); |
2047 impl->setEnforceRangeLongAttribute(cppValue); | 2047 impl->setEnforceRangeLongAttribute(cppValue); |
2048 } | 2048 } |
2049 | 2049 |
2050 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2050 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2051 { | 2051 { |
2052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2053 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info
); | 2053 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info
); |
2054 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2054 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2055 } | 2055 } |
2056 | 2056 |
2057 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) | 2057 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) |
2058 { | 2058 { |
2059 v8::Handle<v8::Object> holder = info.Holder(); | 2059 v8::Handle<v8::Object> holder = info.Holder(); |
2060 TestObject* impl = V8TestObject::toNative(holder); | 2060 TestObject* impl = V8TestObject::toNative(holder); |
2061 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); | 2061 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); |
2062 } | 2062 } |
2063 | 2063 |
2064 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 2064 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
2065 { | 2065 { |
2066 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2066 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2067 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info); | 2067 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info); |
2068 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2068 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2069 } | 2069 } |
2070 | 2070 |
2071 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::FunctionCallbackInfo<v8::Value>& info) | 2071 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2072 { | 2072 { |
2073 v8::Handle<v8::Object> holder = info.Holder(); | 2073 v8::Handle<v8::Object> holder = info.Holder(); |
2074 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2074 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2075 TestObject* impl = V8TestObject::toNative(holder); | 2075 TestObject* impl = V8TestObject::toNative(holder); |
2076 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2076 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2077 impl->setExposeJSAccessorsLongAttribute(cppValue); | 2077 impl->setExposeJSAccessorsLongAttribute(cppValue); |
2078 } | 2078 } |
2079 | 2079 |
2080 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 2080 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
2081 { | 2081 { |
2082 v8::Local<v8::Value> v8Value = info[0]; | 2082 v8::Local<v8::Value> v8Value = info[0]; |
2083 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2083 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2084 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value,
info); | 2084 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value,
info); |
2085 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2085 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2086 } | 2086 } |
(...skipping 10 matching lines...) Expand all Loading... |
2097 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2097 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2098 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); | 2098 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); |
2099 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2099 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2100 } | 2100 } |
2101 | 2101 |
2102 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 2102 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
2103 { | 2103 { |
2104 v8::Handle<v8::Object> holder = info.Holder(); | 2104 v8::Handle<v8::Object> holder = info.Holder(); |
2105 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 2105 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObject", holder, info.GetIsolate()); |
2106 TestObject* impl = V8TestObject::toNative(holder); | 2106 TestObject* impl = V8TestObject::toNative(holder); |
2107 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2107 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2108 impl->setImplementedAsName(cppValue); | 2108 impl->setImplementedAsName(cppValue); |
2109 } | 2109 } |
2110 | 2110 |
2111 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2111 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2112 { | 2112 { |
2113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2114 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf
o); | 2114 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf
o); |
2115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2116 } | 2116 } |
2117 | 2117 |
(...skipping 16 matching lines...) Expand all Loading... |
2134 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2134 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2135 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in
fo); | 2135 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in
fo); |
2136 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2136 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2137 } | 2137 } |
2138 | 2138 |
2139 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2139 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2140 { | 2140 { |
2141 v8::Handle<v8::Object> holder = info.Holder(); | 2141 v8::Handle<v8::Object> holder = info.Holder(); |
2142 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2142 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2143 TestObject* impl = V8TestObject::toNative(holder); | 2143 TestObject* impl = V8TestObject::toNative(holder); |
2144 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2144 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2145 impl->setImplementedAsNameWithCustomGetter(cppValue); | 2145 impl->setImplementedAsNameWithCustomGetter(cppValue); |
2146 } | 2146 } |
2147 | 2147 |
2148 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 2148 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) |
2149 { | 2149 { |
2150 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2150 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2151 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter(
v8Value, info); | 2151 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter(
v8Value, info); |
2152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2153 } | 2153 } |
2154 | 2154 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2186 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); | 2186 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); |
2187 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); | 2187 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); |
2188 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2188 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2189 } | 2189 } |
2190 | 2190 |
2191 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 2191 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
2192 { | 2192 { |
2193 v8::Handle<v8::Object> holder = info.Holder(); | 2193 v8::Handle<v8::Object> holder = info.Holder(); |
2194 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObject", holder, info.GetIsolate()); | 2194 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObject", holder, info.GetIsolate()); |
2195 TestObject* impl = V8TestObject::toNative(holder); | 2195 TestObject* impl = V8TestObject::toNative(holder); |
2196 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2196 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2197 impl->setMeasureAsLongAttribute(cppValue); | 2197 impl->setMeasureAsLongAttribute(cppValue); |
2198 } | 2198 } |
2199 | 2199 |
2200 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2200 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2201 { | 2201 { |
2202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2203 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); | 2203 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); |
2204 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); | 2204 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); |
2205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2206 } | 2206 } |
(...skipping 10 matching lines...) Expand all Loading... |
2217 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2217 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2218 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); | 2218 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); |
2219 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2219 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2220 } | 2220 } |
2221 | 2221 |
2222 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 2222 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
2223 { | 2223 { |
2224 v8::Handle<v8::Object> holder = info.Holder(); | 2224 v8::Handle<v8::Object> holder = info.Holder(); |
2225 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 2225 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObject", holder, info.GetIsolate()); |
2226 TestObject* impl = V8TestObject::toNative(holder); | 2226 TestObject* impl = V8TestObject::toNative(holder); |
2227 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2227 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2228 impl->setNotEnumerableLongAttribute(cppValue); | 2228 impl->setNotEnumerableLongAttribute(cppValue); |
2229 } | 2229 } |
2230 | 2230 |
2231 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2231 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2232 { | 2232 { |
2233 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2233 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2234 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf
o); | 2234 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf
o); |
2235 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2235 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2236 } | 2236 } |
2237 | 2237 |
2238 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 2238 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
2239 { | 2239 { |
2240 v8::Handle<v8::Object> holder = info.Holder(); | 2240 v8::Handle<v8::Object> holder = info.Holder(); |
2241 TestObject* impl = V8TestObject::toNative(holder); | 2241 TestObject* impl = V8TestObject::toNative(holder); |
2242 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); | 2242 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); |
2243 } | 2243 } |
2244 | 2244 |
2245 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2245 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2246 { | 2246 { |
2247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2248 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); | 2248 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); |
2249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2250 } | 2250 } |
2251 | 2251 |
2252 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 2252 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
2253 { | 2253 { |
2254 v8::Handle<v8::Object> holder = info.Holder(); | 2254 v8::Handle<v8::Object> holder = info.Holder(); |
2255 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObject", holder, info.GetIsolate()); | 2255 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObject", holder, info.GetIsolate()); |
2256 TestObject* impl = V8TestObject::toNative(holder); | 2256 TestObject* impl = V8TestObject::toNative(holder); |
2257 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2257 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2258 impl->setPerContextEnabledLongAttribute(cppValue); | 2258 impl->setPerContextEnabledLongAttribute(cppValue); |
2259 } | 2259 } |
2260 | 2260 |
2261 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) | 2261 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) |
2262 { | 2262 { |
2263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2264 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value,
info); | 2264 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value,
info); |
2265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2266 } | 2266 } |
2267 | 2267 |
2268 static void perWorldBindingsLongAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 2268 static void perWorldBindingsLongAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
2269 { | 2269 { |
2270 v8::Handle<v8::Object> holder = info.Holder(); | 2270 v8::Handle<v8::Object> holder = info.Holder(); |
2271 TestObject* impl = V8TestObject::toNative(holder); | 2271 TestObject* impl = V8TestObject::toNative(holder); |
2272 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); | 2272 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); |
2273 } | 2273 } |
2274 | 2274 |
2275 static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2275 static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2276 { | 2276 { |
2277 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2277 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2278 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeGetter(info); | 2278 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeGetter(info); |
2279 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2279 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2280 } | 2280 } |
2281 | 2281 |
2282 static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 2282 static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
2283 { | 2283 { |
2284 v8::Handle<v8::Object> holder = info.Holder(); | 2284 v8::Handle<v8::Object> holder = info.Holder(); |
2285 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2285 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2286 TestObject* impl = V8TestObject::toNative(holder); | 2286 TestObject* impl = V8TestObject::toNative(holder); |
2287 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2287 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2288 impl->setPerWorldBindingsLongAttribute(cppValue); | 2288 impl->setPerWorldBindingsLongAttribute(cppValue); |
2289 } | 2289 } |
2290 | 2290 |
2291 static void perWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 2291 static void perWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
2292 { | 2292 { |
2293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2294 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeSetter(v8Value,
info); | 2294 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeSetter(v8Value,
info); |
2295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2296 } | 2296 } |
2297 | 2297 |
2298 static void perWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::P
ropertyCallbackInfo<v8::Value>& info) | 2298 static void perWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::P
ropertyCallbackInfo<v8::Value>& info) |
2299 { | 2299 { |
2300 v8::Handle<v8::Object> holder = info.Holder(); | 2300 v8::Handle<v8::Object> holder = info.Holder(); |
2301 TestObject* impl = V8TestObject::toNative(holder); | 2301 TestObject* impl = V8TestObject::toNative(holder); |
2302 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); | 2302 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); |
2303 } | 2303 } |
2304 | 2304 |
2305 static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2305 static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2306 { | 2306 { |
2307 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2307 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2308 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeGetterForMainWor
ld(info); | 2308 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeGetterForMainWor
ld(info); |
2309 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2309 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2310 } | 2310 } |
2311 | 2311 |
2312 static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2312 static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2313 { | 2313 { |
2314 v8::Handle<v8::Object> holder = info.Holder(); | 2314 v8::Handle<v8::Object> holder = info.Holder(); |
2315 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2315 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2316 TestObject* impl = V8TestObject::toNative(holder); | 2316 TestObject* impl = V8TestObject::toNative(holder); |
2317 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2317 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2318 impl->setPerWorldBindingsLongAttribute(cppValue); | 2318 impl->setPerWorldBindingsLongAttribute(cppValue); |
2319 } | 2319 } |
2320 | 2320 |
2321 static void perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) | 2321 static void perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) |
2322 { | 2322 { |
2323 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2323 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2324 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeSetterForMainWor
ld(v8Value, info); | 2324 TestObjectV8Internal::perWorldBindingsLongAttributeAttributeSetterForMainWor
ld(v8Value, info); |
2325 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2325 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2326 } | 2326 } |
2327 | 2327 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2410 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 0, 0, "Getter"); | 2410 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 0, 0, "Getter"); |
2411 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 2411 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
2412 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2412 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2413 } | 2413 } |
2414 | 2414 |
2415 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2415 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2416 { | 2416 { |
2417 v8::Handle<v8::Object> holder = info.Holder(); | 2417 v8::Handle<v8::Object> holder = info.Holder(); |
2418 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2418 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2419 TestObject* impl = V8TestObject::toNative(holder); | 2419 TestObject* impl = V8TestObject::toNative(holder); |
2420 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2420 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2421 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2421 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2422 } | 2422 } |
2423 | 2423 |
2424 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 2424 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
2425 { | 2425 { |
2426 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2426 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2427 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2427 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2428 if (contextData && contextData->activityLogger()) { | 2428 if (contextData && contextData->activityLogger()) { |
2429 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 2429 v8::Handle<v8::Value> loggerArg[] = { v8Value }; |
2430 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); | 2430 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); |
(...skipping 17 matching lines...) Expand all Loading... |
2448 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 0, 0, "Getter"); | 2448 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 0, 0, "Getter"); |
2449 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 2449 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
2450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2451 } | 2451 } |
2452 | 2452 |
2453 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 2453 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
2454 { | 2454 { |
2455 v8::Handle<v8::Object> holder = info.Holder(); | 2455 v8::Handle<v8::Object> holder = info.Holder(); |
2456 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2456 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2457 TestObject* impl = V8TestObject::toNative(holder); | 2457 TestObject* impl = V8TestObject::toNative(holder); |
2458 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2458 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2459 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2459 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2460 } | 2460 } |
2461 | 2461 |
2462 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 2462 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
2463 { | 2463 { |
2464 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2464 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2465 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2465 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2466 if (contextData && contextData->activityLogger()) { | 2466 if (contextData && contextData->activityLogger()) { |
2467 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 2467 v8::Handle<v8::Value> loggerArg[] = { v8Value }; |
2468 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); | 2468 contextData->activityLogger()->log("TestObject.activityLoggingAccessPerW
orldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); |
(...skipping 17 matching lines...) Expand all Loading... |
2486 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI
solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2486 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI
solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2487 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 2487 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
2488 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2488 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2489 } | 2489 } |
2490 | 2490 |
2491 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2491 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
2492 { | 2492 { |
2493 v8::Handle<v8::Object> holder = info.Holder(); | 2493 v8::Handle<v8::Object> holder = info.Holder(); |
2494 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2494 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
2495 TestObject* impl = V8TestObject::toNative(holder); | 2495 TestObject* impl = V8TestObject::toNative(holder); |
2496 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2496 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2497 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2497 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2498 } | 2498 } |
2499 | 2499 |
2500 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 2500 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
2501 { | 2501 { |
2502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2503 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2503 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2504 if (contextData && contextData->activityLogger()) { | 2504 if (contextData && contextData->activityLogger()) { |
2505 v8::Handle<v8::Value> loggerArg[] = { v8Value }; | 2505 v8::Handle<v8::Value> loggerArg[] = { v8Value }; |
2506 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI
solatedWorldsPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); | 2506 contextData->activityLogger()->log("TestObject.activityLoggingAccessForI
solatedWorldsPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); |
(...skipping 14 matching lines...) Expand all Loading... |
2521 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2521 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2522 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); | 2522 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); |
2523 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2523 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2524 } | 2524 } |
2525 | 2525 |
2526 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 2526 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
2527 { | 2527 { |
2528 v8::Handle<v8::Object> holder = info.Holder(); | 2528 v8::Handle<v8::Object> holder = info.Holder(); |
2529 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2529 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
2530 TestObject* impl = V8TestObject::toNative(holder); | 2530 TestObject* impl = V8TestObject::toNative(holder); |
2531 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2531 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2532 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2532 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2533 } | 2533 } |
2534 | 2534 |
2535 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 2535 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
2536 { | 2536 { |
2537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2538 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); | 2538 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); |
2539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2540 } | 2540 } |
2541 | 2541 |
(...skipping 12 matching lines...) Expand all Loading... |
2554 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW
orldBindingsLongAttribute", 0, 0, "Getter"); | 2554 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW
orldBindingsLongAttribute", 0, 0, "Getter"); |
2555 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 2555 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
2556 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2556 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2557 } | 2557 } |
2558 | 2558 |
2559 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2559 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2560 { | 2560 { |
2561 v8::Handle<v8::Object> holder = info.Holder(); | 2561 v8::Handle<v8::Object> holder = info.Holder(); |
2562 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2562 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2563 TestObject* impl = V8TestObject::toNative(holder); | 2563 TestObject* impl = V8TestObject::toNative(holder); |
2564 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2564 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2565 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 2565 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
2566 } | 2566 } |
2567 | 2567 |
2568 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 2568 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) |
2569 { | 2569 { |
2570 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2570 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2571 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); | 2571 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); |
2572 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2572 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2573 } | 2573 } |
2574 | 2574 |
(...skipping 12 matching lines...) Expand all Loading... |
2587 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW
orldBindingsLongAttribute", 0, 0, "Getter"); | 2587 contextData->activityLogger()->log("TestObject.activityLoggingGetterPerW
orldBindingsLongAttribute", 0, 0, "Getter"); |
2588 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 2588 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
2589 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2589 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2590 } | 2590 } |
2591 | 2591 |
2592 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 2592 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
2593 { | 2593 { |
2594 v8::Handle<v8::Object> holder = info.Holder(); | 2594 v8::Handle<v8::Object> holder = info.Holder(); |
2595 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2595 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2596 TestObject* impl = V8TestObject::toNative(holder); | 2596 TestObject* impl = V8TestObject::toNative(holder); |
2597 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2597 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2598 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 2598 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
2599 } | 2599 } |
2600 | 2600 |
2601 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 2601 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
2602 { | 2602 { |
2603 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2603 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2604 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); | 2604 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); |
2605 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2605 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2606 } | 2606 } |
2607 | 2607 |
(...skipping 12 matching lines...) Expand all Loading... |
2620 contextData->activityLogger()->log("TestObject.activityLoggingGetterForI
solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2620 contextData->activityLogger()->log("TestObject.activityLoggingGetterForI
solatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2621 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 2621 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
2622 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2622 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2623 } | 2623 } |
2624 | 2624 |
2625 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2625 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
2626 { | 2626 { |
2627 v8::Handle<v8::Object> holder = info.Holder(); | 2627 v8::Handle<v8::Object> holder = info.Holder(); |
2628 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2628 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
2629 TestObject* impl = V8TestObject::toNative(holder); | 2629 TestObject* impl = V8TestObject::toNative(holder); |
2630 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2630 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2631 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2631 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2632 } | 2632 } |
2633 | 2633 |
2634 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 2634 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
2635 { | 2635 { |
2636 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2636 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2637 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); | 2637 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); |
2638 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2638 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2639 } | 2639 } |
2640 | 2640 |
2641 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2641 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2642 { | 2642 { |
2643 v8::Handle<v8::Object> holder = info.Holder(); | 2643 v8::Handle<v8::Object> holder = info.Holder(); |
2644 TestObject* impl = V8TestObject::toNative(holder); | 2644 TestObject* impl = V8TestObject::toNative(holder); |
2645 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 2645 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
2646 } | 2646 } |
2647 | 2647 |
2648 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) | 2648 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) |
2649 { | 2649 { |
2650 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2650 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2651 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); | 2651 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); |
2652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2653 } | 2653 } |
2654 | 2654 |
2655 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 2655 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) |
2656 { | 2656 { |
2657 v8::Handle<v8::Object> holder = info.Holder(); | 2657 v8::Handle<v8::Object> holder = info.Holder(); |
2658 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 2658 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
2659 TestObject* impl = V8TestObject::toNative(holder); | 2659 TestObject* impl = V8TestObject::toNative(holder); |
2660 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2660 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2661 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 2661 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2662 } | 2662 } |
2663 | 2663 |
2664 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 2664 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) |
2665 { | 2665 { |
2666 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2666 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2667 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); | 2667 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); |
2668 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2668 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2669 } | 2669 } |
2670 | 2670 |
(...skipping 11 matching lines...) Expand all Loading... |
2682 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2682 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2683 } | 2683 } |
2684 | 2684 |
2685 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop
ertyCallbackInfo<void>& info) | 2685 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop
ertyCallbackInfo<void>& info) |
2686 { | 2686 { |
2687 v8::Handle<v8::Object> holder = info.Holder(); | 2687 v8::Handle<v8::Object> holder = info.Holder(); |
2688 TestObject* proxyImpl = V8TestObject::toNative(holder); | 2688 TestObject* proxyImpl = V8TestObject::toNative(holder); |
2689 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); | 2689 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); |
2690 if (!impl) | 2690 if (!impl) |
2691 return; | 2691 return; |
2692 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 2692 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
2693 impl->setHref(cppValue); | 2693 impl->setHref(cppValue); |
2694 } | 2694 } |
2695 | 2695 |
2696 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2696 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2697 { | 2697 { |
2698 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2698 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2699 TestObjectV8Internal::locationAttributeSetter(v8Value, info); | 2699 TestObjectV8Internal::locationAttributeSetter(v8Value, info); |
2700 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2700 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2701 } | 2701 } |
2702 | 2702 |
(...skipping 11 matching lines...) Expand all Loading... |
2714 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2714 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2715 } | 2715 } |
2716 | 2716 |
2717 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 2717 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
2718 { | 2718 { |
2719 v8::Handle<v8::Object> holder = info.Holder(); | 2719 v8::Handle<v8::Object> holder = info.Holder(); |
2720 TestObject* proxyImpl = V8TestObject::toNative(holder); | 2720 TestObject* proxyImpl = V8TestObject::toNative(holder); |
2721 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithException()); | 2721 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithException()); |
2722 if (!impl) | 2722 if (!impl) |
2723 return; | 2723 return; |
2724 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 2724 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
2725 impl->setHrefThrows(cppValue); | 2725 impl->setHrefThrows(cppValue); |
2726 } | 2726 } |
2727 | 2727 |
2728 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2728 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2729 { | 2729 { |
2730 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2730 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2731 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); | 2731 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); |
2732 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2732 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2733 } | 2733 } |
2734 | 2734 |
(...skipping 11 matching lines...) Expand all Loading... |
2746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2747 } | 2747 } |
2748 | 2748 |
2749 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 2749 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
2750 { | 2750 { |
2751 v8::Handle<v8::Object> holder = info.Holder(); | 2751 v8::Handle<v8::Object> holder = info.Holder(); |
2752 TestObject* proxyImpl = V8TestObject::toNative(holder); | 2752 TestObject* proxyImpl = V8TestObject::toNative(holder); |
2753 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallWith()); | 2753 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallWith()); |
2754 if (!impl) | 2754 if (!impl) |
2755 return; | 2755 return; |
2756 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 2756 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
2757 impl->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(
info.GetIsolate()), cppValue); | 2757 impl->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(
info.GetIsolate()), cppValue); |
2758 } | 2758 } |
2759 | 2759 |
2760 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2760 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2761 { | 2761 { |
2762 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2762 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2763 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); | 2763 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); |
2764 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2764 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2765 } | 2765 } |
2766 | 2766 |
(...skipping 11 matching lines...) Expand all Loading... |
2778 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2778 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2779 } | 2779 } |
2780 | 2780 |
2781 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 2781 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
2782 { | 2782 { |
2783 v8::Handle<v8::Object> holder = info.Holder(); | 2783 v8::Handle<v8::Object> holder = info.Holder(); |
2784 TestObject* proxyImpl = V8TestObject::toNative(holder); | 2784 TestObject* proxyImpl = V8TestObject::toNative(holder); |
2785 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings(
)); | 2785 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings(
)); |
2786 if (!impl) | 2786 if (!impl) |
2787 return; | 2787 return; |
2788 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 2788 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
2789 impl->setHref(cppValue); | 2789 impl->setHref(cppValue); |
2790 } | 2790 } |
2791 | 2791 |
2792 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2792 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2793 { | 2793 { |
2794 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2794 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2795 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i
nfo); | 2795 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i
nfo); |
2796 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2796 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2797 } | 2797 } |
2798 | 2798 |
(...skipping 11 matching lines...) Expand all Loading... |
2810 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2810 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2811 } | 2811 } |
2812 | 2812 |
2813 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2813 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2814 { | 2814 { |
2815 v8::Handle<v8::Object> holder = info.Holder(); | 2815 v8::Handle<v8::Object> holder = info.Holder(); |
2816 TestObject* proxyImpl = V8TestObject::toNative(holder); | 2816 TestObject* proxyImpl = V8TestObject::toNative(holder); |
2817 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings(
)); | 2817 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings(
)); |
2818 if (!impl) | 2818 if (!impl) |
2819 return; | 2819 return; |
2820 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 2820 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
2821 impl->setHref(cppValue); | 2821 impl->setHref(cppValue); |
2822 } | 2822 } |
2823 | 2823 |
2824 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | 2824 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) |
2825 { | 2825 { |
2826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2827 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl
d(v8Value, info); | 2827 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl
d(v8Value, info); |
2828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2829 } | 2829 } |
2830 | 2830 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2883 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2883 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2884 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); | 2884 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); |
2885 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2885 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2886 } | 2886 } |
2887 | 2887 |
2888 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 2888 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
2889 { | 2889 { |
2890 v8::Handle<v8::Object> holder = info.Holder(); | 2890 v8::Handle<v8::Object> holder = info.Holder(); |
2891 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); | 2891 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); |
2892 TestObject* impl = V8TestObject::toNative(holder); | 2892 TestObject* impl = V8TestObject::toNative(holder); |
2893 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2893 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2894 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); | 2894 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); |
2895 exceptionState.throwIfNeeded(); | 2895 exceptionState.throwIfNeeded(); |
2896 } | 2896 } |
2897 | 2897 |
2898 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2898 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2899 { | 2899 { |
2900 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2900 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2901 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i
nfo); | 2901 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i
nfo); |
2902 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2902 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2903 } | 2903 } |
(...skipping 14 matching lines...) Expand all Loading... |
2918 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2918 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2919 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info
); | 2919 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info
); |
2920 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2920 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2921 } | 2921 } |
2922 | 2922 |
2923 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2923 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2924 { | 2924 { |
2925 v8::Handle<v8::Object> holder = info.Holder(); | 2925 v8::Handle<v8::Object> holder = info.Holder(); |
2926 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); | 2926 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); |
2927 TestObject* impl = V8TestObject::toNative(holder); | 2927 TestObject* impl = V8TestObject::toNative(holder); |
2928 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2928 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2929 impl->setRaisesExceptionGetterLongAttribute(cppValue); | 2929 impl->setRaisesExceptionGetterLongAttribute(cppValue); |
2930 } | 2930 } |
2931 | 2931 |
2932 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 2932 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
2933 { | 2933 { |
2934 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2934 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2935 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va
lue, info); | 2935 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va
lue, info); |
2936 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2936 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2937 } | 2937 } |
2938 | 2938 |
2939 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 2939 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
2940 { | 2940 { |
2941 v8::Handle<v8::Object> holder = info.Holder(); | 2941 v8::Handle<v8::Object> holder = info.Holder(); |
2942 TestObject* impl = V8TestObject::toNative(holder); | 2942 TestObject* impl = V8TestObject::toNative(holder); |
2943 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); | 2943 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); |
2944 } | 2944 } |
2945 | 2945 |
2946 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2946 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2947 { | 2947 { |
2948 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2948 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2949 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info
); | 2949 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info
); |
2950 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2950 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2951 } | 2951 } |
2952 | 2952 |
2953 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2953 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2954 { | 2954 { |
2955 v8::Handle<v8::Object> holder = info.Holder(); | 2955 v8::Handle<v8::Object> holder = info.Holder(); |
2956 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); | 2956 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); |
2957 TestObject* impl = V8TestObject::toNative(holder); | 2957 TestObject* impl = V8TestObject::toNative(holder); |
2958 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 2958 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
2959 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); | 2959 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); |
2960 exceptionState.throwIfNeeded(); | 2960 exceptionState.throwIfNeeded(); |
2961 } | 2961 } |
2962 | 2962 |
2963 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 2963 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
2964 { | 2964 { |
2965 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2965 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2966 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va
lue, info); | 2966 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va
lue, info); |
2967 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2967 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2968 } | 2968 } |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3152 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3152 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3153 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); | 3153 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); |
3154 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3154 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3155 } | 3155 } |
3156 | 3156 |
3157 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 3157 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
3158 { | 3158 { |
3159 v8::Handle<v8::Object> holder = info.Holder(); | 3159 v8::Handle<v8::Object> holder = info.Holder(); |
3160 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObject", holder, info.GetIsolate()); | 3160 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObject", holder, info.GetIsolate()); |
3161 TestObject* impl = V8TestObject::toNative(holder); | 3161 TestObject* impl = V8TestObject::toNative(holder); |
3162 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 3162 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
3163 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3163 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3164 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); | 3164 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); |
3165 } | 3165 } |
3166 | 3166 |
3167 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3167 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3168 { | 3168 { |
3169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3170 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3170 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3171 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); | 3171 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); |
3172 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3172 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
3184 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3184 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3185 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); | 3185 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); |
3186 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3186 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3187 } | 3187 } |
3188 | 3188 |
3189 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3189 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
3190 { | 3190 { |
3191 v8::Handle<v8::Object> holder = info.Holder(); | 3191 v8::Handle<v8::Object> holder = info.Holder(); |
3192 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObject", holder, info.GetIsolate()); | 3192 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObject", holder, info.GetIsolate()); |
3193 TestObject* impl = V8TestObject::toNative(holder); | 3193 TestObject* impl = V8TestObject::toNative(holder); |
3194 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(v8Value, exceptionSta
te), exceptionState); | 3194 V8TRYCATCH_VOID_EXCEPTION(unsigned, cppValue, toUInt16(v8Value, exceptionSta
te), exceptionState); |
3195 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3195 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3196 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); | 3196 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); |
3197 } | 3197 } |
3198 | 3198 |
3199 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 3199 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) |
3200 { | 3200 { |
3201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3202 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3202 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3203 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); | 3203 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); |
3204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
3216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3217 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); | 3217 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); |
3218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3219 } | 3219 } |
3220 | 3220 |
3221 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3221 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
3222 { | 3222 { |
3223 v8::Handle<v8::Object> holder = info.Holder(); | 3223 v8::Handle<v8::Object> holder = info.Holder(); |
3224 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObject", holder, info.GetIsolate()); | 3224 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObject", holder, info.GetIsolate()); |
3225 TestObject* impl = V8TestObject::toNative(holder); | 3225 TestObject* impl = V8TestObject::toNative(holder); |
3226 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(v8Value, exceptionSta
te), exceptionState); | 3226 V8TRYCATCH_VOID_EXCEPTION(unsigned, cppValue, toUInt32(v8Value, exceptionSta
te), exceptionState); |
3227 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3227 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3228 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); | 3228 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); |
3229 } | 3229 } |
3230 | 3230 |
3231 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3231 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3232 { | 3232 { |
3233 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3233 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3234 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3234 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3235 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i
nfo); | 3235 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i
nfo); |
3236 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3236 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3247 { | 3247 { |
3248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3249 TestObjectV8Internal::idAttributeGetter(info); | 3249 TestObjectV8Internal::idAttributeGetter(info); |
3250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3251 } | 3251 } |
3252 | 3252 |
3253 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa
llbackInfo<void>& info) | 3253 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa
llbackInfo<void>& info) |
3254 { | 3254 { |
3255 v8::Handle<v8::Object> holder = info.Holder(); | 3255 v8::Handle<v8::Object> holder = info.Holder(); |
3256 TestObject* impl = V8TestObject::toNative(holder); | 3256 TestObject* impl = V8TestObject::toNative(holder); |
3257 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3257 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3258 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3258 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3259 impl->setAttribute(HTMLNames::idAttr, cppValue); | 3259 impl->setAttribute(HTMLNames::idAttr, cppValue); |
3260 } | 3260 } |
3261 | 3261 |
3262 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3262 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3263 { | 3263 { |
3264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3265 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3265 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3266 TestObjectV8Internal::idAttributeSetter(v8Value, info); | 3266 TestObjectV8Internal::idAttributeSetter(v8Value, info); |
3267 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3267 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3278 { | 3278 { |
3279 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3279 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3280 TestObjectV8Internal::nameAttributeGetter(info); | 3280 TestObjectV8Internal::nameAttributeGetter(info); |
3281 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3281 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3282 } | 3282 } |
3283 | 3283 |
3284 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 3284 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) |
3285 { | 3285 { |
3286 v8::Handle<v8::Object> holder = info.Holder(); | 3286 v8::Handle<v8::Object> holder = info.Holder(); |
3287 TestObject* impl = V8TestObject::toNative(holder); | 3287 TestObject* impl = V8TestObject::toNative(holder); |
3288 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3288 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3289 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3289 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3290 impl->setAttribute(HTMLNames::nameAttr, cppValue); | 3290 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
3291 } | 3291 } |
3292 | 3292 |
3293 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3293 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3294 { | 3294 { |
3295 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3295 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3296 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3296 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3297 TestObjectV8Internal::nameAttributeSetter(v8Value, info); | 3297 TestObjectV8Internal::nameAttributeSetter(v8Value, info); |
3298 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3298 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3309 { | 3309 { |
3310 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3310 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3311 TestObjectV8Internal::classAttributeGetter(info); | 3311 TestObjectV8Internal::classAttributeGetter(info); |
3312 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3312 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3313 } | 3313 } |
3314 | 3314 |
3315 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
yCallbackInfo<void>& info) | 3315 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
yCallbackInfo<void>& info) |
3316 { | 3316 { |
3317 v8::Handle<v8::Object> holder = info.Holder(); | 3317 v8::Handle<v8::Object> holder = info.Holder(); |
3318 TestObject* impl = V8TestObject::toNative(holder); | 3318 TestObject* impl = V8TestObject::toNative(holder); |
3319 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3319 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3320 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3320 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3321 impl->setAttribute(HTMLNames::classAttr, cppValue); | 3321 impl->setAttribute(HTMLNames::classAttr, cppValue); |
3322 } | 3322 } |
3323 | 3323 |
3324 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3324 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3325 { | 3325 { |
3326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3327 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3327 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3328 TestObjectV8Internal::classAttributeSetter(v8Value, info); | 3328 TestObjectV8Internal::classAttributeSetter(v8Value, info); |
3329 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3329 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3340 { | 3340 { |
3341 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3341 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3342 TestObjectV8Internal::reflectedIdAttributeGetter(info); | 3342 TestObjectV8Internal::reflectedIdAttributeGetter(info); |
3343 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3343 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3344 } | 3344 } |
3345 | 3345 |
3346 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) | 3346 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) |
3347 { | 3347 { |
3348 v8::Handle<v8::Object> holder = info.Holder(); | 3348 v8::Handle<v8::Object> holder = info.Holder(); |
3349 TestObject* impl = V8TestObject::toNative(holder); | 3349 TestObject* impl = V8TestObject::toNative(holder); |
3350 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3350 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3351 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3351 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3352 impl->setAttribute(HTMLNames::idAttr, cppValue); | 3352 impl->setAttribute(HTMLNames::idAttr, cppValue); |
3353 } | 3353 } |
3354 | 3354 |
3355 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3355 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3356 { | 3356 { |
3357 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3357 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3358 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3358 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3359 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); | 3359 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); |
3360 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3360 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3371 { | 3371 { |
3372 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3372 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3373 TestObjectV8Internal::reflectedNameAttributeGetter(info); | 3373 TestObjectV8Internal::reflectedNameAttributeGetter(info); |
3374 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3374 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3375 } | 3375 } |
3376 | 3376 |
3377 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 3377 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) |
3378 { | 3378 { |
3379 v8::Handle<v8::Object> holder = info.Holder(); | 3379 v8::Handle<v8::Object> holder = info.Holder(); |
3380 TestObject* impl = V8TestObject::toNative(holder); | 3380 TestObject* impl = V8TestObject::toNative(holder); |
3381 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3381 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3382 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3382 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3383 impl->setAttribute(HTMLNames::nameAttr, cppValue); | 3383 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
3384 } | 3384 } |
3385 | 3385 |
3386 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3386 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3387 { | 3387 { |
3388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3389 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3389 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3390 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); | 3390 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); |
3391 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3391 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
3402 { | 3402 { |
3403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3404 TestObjectV8Internal::reflectedClassAttributeGetter(info); | 3404 TestObjectV8Internal::reflectedClassAttributeGetter(info); |
3405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3406 } | 3406 } |
3407 | 3407 |
3408 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 3408 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
3409 { | 3409 { |
3410 v8::Handle<v8::Object> holder = info.Holder(); | 3410 v8::Handle<v8::Object> holder = info.Holder(); |
3411 TestObject* impl = V8TestObject::toNative(holder); | 3411 TestObject* impl = V8TestObject::toNative(holder); |
3412 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3412 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3413 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3413 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3414 impl->setAttribute(HTMLNames::classAttr, cppValue); | 3414 impl->setAttribute(HTMLNames::classAttr, cppValue); |
3415 } | 3415 } |
3416 | 3416 |
3417 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3417 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3418 { | 3418 { |
3419 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3419 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3420 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3420 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3421 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); | 3421 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); |
3422 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3422 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 18 matching lines...) Expand all Loading... |
3441 { | 3441 { |
3442 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3442 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3443 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); | 3443 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); |
3444 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3444 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3445 } | 3445 } |
3446 | 3446 |
3447 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 3447 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
3448 { | 3448 { |
3449 v8::Handle<v8::Object> holder = info.Holder(); | 3449 v8::Handle<v8::Object> holder = info.Holder(); |
3450 TestObject* impl = V8TestObject::toNative(holder); | 3450 TestObject* impl = V8TestObject::toNative(holder); |
3451 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3451 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3452 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3452 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3453 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); | 3453 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); |
3454 } | 3454 } |
3455 | 3455 |
3456 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3456 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3457 { | 3457 { |
3458 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3458 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3459 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3459 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3460 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info
); | 3460 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info
); |
3461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 22 matching lines...) Expand all Loading... |
3484 { | 3484 { |
3485 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3485 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3486 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); | 3486 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); |
3487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3488 } | 3488 } |
3489 | 3489 |
3490 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 3490 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
3491 { | 3491 { |
3492 v8::Handle<v8::Object> holder = info.Holder(); | 3492 v8::Handle<v8::Object> holder = info.Holder(); |
3493 TestObject* impl = V8TestObject::toNative(holder); | 3493 TestObject* impl = V8TestObject::toNative(holder); |
3494 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3494 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3495 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3495 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3496 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); | 3496 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); |
3497 } | 3497 } |
3498 | 3498 |
3499 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3499 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3500 { | 3500 { |
3501 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3501 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3502 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3502 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3503 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); | 3503 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); |
3504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 20 matching lines...) Expand all Loading... |
3525 { | 3525 { |
3526 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3526 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3527 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); | 3527 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); |
3528 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3528 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3529 } | 3529 } |
3530 | 3530 |
3531 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 3531 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
3532 { | 3532 { |
3533 v8::Handle<v8::Object> holder = info.Holder(); | 3533 v8::Handle<v8::Object> holder = info.Holder(); |
3534 TestObject* impl = V8TestObject::toNative(holder); | 3534 TestObject* impl = V8TestObject::toNative(holder); |
3535 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3535 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3536 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3536 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3537 impl->setAttribute(HTMLNames::otherAttr, cppValue); | 3537 impl->setAttribute(HTMLNames::otherAttr, cppValue); |
3538 } | 3538 } |
3539 | 3539 |
3540 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3540 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3541 { | 3541 { |
3542 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3542 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3543 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3543 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3544 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in
fo); | 3544 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in
fo); |
3545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 20 matching lines...) Expand all Loading... |
3566 { | 3566 { |
3567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3568 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info
); | 3568 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info
); |
3569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3570 } | 3570 } |
3571 | 3571 |
3572 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3572 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3573 { | 3573 { |
3574 v8::Handle<v8::Object> holder = info.Holder(); | 3574 v8::Handle<v8::Object> holder = info.Holder(); |
3575 TestObject* impl = V8TestObject::toNative(holder); | 3575 TestObject* impl = V8TestObject::toNative(holder); |
3576 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3576 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3577 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3577 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3578 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); | 3578 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); |
3579 } | 3579 } |
3580 | 3580 |
3581 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 3581 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
3582 { | 3582 { |
3583 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3583 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3584 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3584 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3585 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va
lue, info); | 3585 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va
lue, info); |
3586 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3586 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 22 matching lines...) Expand all Loading... |
3609 { | 3609 { |
3610 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3610 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3611 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett
er(info); | 3611 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett
er(info); |
3612 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3612 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3613 } | 3613 } |
3614 | 3614 |
3615 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3615 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3616 { | 3616 { |
3617 v8::Handle<v8::Object> holder = info.Holder(); | 3617 v8::Handle<v8::Object> holder = info.Holder(); |
3618 TestObject* impl = V8TestObject::toNative(holder); | 3618 TestObject* impl = V8TestObject::toNative(holder); |
3619 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3619 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3620 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3620 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3621 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); | 3621 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); |
3622 } | 3622 } |
3623 | 3623 |
3624 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) | 3624 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) |
3625 { | 3625 { |
3626 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3626 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3627 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3627 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3628 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett
er(v8Value, info); | 3628 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett
er(v8Value, info); |
3629 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3629 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3714 } | 3714 } |
3715 | 3715 |
3716 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 3716 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) |
3717 { | 3717 { |
3718 v8::Handle<v8::Object> holder = info.Holder(); | 3718 v8::Handle<v8::Object> holder = info.Holder(); |
3719 TestObject* proxyImpl = V8TestObject::toNative(holder); | 3719 TestObject* proxyImpl = V8TestObject::toNative(holder); |
3720 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceable()); | 3720 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceable()); |
3721 if (!impl) | 3721 if (!impl) |
3722 return; | 3722 return; |
3723 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3723 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3724 impl->setHref(cppValue); | 3724 impl->setHref(cppValue); |
3725 } | 3725 } |
3726 | 3726 |
3727 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3727 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3728 { | 3728 { |
3729 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3729 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3730 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info); | 3730 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info); |
3731 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3731 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3732 } | 3732 } |
3733 | 3733 |
3734 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 3734 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
3735 { | 3735 { |
3736 v8::Handle<v8::Object> holder = info.Holder(); | 3736 v8::Handle<v8::Object> holder = info.Holder(); |
3737 TestObject* impl = V8TestObject::toNative(holder); | 3737 TestObject* impl = V8TestObject::toNative(holder); |
3738 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); | 3738 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); |
3739 } | 3739 } |
3740 | 3740 |
3741 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3741 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3742 { | 3742 { |
3743 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3743 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3744 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); | 3744 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); |
3745 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3745 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3746 } | 3746 } |
3747 | 3747 |
3748 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 3748 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
3749 { | 3749 { |
3750 v8::Handle<v8::Object> holder = info.Holder(); | 3750 v8::Handle<v8::Object> holder = info.Holder(); |
3751 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObject", holder, info.GetIsolate()); | 3751 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObject", holder, info.GetIsolate()); |
3752 TestObject* impl = V8TestObject::toNative(holder); | 3752 TestObject* impl = V8TestObject::toNative(holder); |
3753 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 3753 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
3754 impl->setRuntimeEnabledLongAttribute(cppValue); | 3754 impl->setRuntimeEnabledLongAttribute(cppValue); |
3755 } | 3755 } |
3756 | 3756 |
3757 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3757 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3758 { | 3758 { |
3759 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3759 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3760 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in
fo); | 3760 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in
fo); |
3761 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3761 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3762 } | 3762 } |
3763 | 3763 |
3764 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 3764 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
3765 { | 3765 { |
3766 v8::Handle<v8::Object> holder = info.Holder(); | 3766 v8::Handle<v8::Object> holder = info.Holder(); |
3767 TestObject* impl = V8TestObject::toNative(holder); | 3767 TestObject* impl = V8TestObject::toNative(holder); |
3768 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute
()); | 3768 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute
()); |
3769 } | 3769 } |
3770 | 3770 |
3771 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3771 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3772 { | 3772 { |
3773 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3773 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3774 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG
etter(info); | 3774 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG
etter(info); |
3775 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3775 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3776 } | 3776 } |
3777 | 3777 |
3778 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3778 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3779 { | 3779 { |
3780 v8::Handle<v8::Object> holder = info.Holder(); | 3780 v8::Handle<v8::Object> holder = info.Holder(); |
3781 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); | 3781 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
3782 TestObject* impl = V8TestObject::toNative(holder); | 3782 TestObject* impl = V8TestObject::toNative(holder); |
3783 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 3783 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
3784 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); | 3784 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); |
3785 } | 3785 } |
3786 | 3786 |
3787 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 3787 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
3788 { | 3788 { |
3789 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3789 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3790 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS
etter(v8Value, info); | 3790 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS
etter(v8Value, info); |
3791 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3791 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3792 } | 3792 } |
3793 | 3793 |
(...skipping 14 matching lines...) Expand all Loading... |
3808 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3808 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3809 } | 3809 } |
3810 #endif // ENABLE(CONDITION) | 3810 #endif // ENABLE(CONDITION) |
3811 | 3811 |
3812 #if ENABLE(CONDITION) | 3812 #if ENABLE(CONDITION) |
3813 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3813 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3814 { | 3814 { |
3815 v8::Handle<v8::Object> holder = info.Holder(); | 3815 v8::Handle<v8::Object> holder = info.Holder(); |
3816 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); | 3816 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
3817 TestObject* impl = V8TestObject::toNative(holder); | 3817 TestObject* impl = V8TestObject::toNative(holder); |
3818 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 3818 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
3819 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); | 3819 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); |
3820 } | 3820 } |
3821 #endif // ENABLE(CONDITION) | 3821 #endif // ENABLE(CONDITION) |
3822 | 3822 |
3823 #if ENABLE(CONDITION) | 3823 #if ENABLE(CONDITION) |
3824 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 3824 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) |
3825 { | 3825 { |
3826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3827 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); | 3827 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); |
3828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
3840 { | 3840 { |
3841 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3841 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3842 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeGetter(info); | 3842 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeGetter(info); |
3843 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3843 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3844 } | 3844 } |
3845 | 3845 |
3846 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3846 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3847 { | 3847 { |
3848 v8::Handle<v8::Object> holder = info.Holder(); | 3848 v8::Handle<v8::Object> holder = info.Holder(); |
3849 TestObject* impl = V8TestObject::toNative(holder); | 3849 TestObject* impl = V8TestObject::toNative(holder); |
3850 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3850 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3851 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); | 3851 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); |
3852 } | 3852 } |
3853 | 3853 |
3854 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) | 3854 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) |
3855 { | 3855 { |
3856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3857 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeSetter(v8Value, info); | 3857 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeSetter(v8Value, info); |
3858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3859 } | 3859 } |
3860 | 3860 |
3861 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 3861 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) |
3862 { | 3862 { |
3863 v8::Handle<v8::Object> holder = info.Holder(); | 3863 v8::Handle<v8::Object> holder = info.Holder(); |
3864 TestObject* impl = V8TestObject::toNative(holder); | 3864 TestObject* impl = V8TestObject::toNative(holder); |
3865 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); | 3865 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); |
3866 } | 3866 } |
3867 | 3867 |
3868 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3868 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3869 { | 3869 { |
3870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3871 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Getter(info); | 3871 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Getter(info); |
3872 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3872 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3873 } | 3873 } |
3874 | 3874 |
3875 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3875 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
3876 { | 3876 { |
3877 v8::Handle<v8::Object> holder = info.Holder(); | 3877 v8::Handle<v8::Object> holder = info.Holder(); |
3878 TestObject* impl = V8TestObject::toNative(holder); | 3878 TestObject* impl = V8TestObject::toNative(holder); |
3879 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 3879 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
3880 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 3880 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
3881 impl->setSetterCallWithExecutionContextStringAttribute(scriptContext, cppVal
ue); | 3881 impl->setSetterCallWithExecutionContextStringAttribute(scriptContext, cppVal
ue); |
3882 } | 3882 } |
3883 | 3883 |
3884 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) | 3884 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) |
3885 { | 3885 { |
3886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3887 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Setter(v8Value, info); | 3887 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Setter(v8Value, info); |
3888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3889 } | 3889 } |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4003 { | 4003 { |
4004 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4004 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4005 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in
fo); | 4005 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in
fo); |
4006 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4006 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4007 } | 4007 } |
4008 | 4008 |
4009 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4009 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4010 { | 4010 { |
4011 v8::Handle<v8::Object> holder = info.Holder(); | 4011 v8::Handle<v8::Object> holder = info.Holder(); |
4012 TestObject* impl = V8TestObject::toNative(holder); | 4012 TestObject* impl = V8TestObject::toNative(holder); |
4013 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal
ue, v8Value); | 4013 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<WithNullCheck>, cppValue, v8V
alue); |
4014 impl->setTreatNullAsNullStringStringAttribute(cppValue); | 4014 impl->setTreatNullAsNullStringStringAttribute(cppValue); |
4015 } | 4015 } |
4016 | 4016 |
4017 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 4017 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
4018 { | 4018 { |
4019 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4019 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4020 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8
Value, info); | 4020 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8
Value, info); |
4021 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4021 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4022 } | 4022 } |
4023 | 4023 |
4024 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 4024 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
4025 { | 4025 { |
4026 v8::Handle<v8::Object> holder = info.Holder(); | 4026 v8::Handle<v8::Object> holder = info.Holder(); |
4027 TestObject* impl = V8TestObject::toNative(holder); | 4027 TestObject* impl = V8TestObject::toNative(holder); |
4028 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); | 4028 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); |
4029 } | 4029 } |
4030 | 4030 |
4031 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4031 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4032 { | 4032 { |
4033 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4033 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4034 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG
etter(info); | 4034 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG
etter(info); |
4035 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4035 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4036 } | 4036 } |
4037 | 4037 |
4038 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4038 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4039 { | 4039 { |
4040 v8::Handle<v8::Object> holder = info.Holder(); | 4040 v8::Handle<v8::Object> holder = info.Holder(); |
4041 TestObject* impl = V8TestObject::toNative(holder); | 4041 TestObject* impl = V8TestObject::toNative(holder); |
4042 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 4042 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
4043 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); | 4043 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); |
4044 } | 4044 } |
4045 | 4045 |
4046 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 4046 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
4047 { | 4047 { |
4048 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4048 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4049 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS
etter(v8Value, info); | 4049 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS
etter(v8Value, info); |
4050 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4050 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4051 } | 4051 } |
4052 | 4052 |
4053 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 4053 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
4054 { | 4054 { |
4055 v8::Handle<v8::Object> holder = info.Holder(); | 4055 v8::Handle<v8::Object> holder = info.Holder(); |
4056 TestObject* impl = V8TestObject::toNative(holder); | 4056 TestObject* impl = V8TestObject::toNative(holder); |
4057 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); | 4057 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); |
4058 } | 4058 } |
4059 | 4059 |
4060 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4060 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
4061 { | 4061 { |
4062 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4062 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4063 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteGetter(info); | 4063 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteGetter(info); |
4064 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4064 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4065 } | 4065 } |
4066 | 4066 |
4067 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4067 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4068 { | 4068 { |
4069 v8::Handle<v8::Object> holder = info.Holder(); | 4069 v8::Handle<v8::Object> holder = info.Holder(); |
4070 TestObject* impl = V8TestObject::toNative(holder); | 4070 TestObject* impl = V8TestObject::toNative(holder); |
4071 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 4071 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
4072 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); | 4072 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
4073 } | 4073 } |
4074 | 4074 |
4075 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) | 4075 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall
backInfo<void>& info) |
4076 { | 4076 { |
4077 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4077 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4078 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteSetter(v8Value, info); | 4078 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteSetter(v8Value, info); |
4079 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4079 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4080 } | 4080 } |
4081 | 4081 |
4082 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 4082 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) |
4083 { | 4083 { |
4084 v8::Handle<v8::Object> holder = info.Holder(); | 4084 v8::Handle<v8::Object> holder = info.Holder(); |
4085 TestObject* impl = V8TestObject::toNative(holder); | 4085 TestObject* impl = V8TestObject::toNative(holder); |
4086 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri
buteAttr), info.GetIsolate()); | 4086 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri
buteAttr), info.GetIsolate()); |
4087 } | 4087 } |
4088 | 4088 |
4089 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 4089 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
4090 { | 4090 { |
4091 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4091 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4092 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); | 4092 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); |
4093 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4093 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4094 } | 4094 } |
4095 | 4095 |
4096 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 4096 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
4097 { | 4097 { |
4098 v8::Handle<v8::Object> holder = info.Holder(); | 4098 v8::Handle<v8::Object> holder = info.Holder(); |
4099 TestObject* impl = V8TestObject::toNative(holder); | 4099 TestObject* impl = V8TestObject::toNative(holder); |
4100 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 4100 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
4101 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 4101 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
4102 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); | 4102 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); |
4103 } | 4103 } |
4104 | 4104 |
4105 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4105 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4106 { | 4106 { |
4107 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4107 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4108 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 4108 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
4109 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 4109 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); |
4110 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4110 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 10 matching lines...) Expand all Loading... |
4121 { | 4121 { |
4122 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4122 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4123 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); | 4123 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); |
4124 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4124 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4125 } | 4125 } |
4126 | 4126 |
4127 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 4127 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) |
4128 { | 4128 { |
4129 v8::Handle<v8::Object> holder = info.Holder(); | 4129 v8::Handle<v8::Object> holder = info.Holder(); |
4130 TestObject* impl = V8TestObject::toNative(holder); | 4130 TestObject* impl = V8TestObject::toNative(holder); |
4131 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 4131 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, cppValue, v8Value); |
4132 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 4132 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
4133 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); | 4133 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); |
4134 } | 4134 } |
4135 | 4135 |
4136 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4136 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4137 { | 4137 { |
4138 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4138 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4139 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 4139 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
4140 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 4140 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); |
4141 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4141 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 13 matching lines...) Expand all Loading... |
4155 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 4155 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
4156 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); | 4156 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); |
4157 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4157 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4158 } | 4158 } |
4159 | 4159 |
4160 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 4160 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) |
4161 { | 4161 { |
4162 v8::Handle<v8::Object> holder = info.Holder(); | 4162 v8::Handle<v8::Object> holder = info.Holder(); |
4163 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObject", holder, info.GetIsolate()); | 4163 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObject", holder, info.GetIsolate()); |
4164 TestObject* impl = V8TestObject::toNative(holder); | 4164 TestObject* impl = V8TestObject::toNative(holder); |
4165 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 4165 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
4166 impl->setUnforgeableLongAttribute(cppValue); | 4166 impl->setUnforgeableLongAttribute(cppValue); |
4167 } | 4167 } |
4168 | 4168 |
4169 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4169 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
4170 { | 4170 { |
4171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 4171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
4172 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info)
; | 4172 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info)
; |
4173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4174 } | 4174 } |
4175 | 4175 |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4527 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4527 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4528 } | 4528 } |
4529 | 4529 |
4530 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4530 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4531 { | 4531 { |
4532 if (UNLIKELY(info.Length() < 1)) { | 4532 if (UNLIKELY(info.Length() < 1)) { |
4533 throwArityTypeErrorForMethod("voidMethodStringArg", "TestObject", 1, inf
o.Length(), info.GetIsolate()); | 4533 throwArityTypeErrorForMethod("voidMethodStringArg", "TestObject", 1, inf
o.Length(), info.GetIsolate()); |
4534 return; | 4534 return; |
4535 } | 4535 } |
4536 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4536 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4537 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 4537 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, stringArg, info[0]); |
4538 impl->voidMethodStringArg(stringArg); | 4538 impl->voidMethodStringArg(stringArg); |
4539 } | 4539 } |
4540 | 4540 |
4541 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4541 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
4542 { | 4542 { |
4543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4544 TestObjectV8Internal::voidMethodStringArgMethod(info); | 4544 TestObjectV8Internal::voidMethodStringArgMethod(info); |
4545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4546 } | 4546 } |
4547 | 4547 |
4548 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4548 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4549 { | 4549 { |
4550 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); | 4550 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); |
4551 if (UNLIKELY(info.Length() < 1)) { | 4551 if (UNLIKELY(info.Length() < 1)) { |
4552 throwArityTypeError(exceptionState, 1, info.Length()); | 4552 throwArityTypeError(exceptionState, 1, info.Length()); |
4553 return; | 4553 return; |
4554 } | 4554 } |
4555 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4555 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4556 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, domTimeStampArg, toUInt64(info
[0], exceptionState), exceptionState); | 4556 V8TRYCATCH_VOID_EXCEPTION(unsigned long long, domTimeStampArg, toUInt64(info
[0], exceptionState), exceptionState); |
4557 impl->voidMethodDOMTimeStampArg(domTimeStampArg); | 4557 impl->voidMethodDOMTimeStampArg(domTimeStampArg); |
4558 } | 4558 } |
4559 | 4559 |
4560 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4560 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
4561 { | 4561 { |
4562 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4562 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4563 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); | 4563 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); |
4564 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4564 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4565 } | 4565 } |
4566 | 4566 |
(...skipping 16 matching lines...) Expand all Loading... |
4583 } | 4583 } |
4584 | 4584 |
4585 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4585 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4586 { | 4586 { |
4587 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); | 4587 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); |
4588 if (UNLIKELY(info.Length() < 1)) { | 4588 if (UNLIKELY(info.Length() < 1)) { |
4589 throwArityTypeError(exceptionState, 1, info.Length()); | 4589 throwArityTypeError(exceptionState, 1, info.Length()); |
4590 return; | 4590 return; |
4591 } | 4591 } |
4592 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4592 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4593 V8TRYCATCH_EXCEPTION_VOID(int, byteArg, toInt8(info[0], exceptionState), exc
eptionState); | 4593 V8TRYCATCH_VOID_EXCEPTION(int, byteArg, toInt8(info[0], exceptionState), exc
eptionState); |
4594 impl->voidMethodByteArg(byteArg); | 4594 impl->voidMethodByteArg(byteArg); |
4595 } | 4595 } |
4596 | 4596 |
4597 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4597 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4598 { | 4598 { |
4599 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4599 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4600 TestObjectV8Internal::voidMethodByteArgMethod(info); | 4600 TestObjectV8Internal::voidMethodByteArgMethod(info); |
4601 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4601 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4602 } | 4602 } |
4603 | 4603 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4638 } | 4638 } |
4639 | 4639 |
4640 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4640 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4641 { | 4641 { |
4642 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4642 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); |
4643 if (UNLIKELY(info.Length() < 1)) { | 4643 if (UNLIKELY(info.Length() < 1)) { |
4644 throwArityTypeError(exceptionState, 1, info.Length()); | 4644 throwArityTypeError(exceptionState, 1, info.Length()); |
4645 return; | 4645 return; |
4646 } | 4646 } |
4647 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4647 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4648 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 4648 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
4649 impl->voidMethodLongArg(longArg); | 4649 impl->voidMethodLongArg(longArg); |
4650 } | 4650 } |
4651 | 4651 |
4652 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4652 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4653 { | 4653 { |
4654 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4654 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4655 TestObjectV8Internal::voidMethodLongArgMethod(info); | 4655 TestObjectV8Internal::voidMethodLongArgMethod(info); |
4656 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4656 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4657 } | 4657 } |
4658 | 4658 |
4659 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4659 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
4660 { | 4660 { |
4661 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4661 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
4662 if (UNLIKELY(info.Length() < 1)) { | 4662 if (UNLIKELY(info.Length() < 1)) { |
4663 throwArityTypeError(exceptionState, 1, info.Length()); | 4663 throwArityTypeError(exceptionState, 1, info.Length()); |
4664 return; | 4664 return; |
4665 } | 4665 } |
4666 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4666 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4667 V8TRYCATCH_EXCEPTION_VOID(long long, longLongArg, toInt64(info[0], exception
State), exceptionState); | 4667 V8TRYCATCH_VOID_EXCEPTION(long long, longLongArg, toInt64(info[0], exception
State), exceptionState); |
4668 impl->voidMethodLongLongArg(longLongArg); | 4668 impl->voidMethodLongLongArg(longLongArg); |
4669 } | 4669 } |
4670 | 4670 |
4671 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4671 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4672 { | 4672 { |
4673 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4673 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4674 TestObjectV8Internal::voidMethodLongLongArgMethod(info); | 4674 TestObjectV8Internal::voidMethodLongLongArgMethod(info); |
4675 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4675 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4676 } | 4676 } |
4677 | 4677 |
4678 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4678 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4679 { | 4679 { |
4680 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); | 4680 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); |
4681 if (UNLIKELY(info.Length() < 1)) { | 4681 if (UNLIKELY(info.Length() < 1)) { |
4682 throwArityTypeError(exceptionState, 1, info.Length()); | 4682 throwArityTypeError(exceptionState, 1, info.Length()); |
4683 return; | 4683 return; |
4684 } | 4684 } |
4685 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4685 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4686 V8TRYCATCH_EXCEPTION_VOID(unsigned, octetArg, toUInt8(info[0], exceptionStat
e), exceptionState); | 4686 V8TRYCATCH_VOID_EXCEPTION(unsigned, octetArg, toUInt8(info[0], exceptionStat
e), exceptionState); |
4687 impl->voidMethodOctetArg(octetArg); | 4687 impl->voidMethodOctetArg(octetArg); |
4688 } | 4688 } |
4689 | 4689 |
4690 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4690 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4691 { | 4691 { |
4692 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4692 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4693 TestObjectV8Internal::voidMethodOctetArgMethod(info); | 4693 TestObjectV8Internal::voidMethodOctetArgMethod(info); |
4694 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4694 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4695 } | 4695 } |
4696 | 4696 |
4697 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4697 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4698 { | 4698 { |
4699 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); | 4699 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); |
4700 if (UNLIKELY(info.Length() < 1)) { | 4700 if (UNLIKELY(info.Length() < 1)) { |
4701 throwArityTypeError(exceptionState, 1, info.Length()); | 4701 throwArityTypeError(exceptionState, 1, info.Length()); |
4702 return; | 4702 return; |
4703 } | 4703 } |
4704 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4704 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4705 V8TRYCATCH_EXCEPTION_VOID(int, shortArg, toInt16(info[0], exceptionState), e
xceptionState); | 4705 V8TRYCATCH_VOID_EXCEPTION(int, shortArg, toInt16(info[0], exceptionState), e
xceptionState); |
4706 impl->voidMethodShortArg(shortArg); | 4706 impl->voidMethodShortArg(shortArg); |
4707 } | 4707 } |
4708 | 4708 |
4709 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4709 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4710 { | 4710 { |
4711 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4711 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4712 TestObjectV8Internal::voidMethodShortArgMethod(info); | 4712 TestObjectV8Internal::voidMethodShortArgMethod(info); |
4713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4714 } | 4714 } |
4715 | 4715 |
4716 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4716 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4717 { | 4717 { |
4718 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4718 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
4719 if (UNLIKELY(info.Length() < 1)) { | 4719 if (UNLIKELY(info.Length() < 1)) { |
4720 throwArityTypeError(exceptionState, 1, info.Length()); | 4720 throwArityTypeError(exceptionState, 1, info.Length()); |
4721 return; | 4721 return; |
4722 } | 4722 } |
4723 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4723 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4724 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedLongArg, toUInt32(info[0], excep
tionState), exceptionState); | 4724 V8TRYCATCH_VOID_EXCEPTION(unsigned, unsignedLongArg, toUInt32(info[0], excep
tionState), exceptionState); |
4725 impl->voidMethodUnsignedLongArg(unsignedLongArg); | 4725 impl->voidMethodUnsignedLongArg(unsignedLongArg); |
4726 } | 4726 } |
4727 | 4727 |
4728 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4728 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
4729 { | 4729 { |
4730 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4730 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4731 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); | 4731 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); |
4732 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4732 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4733 } | 4733 } |
4734 | 4734 |
4735 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4735 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4736 { | 4736 { |
4737 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4737 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
4738 if (UNLIKELY(info.Length() < 1)) { | 4738 if (UNLIKELY(info.Length() < 1)) { |
4739 throwArityTypeError(exceptionState, 1, info.Length()); | 4739 throwArityTypeError(exceptionState, 1, info.Length()); |
4740 return; | 4740 return; |
4741 } | 4741 } |
4742 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4742 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4743 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, unsignedLongLongArg, toUInt64(
info[0], exceptionState), exceptionState); | 4743 V8TRYCATCH_VOID_EXCEPTION(unsigned long long, unsignedLongLongArg, toUInt64(
info[0], exceptionState), exceptionState); |
4744 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); | 4744 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); |
4745 } | 4745 } |
4746 | 4746 |
4747 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 4747 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
4748 { | 4748 { |
4749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4750 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); | 4750 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); |
4751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4752 } | 4752 } |
4753 | 4753 |
4754 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4754 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4755 { | 4755 { |
4756 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 4756 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); |
4757 if (UNLIKELY(info.Length() < 1)) { | 4757 if (UNLIKELY(info.Length() < 1)) { |
4758 throwArityTypeError(exceptionState, 1, info.Length()); | 4758 throwArityTypeError(exceptionState, 1, info.Length()); |
4759 return; | 4759 return; |
4760 } | 4760 } |
4761 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4761 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4762 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedShortArg, toUInt16(info[0], exce
ptionState), exceptionState); | 4762 V8TRYCATCH_VOID_EXCEPTION(unsigned, unsignedShortArg, toUInt16(info[0], exce
ptionState), exceptionState); |
4763 impl->voidMethodUnsignedShortArg(unsignedShortArg); | 4763 impl->voidMethodUnsignedShortArg(unsignedShortArg); |
4764 } | 4764 } |
4765 | 4765 |
4766 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 4766 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
4767 { | 4767 { |
4768 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4768 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4769 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); | 4769 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); |
4770 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4770 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4771 } | 4771 } |
4772 | 4772 |
(...skipping 29 matching lines...) Expand all Loading... |
4802 } | 4802 } |
4803 | 4803 |
4804 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 4804 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
4805 { | 4805 { |
4806 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); | 4806 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); |
4807 if (UNLIKELY(info.Length() < 2)) { | 4807 if (UNLIKELY(info.Length() < 2)) { |
4808 throwArityTypeError(exceptionState, 2, info.Length()); | 4808 throwArityTypeError(exceptionState, 2, info.Length()); |
4809 return; | 4809 return; |
4810 } | 4810 } |
4811 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4811 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4812 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 4812 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
4813 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); | 4813 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); |
4814 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; | 4814 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; |
4815 } | 4815 } |
4816 | 4816 |
4817 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 4817 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
4818 { | 4818 { |
4819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4820 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); | 4820 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); |
4821 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4821 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4822 } | 4822 } |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5527 } | 5527 } |
5528 | 5528 |
5529 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5529 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
5530 { | 5530 { |
5531 if (UNLIKELY(info.Length() < 1)) { | 5531 if (UNLIKELY(info.Length() < 1)) { |
5532 throwArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject", 1, i
nfo.Length(), info.GetIsolate()); | 5532 throwArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject", 1, i
nfo.Length(), info.GetIsolate()); |
5533 return; | 5533 return; |
5534 } | 5534 } |
5535 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5535 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5536 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in
fo[0]); | 5536 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, testEnumTypeArg, info[0]); |
5537 String string = testEnumTypeArg; | 5537 String string = testEnumTypeArg; |
5538 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { | 5538 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { |
5539 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), i
nfo.GetIsolate()); | 5539 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), i
nfo.GetIsolate()); |
5540 return; | 5540 return; |
5541 } | 5541 } |
5542 impl->voidMethodTestEnumArg(testEnumTypeArg); | 5542 impl->voidMethodTestEnumArg(testEnumTypeArg); |
5543 } | 5543 } |
5544 | 5544 |
5545 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5545 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5546 { | 5546 { |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5755 } | 5755 } |
5756 | 5756 |
5757 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5757 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5758 { | 5758 { |
5759 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5759 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5760 if (UNLIKELY(info.Length() < 2)) { | 5760 if (UNLIKELY(info.Length() < 2)) { |
5761 throwArityTypeError(exceptionState, 2, info.Length()); | 5761 throwArityTypeError(exceptionState, 2, info.Length()); |
5762 return; | 5762 return; |
5763 } | 5763 } |
5764 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5764 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5765 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 5765 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, stringArg, info[0]); |
5766 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex
ceptionState); | 5766 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[1], exceptionState), ex
ceptionState); |
5767 impl->voidMethodStringArgLongArg(stringArg, longArg); | 5767 impl->voidMethodStringArgLongArg(stringArg, longArg); |
5768 } | 5768 } |
5769 | 5769 |
5770 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5770 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5771 { | 5771 { |
5772 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5772 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5773 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); | 5773 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); |
5774 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5774 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5775 } | 5775 } |
5776 | 5776 |
5777 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5777 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5778 { | 5778 { |
5779 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5779 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5780 if (UNLIKELY(info.Length() <= 0)) { | 5780 if (UNLIKELY(info.Length() <= 0)) { |
5781 impl->voidMethodOptionalStringArg(); | 5781 impl->voidMethodOptionalStringArg(); |
5782 return; | 5782 return; |
5783 } | 5783 } |
5784 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg,
info[0]); | 5784 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, optionalStringArg, info[0]
); |
5785 impl->voidMethodOptionalStringArg(optionalStringArg); | 5785 impl->voidMethodOptionalStringArg(optionalStringArg); |
5786 } | 5786 } |
5787 | 5787 |
5788 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5788 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5789 { | 5789 { |
5790 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5790 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5791 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); | 5791 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); |
5792 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5792 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5793 } | 5793 } |
5794 | 5794 |
(...skipping 16 matching lines...) Expand all Loading... |
5811 } | 5811 } |
5812 | 5812 |
5813 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5813 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5814 { | 5814 { |
5815 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5815 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5816 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5816 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5817 if (UNLIKELY(info.Length() <= 0)) { | 5817 if (UNLIKELY(info.Length() <= 0)) { |
5818 impl->voidMethodOptionalLongArg(); | 5818 impl->voidMethodOptionalLongArg(); |
5819 return; | 5819 return; |
5820 } | 5820 } |
5821 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 5821 V8TRYCATCH_VOID_EXCEPTION(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
5822 impl->voidMethodOptionalLongArg(optionalLongArg); | 5822 impl->voidMethodOptionalLongArg(optionalLongArg); |
5823 } | 5823 } |
5824 | 5824 |
5825 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5825 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5826 { | 5826 { |
5827 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5827 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5828 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); | 5828 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); |
5829 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5829 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5830 } | 5830 } |
5831 | 5831 |
5832 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5832 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5833 { | 5833 { |
5834 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5834 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5835 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5835 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5836 if (UNLIKELY(info.Length() <= 0)) { | 5836 if (UNLIKELY(info.Length() <= 0)) { |
5837 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.G
etIsolate()); | 5837 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.G
etIsolate()); |
5838 return; | 5838 return; |
5839 } | 5839 } |
5840 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 5840 V8TRYCATCH_VOID_EXCEPTION(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
5841 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); | 5841 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); |
5842 } | 5842 } |
5843 | 5843 |
5844 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5844 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5845 { | 5845 { |
5846 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5846 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5847 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); | 5847 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); |
5848 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5848 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5849 } | 5849 } |
5850 | 5850 |
5851 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 5851 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
5852 { | 5852 { |
5853 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5853 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5854 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5854 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5855 if (UNLIKELY(info.Length() <= 0)) { | 5855 if (UNLIKELY(info.Length() <= 0)) { |
5856 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg()); | 5856 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg()); |
5857 return; | 5857 return; |
5858 } | 5858 } |
5859 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 5859 V8TRYCATCH_VOID_EXCEPTION(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
5860 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); | 5860 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); |
5861 } | 5861 } |
5862 | 5862 |
5863 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5863 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5864 { | 5864 { |
5865 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5865 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5866 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); | 5866 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); |
5867 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5867 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5868 } | 5868 } |
5869 | 5869 |
5870 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5870 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5871 { | 5871 { |
5872 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5872 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5873 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5873 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5874 if (UNLIKELY(info.Length() <= 0)) { | 5874 if (UNLIKELY(info.Length() <= 0)) { |
5875 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); | 5875 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); |
5876 return; | 5876 return; |
5877 } | 5877 } |
5878 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 5878 V8TRYCATCH_VOID_EXCEPTION(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
5879 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); | 5879 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); |
5880 } | 5880 } |
5881 | 5881 |
5882 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5882 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5883 { | 5883 { |
5884 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5884 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5885 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); | 5885 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); |
5886 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5886 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5887 } | 5887 } |
5888 | 5888 |
5889 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5889 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5890 { | 5890 { |
5891 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5891 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5892 if (UNLIKELY(info.Length() < 1)) { | 5892 if (UNLIKELY(info.Length() < 1)) { |
5893 throwArityTypeError(exceptionState, 1, info.Length()); | 5893 throwArityTypeError(exceptionState, 1, info.Length()); |
5894 return; | 5894 return; |
5895 } | 5895 } |
5896 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5896 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5897 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5897 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5898 if (UNLIKELY(info.Length() <= 1)) { | 5898 if (UNLIKELY(info.Length() <= 1)) { |
5899 impl->voidMethodLongArgOptionalLongArg(longArg); | 5899 impl->voidMethodLongArgOptionalLongArg(longArg); |
5900 return; | 5900 return; |
5901 } | 5901 } |
5902 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[1], exceptionSt
ate), exceptionState); | 5902 V8TRYCATCH_VOID_EXCEPTION(int, optionalLongArg, toInt32(info[1], exceptionSt
ate), exceptionState); |
5903 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); | 5903 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); |
5904 } | 5904 } |
5905 | 5905 |
5906 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5906 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
5907 { | 5907 { |
5908 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5908 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5909 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); | 5909 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); |
5910 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5910 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5911 } | 5911 } |
5912 | 5912 |
5913 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5913 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5914 { | 5914 { |
5915 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); | 5915 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); |
5916 if (UNLIKELY(info.Length() < 1)) { | 5916 if (UNLIKELY(info.Length() < 1)) { |
5917 throwArityTypeError(exceptionState, 1, info.Length()); | 5917 throwArityTypeError(exceptionState, 1, info.Length()); |
5918 return; | 5918 return; |
5919 } | 5919 } |
5920 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5920 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5921 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5921 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5922 if (UNLIKELY(info.Length() <= 1)) { | 5922 if (UNLIKELY(info.Length() <= 1)) { |
5923 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); | 5923 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); |
5924 return; | 5924 return; |
5925 } | 5925 } |
5926 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg1, toInt32(info[1], exceptionS
tate), exceptionState); | 5926 V8TRYCATCH_VOID_EXCEPTION(int, optionalLongArg1, toInt32(info[1], exceptionS
tate), exceptionState); |
5927 if (UNLIKELY(info.Length() <= 2)) { | 5927 if (UNLIKELY(info.Length() <= 2)) { |
5928 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL
ongArg1); | 5928 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL
ongArg1); |
5929 return; | 5929 return; |
5930 } | 5930 } |
5931 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg2, toInt32(info[2], exceptionS
tate), exceptionState); | 5931 V8TRYCATCH_VOID_EXCEPTION(int, optionalLongArg2, toInt32(info[2], exceptionS
tate), exceptionState); |
5932 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); | 5932 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); |
5933 } | 5933 } |
5934 | 5934 |
5935 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 5935 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
5936 { | 5936 { |
5937 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5937 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5938 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); | 5938 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); |
5939 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5939 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5940 } | 5940 } |
5941 | 5941 |
5942 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 5942 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
5943 { | 5943 { |
5944 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); | 5944 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); |
5945 if (UNLIKELY(info.Length() < 1)) { | 5945 if (UNLIKELY(info.Length() < 1)) { |
5946 throwArityTypeError(exceptionState, 1, info.Length()); | 5946 throwArityTypeError(exceptionState, 1, info.Length()); |
5947 return; | 5947 return; |
5948 } | 5948 } |
5949 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5949 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5950 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5950 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5951 if (UNLIKELY(info.Length() <= 1)) { | 5951 if (UNLIKELY(info.Length() <= 1)) { |
5952 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); | 5952 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); |
5953 return; | 5953 return; |
5954 } | 5954 } |
5955 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); | 5955 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); |
5956 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); | 5956 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); |
5957 } | 5957 } |
5958 | 5958 |
5959 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 5959 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
5960 { | 5960 { |
5961 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5961 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5962 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i
nfo); | 5962 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i
nfo); |
5963 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5963 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5964 } | 5964 } |
5965 | 5965 |
5966 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 5966 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
5967 { | 5967 { |
5968 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola
te()); | 5968 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola
te()); |
5969 if (UNLIKELY(info.Length() < 1)) { | 5969 if (UNLIKELY(info.Length() < 1)) { |
5970 throwArityTypeError(exceptionState, 1, info.Length()); | 5970 throwArityTypeError(exceptionState, 1, info.Length()); |
5971 return; | 5971 return; |
5972 } | 5972 } |
5973 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5973 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5974 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5974 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
5975 if (UNLIKELY(info.Length() <= 1)) { | 5975 if (UNLIKELY(info.Length() <= 1)) { |
5976 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa
ceEmpty); | 5976 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa
ceEmpty); |
5977 return; | 5977 return; |
5978 } | 5978 } |
5979 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex
ceptionState); | 5979 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[1], exceptionState), ex
ceptionState); |
5980 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); | 5980 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); |
5981 } | 5981 } |
5982 | 5982 |
5983 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 5983 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
5984 { | 5984 { |
5985 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5985 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5986 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i
nfo); | 5986 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i
nfo); |
5987 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5987 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5988 } | 5988 } |
5989 | 5989 |
(...skipping 29 matching lines...) Expand all Loading... |
6019 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6019 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6020 } | 6020 } |
6021 | 6021 |
6022 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6022 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6023 { | 6023 { |
6024 if (UNLIKELY(info.Length() < 1)) { | 6024 if (UNLIKELY(info.Length() < 1)) { |
6025 throwArityTypeErrorForMethod("voidMethodStringArgVariadicStringArg", "Te
stObject", 1, info.Length(), info.GetIsolate()); | 6025 throwArityTypeErrorForMethod("voidMethodStringArgVariadicStringArg", "Te
stObject", 1, info.Length(), info.GetIsolate()); |
6026 return; | 6026 return; |
6027 } | 6027 } |
6028 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6028 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6029 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 6029 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, stringArg, info[0]); |
6030 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 1)); | 6030 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 1)); |
6031 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 6031 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
6032 } | 6032 } |
6033 | 6033 |
6034 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6034 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6035 { | 6035 { |
6036 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6036 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6037 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); | 6037 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); |
6038 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6038 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6039 } | 6039 } |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6107 } | 6107 } |
6108 | 6108 |
6109 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6109 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6110 { | 6110 { |
6111 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 6111 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
6112 if (UNLIKELY(info.Length() < 1)) { | 6112 if (UNLIKELY(info.Length() < 1)) { |
6113 throwArityTypeError(exceptionState, 1, info.Length()); | 6113 throwArityTypeError(exceptionState, 1, info.Length()); |
6114 return; | 6114 return; |
6115 } | 6115 } |
6116 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6116 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6117 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6117 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6118 impl->overloadedMethodA(longArg); | 6118 impl->overloadedMethodA(longArg); |
6119 } | 6119 } |
6120 | 6120 |
6121 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6121 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6122 { | 6122 { |
6123 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 6123 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
6124 if (UNLIKELY(info.Length() < 2)) { | 6124 if (UNLIKELY(info.Length() < 2)) { |
6125 throwArityTypeError(exceptionState, 2, info.Length()); | 6125 throwArityTypeError(exceptionState, 2, info.Length()); |
6126 return; | 6126 return; |
6127 } | 6127 } |
6128 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6128 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6129 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); | 6129 V8TRYCATCH_VOID_EXCEPTION(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); |
6130 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); | 6130 V8TRYCATCH_VOID_EXCEPTION(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); |
6131 impl->overloadedMethodA(longArg1, longArg2); | 6131 impl->overloadedMethodA(longArg1, longArg2); |
6132 } | 6132 } |
6133 | 6133 |
6134 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6134 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6135 { | 6135 { |
6136 if (((info.Length() == 1))) { | 6136 if (((info.Length() == 1))) { |
6137 overloadedMethodA1Method(info); | 6137 overloadedMethodA1Method(info); |
6138 return; | 6138 return; |
6139 } | 6139 } |
6140 if (((info.Length() == 2))) { | 6140 if (((info.Length() == 2))) { |
(...skipping 17 matching lines...) Expand all Loading... |
6158 } | 6158 } |
6159 | 6159 |
6160 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6160 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6161 { | 6161 { |
6162 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 6162 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
6163 if (UNLIKELY(info.Length() < 1)) { | 6163 if (UNLIKELY(info.Length() < 1)) { |
6164 throwArityTypeError(exceptionState, 1, info.Length()); | 6164 throwArityTypeError(exceptionState, 1, info.Length()); |
6165 return; | 6165 return; |
6166 } | 6166 } |
6167 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6167 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6168 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6168 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6169 impl->overloadedMethodB(longArg); | 6169 impl->overloadedMethodB(longArg); |
6170 } | 6170 } |
6171 | 6171 |
6172 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6172 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6173 { | 6173 { |
6174 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 6174 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
6175 if (UNLIKELY(info.Length() < 1)) { | 6175 if (UNLIKELY(info.Length() < 1)) { |
6176 throwArityTypeError(exceptionState, 1, info.Length()); | 6176 throwArityTypeError(exceptionState, 1, info.Length()); |
6177 return; | 6177 return; |
6178 } | 6178 } |
6179 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6179 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6180 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); | 6180 V8TRYCATCH_VOID_EXCEPTION(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); |
6181 if (UNLIKELY(info.Length() <= 1)) { | 6181 if (UNLIKELY(info.Length() <= 1)) { |
6182 impl->overloadedMethodB(longArg1); | 6182 impl->overloadedMethodB(longArg1); |
6183 return; | 6183 return; |
6184 } | 6184 } |
6185 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); | 6185 V8TRYCATCH_VOID_EXCEPTION(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); |
6186 impl->overloadedMethodB(longArg1, longArg2); | 6186 impl->overloadedMethodB(longArg1, longArg2); |
6187 } | 6187 } |
6188 | 6188 |
6189 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6189 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6190 { | 6190 { |
6191 if (((info.Length() == 1))) { | 6191 if (((info.Length() == 1))) { |
6192 overloadedMethodB1Method(info); | 6192 overloadedMethodB1Method(info); |
6193 return; | 6193 return; |
6194 } | 6194 } |
6195 if (((info.Length() == 1)) || ((info.Length() == 2))) { | 6195 if (((info.Length() == 1)) || ((info.Length() == 2))) { |
(...skipping 17 matching lines...) Expand all Loading... |
6213 } | 6213 } |
6214 | 6214 |
6215 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6215 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6216 { | 6216 { |
6217 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); | 6217 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); |
6218 if (UNLIKELY(info.Length() < 1)) { | 6218 if (UNLIKELY(info.Length() < 1)) { |
6219 throwArityTypeError(exceptionState, 1, info.Length()); | 6219 throwArityTypeError(exceptionState, 1, info.Length()); |
6220 return; | 6220 return; |
6221 } | 6221 } |
6222 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6222 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6223 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6223 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6224 impl->overloadedMethodC(longArg); | 6224 impl->overloadedMethodC(longArg); |
6225 } | 6225 } |
6226 | 6226 |
6227 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6227 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6228 { | 6228 { |
6229 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); | 6229 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); |
6230 if (UNLIKELY(info.Length() < 1)) { | 6230 if (UNLIKELY(info.Length() < 1)) { |
6231 throwArityTypeError(exceptionState, 1, info.Length()); | 6231 throwArityTypeError(exceptionState, 1, info.Length()); |
6232 return; | 6232 return; |
6233 } | 6233 } |
6234 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6234 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6235 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6235 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6236 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); | 6236 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); |
6237 impl->overloadedMethodC(longArg, longArgs); | 6237 impl->overloadedMethodC(longArg, longArgs); |
6238 } | 6238 } |
6239 | 6239 |
6240 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6240 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6241 { | 6241 { |
6242 if (((info.Length() == 1))) { | 6242 if (((info.Length() == 1))) { |
6243 overloadedMethodC1Method(info); | 6243 overloadedMethodC1Method(info); |
6244 return; | 6244 return; |
6245 } | 6245 } |
(...skipping 18 matching lines...) Expand all Loading... |
6264 } | 6264 } |
6265 | 6265 |
6266 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6266 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6267 { | 6267 { |
6268 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 6268 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
6269 if (UNLIKELY(info.Length() < 1)) { | 6269 if (UNLIKELY(info.Length() < 1)) { |
6270 throwArityTypeError(exceptionState, 1, info.Length()); | 6270 throwArityTypeError(exceptionState, 1, info.Length()); |
6271 return; | 6271 return; |
6272 } | 6272 } |
6273 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6273 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6274 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6274 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6275 impl->overloadedMethodD(longArg); | 6275 impl->overloadedMethodD(longArg); |
6276 } | 6276 } |
6277 | 6277 |
6278 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6278 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6279 { | 6279 { |
6280 if (UNLIKELY(info.Length() < 1)) { | 6280 if (UNLIKELY(info.Length() < 1)) { |
6281 throwArityTypeErrorForMethod("overloadedMethodD", "TestObject", 1, info.
Length(), info.GetIsolate()); | 6281 throwArityTypeErrorForMethod("overloadedMethodD", "TestObject", 1, info.
Length(), info.GetIsolate()); |
6282 return; | 6282 return; |
6283 } | 6283 } |
6284 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6284 TestObject* impl = V8TestObject::toNative(info.Holder()); |
(...skipping 28 matching lines...) Expand all Loading... |
6313 } | 6313 } |
6314 | 6314 |
6315 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6315 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6316 { | 6316 { |
6317 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), info.GetIsolate()); | 6317 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), info.GetIsolate()); |
6318 if (UNLIKELY(info.Length() < 1)) { | 6318 if (UNLIKELY(info.Length() < 1)) { |
6319 throwArityTypeError(exceptionState, 1, info.Length()); | 6319 throwArityTypeError(exceptionState, 1, info.Length()); |
6320 return; | 6320 return; |
6321 } | 6321 } |
6322 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6322 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6323 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6323 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6324 impl->overloadedMethodE(longArg); | 6324 impl->overloadedMethodE(longArg); |
6325 } | 6325 } |
6326 | 6326 |
6327 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6327 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6328 { | 6328 { |
6329 if (UNLIKELY(info.Length() < 1)) { | 6329 if (UNLIKELY(info.Length() < 1)) { |
6330 throwArityTypeErrorForMethod("overloadedMethodE", "TestObject", 1, info.
Length(), info.GetIsolate()); | 6330 throwArityTypeErrorForMethod("overloadedMethodE", "TestObject", 1, info.
Length(), info.GetIsolate()); |
6331 return; | 6331 return; |
6332 } | 6332 } |
6333 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6333 TestObject* impl = V8TestObject::toNative(info.Holder()); |
(...skipping 28 matching lines...) Expand all Loading... |
6362 } | 6362 } |
6363 | 6363 |
6364 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6364 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6365 { | 6365 { |
6366 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); | 6366 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), info.GetIsolate()); |
6367 if (UNLIKELY(info.Length() < 1)) { | 6367 if (UNLIKELY(info.Length() < 1)) { |
6368 throwArityTypeError(exceptionState, 1, info.Length()); | 6368 throwArityTypeError(exceptionState, 1, info.Length()); |
6369 return; | 6369 return; |
6370 } | 6370 } |
6371 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6371 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6372 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6372 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6373 impl->overloadedMethodF(longArg); | 6373 impl->overloadedMethodF(longArg); |
6374 } | 6374 } |
6375 | 6375 |
6376 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6376 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6377 { | 6377 { |
6378 if (UNLIKELY(info.Length() < 1)) { | 6378 if (UNLIKELY(info.Length() < 1)) { |
6379 throwArityTypeErrorForMethod("overloadedMethodF", "TestObject", 1, info.
Length(), info.GetIsolate()); | 6379 throwArityTypeErrorForMethod("overloadedMethodF", "TestObject", 1, info.
Length(), info.GetIsolate()); |
6380 return; | 6380 return; |
6381 } | 6381 } |
6382 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6382 TestObject* impl = V8TestObject::toNative(info.Holder()); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6416 impl->overloadedMethodG(); | 6416 impl->overloadedMethodG(); |
6417 } | 6417 } |
6418 | 6418 |
6419 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6419 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6420 { | 6420 { |
6421 if (UNLIKELY(info.Length() < 1)) { | 6421 if (UNLIKELY(info.Length() < 1)) { |
6422 throwArityTypeErrorForMethod("overloadedMethodG", "TestObject", 1, info.
Length(), info.GetIsolate()); | 6422 throwArityTypeErrorForMethod("overloadedMethodG", "TestObject", 1, info.
Length(), info.GetIsolate()); |
6423 return; | 6423 return; |
6424 } | 6424 } |
6425 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6425 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6426 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS
tringArg, info[0]); | 6426 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, strictTypeCheckingStringAr
g, info[0]); |
6427 impl->overloadedMethodG(strictTypeCheckingStringArg); | 6427 impl->overloadedMethodG(strictTypeCheckingStringArg); |
6428 } | 6428 } |
6429 | 6429 |
6430 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6430 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6431 { | 6431 { |
6432 if (((info.Length() == 0))) { | 6432 if (((info.Length() == 0))) { |
6433 overloadedMethodG1Method(info); | 6433 overloadedMethodG1Method(info); |
6434 return; | 6434 return; |
6435 } | 6435 } |
6436 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || info[0]->IsStrin
g() || info[0]->IsObject()))) { | 6436 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || info[0]->IsStrin
g() || info[0]->IsObject()))) { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6553 } | 6553 } |
6554 | 6554 |
6555 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6555 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6556 { | 6556 { |
6557 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 6557 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
6558 if (UNLIKELY(info.Length() < 1)) { | 6558 if (UNLIKELY(info.Length() < 1)) { |
6559 throwArityTypeError(exceptionState, 1, info.Length()); | 6559 throwArityTypeError(exceptionState, 1, info.Length()); |
6560 return; | 6560 return; |
6561 } | 6561 } |
6562 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6562 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6563 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6563 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6564 impl->overloadedPerWorldBindingsMethod(longArg); | 6564 impl->overloadedPerWorldBindingsMethod(longArg); |
6565 } | 6565 } |
6566 | 6566 |
6567 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6567 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
6568 { | 6568 { |
6569 if (((info.Length() == 0))) { | 6569 if (((info.Length() == 0))) { |
6570 overloadedPerWorldBindingsMethod1Method(info); | 6570 overloadedPerWorldBindingsMethod1Method(info); |
6571 return; | 6571 return; |
6572 } | 6572 } |
6573 if (((info.Length() == 1))) { | 6573 if (((info.Length() == 1))) { |
(...skipping 11 matching lines...) Expand all Loading... |
6585 } | 6585 } |
6586 | 6586 |
6587 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 6587 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
6588 { | 6588 { |
6589 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 6589 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
6590 if (UNLIKELY(info.Length() < 1)) { | 6590 if (UNLIKELY(info.Length() < 1)) { |
6591 throwArityTypeError(exceptionState, 1, info.Length()); | 6591 throwArityTypeError(exceptionState, 1, info.Length()); |
6592 return; | 6592 return; |
6593 } | 6593 } |
6594 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6594 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6595 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6595 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6596 impl->overloadedPerWorldBindingsMethod(longArg); | 6596 impl->overloadedPerWorldBindingsMethod(longArg); |
6597 } | 6597 } |
6598 | 6598 |
6599 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6599 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6600 { | 6600 { |
6601 if (((info.Length() == 0))) { | 6601 if (((info.Length() == 0))) { |
6602 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); | 6602 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); |
6603 return; | 6603 return; |
6604 } | 6604 } |
6605 if (((info.Length() == 1))) { | 6605 if (((info.Length() == 1))) { |
(...skipping 10 matching lines...) Expand all Loading... |
6616 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6616 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6617 } | 6617 } |
6618 | 6618 |
6619 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 6619 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
6620 { | 6620 { |
6621 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 6621 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
6622 if (UNLIKELY(info.Length() < 1)) { | 6622 if (UNLIKELY(info.Length() < 1)) { |
6623 throwArityTypeError(exceptionState, 1, info.Length()); | 6623 throwArityTypeError(exceptionState, 1, info.Length()); |
6624 return; | 6624 return; |
6625 } | 6625 } |
6626 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6626 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6627 TestObject::overloadedStaticMethod(longArg); | 6627 TestObject::overloadedStaticMethod(longArg); |
6628 } | 6628 } |
6629 | 6629 |
6630 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 6630 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
6631 { | 6631 { |
6632 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 6632 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
6633 if (UNLIKELY(info.Length() < 2)) { | 6633 if (UNLIKELY(info.Length() < 2)) { |
6634 throwArityTypeError(exceptionState, 2, info.Length()); | 6634 throwArityTypeError(exceptionState, 2, info.Length()); |
6635 return; | 6635 return; |
6636 } | 6636 } |
6637 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); | 6637 V8TRYCATCH_VOID_EXCEPTION(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); |
6638 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); | 6638 V8TRYCATCH_VOID_EXCEPTION(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); |
6639 TestObject::overloadedStaticMethod(longArg1, longArg2); | 6639 TestObject::overloadedStaticMethod(longArg1, longArg2); |
6640 } | 6640 } |
6641 | 6641 |
6642 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 6642 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
6643 { | 6643 { |
6644 if (((info.Length() == 1))) { | 6644 if (((info.Length() == 1))) { |
6645 overloadedStaticMethod1Method(info); | 6645 overloadedStaticMethod1Method(info); |
6646 return; | 6646 return; |
6647 } | 6647 } |
6648 if (((info.Length() == 2))) { | 6648 if (((info.Length() == 2))) { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6720 { | 6720 { |
6721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6722 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(
info); | 6722 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(
info); |
6723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6724 } | 6724 } |
6725 | 6725 |
6726 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6726 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6727 { | 6727 { |
6728 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6728 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
6729 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6729 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6730 V8TRYCATCH_EXCEPTION_VOID(int, defaultUndefinedLongArg, toInt32(info[0], exc
eptionState), exceptionState); | 6730 V8TRYCATCH_VOID_EXCEPTION(int, defaultUndefinedLongArg, toInt32(info[0], exc
eptionState), exceptionState); |
6731 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); | 6731 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
6732 } | 6732 } |
6733 | 6733 |
6734 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 6734 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
6735 { | 6735 { |
6736 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6736 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6737 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); | 6737 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); |
6738 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6738 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6739 } | 6739 } |
6740 | 6740 |
6741 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 6741 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
6742 { | 6742 { |
6743 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6743 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6744 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr
ingArg, info[0]); | 6744 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, defaultUndefinedStringArg,
info[0]); |
6745 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); | 6745 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
6746 } | 6746 } |
6747 | 6747 |
6748 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 6748 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
6749 { | 6749 { |
6750 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6750 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6751 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); | 6751 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); |
6752 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6752 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6753 } | 6753 } |
6754 | 6754 |
6755 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6755 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6756 { | 6756 { |
6757 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6757 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6758 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt
ringArg, argumentOrNull(info, 0)); | 6758 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, defaultNullStringStringArg
, argumentOrNull(info, 0)); |
6759 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); | 6759 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); |
6760 } | 6760 } |
6761 | 6761 |
6762 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6762 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6763 { | 6763 { |
6764 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6764 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6765 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info); | 6765 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info); |
6766 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6766 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6767 } | 6767 } |
6768 | 6768 |
6769 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 6769 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
6770 { | 6770 { |
6771 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6771 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
6772 if (UNLIKELY(info.Length() < 1)) { | 6772 if (UNLIKELY(info.Length() < 1)) { |
6773 throwArityTypeError(exceptionState, 1, info.Length()); | 6773 throwArityTypeError(exceptionState, 1, info.Length()); |
6774 return; | 6774 return; |
6775 } | 6775 } |
6776 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6776 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6777 V8TRYCATCH_EXCEPTION_VOID(int, enforceRangeLongArg, toInt32(info[0], Enforce
Range, exceptionState), exceptionState); | 6777 V8TRYCATCH_VOID_EXCEPTION(int, enforceRangeLongArg, toInt32(info[0], Enforce
Range, exceptionState), exceptionState); |
6778 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); | 6778 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); |
6779 } | 6779 } |
6780 | 6780 |
6781 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6781 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
6782 { | 6782 { |
6783 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6783 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6784 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); | 6784 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); |
6785 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6785 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6786 } | 6786 } |
6787 | 6787 |
6788 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 6788 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
6789 { | 6789 { |
6790 if (UNLIKELY(info.Length() < 1)) { | 6790 if (UNLIKELY(info.Length() < 1)) { |
6791 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStringArg",
"TestObject", 1, info.Length(), info.GetIsolate()); | 6791 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStringArg",
"TestObject", 1, info.Length(), info.GetIsolate()); |
6792 return; | 6792 return; |
6793 } | 6793 } |
6794 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6794 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6795 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, treatN
ullAsNullStringStringArg, info[0]); | 6795 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<WithNullCheck>, treatNullAsNu
llStringStringArg, info[0]); |
6796 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); | 6796 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); |
6797 } | 6797 } |
6798 | 6798 |
6799 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 6799 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
6800 { | 6800 { |
6801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6802 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); | 6802 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); |
6803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6804 } | 6804 } |
6805 | 6805 |
6806 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) | 6806 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) |
6807 { | 6807 { |
6808 if (UNLIKELY(info.Length() < 1)) { | 6808 if (UNLIKELY(info.Length() < 1)) { |
6809 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTreatUndefi
nedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 6809 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTreatUndefi
nedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
6810 return; | 6810 return; |
6811 } | 6811 } |
6812 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6812 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6813 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe
ck>, treatNullAsNullStringStringArg, info[0]); | 6813 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<WithUndefinedOrNullCheck>, tr
eatNullAsNullStringStringArg, info[0]); |
6814 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); | 6814 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); |
6815 } | 6815 } |
6816 | 6816 |
6817 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 6817 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
6818 { | 6818 { |
6819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6820 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr
ingStringArgMethod(info); | 6820 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr
ingStringArgMethod(info); |
6821 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6821 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6822 } | 6822 } |
6823 | 6823 |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7396 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7396 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
7397 { | 7397 { |
7398 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7398 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7399 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7399 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7400 if (UNLIKELY(info.Length() <= 0)) { | 7400 if (UNLIKELY(info.Length() <= 0)) { |
7401 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); | 7401 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); |
7402 if (exceptionState.throwIfNeeded()) | 7402 if (exceptionState.throwIfNeeded()) |
7403 return; | 7403 return; |
7404 return; | 7404 return; |
7405 } | 7405 } |
7406 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 7406 V8TRYCATCH_VOID_EXCEPTION(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
7407 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); | 7407 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); |
7408 if (exceptionState.throwIfNeeded()) | 7408 if (exceptionState.throwIfNeeded()) |
7409 return; | 7409 return; |
7410 } | 7410 } |
7411 | 7411 |
7412 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 7412 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
7413 { | 7413 { |
7414 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7414 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7415 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info); | 7415 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info); |
7416 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7416 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7485 } | 7485 } |
7486 | 7486 |
7487 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 7487 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
7488 { | 7488 { |
7489 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); | 7489 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); |
7490 if (UNLIKELY(info.Length() < 1)) { | 7490 if (UNLIKELY(info.Length() < 1)) { |
7491 throwArityTypeError(exceptionState, 1, info.Length()); | 7491 throwArityTypeError(exceptionState, 1, info.Length()); |
7492 return; | 7492 return; |
7493 } | 7493 } |
7494 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7494 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7495 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 7495 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
7496 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 7496 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
7497 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext
, longArg, exceptionState); | 7497 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext
, longArg, exceptionState); |
7498 if (exceptionState.throwIfNeeded()) | 7498 if (exceptionState.throwIfNeeded()) |
7499 return; | 7499 return; |
7500 } | 7500 } |
7501 | 7501 |
7502 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 7502 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
7503 { | 7503 { |
7504 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7504 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7505 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA
rgMethod(info); | 7505 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA
rgMethod(info); |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8181 fromInternalPointer(object)->deref(); | 8181 fromInternalPointer(object)->deref(); |
8182 } | 8182 } |
8183 | 8183 |
8184 template<> | 8184 template<> |
8185 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 8185 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
8186 { | 8186 { |
8187 return toV8(impl, creationContext, isolate); | 8187 return toV8(impl, creationContext, isolate); |
8188 } | 8188 } |
8189 | 8189 |
8190 } // namespace WebCore | 8190 } // namespace WebCore |
OLD | NEW |