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

Side by Side Diff: Source/bindings/tests/idls/core/TestObject.idl

Issue 657523002: Skip expensive hasInstance() type-checks in overloads (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 [TreatReturnedNullStringAs=Null] ByteString treatReturnedNullStringAsNullByt eStringMethod(); 518 [TreatReturnedNullStringAs=Null] ByteString treatReturnedNullStringAsNullByt eStringMethod();
519 [TreatReturnedNullStringAs=Undefined] ByteString treatReturnedNullStringAsUn definedByteStringMethod(); 519 [TreatReturnedNullStringAs=Undefined] ByteString treatReturnedNullStringAsUn definedByteStringMethod();
520 [TreatReturnedNullStringAs=Null] ScalarValueString treatReturnedNullStringAs NullScalarValueStringMethod(); 520 [TreatReturnedNullStringAs=Null] ScalarValueString treatReturnedNullStringAs NullScalarValueStringMethod();
521 [TreatReturnedNullStringAs=Undefined] ScalarValueString treatReturnedNullStr ingAsUndefinedScalarValueStringMethod(); 521 [TreatReturnedNullStringAs=Undefined] ScalarValueString treatReturnedNullStr ingAsUndefinedScalarValueStringMethod();
522 [TypeChecking=Interface] void typeCheckingInterfaceVoidMethodTestInterfaceEm ptyArg(TestInterfaceEmpty testInterfaceEmptyArg); 522 [TypeChecking=Interface] void typeCheckingInterfaceVoidMethodTestInterfaceEm ptyArg(TestInterfaceEmpty testInterfaceEmptyArg);
523 [TypeChecking=Interface] void typeCheckingInterfaceVoidMethodTestInterfaceEm ptyVariadicArg(TestInterfaceEmpty... testInterfaceEmptyArg); 523 [TypeChecking=Interface] void typeCheckingInterfaceVoidMethodTestInterfaceEm ptyVariadicArg(TestInterfaceEmpty... testInterfaceEmptyArg);
524 // Avoid redundant type checking 524 // Avoid redundant type checking
525 [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithOptio nalArg(Node node1, optional Node node2); 525 [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithOptio nalArg(Node node1, optional Node node2);
526 [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithNulla bleArg(Node node1, Node? node2); 526 [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithNulla bleArg(Node node1, Node? node2);
527 [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithUndef inedArg(Node node1, [Default=Undefined] optional Node node2); 527 [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithUndef inedArg(Node node1, [Default=Undefined] optional Node node2);
528 // Avoid redundant type checking -- overload resolution
529 [TypeChecking=Interface] void typeCheckingMaybeRedundantForOverloadingMethod sA(Node a, long b);
530 [TypeChecking=Interface] void typeCheckingMaybeRedundantForOverloadingMethod sA(long a, long b);
531 [TypeChecking=Interface] void typeCheckingMaybeRedundantForOverloadingMethod sB(Node a);
532 [TypeChecking=Interface] void typeCheckingMaybeRedundantForOverloadingMethod sB(long a, long b);
533 [TypeChecking=Interface] void typeCheckingMaybeRedundantForOverloadingMethod sC(Node a);
534 [TypeChecking=Interface] void typeCheckingMaybeRedundantForOverloadingMethod sC(long a, optional long b);
535 [TypeChecking=Interface] void typeCheckingMaybeRedundantForOverloadingMethod sD(Node a, Node b);
536 [TypeChecking=Interface] void typeCheckingMaybeRedundantForOverloadingMethod sD(Node a, long b);
537 [TypeChecking=Interface] void typeCheckingMaybeRedundantForOverloadingMethod sE(Node a, Node b);
538 [TypeChecking=Interface] void typeCheckingMaybeRedundantForOverloadingMethod sE(Node a, optional long b);
539 [TypeChecking=Interface] void typeCheckingMaybeRedundantForOverloadingMethod sF(optional Node a);
540 [TypeChecking=Interface] void typeCheckingMaybeRedundantForOverloadingMethod sF(Document a, optional Node b);
541
528 [TypeChecking=Unrestricted] void typeCheckingUnrestrictedVoidMethodFloatArgD oubleArg(float floatArg, double doubleArg); 542 [TypeChecking=Unrestricted] void typeCheckingUnrestrictedVoidMethodFloatArgD oubleArg(float floatArg, double doubleArg);
529 [Unforgeable] void unforgeableVoidMethod(); 543 [Unforgeable] void unforgeableVoidMethod();
530 void voidMethodTestInterfaceGarbageCollectedSequenceArg(sequence<TestInterfa ceGarbageCollected> testInterfaceGarbageCollectedSequenceArg); 544 void voidMethodTestInterfaceGarbageCollectedSequenceArg(sequence<TestInterfa ceGarbageCollected> testInterfaceGarbageCollectedSequenceArg);
531 void voidMethodTestInterfaceGarbageCollectedArrayArg(TestInterfaceGarbageCol lected[] testInterfaceGarbageCollectedArrayArg); 545 void voidMethodTestInterfaceGarbageCollectedArrayArg(TestInterfaceGarbageCol lected[] testInterfaceGarbageCollectedArrayArg);
532 void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(sequence<TestI nterfaceWillBeGarbageCollected> testInterfaceWillBeGarbageCollectedSequenceArg); 546 void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(sequence<TestI nterfaceWillBeGarbageCollected> testInterfaceWillBeGarbageCollectedSequenceArg);
533 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); 547 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg);
534 548
535 // Extended attributes on referenced interfaces 549 // Extended attributes on referenced interfaces
536 // (not self; self-reference tests at interface themselves) 550 // (not self; self-reference tests at interface themselves)
537 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] 551 attribute TestInterface testInterfaceAttribute; // [ImplementedAs]
(...skipping 12 matching lines...) Expand all
550 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ; 564 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ;
551 [ImplementedInPrivateScript] attribute short shortAttribute; 565 [ImplementedInPrivateScript] attribute short shortAttribute;
552 [ImplementedInPrivateScript] attribute DOMString stringAttribute; 566 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
553 [ImplementedInPrivateScript] attribute Node nodeAttribute; 567 [ImplementedInPrivateScript] attribute Node nodeAttribute;
554 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2); 568 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2);
555 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly; 569 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly;
556 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2); 570 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2);
557 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly; 571 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly;
558 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; 572 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript;
559 }; 573 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698