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

Unified Diff: Source/bindings/scripts/v8_interface.py

Issue 299203002: Support per-overload [RuntimeEnabled] extended attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move comment Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/scripts/v8_interface.py
diff --git a/Source/bindings/scripts/v8_interface.py b/Source/bindings/scripts/v8_interface.py
index d8ff7f3c3edd960b42cedadfa772eaa8d009038a..610fbc5c04a6ed70a7315cb159a1f22fff83a4c8 100644
--- a/Source/bindings/scripts/v8_interface.py
+++ b/Source/bindings/scripts/v8_interface.py
@@ -753,7 +753,9 @@ def resolution_tests_methods(effective_overloads):
pass
# (Perform automatic type conversion, in order. If any of these match,
- # that’s the end, and no other tests are needed.)
+ # that’s the end, and no other tests are needed.) To keep this code simple,
+ # we rely on the C++ compiler's dead code elimination to deal with the
+ # redundancy if both cases below trigger.
# 11. Otherwise: if there is an entry in S that has one of the following
# types at position i of its type list,
@@ -763,7 +765,6 @@ def resolution_tests_methods(effective_overloads):
method = next(method for idl_type, method in idl_types_methods
if idl_type.name == 'String' or idl_type.is_enum)
yield 'true', method
- return
except StopIteration:
pass
@@ -774,7 +775,6 @@ def resolution_tests_methods(effective_overloads):
method = next(method for idl_type, method in idl_types_methods
if idl_type.is_numeric_type)
yield 'true', method
- return
except StopIteration:
pass

Powered by Google App Engine
This is Rietveld 408576698