Fix IR control flow after a throw statement.
authorErik Verbruggen <erik.verbruggen@me.com>
Mon, 4 Mar 2013 10:17:55 +0000 (11:17 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Mon, 4 Mar 2013 11:02:11 +0000 (12:02 +0100)
commitab23a26e671ad56b868cf2237400b22be1173470
tree53dd1e4b5245b1e1bb8a315bc04a50008c4389c2
parent3dc6f446d300f686d7324d99cc65b01852d399b2
Fix IR control flow after a throw statement.

A throw statement in a try block will now jump to the catch/finally, and
a throw statement outside will jump to the exit block. This follows what
happens during run-time, which fixes liveness issues with the
return-temp of calls to builtin_create_exception_handler.

Change-Id: I70f14f03f0431d3fc962c22984d4f486a1d81c7d
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/v4/qv4codegen.cpp