Closed Bug 1270965 Opened 10 years ago Closed 10 years ago

Baldr: set min-heap-length

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: luke, Unassigned)

Details

Attachments

(1 file)

This allows the Ion backend to remove bounds checks on constant accesses, so technically an accidental regression from asm.js (which does bumpMinHeapLength).
Attachment #8749825 - Attachment is patch: true
Attachment #8749825 - Flags: review?(bbouvier)
Comment on attachment 8749825 [details] [diff] [review] set-min-heap-length-in-wasm Review of attachment 8749825 [details] [diff] [review]: ----------------------------------------------------------------- Nice! I thought that we could make minHeapLength argument mandatory in AsmJS too: we already keep track of minHeapLength in the module. By doing this, I think we could have some state de-duplication (minHeapLength is maintained by AsmJS, and passed to mg in ModuleValidator::finish), so I thought we could even remove ModuleGenerator::bumpMinHeapLength. But that would essentially remove all the range analysis optimisations we do on loads/stores *during* function compilations, so it is a Bad Idea (c), nevermind me.
Attachment #8749825 - Flags: review?(bbouvier) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: