Bug 194399 - Fix more doesGC() for CheckTraps, GetMapBucket, and Switch nodes.
Summary: Fix more doesGC() for CheckTraps, GetMapBucket, and Switch nodes.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Lam
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-02-07 10:33 PST by Mark Lam
Modified: 2019-02-12 13:17 PST (History)
9 users (show)

See Also:


Attachments
proposed patch. (6.92 KB, patch)
2019-02-07 11:09 PST, Mark Lam
ysuzuki: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lam 2019-02-07 10:33:55 PST
CheckTraps, GetMapBucket, and Switch nodes can GC.
Comment 1 Radar WebKit Bug Importer 2019-02-07 11:02:26 PST
<rdar://problem/47889777>
Comment 2 Mark Lam 2019-02-07 11:09:15 PST
Created attachment 361420 [details]
proposed patch.
Comment 3 Yusuke Suzuki 2019-02-07 11:11:07 PST
Comment on attachment 361420 [details]
proposed patch.

r=me
Comment 4 Mark Lam 2019-02-07 12:20:52 PST
Thanks for the review.  Landed in r241140: <http://trac.webkit.org/r241140>.
Comment 5 Michael Catanzaro 2019-02-12 13:17:30 PST
Note GCC doesn't like this:

[1181/3497] Building CXX object Source...sources/UnifiedSource-bfc896e1-6.cpp.o
In file included from DerivedSources/JavaScriptCore/unified-sources/UnifiedSource-bfc896e1-6.cpp:3:
../../Source/JavaScriptCore/dfg/DFGDoesGC.cpp: In function ‘bool JSC::DFG::doesGC(JSC::DFG::Graph&, JSC::DFG::Node*)’:
../../Source/JavaScriptCore/dfg/DFGDoesGC.cpp:464:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
         switch (node->switchData()->kind) {
         ^~~~~~
../../Source/JavaScriptCore/dfg/DFGDoesGC.cpp:479:5: note: here
     case LastNodeType:
     ^~~~

I'll also remove the two unreachable returns while I'm fixing this.
Comment 6 Michael Catanzaro 2019-02-12 13:17:51 PST
Committed r241314: <https://trac.webkit.org/changeset/241314>