WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
179821
Update DFGSafeToExecute to be aware that ArrayPush is now a varargs node
https://bugs.webkit.org/show_bug.cgi?id=179821
Summary
Update DFGSafeToExecute to be aware that ArrayPush is now a varargs node
Robin Morisset
Reported
2017-11-17 09:00:26 PST
https://bugs.webkit.org/show_bug.cgi?id=175823
made the ArrayPush node a varargs kind of node. This occasionally causes an assertion failure when running with verboseCFA=1 because of a call to node->child1() in DFGSafeToExecute.h for ArrayPush. I propose a simple fix, using "graph.varArgsChild(node, 1)" instead.
Attachments
Patch
(1.63 KB, patch)
2017-11-17 09:04 PST
,
Robin Morisset
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews107 for mac-elcapitan-wk2
(2.92 MB, application/zip)
2017-11-17 10:09 PST
,
EWS Watchlist
no flags
Details
Patch
(1.60 KB, patch)
2017-11-27 02:56 PST
,
Robin Morisset
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Robin Morisset
Comment 1
2017-11-17 09:04:55 PST
Created
attachment 327179
[details]
Patch
Mark Lam
Comment 2
2017-11-17 09:47:33 PST
Comment on
attachment 327179
[details]
Patch r=me
EWS Watchlist
Comment 3
2017-11-17 10:09:53 PST
Comment on
attachment 327179
[details]
Patch
Attachment 327179
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/5276250
New failing tests: http/tests/appcache/offline-access.html
EWS Watchlist
Comment 4
2017-11-17 10:09:54 PST
Created
attachment 327192
[details]
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Robin Morisset
Comment 5
2017-11-17 10:22:54 PST
This failure looks unlikely to be related to my patch. I will try it again in a few hours.
Yusuke Suzuki
Comment 6
2017-11-17 16:58:07 PST
Oops, nice catch.
Saam Barati
Comment 7
2017-11-26 17:28:15 PST
Comment on
attachment 327179
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=327179&action=review
> Source/JavaScriptCore/dfg/DFGSafeToExecute.h:474 > + case ArrayPush: > + return node->arrayMode().alreadyChecked(graph, node, state.forNode(graph.varArgChild(node, 1)));
varArgChild(node, 1) is not equivalent to child1(). varArgChild(node, 0) is equivalent to child1() (ah, DFG naming). You should make sure this is doing what you expect.
Saam Barati
Comment 8
2017-11-26 17:30:42 PST
Comment on
attachment 327179
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=327179&action=review
>> Source/JavaScriptCore/dfg/DFGSafeToExecute.h:474 >> + return node->arrayMode().alreadyChecked(graph, node, state.forNode(graph.varArgChild(node, 1))); > > varArgChild(node, 1) is not equivalent to child1(). varArgChild(node, 0) is equivalent to child1() (ah, DFG naming). > You should make sure this is doing what you expect.
Ignore me. This looks correct since the second varargs child is the array! Sorry for the noise.
Robin Morisset
Comment 9
2017-11-27 02:56:48 PST
Created
attachment 327626
[details]
Patch
Robin Morisset
Comment 10
2017-11-27 02:57:56 PST
r="Saam Barati" This is exactly the same patch as previously, just resubmitted since there has been a (probably) spurious failure last time.
EWS Watchlist
Comment 11
2017-11-27 02:58:19 PST
Comment on
attachment 327626
[details]
Patch Rejecting
attachment 327626
[details]
from review queue.
rmorisset@apple.com
does not have reviewer permissions according to
https://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json
. - If you do not have reviewer rights please read
http://webkit.org/coding/contributing.html
for instructions on how to use bugzilla flags. - If you have reviewer rights please correct the error in Tools/Scripts/webkitpy/common/config/contributors.json by adding yourself to the file (no review needed). The commit-queue restarts itself every 2 hours. After restart the commit-queue will correctly respect your reviewer rights.
Robin Morisset
Comment 12
2017-11-27 03:18:18 PST
It looks like the resubmitting made the system forget about the reviews, and it won't let me mark it as reviewed myself. Can someone do it for me, please?
Saam Barati
Comment 13
2017-11-27 07:52:18 PST
(In reply to Robin Morisset from
comment #12
)
> It looks like the resubmitting made the system forget about the reviews, and > it won't let me mark it as reviewed myself. Can someone do it for me, please?
What you can do in this situation is fill out the Reviewed by in the changelog yourself and just cq+
WebKit Commit Bot
Comment 14
2017-11-27 08:22:58 PST
Comment on
attachment 327626
[details]
Patch Clearing flags on attachment: 327626 Committed
r225170
: <
https://trac.webkit.org/changeset/225170
>
WebKit Commit Bot
Comment 15
2017-11-27 08:22:59 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 16
2017-11-27 08:23:27 PST
<
rdar://problem/35698191
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug