DescriptionIDL: Simplify [TypeChecking=Interface] code generation
Instead of doing a separate hasInstance() check before converting, simply
use toImplWithTypeCheck() to convert and check after if the result was
null, as it is if not hasInstance().
The primary benefit of this is that we no longer need to optimize away the
extra hasInstance() check in toImplWithTypeCheck() by using an "unsafe"
conversion in the [TypeChecking=Interface] case. This simplifies the code
generator without losing the optimization.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187476
Patch Set 1 #
Total comments: 4
Messages
Total messages: 6 (2 generated)
|