Open Bug 897470 Opened 11 years ago Updated 2 years ago

Support asm.js using intel MPX instructions

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: jrmuizel, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [platform-rel-Intel])

From my quick read of the specification (http://software.intel.com/sites/default/files/319433-015.pdf), these instructions seem reasonably well suited to the bounds checking needs of asm.js. They allow specifying a lower and upper bound such that all memory accesses outside of that bound will throw a bound range exception.

Emulation of these instructions is supported with the Intel Software Development Emulator.
This looks interesting.  On a quick first reading, I'm a little disappointed that MPX seems to require explicit bounds-check instructions instead of adding a prefix on load/store instructions (which is what I hoped).  Since we don't require any explicit bounds checking on x64, I expect this would only benefit x86.  By the time these instructions roll out in new processors, though, I wonder if we wouldn't be shipping FF 64-bit, though ;)
Assignee: general → nobody
Whiteboard: [platform-rel-Intel]
platform-rel: --- → ?
platform-rel: ? → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.