Closed Bug 886241 Opened 12 years ago Closed 12 years ago

IonMonkey: Enable inlined arguments_get_elem for constant index

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: h4writer, Assigned: h4writer)

References

Details

Attachments

(1 file)

Split of from bug 824622. I have a patch for a constant index, but since it was low priority I didn't push it yet. But I got some reports this is hit by people, so I better commit ;). When inlining we know the arguments, so when an elem from the argument is requested, we can just return the right element.
Blocks: 824622
Attached patch PatchSplinter Review
Assignee: general → hv1989
Attachment #766593 - Flags: review?(kvijayan)
Comment on attachment 766593 [details] [diff] [review] Patch Review of attachment 766593 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/ion/IonBuilder.cpp @@ +7072,5 @@ > + current->push(inlineCallInfo_->getArg(id)); > + } else { > + MConstant *undefined = MConstant::New(UndefinedValue()); > + current->add(undefined); > + current->push(undefined); Oh, this can be transformed to: pushConstant(UndefinedValue());
Attachment #766593 - Flags: review?(kvijayan) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: