IDL: 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.

Review URL: https://codereview.chromium.org/808373002

git-svn-id: svn://svn.chromium.org/blink/trunk@187476 bbb929c8-8fbe-4397-9dbb-9b2b20218538
9 files changed
tree: e714a2a4136e0f97429a56483cb690dac4072649
  1. third_party/