Closed Bug 827965 Opened 13 years ago Closed 13 years ago

IonMonkey: Utilize GetTempRegForIntArg() for callNative calls.

Categories

(Core :: JavaScript Engine, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: efaust, Assigned: efaust)

Details

Attachments

(1 file)

In Bug 817943, Boris added GetTemRegForIntArg() to reduce the number of redundant moves on direct calls. This should also a win for the callNative path of visitCall().
Attached patch Patch — — Splinter Review
Assignee: general → efaustbmo
Status: NEW → ASSIGNED
Attachment #699385 - Flags: review?(mrosenberg)
Comment on attachment 699385 [details] [diff] [review] Patch Review of attachment 699385 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/ion/Lowering.cpp @@ +307,5 @@ > + > + // Even though this is just a temp reg, use the same API to avoid > + // register collisions. > + mozilla::DebugOnly<bool> ok = GetTempRegForIntArg(3, 0, &tmpReg); > + MOZ_ASSERT(ok, "How can we not have four temp registers?"); JS_ASSERT. Maybe a blank line after?
Attachment #699385 - Flags: review?(mrosenberg) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: