Closed
Bug 500053
Opened 16 years ago
Closed 16 years ago
TM: encapsulate LIns construction into LIns class
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: gal, Assigned: gal)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
15.67 KB,
patch
|
dvander
:
review+
|
Details | Diff | Splinter Review |
LirBufWriter no longer needs to be friends with LIns, and we can assembly Lir manually without LirBufWriter (which is what I am really after).
Assignee | ||
Comment 1•16 years ago
|
||
Assignee: general → gal
![]() |
||
Updated•16 years ago
|
Attachment #384739 -
Flags: review+
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?
Assignee | ||
Comment 3•16 years ago
|
||
Whiteboard: fixed-in-tracemonkey
![]() |
||
Comment 4•16 years ago
|
||
This will completely screw my variable-width LIR patch (bug 492866).
Can you explain more the benefit of unfriending LIns and LirBufWriter?
Assignee | ||
Comment 6•16 years ago
|
||
#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?
![]() |
||
Comment 7•16 years ago
|
||
(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.
Assignee | ||
Comment 8•16 years ago
|
||
#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?
![]() |
||
Comment 9•16 years ago
|
||
(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.
Assignee | ||
Comment 10•16 years ago
|
||
Ok, I will file a follow-up bug and fix sparc and ARM.
Comment 11•16 years ago
|
||
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.
Description
•