Closed Bug 725532 Opened 12 years ago Closed 12 years ago

IonMonkey: Handle JSOP_DEFVAR, JSOP_DEFCONST.

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sstangl, Unassigned)

Details

Attachments

(2 files)

Handling JSOP_DEFVAR will halve the execution time of SS-1.0's 3d-morph.
To land against m-i.
Attachment #596842 - Flags: review?(jwalden+bmo)
We don't handle isEvalFrame() yet -- that changes the |attrs| variable passed to DefVarOrConstOperation(). Notes were left to make sure this isn't accidentally overlooked in the future.
Attachment #596845 - Flags: review?(dvander)
Attachment #596842 - Flags: review?(jwalden+bmo) → review+
Comment on attachment 596845 [details] [diff] [review]
Handle JSOP_DEFVAR and JSOP_DEFCONST (which are basically the same).

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

::: js/src/ion/IonBuilder.cpp
@@ +3623,5 @@
> +    PropertyName *name = script->getName(index);
> +
> +    // Bake in attrs.
> +    uintN attrs = JSPROP_ENUMERATE;
> +    // TODO: if isEvalFrame(), then attrs |= JSPROP_PERMANENT.

change :TODO: to an assert or something (or add a test case that would fail?)
Attachment #596845 - Flags: review?(dvander) → review+
http://hg.mozilla.org/projects/ionmonkey/rev/99423ac24643
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.