Closed Bug 505502 Opened 16 years ago Closed 16 years ago

merge tracemonkey Assembler changes into tamarin-redux

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: edwsmith, Assigned: edwsmith)

References

Details

Attachments

(1 file, 3 obsolete files)

mostly minor changes, but introduction of LogControl cleans up verbose-output code.
Blocks: 503556
Assignee: nobody → edwsmith
Attachment #390203 - Flags: review?(rreitmai)
Moving these to more specific locations shortens their lifetime and simplifies code flow in Assembler. (not to mention lining up more closely with tracemonkey).
Attachment #390207 - Flags: review?(rreitmai)
The material part of this patch reduces diffs in assemble(), and cleans up the code in endAssembly(). We check error() first thing, and if there is an error we simply free code and get out. All the rest of the method doesn't need to check error(). Moved Assembler::findVictim() from RegAlloc.cpp to Assembler.cpp (no change). rename rdr to prev in assemble() Added the fleshed out assert for valid LIR-ending instructions at the top of gen() from tracemonkey, with additions for tamarin. added cases for LIR_ldcs, LIR_div, LIR_mod fixed some whitespace.
Attachment #390257 - Flags: review?(rreitmai)
Attachment #390203 - Flags: review?(rreitmai) → review+
Attachment #390207 - Flags: review?(rreitmai) → review+
Attachment #390257 - Flags: review?(rreitmai) → review+
Comment on attachment 390203 [details] [diff] [review] LabelStateMap needs to free elements in its destructor http://hg.mozilla.org/tamarin-redux/rev/ef7bc72cf5a9
Attachment #390203 - Attachment is obsolete: true
Comment on attachment 390207 [details] [diff] [review] labels, patches, and pending_lives dont need to be Assembler members http://hg.mozilla.org/tamarin-redux/rev/e0ab9af69c52
Attachment #390207 - Attachment is obsolete: true
Attachment #390257 - Attachment is obsolete: true
Removes Assembler._verbose, adds LogControl*, do all logging that way. most changes are just copied over from tracemonkey directly. in Assembler.assemble(), add ReverseLister to enable viewing of LIR after each phase of the LirReader pipeline.
Attachment #390454 - Flags: review?(rreitmai)
Comment on attachment 390454 [details] [diff] [review] change over to LogControl for verbose printing i love this string "FIXME-whats-this?" And if we could only support these log levels via the command-line that would be great. Might be worth opening a bug on this and propagating the log concept out to the rest of the code.
Attachment #390454 - Flags: review?(rreitmai) → review+
Blocks: 506298
(In reply to comment #8) > And if we could only support these log levels via the command-line that would > be great. bug 506298
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: