RESOLVED FIXED 158288
Teach bytecode liveness about the debugger
https://bugs.webkit.org/show_bug.cgi?id=158288
Summary Teach bytecode liveness about the debugger
Saam Barati
Reported 2016-06-01 17:24:32 PDT
Specifically, we should treat the scope as always live. There is currently a bug where we tier up to the FTL, then throw an exception using 'throw'. This causes us to OSR exit to baseline. The OSR exit believes the scope is dead. But it's not. When debugging is enabled, it's always fair game to read from the scope register.
Attachments
patch (5.52 KB, patch)
2016-06-01 19:26 PDT, Saam Barati
fpizlo: review+
buildbot: commit-queue-
Archive of layout-test-results from ews103 for mac-yosemite (813.38 KB, application/zip)
2016-06-01 20:14 PDT, Build Bot
no flags
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (1005.28 KB, application/zip)
2016-06-01 20:18 PDT, Build Bot
no flags
Archive of layout-test-results from ews113 for mac-yosemite (1.49 MB, application/zip)
2016-06-01 20:25 PDT, Build Bot
no flags
patch (4.06 KB, patch)
2016-06-02 12:49 PDT, Saam Barati
no flags
Saam Barati
Comment 1 2016-06-01 17:50:49 PDT
This program crashes when run w/ debugging opcodes and shadow chicken: ``` "use strict"; function foo(b) { if (b) throw "foo"; return b; } noInline(foo); for (let i = 0; i < 10000; i++) foo(false); foo(true); ```
Saam Barati
Comment 2 2016-06-01 19:26:27 PDT
Build Bot
Comment 3 2016-06-01 20:13:56 PDT
Comment on attachment 280295 [details] patch Attachment 280295 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/1420927 New failing tests: inspector/debugger/call-frame-this-nonstrict.html
Build Bot
Comment 4 2016-06-01 20:14:01 PDT
Created attachment 280298 [details] Archive of layout-test-results from ews103 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 5 2016-06-01 20:17:58 PDT
Comment on attachment 280295 [details] patch Attachment 280295 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/1420941 New failing tests: inspector/debugger/call-frame-this-nonstrict.html
Build Bot
Comment 6 2016-06-01 20:18:05 PDT
Created attachment 280300 [details] Archive of layout-test-results from ews105 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 7 2016-06-01 20:24:57 PDT
Comment on attachment 280295 [details] patch Attachment 280295 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/1420943 New failing tests: inspector/debugger/call-frame-this-nonstrict.html
Build Bot
Comment 8 2016-06-01 20:25:01 PDT
Created attachment 280301 [details] Archive of layout-test-results from ews113 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-yosemite Platform: Mac OS X 10.10.5
Blaze Burg
Comment 9 2016-06-01 20:30:02 PDT
Saam Barati
Comment 10 2016-06-02 12:49:09 PDT
WebKit Commit Bot
Comment 11 2016-06-02 15:17:06 PDT
Comment on attachment 280351 [details] patch Clearing flags on attachment: 280351 Committed r201622: <http://trac.webkit.org/changeset/201622>
WebKit Commit Bot
Comment 12 2016-06-02 15:17:12 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.