Closed Bug 1783622 Opened 2 years ago Closed 2 years ago

Recover all MMathFunctions

Categories

(Core :: JavaScript Engine: JIT, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: anba, Assigned: anba)

References

Details

Attachments

(7 files)

  • Add recover support for the remaining MMathFunction types.
  • And then perform some clean-ups in "jsmath.cpp" and "Recover.cpp".

Use the existing math_Func_impl functions instead of creating another set of
duplicates. This also makes it clearer that these functions can't fail.

These were only used during recovering. If we take the same approach as in
part 1 and directly call the math_Func_impl functions, we can remove the
Handle overloads.

Depends on D153925

Copy-pasta has resulted in lots of unnecessary rooting.

Depends on D153926

These functions are only used in "jsmath.cpp", so we should declare them as static.

Depends on D153927

The second version is no longer needed after part 2.

Depends on D153928

This matches how we detect Math built-ins in CacheIR and is needed for the
next part of this patch series.

Depends on D153929

We can now declare these functions as static, too.

Depends on D153930

Pushed by andre.bargull@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/1178346c9087
Part 1: Recover all MMathFunction functions. r=iain
https://hg.mozilla.org/integration/autoland/rev/870ff83154d8
Part 2: Remove Handle versions of Math functions. r=iain
https://hg.mozilla.org/integration/autoland/rev/1c479d82b90b
Part 3: Avoid unnecessary rooting during recovering. r=iain
https://hg.mozilla.org/integration/autoland/rev/9d924fbed36d
Part 4: Make math functions file static where possible. r=iain
https://hg.mozilla.org/integration/autoland/rev/cb9dcd48333e
Part 5: Merge both math_function functions. r=iain
https://hg.mozilla.org/integration/autoland/rev/263b4752d739
Part 6: Check asm.js builtin functions using InlinableNative. r=iain
https://hg.mozilla.org/integration/autoland/rev/25490ca6fc81
Part 7: Make more math functions file static. r=iain
Regressions: 1790647
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: