Closed Bug 1657100 Opened 4 years ago Closed 4 years ago

Optimise Intrinsic(PossiblyWrapped)ArrayBufferByteLength, IntrinsicPossiblyWrappedTypedArrayLength, IsPossiblyWrappedRegExpObject in CacheIR

Categories

(Core :: JavaScript Engine: JIT, task, P1)

task

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: anba, Assigned: anba)

References

Details

Attachments

(5 files)

Similar to Ion the "PossiblyWrapped" intrinsics only inline the function when the object isn't actually a wrapper.

Similar to Ion only optimise the case when the object isn't actually a wrapper.

We don't have a separate MArrayBufferByteLength MIR node, so use the same
approach as used in IonBuilder and use a fixed slot load to optimise the
call.

Similar to part 1 only optimises when called without a wrapper.

Depends on D85851

The first intrinsics optimised in CacheIR were still using emitNativeCalleeGuard.
Later one we've removed this guard.

Depends on D85852

Use assertions for consistency with other intrinsics which are already asserting
that the correct number of arguments with the correct types are used.

Depends on D85853

Similar to part 1 and part 2 only optimises when no wrappers are used.

Depends on D85854

Pushed by ncsoregi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3e41ebfe8ad5 Part 1: Optimise Intrinsic(PossiblyWrapped)ArrayBufferByteLength in CacheIR. r=jandem https://hg.mozilla.org/integration/autoland/rev/73975fd0f089 Part 2: Optimise PossiblyWrappedTypedArrayLength in CacheIR. r=jandem https://hg.mozilla.org/integration/autoland/rev/3d3e9624de4a Part 3: Remove emitNativeCalleeGuard for intrinsics. r=jandem https://hg.mozilla.org/integration/autoland/rev/ac2ca7f29212 Part 4: Use assertions to check intrinsics are called with the correct arguments. r=jandem https://hg.mozilla.org/integration/autoland/rev/a4dcc976be8e Part 5: Optimise IsPossiblyWrappedRegExpObject in CacheIR. r=jandem
Severity: -- → N/A
Priority: -- → P1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: