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

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

Issue 1011093002: [bindings] Pass NormalConversion to to[U]Int{8/16/32/64}(...) in v8_types.py and reduce conversion … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing after review comments! :) Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 320 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
321 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); 321 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info);
322 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 322 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
323 } 323 }
324 324
325 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 325 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
326 { 326 {
327 v8::Local<v8::Object> holder = info.Holder(); 327 v8::Local<v8::Object> holder = info.Holder();
328 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt tribute", "TestObject", holder, info.GetIsolate()); 328 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt tribute", "TestObject", holder, info.GetIsolate());
329 TestObject* impl = V8TestObject::toImpl(holder); 329 TestObject* impl = V8TestObject::toImpl(holder);
330 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, exception State); 330 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon version, exceptionState);
331 if (exceptionState.throwIfNeeded()) 331 if (exceptionState.throwIfNeeded())
332 return; 332 return;
333 impl->setDomTimeStampAttribute(cppValue); 333 impl->setDomTimeStampAttribute(cppValue);
334 } 334 }
335 335
336 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 336 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
337 { 337 {
338 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 338 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
339 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); 339 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info);
340 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 340 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 381 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
382 TestObjectV8Internal::byteAttributeAttributeGetter(info); 382 TestObjectV8Internal::byteAttributeAttributeGetter(info);
383 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 383 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
384 } 384 }
385 385
386 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 386 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
387 { 387 {
388 v8::Local<v8::Object> holder = info.Holder(); 388 v8::Local<v8::Object> holder = info.Holder();
389 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObject", holder, info.GetIsolate()); 389 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObject", holder, info.GetIsolate());
390 TestObject* impl = V8TestObject::toImpl(holder); 390 TestObject* impl = V8TestObject::toImpl(holder);
391 int cppValue = toInt8(info.GetIsolate(), v8Value, exceptionState); 391 int cppValue = toInt8(info.GetIsolate(), v8Value, NormalConversion, exceptio nState);
392 if (exceptionState.throwIfNeeded()) 392 if (exceptionState.throwIfNeeded())
393 return; 393 return;
394 impl->setByteAttribute(cppValue); 394 impl->setByteAttribute(cppValue);
395 } 395 }
396 396
397 static void byteAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 397 static void byteAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
398 { 398 {
399 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 399 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
400 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); 400 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info);
401 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 401 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 477 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
478 TestObjectV8Internal::longAttributeAttributeGetter(info); 478 TestObjectV8Internal::longAttributeAttributeGetter(info);
479 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 479 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
480 } 480 }
481 481
482 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 482 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
483 { 483 {
484 v8::Local<v8::Object> holder = info.Holder(); 484 v8::Local<v8::Object> holder = info.Holder();
485 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObject", holder, info.GetIsolate()); 485 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObject", holder, info.GetIsolate());
486 TestObject* impl = V8TestObject::toImpl(holder); 486 TestObject* impl = V8TestObject::toImpl(holder);
487 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 487 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
488 if (exceptionState.throwIfNeeded()) 488 if (exceptionState.throwIfNeeded())
489 return; 489 return;
490 impl->setLongAttribute(cppValue); 490 impl->setLongAttribute(cppValue);
491 } 491 }
492 492
493 static void longAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 493 static void longAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
494 { 494 {
495 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 495 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
496 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); 496 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info);
497 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 497 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
509 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 509 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
510 TestObjectV8Internal::longLongAttributeAttributeGetter(info); 510 TestObjectV8Internal::longLongAttributeAttributeGetter(info);
511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
512 } 512 }
513 513
514 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 514 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
515 { 515 {
516 v8::Local<v8::Object> holder = info.Holder(); 516 v8::Local<v8::Object> holder = info.Holder();
517 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObject", holder, info.GetIsolate()); 517 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObject", holder, info.GetIsolate());
518 TestObject* impl = V8TestObject::toImpl(holder); 518 TestObject* impl = V8TestObject::toImpl(holder);
519 long long cppValue = toInt64(info.GetIsolate(), v8Value, exceptionState); 519 long long cppValue = toInt64(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
520 if (exceptionState.throwIfNeeded()) 520 if (exceptionState.throwIfNeeded())
521 return; 521 return;
522 impl->setLongLongAttribute(cppValue); 522 impl->setLongLongAttribute(cppValue);
523 } 523 }
524 524
525 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 525 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
526 { 526 {
527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
528 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); 528 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info);
529 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 529 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
541 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 541 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
542 TestObjectV8Internal::octetAttributeAttributeGetter(info); 542 TestObjectV8Internal::octetAttributeAttributeGetter(info);
543 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 543 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
544 } 544 }
545 545
546 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 546 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
547 { 547 {
548 v8::Local<v8::Object> holder = info.Holder(); 548 v8::Local<v8::Object> holder = info.Holder();
549 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObject", holder, info.GetIsolate()); 549 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObject", holder, info.GetIsolate());
550 TestObject* impl = V8TestObject::toImpl(holder); 550 TestObject* impl = V8TestObject::toImpl(holder);
551 unsigned cppValue = toUInt8(info.GetIsolate(), v8Value, exceptionState); 551 unsigned cppValue = toUInt8(info.GetIsolate(), v8Value, NormalConversion, ex ceptionState);
552 if (exceptionState.throwIfNeeded()) 552 if (exceptionState.throwIfNeeded())
553 return; 553 return;
554 impl->setOctetAttribute(cppValue); 554 impl->setOctetAttribute(cppValue);
555 } 555 }
556 556
557 static void octetAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 557 static void octetAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
558 { 558 {
559 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 559 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
560 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); 560 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info);
561 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 561 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
573 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 573 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
574 TestObjectV8Internal::shortAttributeAttributeGetter(info); 574 TestObjectV8Internal::shortAttributeAttributeGetter(info);
575 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 575 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
576 } 576 }
577 577
578 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 578 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
579 { 579 {
580 v8::Local<v8::Object> holder = info.Holder(); 580 v8::Local<v8::Object> holder = info.Holder();
581 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate()); 581 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate());
582 TestObject* impl = V8TestObject::toImpl(holder); 582 TestObject* impl = V8TestObject::toImpl(holder);
583 int cppValue = toInt16(info.GetIsolate(), v8Value, exceptionState); 583 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
584 if (exceptionState.throwIfNeeded()) 584 if (exceptionState.throwIfNeeded())
585 return; 585 return;
586 impl->setShortAttribute(cppValue); 586 impl->setShortAttribute(cppValue);
587 } 587 }
588 588
589 static void shortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 589 static void shortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
590 { 590 {
591 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 591 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
592 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); 592 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info);
593 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 593 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 669 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
670 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); 670 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info);
671 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 671 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
672 } 672 }
673 673
674 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 674 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
675 { 675 {
676 v8::Local<v8::Object> holder = info.Holder(); 676 v8::Local<v8::Object> holder = info.Holder();
677 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObject", holder, info.GetIsolate()); 677 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObject", holder, info.GetIsolate());
678 TestObject* impl = V8TestObject::toImpl(holder); 678 TestObject* impl = V8TestObject::toImpl(holder);
679 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, exceptionState); 679 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
680 if (exceptionState.throwIfNeeded()) 680 if (exceptionState.throwIfNeeded())
681 return; 681 return;
682 impl->setUnsignedLongAttribute(cppValue); 682 impl->setUnsignedLongAttribute(cppValue);
683 } 683 }
684 684
685 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 685 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
686 { 686 {
687 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 687 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
688 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); 688 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info);
689 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 689 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
701 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 701 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
702 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); 702 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info);
703 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 703 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
704 } 704 }
705 705
706 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 706 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
707 { 707 {
708 v8::Local<v8::Object> holder = info.Holder(); 708 v8::Local<v8::Object> holder = info.Holder();
709 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObject", holder, info.GetIsolate()); 709 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObject", holder, info.GetIsolate());
710 TestObject* impl = V8TestObject::toImpl(holder); 710 TestObject* impl = V8TestObject::toImpl(holder);
711 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, exception State); 711 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon version, exceptionState);
712 if (exceptionState.throwIfNeeded()) 712 if (exceptionState.throwIfNeeded())
713 return; 713 return;
714 impl->setUnsignedLongLongAttribute(cppValue); 714 impl->setUnsignedLongLongAttribute(cppValue);
715 } 715 }
716 716
717 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 717 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
718 { 718 {
719 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 719 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
720 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info ); 720 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info );
721 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 721 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
733 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 733 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
734 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); 734 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info);
735 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 735 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
736 } 736 }
737 737
738 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 738 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
739 { 739 {
740 v8::Local<v8::Object> holder = info.Holder(); 740 v8::Local<v8::Object> holder = info.Holder();
741 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObject", holder, info.GetIsolate()); 741 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObject", holder, info.GetIsolate());
742 TestObject* impl = V8TestObject::toImpl(holder); 742 TestObject* impl = V8TestObject::toImpl(holder);
743 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, exceptionState); 743 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
744 if (exceptionState.throwIfNeeded()) 744 if (exceptionState.throwIfNeeded())
745 return; 745 return;
746 impl->setUnsignedShortAttribute(cppValue); 746 impl->setUnsignedShortAttribute(cppValue);
747 } 747 }
748 748
749 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 749 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
750 { 750 {
751 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 751 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
752 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); 752 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info);
753 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 753 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 881 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
882 TestObjectV8Internal::cssAttributeAttributeGetter(info); 882 TestObjectV8Internal::cssAttributeAttributeGetter(info);
883 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 883 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
884 } 884 }
885 885
886 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 886 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
887 { 887 {
888 v8::Local<v8::Object> holder = info.Holder(); 888 v8::Local<v8::Object> holder = info.Holder();
889 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate()); 889 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate());
890 TestObject* impl = V8TestObject::toImpl(holder); 890 TestObject* impl = V8TestObject::toImpl(holder);
891 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 891 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
892 if (exceptionState.throwIfNeeded()) 892 if (exceptionState.throwIfNeeded())
893 return; 893 return;
894 impl->setCSSAttribute(cppValue); 894 impl->setCSSAttribute(cppValue);
895 } 895 }
896 896
897 static void cssAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 897 static void cssAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
898 { 898 {
899 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 899 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
900 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); 900 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info);
901 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 901 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
913 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 913 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
914 TestObjectV8Internal::imeAttributeAttributeGetter(info); 914 TestObjectV8Internal::imeAttributeAttributeGetter(info);
915 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 915 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
916 } 916 }
917 917
918 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 918 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
919 { 919 {
920 v8::Local<v8::Object> holder = info.Holder(); 920 v8::Local<v8::Object> holder = info.Holder();
921 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate()); 921 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate());
922 TestObject* impl = V8TestObject::toImpl(holder); 922 TestObject* impl = V8TestObject::toImpl(holder);
923 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 923 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
924 if (exceptionState.throwIfNeeded()) 924 if (exceptionState.throwIfNeeded())
925 return; 925 return;
926 impl->setIMEAttribute(cppValue); 926 impl->setIMEAttribute(cppValue);
927 } 927 }
928 928
929 static void imeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 929 static void imeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
930 { 930 {
931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
932 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); 932 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info);
933 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 933 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
945 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 945 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
946 TestObjectV8Internal::svgAttributeAttributeGetter(info); 946 TestObjectV8Internal::svgAttributeAttributeGetter(info);
947 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 947 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
948 } 948 }
949 949
950 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 950 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
951 { 951 {
952 v8::Local<v8::Object> holder = info.Holder(); 952 v8::Local<v8::Object> holder = info.Holder();
953 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate()); 953 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate());
954 TestObject* impl = V8TestObject::toImpl(holder); 954 TestObject* impl = V8TestObject::toImpl(holder);
955 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 955 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
956 if (exceptionState.throwIfNeeded()) 956 if (exceptionState.throwIfNeeded())
957 return; 957 return;
958 impl->setSVGAttribute(cppValue); 958 impl->setSVGAttribute(cppValue);
959 } 959 }
960 960
961 static void svgAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 961 static void svgAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
962 { 962 {
963 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 963 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
964 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); 964 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info);
965 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 965 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
977 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 977 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
978 TestObjectV8Internal::xmlAttributeAttributeGetter(info); 978 TestObjectV8Internal::xmlAttributeAttributeGetter(info);
979 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 979 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
980 } 980 }
981 981
982 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 982 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
983 { 983 {
984 v8::Local<v8::Object> holder = info.Holder(); 984 v8::Local<v8::Object> holder = info.Holder();
985 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate()); 985 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate());
986 TestObject* impl = V8TestObject::toImpl(holder); 986 TestObject* impl = V8TestObject::toImpl(holder);
987 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 987 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
988 if (exceptionState.throwIfNeeded()) 988 if (exceptionState.throwIfNeeded())
989 return; 989 return;
990 impl->setXMLAttribute(cppValue); 990 impl->setXMLAttribute(cppValue);
991 } 991 }
992 992
993 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 993 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
994 { 994 {
995 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 995 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
996 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); 996 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info);
997 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 997 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1636 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); 1636 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info);
1637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1638 } 1638 }
1639 1639
1640 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1640 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1641 { 1641 {
1642 v8::Local<v8::Object> holder = info.Holder(); 1642 v8::Local<v8::Object> holder = info.Holder();
1643 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObject", holder, info.GetIsolate()); 1643 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObject", holder, info.GetIsolate());
1644 TestObject* impl = V8TestObject::toImpl(holder); 1644 TestObject* impl = V8TestObject::toImpl(holder);
1645 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 1645 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
1646 if (exceptionState.throwIfNeeded()) 1646 if (exceptionState.throwIfNeeded())
1647 return; 1647 return;
1648 impl->setLongOrNullAttribute(cppValue); 1648 impl->setLongOrNullAttribute(cppValue);
1649 } 1649 }
1650 1650
1651 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1651 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1652 { 1652 {
1653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1654 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); 1654 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info);
1655 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1655 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1787 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
1788 { 1788 {
1789 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1789 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1790 TestObjectV8Internal::staticLongAttributeAttributeGetter(info); 1790 TestObjectV8Internal::staticLongAttributeAttributeGetter(info);
1791 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1791 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1792 } 1792 }
1793 1793
1794 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1794 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1795 { 1795 {
1796 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr ibute", "TestObject", holder, info.GetIsolate()); 1796 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr ibute", "TestObject", holder, info.GetIsolate());
1797 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 1797 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
1798 if (exceptionState.throwIfNeeded()) 1798 if (exceptionState.throwIfNeeded())
1799 return; 1799 return;
1800 TestObject::setStaticLongAttribute(cppValue); 1800 TestObject::setStaticLongAttribute(cppValue);
1801 } 1801 }
1802 1802
1803 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1803 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1804 { 1804 {
1805 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1805 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1806 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); 1806 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info);
1807 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1807 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
2063 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute"); 2063 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute");
2064 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info); 2064 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info);
2065 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2065 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2066 } 2066 }
2067 2067
2068 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2068 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2069 { 2069 {
2070 v8::Local<v8::Object> holder = info.Holder(); 2070 v8::Local<v8::Object> holder = info.Holder();
2071 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 2071 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
2072 TestObject* impl = V8TestObject::toImpl(holder); 2072 TestObject* impl = V8TestObject::toImpl(holder);
2073 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2073 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2074 if (exceptionState.throwIfNeeded()) 2074 if (exceptionState.throwIfNeeded())
2075 return; 2075 return;
2076 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); 2076 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue);
2077 } 2077 }
2078 2078
2079 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 2079 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
2080 { 2080 {
2081 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2081 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2082 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2082 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2083 V8PerContextData* contextData = scriptState->perContextData(); 2083 V8PerContextData* contextData = scriptState->perContextData();
(...skipping 20 matching lines...) Expand all
2104 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute"); 2104 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute");
2105 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info); 2105 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info);
2106 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2106 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2107 } 2107 }
2108 2108
2109 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2109 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2110 { 2110 {
2111 v8::Local<v8::Object> holder = info.Holder(); 2111 v8::Local<v8::Object> holder = info.Holder();
2112 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 2112 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
2113 TestObject* impl = V8TestObject::toImpl(holder); 2113 TestObject* impl = V8TestObject::toImpl(holder);
2114 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2114 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2115 if (exceptionState.throwIfNeeded()) 2115 if (exceptionState.throwIfNeeded())
2116 return; 2116 return;
2117 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); 2117 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue);
2118 } 2118 }
2119 2119
2120 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 2120 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
2121 { 2121 {
2122 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2122 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2123 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 2123 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
2124 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2124 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
2136 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2136 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2137 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eGetter(info); 2137 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eGetter(info);
2138 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2138 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2139 } 2139 }
2140 2140
2141 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2141 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2142 { 2142 {
2143 v8::Local<v8::Object> holder = info.Holder(); 2143 v8::Local<v8::Object> holder = info.Holder();
2144 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 2144 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
2145 TestObject* impl = V8TestObject::toImpl(holder); 2145 TestObject* impl = V8TestObject::toImpl(holder);
2146 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2146 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2147 if (exceptionState.throwIfNeeded()) 2147 if (exceptionState.throwIfNeeded())
2148 return; 2148 return;
2149 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); 2149 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue);
2150 } 2150 }
2151 2151
2152 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 2152 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
2153 { 2153 {
2154 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2154 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2155 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2155 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2156 V8PerContextData* contextData = scriptState->perContextData(); 2156 V8PerContextData* contextData = scriptState->perContextData();
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
2416 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2416 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2417 } 2417 }
2418 #endif // ENABLE(CONDITION) 2418 #endif // ENABLE(CONDITION)
2419 2419
2420 #if ENABLE(CONDITION) 2420 #if ENABLE(CONDITION)
2421 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info) 2421 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info)
2422 { 2422 {
2423 v8::Local<v8::Object> holder = info.Holder(); 2423 v8::Local<v8::Object> holder = info.Holder();
2424 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObject", holder, info.GetIsolate()); 2424 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObject", holder, info.GetIsolate());
2425 TestObject* impl = V8TestObject::toImpl(holder); 2425 TestObject* impl = V8TestObject::toImpl(holder);
2426 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2426 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2427 if (exceptionState.throwIfNeeded()) 2427 if (exceptionState.throwIfNeeded())
2428 return; 2428 return;
2429 impl->setConditionalLongAttribute(cppValue); 2429 impl->setConditionalLongAttribute(cppValue);
2430 } 2430 }
2431 #endif // ENABLE(CONDITION) 2431 #endif // ENABLE(CONDITION)
2432 2432
2433 #if ENABLE(CONDITION) 2433 #if ENABLE(CONDITION)
2434 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2434 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2435 { 2435 {
2436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
2499 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2499 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2500 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); 2500 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info);
2501 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2501 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2502 } 2502 }
2503 2503
2504 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 2504 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
2505 { 2505 {
2506 v8::Local<v8::Object> holder = info.Holder(); 2506 v8::Local<v8::Object> holder = info.Holder();
2507 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo ngAttribute", "TestObject", holder, info.GetIsolate()); 2507 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo ngAttribute", "TestObject", holder, info.GetIsolate());
2508 TestObject* impl = V8TestObject::toImpl(holder); 2508 TestObject* impl = V8TestObject::toImpl(holder);
2509 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2509 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2510 if (exceptionState.throwIfNeeded()) 2510 if (exceptionState.throwIfNeeded())
2511 return; 2511 return;
2512 impl->setCustomGetterLongAttribute(cppValue); 2512 impl->setCustomGetterLongAttribute(cppValue);
2513 } 2513 }
2514 2514
2515 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2515 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Name> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2516 { 2516 {
2517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2518 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info ); 2518 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info );
2519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
2592 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute); 2592 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute);
2593 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); 2593 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info);
2594 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2594 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2595 } 2595 }
2596 2596
2597 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2597 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2598 { 2598 {
2599 v8::Local<v8::Object> holder = info.Holder(); 2599 v8::Local<v8::Object> holder = info.Holder();
2600 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate()); 2600 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate());
2601 TestObject* impl = V8TestObject::toImpl(holder); 2601 TestObject* impl = V8TestObject::toImpl(holder);
2602 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2602 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2603 if (exceptionState.throwIfNeeded()) 2603 if (exceptionState.throwIfNeeded())
2604 return; 2604 return;
2605 impl->setDeprecatedLongAttribute(cppValue); 2605 impl->setDeprecatedLongAttribute(cppValue);
2606 } 2606 }
2607 2607
2608 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2608 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2609 { 2609 {
2610 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2610 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2611 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute); 2611 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute);
2612 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); 2612 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2657 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2657 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2658 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info); 2658 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info);
2659 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2659 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2660 } 2660 }
2661 2661
2662 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 2662 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2663 { 2663 {
2664 v8::Local<v8::Object> holder = info.Holder(); 2664 v8::Local<v8::Object> holder = info.Holder();
2665 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess orsLongAttribute", "TestObject", holder, info.GetIsolate()); 2665 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess orsLongAttribute", "TestObject", holder, info.GetIsolate());
2666 TestObject* impl = V8TestObject::toImpl(holder); 2666 TestObject* impl = V8TestObject::toImpl(holder);
2667 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2667 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2668 if (exceptionState.throwIfNeeded()) 2668 if (exceptionState.throwIfNeeded())
2669 return; 2669 return;
2670 impl->setExposeJSAccessorsLongAttribute(cppValue); 2670 impl->setExposeJSAccessorsLongAttribute(cppValue);
2671 } 2671 }
2672 2672
2673 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(v8::Local<v8:: Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2673 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(v8::Local<v8:: Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2674 { 2674 {
2675 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2675 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2676 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value, info); 2676 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value, info);
2677 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2677 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
2689 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2689 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2690 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); 2690 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info);
2691 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2691 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2692 } 2692 }
2693 2693
2694 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 2694 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
2695 { 2695 {
2696 v8::Local<v8::Object> holder = info.Holder(); 2696 v8::Local<v8::Object> holder = info.Holder();
2697 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObject", holder, info.GetIsolate()); 2697 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObject", holder, info.GetIsolate());
2698 TestObject* impl = V8TestObject::toImpl(holder); 2698 TestObject* impl = V8TestObject::toImpl(holder);
2699 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2699 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2700 if (exceptionState.throwIfNeeded()) 2700 if (exceptionState.throwIfNeeded())
2701 return; 2701 return;
2702 impl->setImplementedAsName(cppValue); 2702 impl->setImplementedAsName(cppValue);
2703 } 2703 }
2704 2704
2705 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Name >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2705 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Name >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2706 { 2706 {
2707 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2707 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2708 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o); 2708 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o);
2709 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2709 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 18 matching lines...) Expand all
2728 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2728 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2729 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in fo); 2729 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in fo);
2730 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2730 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2731 } 2731 }
2732 2732
2733 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2733 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2734 { 2734 {
2735 v8::Local<v8::Object> holder = info.Holder(); 2735 v8::Local<v8::Object> holder = info.Holder();
2736 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); 2736 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm plementedAsLongAttribute", "TestObject", holder, info.GetIsolate());
2737 TestObject* impl = V8TestObject::toImpl(holder); 2737 TestObject* impl = V8TestObject::toImpl(holder);
2738 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2738 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2739 if (exceptionState.throwIfNeeded()) 2739 if (exceptionState.throwIfNeeded())
2740 return; 2740 return;
2741 impl->setImplementedAsNameWithCustomGetter(cppValue); 2741 impl->setImplementedAsNameWithCustomGetter(cppValue);
2742 } 2742 }
2743 2743
2744 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2744 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2745 { 2745 {
2746 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2746 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2747 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter( v8Value, info); 2747 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter( v8Value, info);
2748 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2748 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
2782 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature); 2782 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
2783 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); 2783 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info);
2784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2785 } 2785 }
2786 2786
2787 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2787 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2788 { 2788 {
2789 v8::Local<v8::Object> holder = info.Holder(); 2789 v8::Local<v8::Object> holder = info.Holder();
2790 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate()); 2790 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate());
2791 TestObject* impl = V8TestObject::toImpl(holder); 2791 TestObject* impl = V8TestObject::toImpl(holder);
2792 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2792 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2793 if (exceptionState.throwIfNeeded()) 2793 if (exceptionState.throwIfNeeded())
2794 return; 2794 return;
2795 impl->setMeasureAsLongAttribute(cppValue); 2795 impl->setMeasureAsLongAttribute(cppValue);
2796 } 2796 }
2797 2797
2798 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2798 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2799 { 2799 {
2800 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2800 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2801 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature); 2801 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
2802 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); 2802 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info);
(...skipping 12 matching lines...) Expand all
2815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2816 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); 2816 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info);
2817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2818 } 2818 }
2819 2819
2820 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 2820 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
2821 { 2821 {
2822 v8::Local<v8::Object> holder = info.Holder(); 2822 v8::Local<v8::Object> holder = info.Holder();
2823 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObject", holder, info.GetIsolate()); 2823 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObject", holder, info.GetIsolate());
2824 TestObject* impl = V8TestObject::toImpl(holder); 2824 TestObject* impl = V8TestObject::toImpl(holder);
2825 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2825 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2826 if (exceptionState.throwIfNeeded()) 2826 if (exceptionState.throwIfNeeded())
2827 return; 2827 return;
2828 impl->setNotEnumerableLongAttribute(cppValue); 2828 impl->setNotEnumerableLongAttribute(cppValue);
2829 } 2829 }
2830 2830
2831 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Name >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2831 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Name >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2832 { 2832 {
2833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2834 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o); 2834 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o);
2835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
2847 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2847 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2848 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); 2848 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info);
2849 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2849 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2850 } 2850 }
2851 2851
2852 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 2852 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2853 { 2853 {
2854 v8::Local<v8::Object> holder = info.Holder(); 2854 v8::Local<v8::Object> holder = info.Holder();
2855 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledLongAttribute", "TestObject", holder, info.GetIsolate()); 2855 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledLongAttribute", "TestObject", holder, info.GetIsolate());
2856 TestObject* impl = V8TestObject::toImpl(holder); 2856 TestObject* impl = V8TestObject::toImpl(holder);
2857 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2857 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2858 if (exceptionState.throwIfNeeded()) 2858 if (exceptionState.throwIfNeeded())
2859 return; 2859 return;
2860 impl->setPerContextEnabledLongAttribute(cppValue); 2860 impl->setPerContextEnabledLongAttribute(cppValue);
2861 } 2861 }
2862 2862
2863 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8:: Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2863 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8:: Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2864 { 2864 {
2865 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2865 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2866 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value, info); 2866 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value, info);
2867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
2925 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); 2925 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2926 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2926 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2928 } 2928 }
2929 2929
2930 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2930 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2931 { 2931 {
2932 v8::Local<v8::Object> holder = info.Holder(); 2932 v8::Local<v8::Object> holder = info.Holder();
2933 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2933 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2934 TestObject* impl = V8TestObject::toImpl(holder); 2934 TestObject* impl = V8TestObject::toImpl(holder);
2935 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2935 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2936 if (exceptionState.throwIfNeeded()) 2936 if (exceptionState.throwIfNeeded())
2937 return; 2937 return;
2938 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2938 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2939 } 2939 }
2940 2940
2941 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 2941 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
2942 { 2942 {
2943 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2943 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2944 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2944 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2945 V8PerContextData* contextData = scriptState->perContextData(); 2945 V8PerContextData* contextData = scriptState->perContextData();
(...skipping 20 matching lines...) Expand all
2966 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); 2966 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2967 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2967 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2968 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2968 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2969 } 2969 }
2970 2970
2971 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2971 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2972 { 2972 {
2973 v8::Local<v8::Object> holder = info.Holder(); 2973 v8::Local<v8::Object> holder = info.Holder();
2974 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2974 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2975 TestObject* impl = V8TestObject::toImpl(holder); 2975 TestObject* impl = V8TestObject::toImpl(holder);
2976 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 2976 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
2977 if (exceptionState.throwIfNeeded()) 2977 if (exceptionState.throwIfNeeded())
2978 return; 2978 return;
2979 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2979 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2980 } 2980 }
2981 2981
2982 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info) 2982 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info)
2983 { 2983 {
2984 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2984 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2985 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2985 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2986 V8PerContextData* contextData = scriptState->perContextData(); 2986 V8PerContextData* contextData = scriptState->perContextData();
(...skipping 20 matching lines...) Expand all
3007 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute"); 3007 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute");
3008 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 3008 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
3009 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3009 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3010 } 3010 }
3011 3011
3012 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 3012 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
3013 { 3013 {
3014 v8::Local<v8::Object> holder = info.Holder(); 3014 v8::Local<v8::Object> holder = info.Holder();
3015 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3015 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
3016 TestObject* impl = V8TestObject::toImpl(holder); 3016 TestObject* impl = V8TestObject::toImpl(holder);
3017 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 3017 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3018 if (exceptionState.throwIfNeeded()) 3018 if (exceptionState.throwIfNeeded())
3019 return; 3019 return;
3020 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3020 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
3021 } 3021 }
3022 3022
3023 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3023 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3024 { 3024 {
3025 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3025 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3026 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 3026 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
3027 V8PerContextData* contextData = scriptState->perContextData(); 3027 V8PerContextData* contextData = scriptState->perContextData();
(...skipping 16 matching lines...) Expand all
3044 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3044 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3045 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info); 3045 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info);
3046 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3046 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3047 } 3047 }
3048 3048
3049 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 3049 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
3050 { 3050 {
3051 v8::Local<v8::Object> holder = info.Holder(); 3051 v8::Local<v8::Object> holder = info.Holder();
3052 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3052 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
3053 TestObject* impl = V8TestObject::toImpl(holder); 3053 TestObject* impl = V8TestObject::toImpl(holder);
3054 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 3054 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3055 if (exceptionState.throwIfNeeded()) 3055 if (exceptionState.throwIfNeeded())
3056 return; 3056 return;
3057 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3057 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
3058 } 3058 }
3059 3059
3060 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3060 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3061 { 3061 {
3062 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3062 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3063 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info); 3063 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info);
3064 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3064 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 15 matching lines...) Expand all
3080 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); 3080 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
3081 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info); 3081 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info);
3082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3083 } 3083 }
3084 3084
3085 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3085 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3086 { 3086 {
3087 v8::Local<v8::Object> holder = info.Holder(); 3087 v8::Local<v8::Object> holder = info.Holder();
3088 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 3088 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
3089 TestObject* impl = V8TestObject::toImpl(holder); 3089 TestObject* impl = V8TestObject::toImpl(holder);
3090 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 3090 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3091 if (exceptionState.throwIfNeeded()) 3091 if (exceptionState.throwIfNeeded())
3092 return; 3092 return;
3093 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 3093 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
3094 } 3094 }
3095 3095
3096 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 3096 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
3097 { 3097 {
3098 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3098 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3099 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 3099 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
3100 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3100 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 15 matching lines...) Expand all
3116 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); 3116 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
3117 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 3117 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
3118 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3118 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3119 } 3119 }
3120 3120
3121 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 3121 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
3122 { 3122 {
3123 v8::Local<v8::Object> holder = info.Holder(); 3123 v8::Local<v8::Object> holder = info.Holder();
3124 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 3124 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
3125 TestObject* impl = V8TestObject::toImpl(holder); 3125 TestObject* impl = V8TestObject::toImpl(holder);
3126 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 3126 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3127 if (exceptionState.throwIfNeeded()) 3127 if (exceptionState.throwIfNeeded())
3128 return; 3128 return;
3129 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 3129 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
3130 } 3130 }
3131 3131
3132 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info) 3132 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info)
3133 { 3133 {
3134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3135 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 3135 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
3136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 15 matching lines...) Expand all
3152 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute"); 3152 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute");
3153 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 3153 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
3154 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3154 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3155 } 3155 }
3156 3156
3157 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 3157 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
3158 { 3158 {
3159 v8::Local<v8::Object> holder = info.Holder(); 3159 v8::Local<v8::Object> holder = info.Holder();
3160 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3160 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
3161 TestObject* impl = V8TestObject::toImpl(holder); 3161 TestObject* impl = V8TestObject::toImpl(holder);
3162 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 3162 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3163 if (exceptionState.throwIfNeeded()) 3163 if (exceptionState.throwIfNeeded())
3164 return; 3164 return;
3165 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3165 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
3166 } 3166 }
3167 3167
3168 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3168 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3169 { 3169 {
3170 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3170 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3171 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 3171 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
3172 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3172 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
3184 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3184 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3185 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info); 3185 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info);
3186 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3186 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3187 } 3187 }
3188 3188
3189 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 3189 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
3190 { 3190 {
3191 v8::Local<v8::Object> holder = info.Holder(); 3191 v8::Local<v8::Object> holder = info.Holder();
3192 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 3192 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
3193 TestObject* impl = V8TestObject::toImpl(holder); 3193 TestObject* impl = V8TestObject::toImpl(holder);
3194 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 3194 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3195 if (exceptionState.throwIfNeeded()) 3195 if (exceptionState.throwIfNeeded())
3196 return; 3196 return;
3197 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 3197 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
3198 } 3198 }
3199 3199
3200 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3200 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3201 { 3201 {
3202 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3202 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3203 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info); 3203 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info);
3204 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3204 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
3540 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3540 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3541 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); 3541 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info);
3542 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3542 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3543 } 3543 }
3544 3544
3545 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3545 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3546 { 3546 {
3547 v8::Local<v8::Object> holder = info.Holder(); 3547 v8::Local<v8::Object> holder = info.Holder();
3548 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate()); 3548 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate());
3549 TestObject* impl = V8TestObject::toImpl(holder); 3549 TestObject* impl = V8TestObject::toImpl(holder);
3550 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 3550 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3551 if (exceptionState.throwIfNeeded()) 3551 if (exceptionState.throwIfNeeded())
3552 return; 3552 return;
3553 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); 3553 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState);
3554 exceptionState.throwIfNeeded(); 3554 exceptionState.throwIfNeeded();
3555 } 3555 }
3556 3556
3557 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::Na me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3557 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::Na me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3558 { 3558 {
3559 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3559 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3560 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i nfo); 3560 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i nfo);
(...skipping 16 matching lines...) Expand all
3577 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3577 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3578 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info ); 3578 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info );
3579 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3579 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3580 } 3580 }
3581 3581
3582 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 3582 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
3583 { 3583 {
3584 v8::Local<v8::Object> holder = info.Holder(); 3584 v8::Local<v8::Object> holder = info.Holder();
3585 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); 3585 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate());
3586 TestObject* impl = V8TestObject::toImpl(holder); 3586 TestObject* impl = V8TestObject::toImpl(holder);
3587 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 3587 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3588 if (exceptionState.throwIfNeeded()) 3588 if (exceptionState.throwIfNeeded())
3589 return; 3589 return;
3590 impl->setRaisesExceptionGetterLongAttribute(cppValue); 3590 impl->setRaisesExceptionGetterLongAttribute(cppValue);
3591 } 3591 }
3592 3592
3593 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local< v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 3593 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local< v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
3594 { 3594 {
3595 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3595 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3596 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va lue, info); 3596 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va lue, info);
3597 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3597 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
3609 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3609 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3610 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info ); 3610 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info );
3611 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3611 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3612 } 3612 }
3613 3613
3614 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 3614 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
3615 { 3615 {
3616 v8::Local<v8::Object> holder = info.Holder(); 3616 v8::Local<v8::Object> holder = info.Holder();
3617 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); 3617 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObject", holder, info.GetIsolate());
3618 TestObject* impl = V8TestObject::toImpl(holder); 3618 TestObject* impl = V8TestObject::toImpl(holder);
3619 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 3619 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3620 if (exceptionState.throwIfNeeded()) 3620 if (exceptionState.throwIfNeeded())
3621 return; 3621 return;
3622 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); 3622 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState);
3623 exceptionState.throwIfNeeded(); 3623 exceptionState.throwIfNeeded();
3624 } 3624 }
3625 3625
3626 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 3626 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
3627 { 3627 {
3628 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3628 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3629 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va lue, info); 3629 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va lue, info);
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
3815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3816 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); 3816 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info);
3817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3818 } 3818 }
3819 3819
3820 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 3820 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
3821 { 3821 {
3822 v8::Local<v8::Object> holder = info.Holder(); 3822 v8::Local<v8::Object> holder = info.Holder();
3823 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate()); 3823 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate());
3824 TestObject* impl = V8TestObject::toImpl(holder); 3824 TestObject* impl = V8TestObject::toImpl(holder);
3825 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 3825 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
3826 if (exceptionState.throwIfNeeded()) 3826 if (exceptionState.throwIfNeeded())
3827 return; 3827 return;
3828 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3828 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3829 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); 3829 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue);
3830 } 3830 }
3831 3831
3832 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3832 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3833 { 3833 {
3834 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3834 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3835 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3835 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
(...skipping 13 matching lines...) Expand all
3849 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3849 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3850 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); 3850 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info);
3851 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3851 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3852 } 3852 }
3853 3853
3854 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3854 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3855 { 3855 {
3856 v8::Local<v8::Object> holder = info.Holder(); 3856 v8::Local<v8::Object> holder = info.Holder();
3857 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate()); 3857 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate());
3858 TestObject* impl = V8TestObject::toImpl(holder); 3858 TestObject* impl = V8TestObject::toImpl(holder);
3859 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, exceptionState); 3859 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
3860 if (exceptionState.throwIfNeeded()) 3860 if (exceptionState.throwIfNeeded())
3861 return; 3861 return;
3862 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3862 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3863 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); 3863 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue);
3864 } 3864 }
3865 3865
3866 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::N ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3866 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::N ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3867 { 3867 {
3868 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3868 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3869 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3869 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
(...skipping 13 matching lines...) Expand all
3883 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3883 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3884 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); 3884 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info);
3885 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3885 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3886 } 3886 }
3887 3887
3888 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3888 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3889 { 3889 {
3890 v8::Local<v8::Object> holder = info.Holder(); 3890 v8::Local<v8::Object> holder = info.Holder();
3891 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate()); 3891 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate());
3892 TestObject* impl = V8TestObject::toImpl(holder); 3892 TestObject* impl = V8TestObject::toImpl(holder);
3893 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, exceptionState); 3893 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e xceptionState);
3894 if (exceptionState.throwIfNeeded()) 3894 if (exceptionState.throwIfNeeded())
3895 return; 3895 return;
3896 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3896 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3897 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue); 3897 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue);
3898 } 3898 }
3899 3899
3900 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::Na me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3900 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::Na me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3901 { 3901 {
3902 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3902 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3903 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3903 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
4476 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4476 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4477 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); 4477 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info);
4478 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4478 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4479 } 4479 }
4480 4480
4481 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 4481 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
4482 { 4482 {
4483 v8::Local<v8::Object> holder = info.Holder(); 4483 v8::Local<v8::Object> holder = info.Holder();
4484 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObject", holder, info.GetIsolate()); 4484 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObject", holder, info.GetIsolate());
4485 TestObject* impl = V8TestObject::toImpl(holder); 4485 TestObject* impl = V8TestObject::toImpl(holder);
4486 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 4486 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
4487 if (exceptionState.throwIfNeeded()) 4487 if (exceptionState.throwIfNeeded())
4488 return; 4488 return;
4489 impl->setRuntimeEnabledLongAttribute(cppValue); 4489 impl->setRuntimeEnabledLongAttribute(cppValue);
4490 } 4490 }
4491 4491
4492 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4492 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Nam e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4493 { 4493 {
4494 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4494 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4495 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in fo); 4495 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in fo);
4496 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4496 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
4508 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4508 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4509 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG etter(info); 4509 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG etter(info);
4510 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4510 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4511 } 4511 }
4512 4512
4513 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4513 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4514 { 4514 {
4515 v8::Local<v8::Object> holder = info.Holder(); 4515 v8::Local<v8::Object> holder = info.Holder();
4516 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 4516 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
4517 TestObject* impl = V8TestObject::toImpl(holder); 4517 TestObject* impl = V8TestObject::toImpl(holder);
4518 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 4518 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
4519 if (exceptionState.throwIfNeeded()) 4519 if (exceptionState.throwIfNeeded())
4520 return; 4520 return;
4521 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); 4521 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue);
4522 } 4522 }
4523 4523
4524 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 4524 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
4525 { 4525 {
4526 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4526 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4527 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS etter(v8Value, info); 4527 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS etter(v8Value, info);
4528 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4528 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 16 matching lines...) Expand all
4545 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4545 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4546 } 4546 }
4547 #endif // ENABLE(CONDITION) 4547 #endif // ENABLE(CONDITION)
4548 4548
4549 #if ENABLE(CONDITION) 4549 #if ENABLE(CONDITION)
4550 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4550 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4551 { 4551 {
4552 v8::Local<v8::Object> holder = info.Holder(); 4552 v8::Local<v8::Object> holder = info.Holder();
4553 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 4553 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
4554 TestObject* impl = V8TestObject::toImpl(holder); 4554 TestObject* impl = V8TestObject::toImpl(holder);
4555 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 4555 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
4556 if (exceptionState.throwIfNeeded()) 4556 if (exceptionState.throwIfNeeded())
4557 return; 4557 return;
4558 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); 4558 impl->setConditionalRuntimeEnabledLongAttribute(cppValue);
4559 } 4559 }
4560 #endif // ENABLE(CONDITION) 4560 #endif // ENABLE(CONDITION)
4561 4561
4562 #if ENABLE(CONDITION) 4562 #if ENABLE(CONDITION)
4563 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 4563 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
4564 { 4564 {
4565 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4565 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
5105 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5105 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5106 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); 5106 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info);
5107 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5107 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5108 } 5108 }
5109 5109
5110 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info) 5110 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info)
5111 { 5111 {
5112 v8::Local<v8::Object> holder = info.Holder(); 5112 v8::Local<v8::Object> holder = info.Holder();
5113 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon gAttribute", "TestObject", holder, info.GetIsolate()); 5113 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon gAttribute", "TestObject", holder, info.GetIsolate());
5114 TestObject* impl = V8TestObject::toImpl(holder); 5114 TestObject* impl = V8TestObject::toImpl(holder);
5115 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 5115 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
5116 if (exceptionState.throwIfNeeded()) 5116 if (exceptionState.throwIfNeeded())
5117 return; 5117 return;
5118 impl->setUnforgeableLongAttribute(cppValue); 5118 impl->setUnforgeableLongAttribute(cppValue);
5119 } 5119 }
5120 5120
5121 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5121 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5122 { 5122 {
5123 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5123 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5124 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info) ; 5124 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info) ;
5125 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5125 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 12 matching lines...) Expand all
5138 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeG etter); 5138 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeG etter);
5139 TestObjectV8Internal::measuredLongAttributeAttributeGetter(info); 5139 TestObjectV8Internal::measuredLongAttributeAttributeGetter(info);
5140 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5140 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5141 } 5141 }
5142 5142
5143 static void measuredLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 5143 static void measuredLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
5144 { 5144 {
5145 v8::Local<v8::Object> holder = info.Holder(); 5145 v8::Local<v8::Object> holder = info.Holder();
5146 ExceptionState exceptionState(ExceptionState::SetterContext, "measuredLongAt tribute", "TestObject", holder, info.GetIsolate()); 5146 ExceptionState exceptionState(ExceptionState::SetterContext, "measuredLongAt tribute", "TestObject", holder, info.GetIsolate());
5147 TestObject* impl = V8TestObject::toImpl(holder); 5147 TestObject* impl = V8TestObject::toImpl(holder);
5148 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); 5148 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
5149 if (exceptionState.throwIfNeeded()) 5149 if (exceptionState.throwIfNeeded())
5150 return; 5150 return;
5151 impl->setMeasuredLongAttribute(cppValue); 5151 impl->setMeasuredLongAttribute(cppValue);
5152 } 5152 }
5153 5153
5154 static void measuredLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5154 static void measuredLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5155 { 5155 {
5156 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5156 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5157 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeS etter); 5157 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeS etter);
5158 TestObjectV8Internal::measuredLongAttributeAttributeSetter(v8Value, info); 5158 TestObjectV8Internal::measuredLongAttributeAttributeSetter(v8Value, info);
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
5365 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5365 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5366 TestObjectV8Internal::shortAttributeAttributeGetter(info); 5366 TestObjectV8Internal::shortAttributeAttributeGetter(info);
5367 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5367 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5368 } 5368 }
5369 5369
5370 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 5370 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
5371 { 5371 {
5372 v8::Local<v8::Object> holder = info.Holder(); 5372 v8::Local<v8::Object> holder = info.Holder();
5373 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate()); 5373 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate());
5374 TestObject* impl = V8TestObject::toImpl(holder); 5374 TestObject* impl = V8TestObject::toImpl(holder);
5375 int cppValue = toInt16(info.GetIsolate(), v8Value, exceptionState); 5375 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
5376 if (exceptionState.throwIfNeeded()) 5376 if (exceptionState.throwIfNeeded())
5377 return; 5377 return;
5378 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); 5378 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue);
5379 } 5379 }
5380 5380
5381 static void shortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5381 static void shortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5382 { 5382 {
5383 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5383 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5384 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); 5384 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info);
5385 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5385 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
5866 { 5866 {
5867 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); 5867 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate());
5868 if (UNLIKELY(info.Length() < 1)) { 5868 if (UNLIKELY(info.Length() < 1)) {
5869 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5869 setMinimumArityTypeError(exceptionState, 1, info.Length());
5870 exceptionState.throwIfNeeded(); 5870 exceptionState.throwIfNeeded();
5871 return; 5871 return;
5872 } 5872 }
5873 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5873 TestObject* impl = V8TestObject::toImpl(info.Holder());
5874 unsigned long long domTimeStampArg; 5874 unsigned long long domTimeStampArg;
5875 { 5875 {
5876 domTimeStampArg = toUInt64(info.GetIsolate(), info[0], exceptionState); 5876 domTimeStampArg = toUInt64(info.GetIsolate(), info[0], NormalConversion, exceptionState);
5877 if (exceptionState.throwIfNeeded()) 5877 if (exceptionState.throwIfNeeded())
5878 return; 5878 return;
5879 } 5879 }
5880 impl->voidMethodDOMTimeStampArg(domTimeStampArg); 5880 impl->voidMethodDOMTimeStampArg(domTimeStampArg);
5881 } 5881 }
5882 5882
5883 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5883 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5884 { 5884 {
5885 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5885 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5886 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); 5886 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info);
(...skipping 25 matching lines...) Expand all
5912 { 5912 {
5913 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate()); 5913 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate());
5914 if (UNLIKELY(info.Length() < 1)) { 5914 if (UNLIKELY(info.Length() < 1)) {
5915 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5915 setMinimumArityTypeError(exceptionState, 1, info.Length());
5916 exceptionState.throwIfNeeded(); 5916 exceptionState.throwIfNeeded();
5917 return; 5917 return;
5918 } 5918 }
5919 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5919 TestObject* impl = V8TestObject::toImpl(info.Holder());
5920 int byteArg; 5920 int byteArg;
5921 { 5921 {
5922 byteArg = toInt8(info.GetIsolate(), info[0], exceptionState); 5922 byteArg = toInt8(info.GetIsolate(), info[0], NormalConversion, exception State);
5923 if (exceptionState.throwIfNeeded()) 5923 if (exceptionState.throwIfNeeded())
5924 return; 5924 return;
5925 } 5925 }
5926 impl->voidMethodByteArg(byteArg); 5926 impl->voidMethodByteArg(byteArg);
5927 } 5927 }
5928 5928
5929 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5929 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5930 { 5930 {
5931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5932 TestObjectV8Internal::voidMethodByteArgMethod(info); 5932 TestObjectV8Internal::voidMethodByteArgMethod(info);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
5987 { 5987 {
5988 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate()); 5988 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate());
5989 if (UNLIKELY(info.Length() < 1)) { 5989 if (UNLIKELY(info.Length() < 1)) {
5990 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5990 setMinimumArityTypeError(exceptionState, 1, info.Length());
5991 exceptionState.throwIfNeeded(); 5991 exceptionState.throwIfNeeded();
5992 return; 5992 return;
5993 } 5993 }
5994 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5994 TestObject* impl = V8TestObject::toImpl(info.Holder());
5995 int longArg; 5995 int longArg;
5996 { 5996 {
5997 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 5997 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
5998 if (exceptionState.throwIfNeeded()) 5998 if (exceptionState.throwIfNeeded())
5999 return; 5999 return;
6000 } 6000 }
6001 impl->voidMethodLongArg(longArg); 6001 impl->voidMethodLongArg(longArg);
6002 } 6002 }
6003 6003
6004 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6004 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6005 { 6005 {
6006 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6006 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6007 TestObjectV8Internal::voidMethodLongArgMethod(info); 6007 TestObjectV8Internal::voidMethodLongArgMethod(info);
6008 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6008 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6009 } 6009 }
6010 6010
6011 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 6011 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
6012 { 6012 {
6013 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6013 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate());
6014 if (UNLIKELY(info.Length() < 1)) { 6014 if (UNLIKELY(info.Length() < 1)) {
6015 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6015 setMinimumArityTypeError(exceptionState, 1, info.Length());
6016 exceptionState.throwIfNeeded(); 6016 exceptionState.throwIfNeeded();
6017 return; 6017 return;
6018 } 6018 }
6019 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6019 TestObject* impl = V8TestObject::toImpl(info.Holder());
6020 long long longLongArg; 6020 long long longLongArg;
6021 { 6021 {
6022 longLongArg = toInt64(info.GetIsolate(), info[0], exceptionState); 6022 longLongArg = toInt64(info.GetIsolate(), info[0], NormalConversion, exce ptionState);
6023 if (exceptionState.throwIfNeeded()) 6023 if (exceptionState.throwIfNeeded())
6024 return; 6024 return;
6025 } 6025 }
6026 impl->voidMethodLongLongArg(longLongArg); 6026 impl->voidMethodLongLongArg(longLongArg);
6027 } 6027 }
6028 6028
6029 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 6029 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
6030 { 6030 {
6031 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6031 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6032 TestObjectV8Internal::voidMethodLongLongArgMethod(info); 6032 TestObjectV8Internal::voidMethodLongLongArgMethod(info);
6033 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6033 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6034 } 6034 }
6035 6035
6036 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6036 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6037 { 6037 {
6038 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate()); 6038 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate());
6039 if (UNLIKELY(info.Length() < 1)) { 6039 if (UNLIKELY(info.Length() < 1)) {
6040 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6040 setMinimumArityTypeError(exceptionState, 1, info.Length());
6041 exceptionState.throwIfNeeded(); 6041 exceptionState.throwIfNeeded();
6042 return; 6042 return;
6043 } 6043 }
6044 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6044 TestObject* impl = V8TestObject::toImpl(info.Holder());
6045 unsigned octetArg; 6045 unsigned octetArg;
6046 { 6046 {
6047 octetArg = toUInt8(info.GetIsolate(), info[0], exceptionState); 6047 octetArg = toUInt8(info.GetIsolate(), info[0], NormalConversion, excepti onState);
6048 if (exceptionState.throwIfNeeded()) 6048 if (exceptionState.throwIfNeeded())
6049 return; 6049 return;
6050 } 6050 }
6051 impl->voidMethodOctetArg(octetArg); 6051 impl->voidMethodOctetArg(octetArg);
6052 } 6052 }
6053 6053
6054 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 6054 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
6055 { 6055 {
6056 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6056 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6057 TestObjectV8Internal::voidMethodOctetArgMethod(info); 6057 TestObjectV8Internal::voidMethodOctetArgMethod(info);
6058 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6058 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6059 } 6059 }
6060 6060
6061 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6061 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6062 { 6062 {
6063 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate()); 6063 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate());
6064 if (UNLIKELY(info.Length() < 1)) { 6064 if (UNLIKELY(info.Length() < 1)) {
6065 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6065 setMinimumArityTypeError(exceptionState, 1, info.Length());
6066 exceptionState.throwIfNeeded(); 6066 exceptionState.throwIfNeeded();
6067 return; 6067 return;
6068 } 6068 }
6069 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6069 TestObject* impl = V8TestObject::toImpl(info.Holder());
6070 int shortArg; 6070 int shortArg;
6071 { 6071 {
6072 shortArg = toInt16(info.GetIsolate(), info[0], exceptionState); 6072 shortArg = toInt16(info.GetIsolate(), info[0], NormalConversion, excepti onState);
6073 if (exceptionState.throwIfNeeded()) 6073 if (exceptionState.throwIfNeeded())
6074 return; 6074 return;
6075 } 6075 }
6076 impl->voidMethodShortArg(shortArg); 6076 impl->voidMethodShortArg(shortArg);
6077 } 6077 }
6078 6078
6079 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 6079 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
6080 { 6080 {
6081 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6081 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6082 TestObjectV8Internal::voidMethodShortArgMethod(info); 6082 TestObjectV8Internal::voidMethodShortArgMethod(info);
6083 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6083 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6084 } 6084 }
6085 6085
6086 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6086 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6087 { 6087 {
6088 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6088 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
6089 if (UNLIKELY(info.Length() < 1)) { 6089 if (UNLIKELY(info.Length() < 1)) {
6090 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6090 setMinimumArityTypeError(exceptionState, 1, info.Length());
6091 exceptionState.throwIfNeeded(); 6091 exceptionState.throwIfNeeded();
6092 return; 6092 return;
6093 } 6093 }
6094 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6094 TestObject* impl = V8TestObject::toImpl(info.Holder());
6095 unsigned unsignedLongArg; 6095 unsigned unsignedLongArg;
6096 { 6096 {
6097 unsignedLongArg = toUInt32(info.GetIsolate(), info[0], exceptionState); 6097 unsignedLongArg = toUInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
6098 if (exceptionState.throwIfNeeded()) 6098 if (exceptionState.throwIfNeeded())
6099 return; 6099 return;
6100 } 6100 }
6101 impl->voidMethodUnsignedLongArg(unsignedLongArg); 6101 impl->voidMethodUnsignedLongArg(unsignedLongArg);
6102 } 6102 }
6103 6103
6104 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6104 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
6105 { 6105 {
6106 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6106 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6107 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); 6107 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info);
6108 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6108 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6109 } 6109 }
6110 6110
6111 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 6111 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
6112 { 6112 {
6113 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6113 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate());
6114 if (UNLIKELY(info.Length() < 1)) { 6114 if (UNLIKELY(info.Length() < 1)) {
6115 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6115 setMinimumArityTypeError(exceptionState, 1, info.Length());
6116 exceptionState.throwIfNeeded(); 6116 exceptionState.throwIfNeeded();
6117 return; 6117 return;
6118 } 6118 }
6119 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6119 TestObject* impl = V8TestObject::toImpl(info.Holder());
6120 unsigned long long unsignedLongLongArg; 6120 unsigned long long unsignedLongLongArg;
6121 { 6121 {
6122 unsignedLongLongArg = toUInt64(info.GetIsolate(), info[0], exceptionStat e); 6122 unsignedLongLongArg = toUInt64(info.GetIsolate(), info[0], NormalConvers ion, exceptionState);
6123 if (exceptionState.throwIfNeeded()) 6123 if (exceptionState.throwIfNeeded())
6124 return; 6124 return;
6125 } 6125 }
6126 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); 6126 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg);
6127 } 6127 }
6128 6128
6129 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 6129 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
6130 { 6130 {
6131 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6131 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6132 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); 6132 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info);
6133 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6133 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6134 } 6134 }
6135 6135
6136 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6136 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
6137 { 6137 {
6138 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 6138 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
6139 if (UNLIKELY(info.Length() < 1)) { 6139 if (UNLIKELY(info.Length() < 1)) {
6140 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6140 setMinimumArityTypeError(exceptionState, 1, info.Length());
6141 exceptionState.throwIfNeeded(); 6141 exceptionState.throwIfNeeded();
6142 return; 6142 return;
6143 } 6143 }
6144 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6144 TestObject* impl = V8TestObject::toImpl(info.Holder());
6145 unsigned unsignedShortArg; 6145 unsigned unsignedShortArg;
6146 { 6146 {
6147 unsignedShortArg = toUInt16(info.GetIsolate(), info[0], exceptionState); 6147 unsignedShortArg = toUInt16(info.GetIsolate(), info[0], NormalConversion , exceptionState);
6148 if (exceptionState.throwIfNeeded()) 6148 if (exceptionState.throwIfNeeded())
6149 return; 6149 return;
6150 } 6150 }
6151 impl->voidMethodUnsignedShortArg(unsignedShortArg); 6151 impl->voidMethodUnsignedShortArg(unsignedShortArg);
6152 } 6152 }
6153 6153
6154 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6154 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
6155 { 6155 {
6156 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6156 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6157 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); 6157 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
6197 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); 6197 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
6198 if (UNLIKELY(info.Length() < 2)) { 6198 if (UNLIKELY(info.Length() < 2)) {
6199 setMinimumArityTypeError(exceptionState, 2, info.Length()); 6199 setMinimumArityTypeError(exceptionState, 2, info.Length());
6200 exceptionState.throwIfNeeded(); 6200 exceptionState.throwIfNeeded();
6201 return; 6201 return;
6202 } 6202 }
6203 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6203 TestObject* impl = V8TestObject::toImpl(info.Holder());
6204 int longArg; 6204 int longArg;
6205 TestInterfaceEmpty* testInterfaceEmptyArg; 6205 TestInterfaceEmpty* testInterfaceEmptyArg;
6206 { 6206 {
6207 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 6207 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
6208 if (exceptionState.throwIfNeeded()) 6208 if (exceptionState.throwIfNeeded())
6209 return; 6209 return;
6210 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[1]); 6210 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[1]);
6211 } 6211 }
6212 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ; 6212 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ;
6213 } 6213 }
6214 6214
6215 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 6215 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
6216 { 6216 {
6217 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6217 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after
7469 if (UNLIKELY(info.Length() < 3)) { 7469 if (UNLIKELY(info.Length() < 3)) {
7470 setMinimumArityTypeError(exceptionState, 3, info.Length()); 7470 setMinimumArityTypeError(exceptionState, 3, info.Length());
7471 return; 7471 return;
7472 } 7472 }
7473 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7473 TestObject* impl = V8TestObject::toImpl(info.Holder());
7474 int arg1; 7474 int arg1;
7475 Dictionary arg2; 7475 Dictionary arg2;
7476 V8StringResource<> arg3; 7476 V8StringResource<> arg3;
7477 Vector<String> variadic; 7477 Vector<String> variadic;
7478 { 7478 {
7479 arg1 = toInt32(info.GetIsolate(), info[0], exceptionState); 7479 arg1 = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSt ate);
7480 if (exceptionState.hadException()) 7480 if (exceptionState.hadException())
7481 return; 7481 return;
7482 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { 7482 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) {
7483 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object ."); 7483 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object .");
7484 return; 7484 return;
7485 } 7485 }
7486 arg2 = Dictionary(info[1], info.GetIsolate(), exceptionState); 7486 arg2 = Dictionary(info[1], info.GetIsolate(), exceptionState);
7487 if (exceptionState.hadException()) 7487 if (exceptionState.hadException())
7488 return; 7488 return;
7489 arg3 = info[2]; 7489 arg3 = info[2];
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
7727 exceptionState.throwIfNeeded(); 7727 exceptionState.throwIfNeeded();
7728 return; 7728 return;
7729 } 7729 }
7730 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7730 TestObject* impl = V8TestObject::toImpl(info.Holder());
7731 V8StringResource<> stringArg; 7731 V8StringResource<> stringArg;
7732 int longArg; 7732 int longArg;
7733 { 7733 {
7734 stringArg = info[0]; 7734 stringArg = info[0];
7735 if (!stringArg.prepare()) 7735 if (!stringArg.prepare())
7736 return; 7736 return;
7737 longArg = toInt32(info.GetIsolate(), info[1], exceptionState); 7737 longArg = toInt32(info.GetIsolate(), info[1], NormalConversion, exceptio nState);
7738 if (exceptionState.throwIfNeeded()) 7738 if (exceptionState.throwIfNeeded())
7739 return; 7739 return;
7740 } 7740 }
7741 impl->voidMethodStringArgLongArg(stringArg, longArg); 7741 impl->voidMethodStringArgLongArg(stringArg, longArg);
7742 } 7742 }
7743 7743
7744 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 7744 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
7745 { 7745 {
7746 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7746 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7747 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); 7747 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
7795 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 7795 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
7796 { 7796 {
7797 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7797 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7798 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7798 TestObject* impl = V8TestObject::toImpl(info.Holder());
7799 int optionalLongArg; 7799 int optionalLongArg;
7800 { 7800 {
7801 if (UNLIKELY(info.Length() <= 0)) { 7801 if (UNLIKELY(info.Length() <= 0)) {
7802 impl->voidMethodOptionalLongArg(); 7802 impl->voidMethodOptionalLongArg();
7803 return; 7803 return;
7804 } 7804 }
7805 optionalLongArg = toInt32(info.GetIsolate(), info[0], exceptionState); 7805 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
7806 if (exceptionState.throwIfNeeded()) 7806 if (exceptionState.throwIfNeeded())
7807 return; 7807 return;
7808 } 7808 }
7809 impl->voidMethodOptionalLongArg(optionalLongArg); 7809 impl->voidMethodOptionalLongArg(optionalLongArg);
7810 } 7810 }
7811 7811
7812 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 7812 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
7813 { 7813 {
7814 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7814 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7815 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); 7815 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info);
7816 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7816 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7817 } 7817 }
7818 7818
7819 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 7819 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
7820 { 7820 {
7821 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7821 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7822 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7822 TestObject* impl = V8TestObject::toImpl(info.Holder());
7823 int optionalLongArg; 7823 int optionalLongArg;
7824 { 7824 {
7825 if (UNLIKELY(info.Length() <= 0)) { 7825 if (UNLIKELY(info.Length() <= 0)) {
7826 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in fo.GetIsolate()); 7826 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in fo.GetIsolate());
7827 return; 7827 return;
7828 } 7828 }
7829 optionalLongArg = toInt32(info.GetIsolate(), info[0], exceptionState); 7829 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
7830 if (exceptionState.throwIfNeeded()) 7830 if (exceptionState.throwIfNeeded())
7831 return; 7831 return;
7832 } 7832 }
7833 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate()); 7833 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate());
7834 } 7834 }
7835 7835
7836 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 7836 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
7837 { 7837 {
7838 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7838 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7839 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); 7839 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info);
7840 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7840 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7841 } 7841 }
7842 7842
7843 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 7843 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
7844 { 7844 {
7845 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7845 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7846 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7846 TestObject* impl = V8TestObject::toImpl(info.Holder());
7847 int optionalLongArg; 7847 int optionalLongArg;
7848 { 7848 {
7849 if (UNLIKELY(info.Length() <= 0)) { 7849 if (UNLIKELY(info.Length() <= 0)) {
7850 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg ()); 7850 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg ());
7851 return; 7851 return;
7852 } 7852 }
7853 optionalLongArg = toInt32(info.GetIsolate(), info[0], exceptionState); 7853 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
7854 if (exceptionState.throwIfNeeded()) 7854 if (exceptionState.throwIfNeeded())
7855 return; 7855 return;
7856 } 7856 }
7857 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg)); 7857 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg));
7858 } 7858 }
7859 7859
7860 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 7860 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
7861 { 7861 {
7862 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7862 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7863 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); 7863 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info);
7864 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7864 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7865 } 7865 }
7866 7866
7867 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 7867 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
7868 { 7868 {
7869 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7869 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7870 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7870 TestObject* impl = V8TestObject::toImpl(info.Holder());
7871 int optionalLongArg; 7871 int optionalLongArg;
7872 { 7872 {
7873 if (UNLIKELY(info.Length() <= 0)) { 7873 if (UNLIKELY(info.Length() <= 0)) {
7874 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); 7874 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg());
7875 return; 7875 return;
7876 } 7876 }
7877 optionalLongArg = toInt32(info.GetIsolate(), info[0], exceptionState); 7877 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
7878 if (exceptionState.throwIfNeeded()) 7878 if (exceptionState.throwIfNeeded())
7879 return; 7879 return;
7880 } 7880 }
7881 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); 7881 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg));
7882 } 7882 }
7883 7883
7884 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 7884 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
7885 { 7885 {
7886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7887 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); 7887 TestObjectV8Internal::longMethodOptionalLongArgMethod(info);
7888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7888 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7889 } 7889 }
7890 7890
7891 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 7891 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
7892 { 7892 {
7893 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7893 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7894 if (UNLIKELY(info.Length() < 1)) { 7894 if (UNLIKELY(info.Length() < 1)) {
7895 setMinimumArityTypeError(exceptionState, 1, info.Length()); 7895 setMinimumArityTypeError(exceptionState, 1, info.Length());
7896 exceptionState.throwIfNeeded(); 7896 exceptionState.throwIfNeeded();
7897 return; 7897 return;
7898 } 7898 }
7899 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7899 TestObject* impl = V8TestObject::toImpl(info.Holder());
7900 int longArg; 7900 int longArg;
7901 int optionalLongArg; 7901 int optionalLongArg;
7902 { 7902 {
7903 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 7903 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
7904 if (exceptionState.throwIfNeeded()) 7904 if (exceptionState.throwIfNeeded())
7905 return; 7905 return;
7906 if (UNLIKELY(info.Length() <= 1)) { 7906 if (UNLIKELY(info.Length() <= 1)) {
7907 impl->voidMethodLongArgOptionalLongArg(longArg); 7907 impl->voidMethodLongArgOptionalLongArg(longArg);
7908 return; 7908 return;
7909 } 7909 }
7910 optionalLongArg = toInt32(info.GetIsolate(), info[1], exceptionState); 7910 optionalLongArg = toInt32(info.GetIsolate(), info[1], NormalConversion, exceptionState);
7911 if (exceptionState.throwIfNeeded()) 7911 if (exceptionState.throwIfNeeded())
7912 return; 7912 return;
7913 } 7913 }
7914 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); 7914 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg);
7915 } 7915 }
7916 7916
7917 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 7917 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
7918 { 7918 {
7919 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7919 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7920 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); 7920 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info);
7921 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7921 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7922 } 7922 }
7923 7923
7924 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 7924 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
7925 { 7925 {
7926 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol ate()); 7926 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol ate());
7927 if (UNLIKELY(info.Length() < 1)) { 7927 if (UNLIKELY(info.Length() < 1)) {
7928 setMinimumArityTypeError(exceptionState, 1, info.Length()); 7928 setMinimumArityTypeError(exceptionState, 1, info.Length());
7929 exceptionState.throwIfNeeded(); 7929 exceptionState.throwIfNeeded();
7930 return; 7930 return;
7931 } 7931 }
7932 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7932 TestObject* impl = V8TestObject::toImpl(info.Holder());
7933 int longArg; 7933 int longArg;
7934 int optionalLongArg1; 7934 int optionalLongArg1;
7935 int optionalLongArg2; 7935 int optionalLongArg2;
7936 { 7936 {
7937 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 7937 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
7938 if (exceptionState.throwIfNeeded()) 7938 if (exceptionState.throwIfNeeded())
7939 return; 7939 return;
7940 if (UNLIKELY(info.Length() <= 1)) { 7940 if (UNLIKELY(info.Length() <= 1)) {
7941 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); 7941 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg);
7942 return; 7942 return;
7943 } 7943 }
7944 optionalLongArg1 = toInt32(info.GetIsolate(), info[1], exceptionState); 7944 optionalLongArg1 = toInt32(info.GetIsolate(), info[1], NormalConversion, exceptionState);
7945 if (exceptionState.throwIfNeeded()) 7945 if (exceptionState.throwIfNeeded())
7946 return; 7946 return;
7947 if (UNLIKELY(info.Length() <= 2)) { 7947 if (UNLIKELY(info.Length() <= 2)) {
7948 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio nalLongArg1); 7948 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio nalLongArg1);
7949 return; 7949 return;
7950 } 7950 }
7951 optionalLongArg2 = toInt32(info.GetIsolate(), info[2], exceptionState); 7951 optionalLongArg2 = toInt32(info.GetIsolate(), info[2], NormalConversion, exceptionState);
7952 if (exceptionState.throwIfNeeded()) 7952 if (exceptionState.throwIfNeeded())
7953 return; 7953 return;
7954 } 7954 }
7955 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA rg1, optionalLongArg2); 7955 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA rg1, optionalLongArg2);
7956 } 7956 }
7957 7957
7958 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 7958 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7959 { 7959 {
7960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7961 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod( info); 7961 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod( info);
7962 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7962 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7963 } 7963 }
7964 7964
7965 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 7965 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
7966 { 7966 {
7967 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola te()); 7967 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola te());
7968 if (UNLIKELY(info.Length() < 1)) { 7968 if (UNLIKELY(info.Length() < 1)) {
7969 setMinimumArityTypeError(exceptionState, 1, info.Length()); 7969 setMinimumArityTypeError(exceptionState, 1, info.Length());
7970 exceptionState.throwIfNeeded(); 7970 exceptionState.throwIfNeeded();
7971 return; 7971 return;
7972 } 7972 }
7973 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7973 TestObject* impl = V8TestObject::toImpl(info.Holder());
7974 int longArg; 7974 int longArg;
7975 TestInterfaceEmpty* optionalTestInterfaceEmpty; 7975 TestInterfaceEmpty* optionalTestInterfaceEmpty;
7976 { 7976 {
7977 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 7977 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
7978 if (exceptionState.throwIfNeeded()) 7978 if (exceptionState.throwIfNeeded())
7979 return; 7979 return;
7980 if (UNLIKELY(info.Length() <= 1)) { 7980 if (UNLIKELY(info.Length() <= 1)) {
7981 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); 7981 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg);
7982 return; 7982 return;
7983 } 7983 }
7984 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i nfo.GetIsolate(), info[1]); 7984 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i nfo.GetIsolate(), info[1]);
7985 } 7985 }
7986 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty); 7986 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty);
7987 } 7987 }
(...skipping 15 matching lines...) Expand all
8003 } 8003 }
8004 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8004 TestObject* impl = V8TestObject::toImpl(info.Holder());
8005 TestInterfaceEmpty* optionalTestInterfaceEmpty; 8005 TestInterfaceEmpty* optionalTestInterfaceEmpty;
8006 int longArg; 8006 int longArg;
8007 { 8007 {
8008 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i nfo.GetIsolate(), info[0]); 8008 optionalTestInterfaceEmpty = V8TestInterfaceEmpty::toImplWithTypeCheck(i nfo.GetIsolate(), info[0]);
8009 if (UNLIKELY(info.Length() <= 1)) { 8009 if (UNLIKELY(info.Length() <= 1)) {
8010 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt erfaceEmpty); 8010 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt erfaceEmpty);
8011 return; 8011 return;
8012 } 8012 }
8013 longArg = toInt32(info.GetIsolate(), info[1], exceptionState); 8013 longArg = toInt32(info.GetIsolate(), info[1], NormalConversion, exceptio nState);
8014 if (exceptionState.throwIfNeeded()) 8014 if (exceptionState.throwIfNeeded())
8015 return; 8015 return;
8016 } 8016 }
8017 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg); 8017 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg);
8018 } 8018 }
8019 8019
8020 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 8020 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
8021 { 8021 {
8022 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8022 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8023 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i nfo); 8023 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i nfo);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
8098 8098
8099 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 8099 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
8100 { 8100 {
8101 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate()); 8101 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate());
8102 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8102 TestObject* impl = V8TestObject::toImpl(info.Holder());
8103 int defaultLongArg; 8103 int defaultLongArg;
8104 long long defaultLongLongArg; 8104 long long defaultLongLongArg;
8105 unsigned defaultUnsignedArg; 8105 unsigned defaultUnsignedArg;
8106 { 8106 {
8107 if (!info[0]->IsUndefined()) { 8107 if (!info[0]->IsUndefined()) {
8108 defaultLongArg = toInt32(info.GetIsolate(), info[0], exceptionState) ; 8108 defaultLongArg = toInt32(info.GetIsolate(), info[0], NormalConversio n, exceptionState);
8109 if (exceptionState.throwIfNeeded()) 8109 if (exceptionState.throwIfNeeded())
8110 return; 8110 return;
8111 } else { 8111 } else {
8112 defaultLongArg = 10; 8112 defaultLongArg = 10;
8113 } 8113 }
8114 if (!info[1]->IsUndefined()) { 8114 if (!info[1]->IsUndefined()) {
8115 defaultLongLongArg = toInt64(info.GetIsolate(), info[1], exceptionSt ate); 8115 defaultLongLongArg = toInt64(info.GetIsolate(), info[1], NormalConve rsion, exceptionState);
8116 if (exceptionState.throwIfNeeded()) 8116 if (exceptionState.throwIfNeeded())
8117 return; 8117 return;
8118 } else { 8118 } else {
8119 defaultLongLongArg = -10; 8119 defaultLongLongArg = -10;
8120 } 8120 }
8121 if (!info[2]->IsUndefined()) { 8121 if (!info[2]->IsUndefined()) {
8122 defaultUnsignedArg = toUInt32(info.GetIsolate(), info[2], exceptionS tate); 8122 defaultUnsignedArg = toUInt32(info.GetIsolate(), info[2], NormalConv ersion, exceptionState);
8123 if (exceptionState.throwIfNeeded()) 8123 if (exceptionState.throwIfNeeded())
8124 return; 8124 return;
8125 } else { 8125 } else {
8126 defaultUnsignedArg = 4294967295u; 8126 defaultUnsignedArg = 4294967295u;
8127 } 8127 }
8128 } 8128 }
8129 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau ltUnsignedArg); 8129 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau ltUnsignedArg);
8130 } 8130 }
8131 8131
8132 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 8132 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
8489 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA rgMethod(info); 8489 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA rgMethod(info);
8490 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8490 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8491 } 8491 }
8492 8492
8493 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8493 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8494 { 8494 {
8495 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 8495 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
8496 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8496 TestObject* impl = V8TestObject::toImpl(info.Holder());
8497 int longArg; 8497 int longArg;
8498 { 8498 {
8499 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 8499 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
8500 if (exceptionState.throwIfNeeded()) 8500 if (exceptionState.throwIfNeeded())
8501 return; 8501 return;
8502 } 8502 }
8503 impl->overloadedMethodA(longArg); 8503 impl->overloadedMethodA(longArg);
8504 } 8504 }
8505 8505
8506 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8506 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8507 { 8507 {
8508 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 8508 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
8509 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8509 TestObject* impl = V8TestObject::toImpl(info.Holder());
8510 int longArg1; 8510 int longArg1;
8511 int longArg2; 8511 int longArg2;
8512 { 8512 {
8513 longArg1 = toInt32(info.GetIsolate(), info[0], exceptionState); 8513 longArg1 = toInt32(info.GetIsolate(), info[0], NormalConversion, excepti onState);
8514 if (exceptionState.throwIfNeeded()) 8514 if (exceptionState.throwIfNeeded())
8515 return; 8515 return;
8516 longArg2 = toInt32(info.GetIsolate(), info[1], exceptionState); 8516 longArg2 = toInt32(info.GetIsolate(), info[1], NormalConversion, excepti onState);
8517 if (exceptionState.throwIfNeeded()) 8517 if (exceptionState.throwIfNeeded())
8518 return; 8518 return;
8519 } 8519 }
8520 impl->overloadedMethodA(longArg1, longArg2); 8520 impl->overloadedMethodA(longArg1, longArg2);
8521 } 8521 }
8522 8522
8523 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 8523 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
8524 { 8524 {
8525 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 8525 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
8526 switch (std::min(2, info.Length())) { 8526 switch (std::min(2, info.Length())) {
(...skipping 28 matching lines...) Expand all
8555 TestObjectV8Internal::overloadedMethodAMethod(info); 8555 TestObjectV8Internal::overloadedMethodAMethod(info);
8556 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8556 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8557 } 8557 }
8558 8558
8559 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8559 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8560 { 8560 {
8561 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 8561 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
8562 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8562 TestObject* impl = V8TestObject::toImpl(info.Holder());
8563 int longArg; 8563 int longArg;
8564 { 8564 {
8565 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 8565 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
8566 if (exceptionState.throwIfNeeded()) 8566 if (exceptionState.throwIfNeeded())
8567 return; 8567 return;
8568 } 8568 }
8569 impl->overloadedMethodB(longArg); 8569 impl->overloadedMethodB(longArg);
8570 } 8570 }
8571 8571
8572 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8572 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8573 { 8573 {
8574 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 8574 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
8575 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8575 TestObject* impl = V8TestObject::toImpl(info.Holder());
8576 V8StringResource<> stringArg; 8576 V8StringResource<> stringArg;
8577 int longArg; 8577 int longArg;
8578 { 8578 {
8579 stringArg = info[0]; 8579 stringArg = info[0];
8580 if (!stringArg.prepare()) 8580 if (!stringArg.prepare())
8581 return; 8581 return;
8582 if (UNLIKELY(info.Length() <= 1)) { 8582 if (UNLIKELY(info.Length() <= 1)) {
8583 impl->overloadedMethodB(stringArg); 8583 impl->overloadedMethodB(stringArg);
8584 return; 8584 return;
8585 } 8585 }
8586 longArg = toInt32(info.GetIsolate(), info[1], exceptionState); 8586 longArg = toInt32(info.GetIsolate(), info[1], NormalConversion, exceptio nState);
8587 if (exceptionState.throwIfNeeded()) 8587 if (exceptionState.throwIfNeeded())
8588 return; 8588 return;
8589 } 8589 }
8590 impl->overloadedMethodB(stringArg, longArg); 8590 impl->overloadedMethodB(stringArg, longArg);
8591 } 8591 }
8592 8592
8593 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 8593 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
8594 { 8594 {
8595 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 8595 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
8596 switch (std::min(2, info.Length())) { 8596 switch (std::min(2, info.Length())) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
8633 TestObjectV8Internal::overloadedMethodBMethod(info); 8633 TestObjectV8Internal::overloadedMethodBMethod(info);
8634 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8634 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8635 } 8635 }
8636 8636
8637 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8637 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8638 { 8638 {
8639 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 8639 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
8640 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8640 TestObject* impl = V8TestObject::toImpl(info.Holder());
8641 int longArg; 8641 int longArg;
8642 { 8642 {
8643 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 8643 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
8644 if (exceptionState.throwIfNeeded()) 8644 if (exceptionState.throwIfNeeded())
8645 return; 8645 return;
8646 } 8646 }
8647 impl->overloadedMethodC(longArg); 8647 impl->overloadedMethodC(longArg);
8648 } 8648 }
8649 8649
8650 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8650 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8651 { 8651 {
8652 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8652 TestObject* impl = V8TestObject::toImpl(info.Holder());
8653 TestInterfaceEmpty* testInterfaceEmptyArg; 8653 TestInterfaceEmpty* testInterfaceEmptyArg;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
8690 TestObjectV8Internal::overloadedMethodCMethod(info); 8690 TestObjectV8Internal::overloadedMethodCMethod(info);
8691 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8691 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8692 } 8692 }
8693 8693
8694 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8694 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8695 { 8695 {
8696 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 8696 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
8697 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8697 TestObject* impl = V8TestObject::toImpl(info.Holder());
8698 int longArg; 8698 int longArg;
8699 { 8699 {
8700 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 8700 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
8701 if (exceptionState.throwIfNeeded()) 8701 if (exceptionState.throwIfNeeded())
8702 return; 8702 return;
8703 } 8703 }
8704 impl->overloadedMethodD(longArg); 8704 impl->overloadedMethodD(longArg);
8705 } 8705 }
8706 8706
8707 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8707 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8708 { 8708 {
8709 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 8709 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
8710 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8710 TestObject* impl = V8TestObject::toImpl(info.Holder());
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
8750 TestObjectV8Internal::overloadedMethodDMethod(info); 8750 TestObjectV8Internal::overloadedMethodDMethod(info);
8751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8752 } 8752 }
8753 8753
8754 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8754 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8755 { 8755 {
8756 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate()); 8756 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate());
8757 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8757 TestObject* impl = V8TestObject::toImpl(info.Holder());
8758 int longArg; 8758 int longArg;
8759 { 8759 {
8760 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 8760 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
8761 if (exceptionState.throwIfNeeded()) 8761 if (exceptionState.throwIfNeeded())
8762 return; 8762 return;
8763 } 8763 }
8764 impl->overloadedMethodE(longArg); 8764 impl->overloadedMethodE(longArg);
8765 } 8765 }
8766 8766
8767 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8767 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8768 { 8768 {
8769 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8769 TestObject* impl = V8TestObject::toImpl(info.Holder());
8770 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 8770 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
8883 TestObjectV8Internal::overloadedMethodFMethod(info); 8883 TestObjectV8Internal::overloadedMethodFMethod(info);
8884 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8884 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8885 } 8885 }
8886 8886
8887 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8887 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8888 { 8888 {
8889 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), info.GetIsolate()); 8889 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), info.GetIsolate());
8890 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8890 TestObject* impl = V8TestObject::toImpl(info.Holder());
8891 int longArg; 8891 int longArg;
8892 { 8892 {
8893 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 8893 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
8894 if (exceptionState.throwIfNeeded()) 8894 if (exceptionState.throwIfNeeded())
8895 return; 8895 return;
8896 } 8896 }
8897 impl->overloadedMethodG(longArg); 8897 impl->overloadedMethodG(longArg);
8898 } 8898 }
8899 8899
8900 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8900 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8901 { 8901 {
8902 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8902 TestObject* impl = V8TestObject::toImpl(info.Holder());
8903 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 8903 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
9195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9196 } 9196 }
9197 9197
9198 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9198 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9199 { 9199 {
9200 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodL", "TestObject", info.Holder(), info.GetIsolate()); 9200 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodL", "TestObject", info.Holder(), info.GetIsolate());
9201 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9201 TestObject* impl = V8TestObject::toImpl(info.Holder());
9202 int longArg; 9202 int longArg;
9203 Vector<ScriptValue> restArgs; 9203 Vector<ScriptValue> restArgs;
9204 { 9204 {
9205 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 9205 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
9206 if (exceptionState.throwIfNeeded()) 9206 if (exceptionState.throwIfNeeded())
9207 return; 9207 return;
9208 restArgs = toImplArguments<ScriptValue>(info, 1, exceptionState); 9208 restArgs = toImplArguments<ScriptValue>(info, 1, exceptionState);
9209 if (exceptionState.throwIfNeeded()) 9209 if (exceptionState.throwIfNeeded())
9210 return; 9210 return;
9211 } 9211 }
9212 impl->overloadedMethodL(longArg, restArgs); 9212 impl->overloadedMethodL(longArg, restArgs);
9213 } 9213 }
9214 9214
9215 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9215 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
9382 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9382 TestObject* impl = V8TestObject::toImpl(info.Holder());
9383 impl->overloadedPerWorldBindingsMethod(); 9383 impl->overloadedPerWorldBindingsMethod();
9384 } 9384 }
9385 9385
9386 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 9386 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info)
9387 { 9387 {
9388 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 9388 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
9389 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9389 TestObject* impl = V8TestObject::toImpl(info.Holder());
9390 int longArg; 9390 int longArg;
9391 { 9391 {
9392 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 9392 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
9393 if (exceptionState.throwIfNeeded()) 9393 if (exceptionState.throwIfNeeded())
9394 return; 9394 return;
9395 } 9395 }
9396 impl->overloadedPerWorldBindingsMethod(longArg); 9396 impl->overloadedPerWorldBindingsMethod(longArg);
9397 } 9397 }
9398 9398
9399 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 9399 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
9400 { 9400 {
9401 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 9401 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
9402 switch (std::min(1, info.Length())) { 9402 switch (std::min(1, info.Length())) {
(...skipping 23 matching lines...) Expand all
9426 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); 9426 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info);
9427 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9427 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9428 } 9428 }
9429 9429
9430 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 9430 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info)
9431 { 9431 {
9432 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 9432 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
9433 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9433 TestObject* impl = V8TestObject::toImpl(info.Holder());
9434 int longArg; 9434 int longArg;
9435 { 9435 {
9436 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 9436 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
9437 if (exceptionState.throwIfNeeded()) 9437 if (exceptionState.throwIfNeeded())
9438 return; 9438 return;
9439 } 9439 }
9440 impl->overloadedPerWorldBindingsMethod(longArg); 9440 impl->overloadedPerWorldBindingsMethod(longArg);
9441 } 9441 }
9442 9442
9443 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info) 9443 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info)
9444 { 9444 {
9445 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 9445 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
9446 switch (std::min(1, info.Length())) { 9446 switch (std::min(1, info.Length())) {
(...skipping 22 matching lines...) Expand all
9469 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9469 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9470 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o); 9470 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o);
9471 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9471 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9472 } 9472 }
9473 9473
9474 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 9474 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
9475 { 9475 {
9476 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 9476 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
9477 int longArg; 9477 int longArg;
9478 { 9478 {
9479 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 9479 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
9480 if (exceptionState.throwIfNeeded()) 9480 if (exceptionState.throwIfNeeded())
9481 return; 9481 return;
9482 } 9482 }
9483 TestObject::overloadedStaticMethod(longArg); 9483 TestObject::overloadedStaticMethod(longArg);
9484 } 9484 }
9485 9485
9486 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 9486 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
9487 { 9487 {
9488 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 9488 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
9489 int longArg1; 9489 int longArg1;
9490 int longArg2; 9490 int longArg2;
9491 { 9491 {
9492 longArg1 = toInt32(info.GetIsolate(), info[0], exceptionState); 9492 longArg1 = toInt32(info.GetIsolate(), info[0], NormalConversion, excepti onState);
9493 if (exceptionState.throwIfNeeded()) 9493 if (exceptionState.throwIfNeeded())
9494 return; 9494 return;
9495 longArg2 = toInt32(info.GetIsolate(), info[1], exceptionState); 9495 longArg2 = toInt32(info.GetIsolate(), info[1], NormalConversion, excepti onState);
9496 if (exceptionState.throwIfNeeded()) 9496 if (exceptionState.throwIfNeeded())
9497 return; 9497 return;
9498 } 9498 }
9499 TestObject::overloadedStaticMethod(longArg1, longArg2); 9499 TestObject::overloadedStaticMethod(longArg1, longArg2);
9500 } 9500 }
9501 9501
9502 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 9502 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
9503 { 9503 {
9504 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 9504 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
9505 switch (std::min(2, info.Length())) { 9505 switch (std::min(2, info.Length())) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
9539 { 9539 {
9540 ExceptionState exceptionState(ExceptionState::ExecutionContext, "item", "Tes tObject", info.Holder(), info.GetIsolate()); 9540 ExceptionState exceptionState(ExceptionState::ExecutionContext, "item", "Tes tObject", info.Holder(), info.GetIsolate());
9541 if (UNLIKELY(info.Length() < 1)) { 9541 if (UNLIKELY(info.Length() < 1)) {
9542 setMinimumArityTypeError(exceptionState, 1, info.Length()); 9542 setMinimumArityTypeError(exceptionState, 1, info.Length());
9543 exceptionState.throwIfNeeded(); 9543 exceptionState.throwIfNeeded();
9544 return; 9544 return;
9545 } 9545 }
9546 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9546 TestObject* impl = V8TestObject::toImpl(info.Holder());
9547 unsigned index; 9547 unsigned index;
9548 { 9548 {
9549 index = toUInt32(info.GetIsolate(), info[0], exceptionState); 9549 index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exception State);
9550 if (exceptionState.throwIfNeeded()) 9550 if (exceptionState.throwIfNeeded())
9551 return; 9551 return;
9552 } 9552 }
9553 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 9553 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
9554 ScriptValue result = impl->item(scriptState, index); 9554 ScriptValue result = impl->item(scriptState, index);
9555 v8SetReturnValue(info, result.v8Value()); 9555 v8SetReturnValue(info, result.v8Value());
9556 } 9556 }
9557 9557
9558 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 9558 static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9559 { 9559 {
9560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9561 TestObjectV8Internal::itemMethod(info); 9561 TestObjectV8Internal::itemMethod(info);
9562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9563 } 9563 }
9564 9564
9565 static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 9565 static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
9566 { 9566 {
9567 ExceptionState exceptionState(ExceptionState::ExecutionContext, "setItem", " TestObject", info.Holder(), info.GetIsolate()); 9567 ExceptionState exceptionState(ExceptionState::ExecutionContext, "setItem", " TestObject", info.Holder(), info.GetIsolate());
9568 if (UNLIKELY(info.Length() < 2)) { 9568 if (UNLIKELY(info.Length() < 2)) {
9569 setMinimumArityTypeError(exceptionState, 2, info.Length()); 9569 setMinimumArityTypeError(exceptionState, 2, info.Length());
9570 exceptionState.throwIfNeeded(); 9570 exceptionState.throwIfNeeded();
9571 return; 9571 return;
9572 } 9572 }
9573 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9573 TestObject* impl = V8TestObject::toImpl(info.Holder());
9574 unsigned index; 9574 unsigned index;
9575 V8StringResource<> value; 9575 V8StringResource<> value;
9576 { 9576 {
9577 index = toUInt32(info.GetIsolate(), info[0], exceptionState); 9577 index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exception State);
9578 if (exceptionState.throwIfNeeded()) 9578 if (exceptionState.throwIfNeeded())
9579 return; 9579 return;
9580 value = info[1]; 9580 value = info[1];
9581 if (!value.prepare()) 9581 if (!value.prepare())
9582 return; 9582 return;
9583 } 9583 }
9584 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 9584 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
9585 String result = impl->setItem(scriptState, index, value); 9585 String result = impl->setItem(scriptState, index, value);
9586 v8SetReturnValueString(info, result, info.GetIsolate()); 9586 v8SetReturnValueString(info, result, info.GetIsolate());
9587 } 9587 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
9659 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info); 9659 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info);
9660 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9660 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9661 } 9661 }
9662 9662
9663 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 9663 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
9664 { 9664 {
9665 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 9665 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate());
9666 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9666 TestObject* impl = V8TestObject::toImpl(info.Holder());
9667 int defaultUndefinedLongArg; 9667 int defaultUndefinedLongArg;
9668 { 9668 {
9669 defaultUndefinedLongArg = toInt32(info.GetIsolate(), info[0], exceptionS tate); 9669 defaultUndefinedLongArg = toInt32(info.GetIsolate(), info[0], NormalConv ersion, exceptionState);
9670 if (exceptionState.throwIfNeeded()) 9670 if (exceptionState.throwIfNeeded())
9671 return; 9671 return;
9672 } 9672 }
9673 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); 9673 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg);
9674 } 9674 }
9675 9675
9676 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 9676 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
9677 { 9677 {
9678 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9678 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9679 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); 9679 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info);
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
10091 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10091 TestObject* impl = V8TestObject::toImpl(info.Holder());
10092 impl->measureOverloadedMethod(); 10092 impl->measureOverloadedMethod();
10093 } 10093 }
10094 10094
10095 static void measureOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Va lue>& info) 10095 static void measureOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Va lue>& info)
10096 { 10096 {
10097 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureOver loadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 10097 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureOver loadedMethod", "TestObject", info.Holder(), info.GetIsolate());
10098 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10098 TestObject* impl = V8TestObject::toImpl(info.Holder());
10099 int arg; 10099 int arg;
10100 { 10100 {
10101 arg = toInt32(info.GetIsolate(), info[0], exceptionState); 10101 arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
10102 if (exceptionState.throwIfNeeded()) 10102 if (exceptionState.throwIfNeeded())
10103 return; 10103 return;
10104 } 10104 }
10105 impl->measureOverloadedMethod(arg); 10105 impl->measureOverloadedMethod(arg);
10106 } 10106 }
10107 10107
10108 static void measureOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 10108 static void measureOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
10109 { 10109 {
10110 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureOver loadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 10110 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureOver loadedMethod", "TestObject", info.Holder(), info.GetIsolate());
10111 switch (std::min(1, info.Length())) { 10111 switch (std::min(1, info.Length())) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
10143 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10143 TestObject* impl = V8TestObject::toImpl(info.Holder());
10144 impl->DeprecateAsOverloadedMethod(); 10144 impl->DeprecateAsOverloadedMethod();
10145 } 10145 }
10146 10146
10147 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info) 10147 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info)
10148 { 10148 {
10149 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 10149 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
10150 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10150 TestObject* impl = V8TestObject::toImpl(info.Holder());
10151 int arg; 10151 int arg;
10152 { 10152 {
10153 arg = toInt32(info.GetIsolate(), info[0], exceptionState); 10153 arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
10154 if (exceptionState.throwIfNeeded()) 10154 if (exceptionState.throwIfNeeded())
10155 return; 10155 return;
10156 } 10156 }
10157 impl->DeprecateAsOverloadedMethod(arg); 10157 impl->DeprecateAsOverloadedMethod(arg);
10158 } 10158 }
10159 10159
10160 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 10160 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
10161 { 10161 {
10162 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 10162 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
10163 switch (std::min(1, info.Length())) { 10163 switch (std::min(1, info.Length())) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
10195 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10195 TestObject* impl = V8TestObject::toImpl(info.Holder());
10196 impl->DeprecateAsSameValueOverloadedMethod(); 10196 impl->DeprecateAsSameValueOverloadedMethod();
10197 } 10197 }
10198 10198
10199 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba ckInfo<v8::Value>& info) 10199 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba ckInfo<v8::Value>& info)
10200 { 10200 {
10201 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 10201 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
10202 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10202 TestObject* impl = V8TestObject::toImpl(info.Holder());
10203 int arg; 10203 int arg;
10204 { 10204 {
10205 arg = toInt32(info.GetIsolate(), info[0], exceptionState); 10205 arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
10206 if (exceptionState.throwIfNeeded()) 10206 if (exceptionState.throwIfNeeded())
10207 return; 10207 return;
10208 } 10208 }
10209 impl->DeprecateAsSameValueOverloadedMethod(arg); 10209 impl->DeprecateAsSameValueOverloadedMethod(arg);
10210 } 10210 }
10211 10211
10212 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 10212 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
10213 { 10213 {
10214 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 10214 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
10215 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::TestFeature); 10215 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::TestFeature);
(...skipping 30 matching lines...) Expand all
10246 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10246 TestObject* impl = V8TestObject::toImpl(info.Holder());
10247 impl->measureAsOverloadedMethod(); 10247 impl->measureAsOverloadedMethod();
10248 } 10248 }
10249 10249
10250 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 10250 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: Value>& info)
10251 { 10251 {
10252 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 10252 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
10253 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10253 TestObject* impl = V8TestObject::toImpl(info.Holder());
10254 int arg; 10254 int arg;
10255 { 10255 {
10256 arg = toInt32(info.GetIsolate(), info[0], exceptionState); 10256 arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
10257 if (exceptionState.throwIfNeeded()) 10257 if (exceptionState.throwIfNeeded())
10258 return; 10258 return;
10259 } 10259 }
10260 impl->measureAsOverloadedMethod(arg); 10260 impl->measureAsOverloadedMethod(arg);
10261 } 10261 }
10262 10262
10263 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 10263 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
10264 { 10264 {
10265 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 10265 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
10266 switch (std::min(1, info.Length())) { 10266 switch (std::min(1, info.Length())) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
10298 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10298 TestObject* impl = V8TestObject::toImpl(info.Holder());
10299 impl->measureAsSameValueOverloadedMethod(); 10299 impl->measureAsSameValueOverloadedMethod();
10300 } 10300 }
10301 10301
10302 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback Info<v8::Value>& info) 10302 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback Info<v8::Value>& info)
10303 { 10303 {
10304 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 10304 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
10305 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10305 TestObject* impl = V8TestObject::toImpl(info.Holder());
10306 int arg; 10306 int arg;
10307 { 10307 {
10308 arg = toInt32(info.GetIsolate(), info[0], exceptionState); 10308 arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
10309 if (exceptionState.throwIfNeeded()) 10309 if (exceptionState.throwIfNeeded())
10310 return; 10310 return;
10311 } 10311 }
10312 impl->measureAsSameValueOverloadedMethod(arg); 10312 impl->measureAsSameValueOverloadedMethod(arg);
10313 } 10313 }
10314 10314
10315 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 10315 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
10316 { 10316 {
10317 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 10317 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
10318 switch (std::min(1, info.Length())) { 10318 switch (std::min(1, info.Length())) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
10350 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10350 TestObject* impl = V8TestObject::toImpl(info.Holder());
10351 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); 10351 impl->deprecateAsMeasureAsSameValueOverloadedMethod();
10352 } 10352 }
10353 10353
10354 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 10354 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info)
10355 { 10355 {
10356 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 10356 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
10357 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10357 TestObject* impl = V8TestObject::toImpl(info.Holder());
10358 int arg; 10358 int arg;
10359 { 10359 {
10360 arg = toInt32(info.GetIsolate(), info[0], exceptionState); 10360 arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
10361 if (exceptionState.throwIfNeeded()) 10361 if (exceptionState.throwIfNeeded())
10362 return; 10362 return;
10363 } 10363 }
10364 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); 10364 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg);
10365 } 10365 }
10366 10366
10367 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 10367 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
10368 { 10368 {
10369 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 10369 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
10370 switch (std::min(1, info.Length())) { 10370 switch (std::min(1, info.Length())) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
10404 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10404 TestObject* impl = V8TestObject::toImpl(info.Holder());
10405 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); 10405 impl->deprecateAsSameValueMeasureAsOverloadedMethod();
10406 } 10406 }
10407 10407
10408 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 10408 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info)
10409 { 10409 {
10410 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 10410 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
10411 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10411 TestObject* impl = V8TestObject::toImpl(info.Holder());
10412 int arg; 10412 int arg;
10413 { 10413 {
10414 arg = toInt32(info.GetIsolate(), info[0], exceptionState); 10414 arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
10415 if (exceptionState.throwIfNeeded()) 10415 if (exceptionState.throwIfNeeded())
10416 return; 10416 return;
10417 } 10417 }
10418 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); 10418 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg);
10419 } 10419 }
10420 10420
10421 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 10421 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
10422 { 10422 {
10423 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 10423 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
10424 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::TestFeature); 10424 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::TestFeature);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
10457 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10457 TestObject* impl = V8TestObject::toImpl(info.Holder());
10458 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); 10458 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod();
10459 } 10459 }
10460 10460
10461 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 10461 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
10462 { 10462 {
10463 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate()); 10463 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate());
10464 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10464 TestObject* impl = V8TestObject::toImpl(info.Holder());
10465 int arg; 10465 int arg;
10466 { 10466 {
10467 arg = toInt32(info.GetIsolate(), info[0], exceptionState); 10467 arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
10468 if (exceptionState.throwIfNeeded()) 10468 if (exceptionState.throwIfNeeded())
10469 return; 10469 return;
10470 } 10470 }
10471 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); 10471 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg);
10472 } 10472 }
10473 10473
10474 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info) 10474 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info)
10475 { 10475 {
10476 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate()); 10476 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate());
10477 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::TestFeatureA); 10477 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::TestFeatureA);
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
10716 int optionalLongArg; 10716 int optionalLongArg;
10717 { 10717 {
10718 if (UNLIKELY(info.Length() <= 0)) { 10718 if (UNLIKELY(info.Length() <= 0)) {
10719 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); 10719 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState);
10720 if (exceptionState.hadException()) { 10720 if (exceptionState.hadException()) {
10721 exceptionState.throwIfNeeded(); 10721 exceptionState.throwIfNeeded();
10722 return; 10722 return;
10723 } 10723 }
10724 return; 10724 return;
10725 } 10725 }
10726 optionalLongArg = toInt32(info.GetIsolate(), info[0], exceptionState); 10726 optionalLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
10727 if (exceptionState.throwIfNeeded()) 10727 if (exceptionState.throwIfNeeded())
10728 return; 10728 return;
10729 } 10729 }
10730 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta te); 10730 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta te);
10731 if (exceptionState.hadException()) { 10731 if (exceptionState.hadException()) {
10732 exceptionState.throwIfNeeded(); 10732 exceptionState.throwIfNeeded();
10733 return; 10733 return;
10734 } 10734 }
10735 } 10735 }
10736 10736
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
10827 { 10827 {
10828 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate()); 10828 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate());
10829 if (UNLIKELY(info.Length() < 1)) { 10829 if (UNLIKELY(info.Length() < 1)) {
10830 setMinimumArityTypeError(exceptionState, 1, info.Length()); 10830 setMinimumArityTypeError(exceptionState, 1, info.Length());
10831 exceptionState.throwIfNeeded(); 10831 exceptionState.throwIfNeeded();
10832 return; 10832 return;
10833 } 10833 }
10834 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10834 TestObject* impl = V8TestObject::toImpl(info.Holder());
10835 int longArg; 10835 int longArg;
10836 { 10836 {
10837 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 10837 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
10838 if (exceptionState.throwIfNeeded()) 10838 if (exceptionState.throwIfNeeded())
10839 return; 10839 return;
10840 } 10840 }
10841 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 10841 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
10842 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionCont ext, longArg, exceptionState); 10842 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionCont ext, longArg, exceptionState);
10843 if (exceptionState.hadException()) { 10843 if (exceptionState.hadException()) {
10844 exceptionState.throwIfNeeded(); 10844 exceptionState.throwIfNeeded();
10845 return; 10845 return;
10846 } 10846 }
10847 } 10847 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
10903 } 10903 }
10904 impl->runtimeEnabledOverloadedVoidMethod(stringArg); 10904 impl->runtimeEnabledOverloadedVoidMethod(stringArg);
10905 } 10905 }
10906 10906
10907 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback Info<v8::Value>& info) 10907 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback Info<v8::Value>& info)
10908 { 10908 {
10909 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); 10909 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
10910 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10910 TestObject* impl = V8TestObject::toImpl(info.Holder());
10911 int longArg; 10911 int longArg;
10912 { 10912 {
10913 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 10913 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
10914 if (exceptionState.throwIfNeeded()) 10914 if (exceptionState.throwIfNeeded())
10915 return; 10915 return;
10916 } 10916 }
10917 impl->runtimeEnabledOverloadedVoidMethod(longArg); 10917 impl->runtimeEnabledOverloadedVoidMethod(longArg);
10918 } 10918 }
10919 10919
10920 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 10920 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
10921 { 10921 {
10922 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); 10922 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
10923 switch (std::min(1, info.Length())) { 10923 switch (std::min(1, info.Length())) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
10977 impl->partiallyRuntimeEnabledOverloadedVoidMethod(testInterface); 10977 impl->partiallyRuntimeEnabledOverloadedVoidMethod(testInterface);
10978 } 10978 }
10979 10979
10980 static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio nCallbackInfo<v8::Value>& info) 10980 static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio nCallbackInfo<v8::Value>& info)
10981 { 10981 {
10982 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate( )); 10982 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate( ));
10983 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10983 TestObject* impl = V8TestObject::toImpl(info.Holder());
10984 int longArg; 10984 int longArg;
10985 V8StringResource<> stringArg; 10985 V8StringResource<> stringArg;
10986 { 10986 {
10987 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); 10987 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio nState);
10988 if (exceptionState.throwIfNeeded()) 10988 if (exceptionState.throwIfNeeded())
10989 return; 10989 return;
10990 stringArg = info[1]; 10990 stringArg = info[1];
10991 if (!stringArg.prepare()) 10991 if (!stringArg.prepare())
10992 return; 10992 return;
10993 } 10993 }
10994 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg, stringArg); 10994 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg, stringArg);
10995 } 10995 }
10996 10996
10997 static int partiallyRuntimeEnabledOverloadedVoidMethodMethodLength() 10997 static int partiallyRuntimeEnabledOverloadedVoidMethodMethodLength()
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
11462 { 11462 {
11463 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestObject", info.Holder(), info. GetIsolate()); 11463 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestObject", info.Holder(), info. GetIsolate());
11464 if (UNLIKELY(info.Length() < 1)) { 11464 if (UNLIKELY(info.Length() < 1)) {
11465 setMinimumArityTypeError(exceptionState, 1, info.Length()); 11465 setMinimumArityTypeError(exceptionState, 1, info.Length());
11466 exceptionState.throwIfNeeded(); 11466 exceptionState.throwIfNeeded();
11467 return; 11467 return;
11468 } 11468 }
11469 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11469 TestObject* impl = V8TestObject::toImpl(info.Holder());
11470 int value; 11470 int value;
11471 { 11471 {
11472 value = toInt16(info.GetIsolate(), info[0], exceptionState); 11472 value = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionS tate);
11473 if (exceptionState.throwIfNeeded()) 11473 if (exceptionState.throwIfNeeded())
11474 return; 11474 return;
11475 } 11475 }
11476 int result = 0; 11476 int result = 0;
11477 if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInP rivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurre ntContext())), impl, value, &result)) 11477 if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInP rivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurre ntContext())), impl, value, &result))
11478 return; 11478 return;
11479 v8SetReturnValueInt(info, result); 11479 v8SetReturnValueInt(info, result);
11480 } 11480 }
11481 11481
11482 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 11482 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
11546 } 11546 }
11547 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11547 TestObject* impl = V8TestObject::toImpl(info.Holder());
11548 Document* document; 11548 Document* document;
11549 Node* node; 11549 Node* node;
11550 int value1; 11550 int value1;
11551 double value2; 11551 double value2;
11552 V8StringResource<> string; 11552 V8StringResource<> string;
11553 { 11553 {
11554 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); 11554 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
11555 node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); 11555 node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
11556 value1 = toInt16(info.GetIsolate(), info[2], exceptionState); 11556 value1 = toInt16(info.GetIsolate(), info[2], NormalConversion, exception State);
11557 if (exceptionState.throwIfNeeded()) 11557 if (exceptionState.throwIfNeeded())
11558 return; 11558 return;
11559 value2 = toRestrictedDouble(info.GetIsolate(), info[3], exceptionState); 11559 value2 = toRestrictedDouble(info.GetIsolate(), info[3], exceptionState);
11560 if (exceptionState.throwIfNeeded()) 11560 if (exceptionState.throwIfNeeded())
11561 return; 11561 return;
11562 string = info[4]; 11562 string = info[4];
11563 if (!string.prepare()) 11563 if (!string.prepare())
11564 return; 11564 return;
11565 } 11565 }
11566 RefPtrWillBeRawPtr<Node> result = nullptr; 11566 RefPtrWillBeRawPtr<Node> result = nullptr;
(...skipping 14 matching lines...) Expand all
11581 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodImple mentedInCPPForPrivateScriptOnly", "TestObject", info.Holder(), info.GetIsolate() ); 11581 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodImple mentedInCPPForPrivateScriptOnly", "TestObject", info.Holder(), info.GetIsolate() );
11582 if (UNLIKELY(info.Length() < 2)) { 11582 if (UNLIKELY(info.Length() < 2)) {
11583 setMinimumArityTypeError(exceptionState, 2, info.Length()); 11583 setMinimumArityTypeError(exceptionState, 2, info.Length());
11584 exceptionState.throwIfNeeded(); 11584 exceptionState.throwIfNeeded();
11585 return; 11585 return;
11586 } 11586 }
11587 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11587 TestObject* impl = V8TestObject::toImpl(info.Holder());
11588 int value1; 11588 int value1;
11589 int value2; 11589 int value2;
11590 { 11590 {
11591 value1 = toInt16(info.GetIsolate(), info[0], exceptionState); 11591 value1 = toInt16(info.GetIsolate(), info[0], NormalConversion, exception State);
11592 if (exceptionState.throwIfNeeded()) 11592 if (exceptionState.throwIfNeeded())
11593 return; 11593 return;
11594 value2 = toInt16(info.GetIsolate(), info[1], exceptionState); 11594 value2 = toInt16(info.GetIsolate(), info[1], NormalConversion, exception State);
11595 if (exceptionState.throwIfNeeded()) 11595 if (exceptionState.throwIfNeeded())
11596 return; 11596 return;
11597 } 11597 }
11598 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v alue1, value2)); 11598 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v alue1, value2));
11599 } 11599 }
11600 11600
11601 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 11601 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info)
11602 { 11602 {
11603 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 11603 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
11604 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info) ; 11604 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info) ;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
11704 { 11704 {
11705 ExceptionState exceptionState(ExceptionState::ExecutionContext, "has", "Test Object", info.Holder(), info.GetIsolate()); 11705 ExceptionState exceptionState(ExceptionState::ExecutionContext, "has", "Test Object", info.Holder(), info.GetIsolate());
11706 if (UNLIKELY(info.Length() < 1)) { 11706 if (UNLIKELY(info.Length() < 1)) {
11707 setMinimumArityTypeError(exceptionState, 1, info.Length()); 11707 setMinimumArityTypeError(exceptionState, 1, info.Length());
11708 exceptionState.throwIfNeeded(); 11708 exceptionState.throwIfNeeded();
11709 return; 11709 return;
11710 } 11710 }
11711 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11711 TestObject* impl = V8TestObject::toImpl(info.Holder());
11712 int key; 11712 int key;
11713 { 11713 {
11714 key = toInt32(info.GetIsolate(), info[0], exceptionState); 11714 key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
11715 if (exceptionState.throwIfNeeded()) 11715 if (exceptionState.throwIfNeeded())
11716 return; 11716 return;
11717 } 11717 }
11718 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 11718 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
11719 bool result = impl->hasForBinding(scriptState, key, exceptionState); 11719 bool result = impl->hasForBinding(scriptState, key, exceptionState);
11720 if (exceptionState.hadException()) { 11720 if (exceptionState.hadException()) {
11721 exceptionState.throwIfNeeded(); 11721 exceptionState.throwIfNeeded();
11722 return; 11722 return;
11723 } 11723 }
11724 v8SetReturnValueBool(info, result); 11724 v8SetReturnValueBool(info, result);
(...skipping 10 matching lines...) Expand all
11735 { 11735 {
11736 ExceptionState exceptionState(ExceptionState::ExecutionContext, "get", "Test Object", info.Holder(), info.GetIsolate()); 11736 ExceptionState exceptionState(ExceptionState::ExecutionContext, "get", "Test Object", info.Holder(), info.GetIsolate());
11737 if (UNLIKELY(info.Length() < 1)) { 11737 if (UNLIKELY(info.Length() < 1)) {
11738 setMinimumArityTypeError(exceptionState, 1, info.Length()); 11738 setMinimumArityTypeError(exceptionState, 1, info.Length());
11739 exceptionState.throwIfNeeded(); 11739 exceptionState.throwIfNeeded();
11740 return; 11740 return;
11741 } 11741 }
11742 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11742 TestObject* impl = V8TestObject::toImpl(info.Holder());
11743 int key; 11743 int key;
11744 { 11744 {
11745 key = toInt32(info.GetIsolate(), info[0], exceptionState); 11745 key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
11746 if (exceptionState.throwIfNeeded()) 11746 if (exceptionState.throwIfNeeded())
11747 return; 11747 return;
11748 } 11748 }
11749 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 11749 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
11750 ScriptValue result = impl->getForBinding(scriptState, key, exceptionState); 11750 ScriptValue result = impl->getForBinding(scriptState, key, exceptionState);
11751 if (exceptionState.hadException()) { 11751 if (exceptionState.hadException()) {
11752 exceptionState.throwIfNeeded(); 11752 exceptionState.throwIfNeeded();
11753 return; 11753 return;
11754 } 11754 }
11755 v8SetReturnValue(info, result.v8Value()); 11755 v8SetReturnValue(info, result.v8Value());
(...skipping 29 matching lines...) Expand all
11785 { 11785 {
11786 ExceptionState exceptionState(ExceptionState::ExecutionContext, "delete", "T estObject", info.Holder(), info.GetIsolate()); 11786 ExceptionState exceptionState(ExceptionState::ExecutionContext, "delete", "T estObject", info.Holder(), info.GetIsolate());
11787 if (UNLIKELY(info.Length() < 1)) { 11787 if (UNLIKELY(info.Length() < 1)) {
11788 setMinimumArityTypeError(exceptionState, 1, info.Length()); 11788 setMinimumArityTypeError(exceptionState, 1, info.Length());
11789 exceptionState.throwIfNeeded(); 11789 exceptionState.throwIfNeeded();
11790 return; 11790 return;
11791 } 11791 }
11792 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11792 TestObject* impl = V8TestObject::toImpl(info.Holder());
11793 int key; 11793 int key;
11794 { 11794 {
11795 key = toInt32(info.GetIsolate(), info[0], exceptionState); 11795 key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
11796 if (exceptionState.throwIfNeeded()) 11796 if (exceptionState.throwIfNeeded())
11797 return; 11797 return;
11798 } 11798 }
11799 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 11799 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
11800 bool result = impl->deleteForBinding(scriptState, key, exceptionState); 11800 bool result = impl->deleteForBinding(scriptState, key, exceptionState);
11801 if (exceptionState.hadException()) { 11801 if (exceptionState.hadException()) {
11802 exceptionState.throwIfNeeded(); 11802 exceptionState.throwIfNeeded();
11803 return; 11803 return;
11804 } 11804 }
11805 v8SetReturnValueBool(info, result); 11805 v8SetReturnValueBool(info, result);
(...skipping 11 matching lines...) Expand all
11817 ExceptionState exceptionState(ExceptionState::ExecutionContext, "set", "Test Object", info.Holder(), info.GetIsolate()); 11817 ExceptionState exceptionState(ExceptionState::ExecutionContext, "set", "Test Object", info.Holder(), info.GetIsolate());
11818 if (UNLIKELY(info.Length() < 2)) { 11818 if (UNLIKELY(info.Length() < 2)) {
11819 setMinimumArityTypeError(exceptionState, 2, info.Length()); 11819 setMinimumArityTypeError(exceptionState, 2, info.Length());
11820 exceptionState.throwIfNeeded(); 11820 exceptionState.throwIfNeeded();
11821 return; 11821 return;
11822 } 11822 }
11823 TestObject* impl = V8TestObject::toImpl(info.Holder()); 11823 TestObject* impl = V8TestObject::toImpl(info.Holder());
11824 int key; 11824 int key;
11825 StringOrDouble value; 11825 StringOrDouble value;
11826 { 11826 {
11827 key = toInt32(info.GetIsolate(), info[0], exceptionState); 11827 key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
11828 if (exceptionState.throwIfNeeded()) 11828 if (exceptionState.throwIfNeeded())
11829 return; 11829 return;
11830 V8StringOrDouble::toImpl(info.GetIsolate(), info[1], value, exceptionSta te); 11830 V8StringOrDouble::toImpl(info.GetIsolate(), info[1], value, exceptionSta te);
11831 if (exceptionState.throwIfNeeded()) 11831 if (exceptionState.throwIfNeeded())
11832 return; 11832 return;
11833 } 11833 }
11834 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 11834 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
11835 RefPtr<TestObject> result = impl->setForBinding(scriptState, key, value, exc eptionState); 11835 RefPtr<TestObject> result = impl->setForBinding(scriptState, key, value, exc eptionState);
11836 if (exceptionState.hadException()) { 11836 if (exceptionState.hadException()) {
11837 exceptionState.throwIfNeeded(); 11837 exceptionState.throwIfNeeded();
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
12709 return false; 12709 return false;
12710 12710
12711 ScriptState::Scope scope(scriptState); 12711 ScriptState::Scope scope(scriptState);
12712 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 12712 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
12713 12713
12714 v8::Local<v8::Value> *argv = 0; 12714 v8::Local<v8::Value> *argv = 0;
12715 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod ImplementedInPrivateScript", "TestObject", scriptState->context()->Global(), scr iptState->isolate()); 12715 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod ImplementedInPrivateScript", "TestObject", scriptState->context()->Global(), scr iptState->isolate());
12716 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "shortMethodImplementedInPrivateScript" , holder, 0, argv); 12716 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "shortMethodImplementedInPrivateScript" , holder, 0, argv);
12717 if (v8Value.IsEmpty()) 12717 if (v8Value.IsEmpty())
12718 return false; 12718 return false;
12719 int cppValue = toInt16(scriptState->isolate(), v8Value, exceptionState); 12719 int cppValue = toInt16(scriptState->isolate(), v8Value, NormalConversion, ex ceptionState);
12720 if (exceptionState.throwIfNeeded()) 12720 if (exceptionState.throwIfNeeded())
12721 return false; 12721 return false;
12722 *result = cppValue; 12722 *result = cppValue;
12723 RELEASE_ASSERT(!exceptionState.hadException()); 12723 RELEASE_ASSERT(!exceptionState.hadException());
12724 return true; 12724 return true;
12725 } 12725 }
12726 12726
12727 bool V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInPriva teScriptMethod(LocalFrame* frame, TestObject* holderImpl, int value, int* result ) 12727 bool V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInPriva teScriptMethod(LocalFrame* frame, TestObject* holderImpl, int value, int* result )
12728 { 12728 {
12729 if (!frame) 12729 if (!frame)
(...skipping 10 matching lines...) Expand all
12740 12740
12741 ScriptState::Scope scope(scriptState); 12741 ScriptState::Scope scope(scriptState);
12742 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 12742 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
12743 12743
12744 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(), value); 12744 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(), value);
12745 v8::Local<v8::Value> argv[] = { valueHandle }; 12745 v8::Local<v8::Value> argv[] = { valueHandle };
12746 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestObject", scriptState->context ()->Global(), scriptState->isolate()); 12746 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestObject", scriptState->context ()->Global(), scriptState->isolate());
12747 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "shortMethodWithShortArgumentImplemente dInPrivateScript", holder, 1, argv); 12747 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "shortMethodWithShortArgumentImplemente dInPrivateScript", holder, 1, argv);
12748 if (v8Value.IsEmpty()) 12748 if (v8Value.IsEmpty())
12749 return false; 12749 return false;
12750 int cppValue = toInt16(scriptState->isolate(), v8Value, exceptionState); 12750 int cppValue = toInt16(scriptState->isolate(), v8Value, NormalConversion, ex ceptionState);
12751 if (exceptionState.throwIfNeeded()) 12751 if (exceptionState.throwIfNeeded())
12752 return false; 12752 return false;
12753 *result = cppValue; 12753 *result = cppValue;
12754 RELEASE_ASSERT(!exceptionState.hadException()); 12754 RELEASE_ASSERT(!exceptionState.hadException());
12755 return true; 12755 return true;
12756 } 12756 }
12757 12757
12758 bool V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedInPri vateScriptMethod(LocalFrame* frame, TestObject* holderImpl, String value, String * result) 12758 bool V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedInPri vateScriptMethod(LocalFrame* frame, TestObject* holderImpl, String value, String * result)
12759 { 12759 {
12760 if (!frame) 12760 if (!frame)
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
12865 ScriptState::Scope scope(scriptState); 12865 ScriptState::Scope scope(scriptState);
12866 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 12866 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
12867 12867
12868 v8::Local<v8::Value> value1Handle = v8::Integer::New(scriptState->isolate(), value1); 12868 v8::Local<v8::Value> value1Handle = v8::Integer::New(scriptState->isolate(), value1);
12869 v8::Local<v8::Value> value2Handle = v8::Integer::New(scriptState->isolate(), value2); 12869 v8::Local<v8::Value> value2Handle = v8::Integer::New(scriptState->isolate(), value2);
12870 v8::Local<v8::Value> argv[] = { value1Handle, value2Handle }; 12870 v8::Local<v8::Value> argv[] = { value1Handle, value2Handle };
12871 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodForPr ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i solate()); 12871 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodForPr ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i solate());
12872 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "methodForPrivateScriptOnly", holder, 2 , argv); 12872 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "methodForPrivateScriptOnly", holder, 2 , argv);
12873 if (v8Value.IsEmpty()) 12873 if (v8Value.IsEmpty())
12874 return false; 12874 return false;
12875 int cppValue = toInt16(scriptState->isolate(), v8Value, exceptionState); 12875 int cppValue = toInt16(scriptState->isolate(), v8Value, NormalConversion, ex ceptionState);
12876 if (exceptionState.throwIfNeeded()) 12876 if (exceptionState.throwIfNeeded())
12877 return false; 12877 return false;
12878 *result = cppValue; 12878 *result = cppValue;
12879 RELEASE_ASSERT(!exceptionState.hadException()); 12879 RELEASE_ASSERT(!exceptionState.hadException());
12880 return true; 12880 return true;
12881 } 12881 }
12882 12882
12883 bool V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(LocalFra me* frame, TestObject* holderImpl, int* result) 12883 bool V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(LocalFra me* frame, TestObject* holderImpl, int* result)
12884 { 12884 {
12885 if (!frame) 12885 if (!frame)
12886 return false; 12886 return false;
12887 v8::HandleScope handleScope(toIsolate(frame)); 12887 v8::HandleScope handleScope(toIsolate(frame));
12888 ScriptForbiddenScope::AllowUserAgentScript script; 12888 ScriptForbiddenScope::AllowUserAgentScript script;
12889 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld()); 12889 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
12890 if (contextInPrivateScript.IsEmpty()) 12890 if (contextInPrivateScript.IsEmpty())
12891 return false; 12891 return false;
12892 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 12892 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
12893 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 12893 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
12894 if (!scriptState->executionContext()) 12894 if (!scriptState->executionContext())
12895 return false; 12895 return false;
12896 12896
12897 ScriptState::Scope scope(scriptState); 12897 ScriptState::Scope scope(scriptState);
12898 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 12898 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
12899 12899
12900 ExceptionState exceptionState(ExceptionState::GetterContext, "readonlyShortA ttribute", "TestObject", scriptState->context()->Global(), scriptState->isolate( )); 12900 ExceptionState exceptionState(ExceptionState::GetterContext, "readonlyShortA ttribute", "TestObject", scriptState->context()->Global(), scriptState->isolate( ));
12901 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc riptState, scriptStateInUserScript, "TestObject", "readonlyShortAttribute", hold er); 12901 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc riptState, scriptStateInUserScript, "TestObject", "readonlyShortAttribute", hold er);
12902 if (v8Value.IsEmpty()) 12902 if (v8Value.IsEmpty())
12903 return false; 12903 return false;
12904 int cppValue = toInt16(scriptState->isolate(), v8Value, exceptionState); 12904 int cppValue = toInt16(scriptState->isolate(), v8Value, NormalConversion, ex ceptionState);
12905 if (exceptionState.throwIfNeeded()) 12905 if (exceptionState.throwIfNeeded())
12906 return false; 12906 return false;
12907 RELEASE_ASSERT(!exceptionState.hadException()); 12907 RELEASE_ASSERT(!exceptionState.hadException());
12908 *result = cppValue; 12908 *result = cppValue;
12909 return true; 12909 return true;
12910 } 12910 }
12911 12911
12912 bool V8TestObject::PrivateScript::shortAttributeAttributeGetter(LocalFrame* fram e, TestObject* holderImpl, int* result) 12912 bool V8TestObject::PrivateScript::shortAttributeAttributeGetter(LocalFrame* fram e, TestObject* holderImpl, int* result)
12913 { 12913 {
12914 if (!frame) 12914 if (!frame)
12915 return false; 12915 return false;
12916 v8::HandleScope handleScope(toIsolate(frame)); 12916 v8::HandleScope handleScope(toIsolate(frame));
12917 ScriptForbiddenScope::AllowUserAgentScript script; 12917 ScriptForbiddenScope::AllowUserAgentScript script;
12918 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld()); 12918 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
12919 if (contextInPrivateScript.IsEmpty()) 12919 if (contextInPrivateScript.IsEmpty())
12920 return false; 12920 return false;
12921 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 12921 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
12922 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 12922 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
12923 if (!scriptState->executionContext()) 12923 if (!scriptState->executionContext())
12924 return false; 12924 return false;
12925 12925
12926 ScriptState::Scope scope(scriptState); 12926 ScriptState::Scope scope(scriptState);
12927 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 12927 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
12928 12928
12929 ExceptionState exceptionState(ExceptionState::GetterContext, "shortAttribute ", "TestObject", scriptState->context()->Global(), scriptState->isolate()); 12929 ExceptionState exceptionState(ExceptionState::GetterContext, "shortAttribute ", "TestObject", scriptState->context()->Global(), scriptState->isolate());
12930 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc riptState, scriptStateInUserScript, "TestObject", "shortAttribute", holder); 12930 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc riptState, scriptStateInUserScript, "TestObject", "shortAttribute", holder);
12931 if (v8Value.IsEmpty()) 12931 if (v8Value.IsEmpty())
12932 return false; 12932 return false;
12933 int cppValue = toInt16(scriptState->isolate(), v8Value, exceptionState); 12933 int cppValue = toInt16(scriptState->isolate(), v8Value, NormalConversion, ex ceptionState);
12934 if (exceptionState.throwIfNeeded()) 12934 if (exceptionState.throwIfNeeded())
12935 return false; 12935 return false;
12936 RELEASE_ASSERT(!exceptionState.hadException()); 12936 RELEASE_ASSERT(!exceptionState.hadException());
12937 *result = cppValue; 12937 *result = cppValue;
12938 return true; 12938 return true;
12939 } 12939 }
12940 12940
12941 bool V8TestObject::PrivateScript::shortAttributeAttributeSetter(LocalFrame* fram e, TestObject* holderImpl, int cppValue) 12941 bool V8TestObject::PrivateScript::shortAttributeAttributeSetter(LocalFrame* fram e, TestObject* holderImpl, int cppValue)
12942 { 12942 {
12943 if (!frame) 12943 if (!frame)
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
13151 return false; 13151 return false;
13152 13152
13153 ScriptState::Scope scope(scriptState); 13153 ScriptState::Scope scope(scriptState);
13154 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 13154 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
13155 13155
13156 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 13156 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
13157 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 13157 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
13158 } 13158 }
13159 13159
13160 } // namespace blink 13160 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698