Closed Bug 500053 Opened 16 years ago Closed 16 years ago

TM: encapsulate LIns construction into LIns class

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gal, Assigned: gal)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

LirBufWriter no longer needs to be friends with LIns, and we can assembly Lir manually without LirBufWriter (which is what I am really after).
Attached patch patchSplinter Review
Assignee: general → gal
Comment on attachment 384739 [details] [diff] [review] patch >- l->initOpcodeAndClearResv(LIR_skip); >- l->setOprnd1((LInsp)prevLInsAddr); >+ l->setIns1(LIR_skip, (LInsp)prevLInsAddr); Do you need to also clear the resv there?
Whiteboard: fixed-in-tracemonkey
This will completely screw my variable-width LIR patch (bug 492866). Can you explain more the benefit of unfriending LIns and LirBufWriter?
This change will have broken the Sparc back-end.
Status: NEW → ASSIGNED
#4: I am not opposed to friending the two classes, I just removed it since its no longer necessary. We can add it back. #5: can you explain?
(In reply to comment #6) > #4: I am not opposed to friending the two classes, I just removed it since its > no longer necessary. We can add it back. In the end I worked around it for variable-width LIR. I'll be posting an updated patch to bug 492866 soon. > #5: can you explain? Sorry, I should have given more detail: there's an i->clearResv() call that should be changed to i->resv()->clear(). So just a small thing.
#4: we should land the patch soon. the constant re-basing must be unpleasant #5: ARM too I guess. Want me to patch this or did you already do it?
(In reply to comment #8) > > #5: ARM too I guess. Want me to patch this or did you already do it? There's a call to clearResv() in NativeArm.cpp but it's commented out. Might be worth patching anyway, I'm happy for you to do it.
Ok, I will file a follow-up bug and fix sparc and ARM.
Depends on: 501072
Status: ASSIGNED → RESOLVED
Closed: 16 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: