Closed
Bug 725532
Opened 13 years ago
Closed 13 years ago
IonMonkey: Handle JSOP_DEFVAR, JSOP_DEFCONST.
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: sstangl, Unassigned)
Details
Attachments
(2 files)
3.64 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
10.91 KB,
patch
|
dvander
:
review+
|
Details | Diff | Splinter Review |
Handling JSOP_DEFVAR will halve the execution time of SS-1.0's 3d-morph.
Reporter | ||
Comment 1•13 years ago
|
||
To land against m-i.
Attachment #596842 -
Flags: review?(jwalden+bmo)
Reporter | ||
Comment 2•13 years ago
|
||
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)
Updated•13 years ago
|
Attachment #596842 -
Flags: review?(jwalden+bmo) → review+
Reporter | ||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
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+
Reporter | ||
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•