Closed Bug 513139 Opened 15 years ago Closed 15 years ago

TM: remove savedRegs hack from nanojit

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: gal, Assigned: gal)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file, 3 obsolete files)

      No description provided.
Attached patch patch (obsolete) — Splinter Review
Assignee: general → gal
breaking test case - stack misalignment

function stringConvert()
{
  var a;
  for (var i = 0; i < 10; i++) {
    a = "5" & "7";
  }
  return a.toString();
}
stringConvert();
Attached patch patch (obsolete) — Splinter Review
Attachment #397163 - Attachment is obsolete: true
Attached patch patch (obsolete) — Splinter Review
fixed regexp jit
Attachment #397171 - Attachment is obsolete: true
The patch also removes LIR_loop. We use LIR_j to jump back to the loop header on trace, and LIR_x for branch traces to get back to the root fragment. The latter should be optimized further.
Attached patch patchSplinter Review
Attachment #397177 - Attachment is obsolete: true
Comment on attachment 397180 [details] [diff] [review]
patch

> /* guards */
>-OPDEF(loop,     17, 0, Op2)     // loop fragment
>+OPDEF(unused17, 17, 0, None)    // loop fragment

Nit: remove comment.


Will this play nicely with Tamarin?
Thanks for the nit. Tamarin doesn't use loop. They don't use the implicit saveRegs hack either. They will be happy both are gone.
Good.  I'm happy too, less code is a win!
http://hg.mozilla.org/tracemonkey/rev/1e581a31c017
Whiteboard: fixed-in-tracemonkey
Blocks: 515539
http://hg.mozilla.org/mozilla-central/rev/1e581a31c017
Status: NEW → RESOLVED
Closed: 15 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: