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)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: h4writer, Assigned: h4writer)
References
Details
Attachments
(1 file)
3.79 KB,
patch
|
djvj
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: general → hv1989
Attachment #766593 -
Flags: review?(kvijayan)
Assignee | ||
Comment 2•12 years ago
|
||
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());
Updated•12 years ago
|
Attachment #766593 -
Flags: review?(kvijayan) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
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.
Description
•