Closed
Bug 495028
Opened 15 years ago
Closed 15 years ago
nanojit: add opcode checks to all LIR get/set methods
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: n.nethercote, Assigned: n.nethercote)
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file, 1 obsolete file)
6.82 KB,
patch
|
Details | Diff | Splinter Review |
Nanojit currently checks the opcode for many but not all of the LIns get/set. This patch adds checks for those methods that lack one. This makes things safer because calling an unchecked method on the wrong instruction kind will lead to total memory bogosity.
Attachment #379838 -
Flags: review?(edwsmith)
Comment 1•15 years ago
|
||
Comment on attachment 379838 [details] [diff] [review] patch adding opcode checks to LIns get/set methods looks nice. minor suggestion: #ifdef _DEBUG around isOp1() and isOp2(), if theyre only used by asserts. or, something table driven, if they're really used in releasable code.
Attachment #379838 -
Flags: review?(edwsmith) → review+
Assignee | ||
Comment 2•15 years ago
|
||
Updated patch which incorporates Ed's suggestion.
Attachment #379838 -
Attachment is obsolete: true
Assignee | ||
Updated•15 years ago
|
Whiteboard: checkin-needed
Comment 3•15 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/d11ca213ecdf
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•15 years ago
|
||
This was marked as RESOLVED FIXED and "checkin-needed" despite being checked into tracemonkey but not m-c. Changing it to "REOPENED" and "fixed-in-tracemonkey" because I think that's what it's supposed to be.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Whiteboard: checkin-needed → fixed-in-tracemonkey
Comment 5•15 years ago
|
||
I'm curious what happened to LIR_ldc here.
Comment 6•15 years ago
|
||
comment #5 was fixed by bug 497784. this bug's back to 'finished'.
Assignee | ||
Comment 7•15 years ago
|
||
Sayre, did this one ever make it into mozilla-central?
Comment 8•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/d11ca213ecdf
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
Comment 9•15 years ago
|
||
forgot to note it here.
You need to log in
before you can comment on or make changes to this bug.
Description
•