RESOLVED FIXED 162764
B3::moveConstants should be able to edit code to minimize the number of constants
https://bugs.webkit.org/show_bug.cgi?id=162764
Summary B3::moveConstants should be able to edit code to minimize the number of const...
Filip Pizlo
Reported 2016-09-29 18:48:21 PDT
Patch forthcoming.
Attachments
it works on simple things (6.69 KB, patch)
2016-09-29 18:58 PDT, Filip Pizlo
no flags
the patch (14.38 KB, patch)
2016-09-30 11:29 PDT, Filip Pizlo
no flags
the patch (15.18 KB, patch)
2016-09-30 11:39 PDT, Filip Pizlo
ggaren: review-
buildbot: commit-queue-
Archive of layout-test-results from ews117 for mac-yosemite (2.60 MB, application/zip)
2016-09-30 12:48 PDT, Build Bot
no flags
the patch (15.19 KB, patch)
2016-09-30 13:14 PDT, Filip Pizlo
saam: review+
Filip Pizlo
Comment 1 2016-09-29 18:58:49 PDT
Created attachment 290283 [details] it works on simple things
Filip Pizlo
Comment 2 2016-09-30 11:29:58 PDT
Created attachment 290355 [details] the patch
Filip Pizlo
Comment 3 2016-09-30 11:38:28 PDT
Comment on attachment 290355 [details] the patch View in context: https://bugs.webkit.org/attachment.cgi?id=290355&action=review > Source/JavaScriptCore/b3/air/AirFixObviousSpills.cpp:194 > - > + I'll revert.
Filip Pizlo
Comment 4 2016-09-30 11:39:52 PDT
Created attachment 290358 [details] the patch
Build Bot
Comment 5 2016-09-30 12:48:06 PDT
Comment on attachment 290358 [details] the patch Attachment 290358 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2176850 New failing tests: js/slow-stress/call-spread.html imported/w3c/canvas/2d.text.draw.fill.maxWidth.negative.html imported/w3c/canvas/2d.gradient.interpolate.zerosize.fillText.html fast/forms/input-maxlength.html fast/workers/worker-cloneport.html js/slow-stress/nested-function-parsing-random.html js/slow-stress/new-spread.html js/dom/stack-trace.html imported/w3c/canvas/2d.gradient.interpolate.zerosize.strokeText.html inspector/debugger/call-frame-this-strict.html js/dfg-inline-function-dot-caller.html inspector/debugger/call-frame-this-nonstrict.html js/slow-stress/array-prototype-filter.html inspector/debugger/breakpoint-columns.html fast/forms/input-implicit-length-limit.html webgl/1.0.2/conformance/uniforms/out-of-bounds-uniform-array-access.html
Build Bot
Comment 6 2016-09-30 12:48:11 PDT
Created attachment 290366 [details] Archive of layout-test-results from ews117 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-yosemite Platform: Mac OS X 10.10.5
Geoffrey Garen
Comment 7 2016-09-30 12:53:18 PDT
Comment on attachment 290358 [details] the patch View in context: https://bugs.webkit.org/attachment.cgi?id=290358&action=review Looks good to me but the EWS result indicates a bug. > Source/JavaScriptCore/b3/B3MoveConstants.cpp:146 > + if (criteria(value)) { FWIW, I like to call arguments like this "predicate". One downside to criteria is that it presupposes a plural. One upside to predicate is that it matches the STL.
Filip Pizlo
Comment 8 2016-09-30 13:14:19 PDT
(In reply to comment #7) > Comment on attachment 290358 [details] > the patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=290358&action=review > > Looks good to me but the EWS result indicates a bug. > > > Source/JavaScriptCore/b3/B3MoveConstants.cpp:146 > > + if (criteria(value)) { > > FWIW, I like to call arguments like this "predicate". > > One downside to criteria is that it presupposes a plural. > > One upside to predicate is that it matches the STL. I changed it to predicate.
Filip Pizlo
Comment 9 2016-09-30 13:14:49 PDT
Created attachment 290373 [details] the patch
Saam Barati
Comment 10 2016-09-30 14:34:34 PDT
Comment on attachment 290373 [details] the patch View in context: https://bugs.webkit.org/attachment.cgi?id=290373&action=review > Source/JavaScriptCore/ChangeLog:20 > + This change makes moveConstants() pick the most dominant constant that works for an value. In s/an/a > Source/JavaScriptCore/b3/B3MoveConstants.cpp:193 > + // @q + c + @p - @q nifty
Filip Pizlo
Comment 11 2016-09-30 14:40:11 PDT
I'll wait for the bots, since they found things last time.
Filip Pizlo
Comment 12 2016-09-30 15:32:18 PDT
Note You need to log in before you can comment on or make changes to this bug.