Closed Bug 546408 Opened 16 years ago Closed 15 years ago

CodegenLIR code cleanup needed for improving verifier semantics

Categories

(Tamarin Graveyard :: Baseline JIT (CodegenLIR), defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED
flash10.1

People

(Reporter: edwsmith, Assigned: edwsmith)

References

Details

(Whiteboard: verifier-cleanup)

Attachments

(1 file, 8 obsolete files)

tracker for cleanup patches needed for bug 413522 (upgrade verifier semantics)
Blocks: 413522
Assignee: nobody → edwsmith
Attachment #427125 - Flags: review?(stejohns)
Attachment #427125 - Attachment is obsolete: true
Attachment #427127 - Flags: review?(stejohns)
Attachment #427125 - Flags: review?(stejohns)
Attachment #427127 - Flags: review?(stejohns)
Comment on attachment 427126 [details] [diff] [review] introduce haveDebugger flag, to encapsulate how we test for debugger presence. allows some ifdef removal. Where does haveDebugger get set?
ah, the perils of extracting small patches from a larger one. This version initializes haveDebugger.
Attachment #427154 - Flags: review?(stejohns)
Attachment #427126 - Attachment is obsolete: true
Comment on attachment 427154 [details] [diff] [review] (v2) introduce haveDebugger flag, to encapsulate how we test for debugger presence. allows some ifdef removal. DEBUGGER_ONLY indentation a little wonky, might recheck before landing
Attachment #427154 - Flags: review?(stejohns) → review+
ValidateWriter or Reader should filter illegal opcode usage, the deadvars optimizer isn't the place for it. local variable vars is redundant and hides CodegenLIR::vars. lirbuf is dead once vars is undeclared.
* factored verifier.showState() so we can use it to print state without printing an opcode along with it. * combined & simplified CodegenLIR::formatOpcode * fix typo in tagprof macro invocation in initprop_late(): s/ojb/obj/ * print final LIR instructions after deadvars() pass, instead of the input. (we could print both, but i've never needed to look at the input separate from the mixed verifier/lir output). * test LC_Liveness before printing live analysis output. * show merged at verifier block beginnings instead of before the merge, since the merge also explicitly prints the before states and after states. * fix comments
Comment on attachment 427182 [details] [diff] [review] verbose changes to help diagnose verify output, and cleanup Looking for general feedback, this patch might grow before its ready to land.
Attachment #427182 - Flags: review?(rreitmai)
Comment on attachment 427182 [details] [diff] [review] verbose changes to help diagnose verify output, and cleanup +'d but 2 changes seemed to be out of place for this patch: (1) deadvars() call (2) coder-> addition
Attachment #427182 - Flags: review?(rreitmai) → review+
Flags: flashplayer-qrb+
Priority: -- → P2
Target Milestone: --- → flash10.1
Comment on attachment 427182 [details] [diff] [review] verbose changes to help diagnose verify output, and cleanup Updated patch to condense the verifier output, and moved to new bug 547240
Attachment #427182 - Attachment is obsolete: true
Whiteboard: verifier-cleanup
Status: NEW → ASSIGNED
Comment on attachment 427131 [details] [diff] [review] Rename a few helpers for Number from 'q' -> 'f', properly name writeFixExceptionsAndLabels The q->f renames are leftovers from nanojit supporting floats. the rename of fixExceptionsAndLabels to writeFixExceptionsAndLabels was an oversight from when the CodeWriter interface was added. The implementation in CodegenLIR is an empty method, so the rename is benign.
Attachment #427131 - Flags: review?(stejohns)
Comment on attachment 427154 [details] [diff] [review] (v2) introduce haveDebugger flag, to encapsulate how we test for debugger presence. allows some ifdef removal. pushed http://hg.mozilla.org/tamarin-redux/rev/79aa1193fa95
Attachment #427154 - Attachment is obsolete: true
Attachment #427131 - Flags: review?(stejohns) → review+
Comment on attachment 427131 [details] [diff] [review] Rename a few helpers for Number from 'q' -> 'f', properly name writeFixExceptionsAndLabels pushed http://hg.mozilla.org/tamarin-redux/rev/8cfb0efb95b3
Attachment #427131 - Attachment is obsolete: true
Removing local variables that hide global ones with the same name.
Attachment #427163 - Attachment is obsolete: true
Attachment #428707 - Flags: review?(rreitmai)
Attachment #428707 - Flags: review?(rreitmai) → review+
Comment on attachment 428707 [details] [diff] [review] (v2) removing some not very useful code in deadvars() passes pushed http://hg.mozilla.org/tamarin-redux/rev/8801408fa933
Attachment #428707 - Attachment is obsolete: true
Attachment #431157 - Flags: review?(rreitmai) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
QA Contact: nanojit → dschaffe
QA Contact: dschaffe → brbaker
Edwin are there specific testcases that should be written to verify this bug or is running the entire acceptance suite and ATS sufficient?
Flags: in-testsuite?
code cleanup only, no tests needed.
Status: RESOLVED → VERIFIED
Flags: in-testsuite? → in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: