DescriptionMIPS: [turbofan] Unify Math.floor / Math.ceil optimization.
Port 022ea7e05779f07b9327bcc2d4709fc80b2aeecb
Original commit message:
Provide an intrinsic %MathFloor / %_MathFloor that is used to optimize
both Math.ceil and Math.floor, and use the JS inlining mechanism to
inline Math.ceil into TurboFan code. Although we need to touch code
outside of TurboFan to make this work, this does not affect the way we
handle Math.ceil and/or Math.floor in CrankShaft, because for CrankShaft
the old-style builtin function id based inlining still kicks in first.
Once this solution is stabilized, we can use it for Math.floor as well.
And once that is settled, we can establish it as the unified way to
inline builtins, and get rid of the specialized builtin function id
based inlining at some point.
Note that "builtin" applies to basically every piece of internal
JavaScript/intrinsics based code, so this also applies to the yet to be
defined JavaScript based code stubs and handlers.
BUG=v8:3953
LOG=n
Committed: https://crrev.com/9c8bead966994e54ef23389f1c7bda5a500db18b
Cr-Commit-Position: refs/heads/master@{#27117}
Patch Set 1 #
Messages
Total messages: 11 (4 generated)
|