Improve chances for inlining of ExceptionState::throwIfNeeded()

Since throwIfNeeded() is called quite often in generated bindings code
(and should generally return false), attempt to make is smaller by moving
the exception setup/throwing to a new method, and leave throwIfNeeded()
as a predicate guarding a call to that method.
This seems to get rid of a large number of direct calls to throwIfNeeded().
It also shrinks the binary by a non-negligible amount (~15k).
(Linux, x86-64, gcc-4.8.2)

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

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