RESOLVED FIXED201521
Refactor the Gigacage code to require less pointer casting.
https://bugs.webkit.org/show_bug.cgi?id=201521
Summary Refactor the Gigacage code to require less pointer casting.
Mark Lam
Reported 2019-09-05 15:16:41 PDT
Also clean up the code a bit.
Attachments
proposed patch. (22.08 KB, patch)
2019-09-05 15:29 PDT, Mark Lam
saam: review+
patch for landing. (21.77 KB, patch)
2019-09-05 16:14 PDT, Mark Lam
no flags
Mark Lam
Comment 1 2019-09-05 15:29:47 PDT
Created attachment 378129 [details] proposed patch.
Radar WebKit Bug Importer
Comment 2 2019-09-05 15:30:33 PDT
Radar WebKit Bug Importer
Comment 3 2019-09-05 15:30:41 PDT
Saam Barati
Comment 4 2019-09-05 15:53:32 PDT
Comment on attachment 378129 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=378129&action=review r=me > Source/bmalloc/ChangeLog:17 > + 5. Change LLInt's loadCagedJSValue() to skip the caging if Gigacage is not enabled > + in the build. This allows us to remove the unneeded stubs in WTF Gigacage.h. nit: some part of this belongs in the JSC changelog. > Source/bmalloc/bmalloc/Gigacage.h:50 > + NumberOfKinds // This should always be at the end of this list. this comment is implied by the name of the enum value > Source/bmalloc/bmalloc/Gigacage.h:61 > + break; // Invalid: go to BCRASH(); no need for this comment
Mark Lam
Comment 5 2019-09-05 16:08:48 PDT
Thanks for the review. (In reply to Saam Barati from comment #4) > > Source/bmalloc/ChangeLog:17 > > + 5. Change LLInt's loadCagedJSValue() to skip the caging if Gigacage is not enabled > > + in the build. This allows us to remove the unneeded stubs in WTF Gigacage.h. > > nit: some part of this belongs in the JSC changelog. Fixed. > > > Source/bmalloc/bmalloc/Gigacage.h:50 > > + NumberOfKinds // This should always be at the end of this list. > > this comment is implied by the name of the enum value Fixed. > > Source/bmalloc/bmalloc/Gigacage.h:61 > > + break; // Invalid: go to BCRASH(); > > no need for this comment Fixed.
Mark Lam
Comment 6 2019-09-05 16:14:20 PDT
Created attachment 378133 [details] patch for landing.
Mark Lam
Comment 7 2019-09-05 16:28:23 PDT
The jsc EWS is red purportedly due to a build failure. However, that failure can only manifest if the bot is picking up an outdated Gigacage.h. Obviously, the JSC lib built correctly for all the other bots. So the jsc EWS failure is bogus.
Mark Lam
Comment 8 2019-09-05 17:04:18 PDT
Note You need to log in before you can comment on or make changes to this bug.