Closed Bug 608313 Opened 14 years ago Closed 14 years ago

TM: AccSet assertion failure in typed arrays

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dvander, Assigned: n.nethercote)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(2 files)

Attached file test case
I hit this while writing test cases for typed arrays in JM.

Assertion failure: LIR AccSet error (start of writer pipeline): 'ldc2i' AccSet is '.tdata'; base = (ldi9 = ldi.tarray/c private3[24]); disp = 0: 0 (../nanojit/LIR.cpp:3193)

Attached test fails with -m -j on tm-tip
Looks like it has something to do with using a constant index.
(In reply to comment #1)
> Looks like it has something to do with using a constant index.

Indeed it does.
Allow for constant indexes in typed arrays.  Also, strengthen the checking slightly by insisting that the TARRAY base pointer is loaded using LOAD_CONST.
Assignee: general → nnethercote
Status: NEW → ASSIGNED
Attachment #487269 - Flags: review?(dvander)
Attachment #487269 - Flags: review?(dvander) → review+
http://hg.mozilla.org/tracemonkey/rev/2098bd53381e
Whiteboard: fixed-in-tracemonkey
http://hg.mozilla.org/mozilla-central/rev/2098bd53381e
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: