Closed Bug 700517 Opened 13 years ago Closed 13 years ago

Add "ret imm16" instruction for x86 and x86-64.

Categories

(Core :: JavaScript Engine, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: nbp, Assigned: nbp)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

IonMonkey has wrapper functions around C/C++ function calls.  Arguments are pushed to these wrappers and the wrappers are in charge of getting rid of the space reserved for the arguments, to reduce the space consumed inside the Jitted code.

Currently, a hack is done to unwind the arguments and copy the return address at the top level.  The "ret imm16" handle such case and we should use it to unwind list of arguments known at compile time.
Assignee: general → nicolas.b.pierron
Attachment #572696 - Flags: review?(dvander)
Attachment #572696 - Flags: review?(dvander) → review+
Attachment #572698 - Flags: review?(dvander)
Comment on attachment 572698 [details] [diff] [review]
IM patch, Add retn.

Review of attachment 572698 [details] [diff] [review]:
-----------------------------------------------------------------

Prefer if this was named "retn" instead to match Intel syntax, but this is not a strong preference.
Attachment #572698 - Flags: review?(dvander) → review+
Attachment #572696 - Flags: checkin?(dvander)
https://tbpl.mozilla.org/?tree=Try&rev=73b8ab2861e1

Will push tomorrow presuming green :-)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: