Support asm.js using intel MPX instructions

NEW
Unassigned

Status

()

Core
JavaScript Engine
4 years ago
a month ago

People

(Reporter: jrmuizel, Unassigned)

Tracking

(Depends on: 1 bug, Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [platform-rel-Intel])

(Reporter)

Description

4 years ago
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.

Comment 1

4 years ago
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)

Updated

3 years ago
Assignee: general → nobody
Whiteboard: [platform-rel-Intel]
platform-rel: --- → ?
platform-rel: ? → ---

Updated

6 months ago
Blocks: 504250

Updated

5 months ago
Depends on: 1333005
You need to log in before you can comment on or make changes to this bug.