RESOLVED FIXED 127018
FTL should be cool with runtime functions throwing exceptions
https://bugs.webkit.org/show_bug.cgi?id=127018
Summary FTL should be cool with runtime functions throwing exceptions
Filip Pizlo
Reported 2014-01-14 16:30:24 PST
This requires an exception throw off-ramp from the FTL. It's pretty easy.
Attachments
the patch (11.12 KB, patch)
2014-01-14 16:32 PST, Filip Pizlo
ggaren: review+
Filip Pizlo
Comment 1 2014-01-14 16:32:30 PST
Created attachment 221213 [details] the patch
Geoffrey Garen
Comment 2 2014-01-14 17:19:12 PST
Comment on attachment 221213 [details] the patch r=me Would be nice to have a test case for the rare case where an FTL function does not handle any exceptions.
Filip Pizlo
Comment 3 2014-01-14 18:24:49 PST
(In reply to comment #2) > (From update of attachment 221213 [details]) > r=me > > Would be nice to have a test case for the rare case where an FTL function does not handle any exceptions. This gives me the excuse to write this test: function foo() { } noInline(foo); for (var i = 0; i < 100000; ++i) { var result = foo(); if (result !== void 0) throw "You broke JSC so hard that even the empty function doesn't work: " + result; }
Filip Pizlo
Comment 4 2014-01-14 19:16:43 PST
Geoffrey Garen
Comment 5 2014-01-15 14:11:26 PST
Nice!
Note You need to log in before you can comment on or make changes to this bug.