[webkit-reviews] review granted: [Bug 68318] DFG JIT should inline Math.min, Math.max, and Math.sqrt : [Attachment 107780] the patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 18 09:07:47 PDT 2011

Gavin Barraclough <barraclough at apple.com> has granted Filip Pizlo
<fpizlo at apple.com>'s request for review:
Bug 68318: DFG JIT should inline Math.min, Math.max, and Math.sqrt

Attachment 107780: the patch

------- Additional Comments from Gavin Barraclough <barraclough at apple.com>
This looks really great.  It's a shame that the intrinsics are in addition to
the "thunk generators".  The old thunks are really for intrinsics.  It would
probably be cleaner to remove the ThunkGenerators from the lookup table, and
just have an enum value.  When native function objects are constructed the
thunk creation could just switch on the intrinsic enum value to select a
generator, where one exists (and maybe over time these may be deprecated, as
hot cases are inlined in the DFG JIT).

More information about the webkit-reviews mailing list