Closed
Bug 605858
Opened 14 years ago
Closed 14 years ago
TM: Trace inc() on all primitives
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla2.0b8
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
sayrer
:
approval2.0+
|
Details | Diff | Splinter Review |
This came up for undefined on jsperf.com in bug 605486, but just doing all primitives is easy enough.
Assignee | ||
Comment 1•14 years ago
|
||
Assignee | ||
Comment 2•14 years ago
|
||
Comment on attachment 484715 [details] [diff] [review]
Trace inc() for all primitive values, not just numbers.
I used insImmD in the null case because that's what the number case used to do.... but should they both use insImmI? Or is that handled elsewhere?
Attachment #484715 -
Flags: review?(dvander)
Comment on attachment 484715 [details] [diff] [review]
Trace inc() for all primitive values, not just numbers.
insImmD is right, integers shouldn't leak into the LIR (doubles are promoted to integers in a forward pipeline).
Attachment #484715 -
Flags: review?(dvander) → review+
Assignee | ||
Comment 4•14 years ago
|
||
Comment on attachment 484715 [details] [diff] [review]
Trace inc() for all primitive values, not just numbers.
Requesting approval. This is pretty safe, and is needed (barring site changes) for jsperf.com to trace.
Attachment #484715 -
Flags: approval2.0?
Assignee | ||
Updated•14 years ago
|
Whiteboard: [need review] → [need approval]
Comment 5•14 years ago
|
||
Comment on attachment 484715 [details] [diff] [review]
Trace inc() for all primitive values, not just numbers.
>+ // XXXbz can we manage to do this for objects with an imacro? Or
>+ // will that be unsafe for some of our callers?
No need to ask and we avoid XXX comments now in favor of FIXME: bug NNNNNN comments. This one is completely fixable with imacrology, so please file a future bug.
>+ if (!v.isPrimitive())
>+ RETURN_STOP("can only inc primitives");
Uber-nit: "can inc primitives only".
Nice patch. bz, you need to do a JM patch too some time, get both decoder rings ;-).
/be
Assignee | ||
Comment 6•14 years ago
|
||
(In reply to comment #5)
> No need to ask and we avoid XXX comments now in favor of FIXME: bug NNNNNN
Done. Bug 606071.
> Uber-nit: "can inc primitives only".
Done.
> Nice patch. bz, you need to do a JM patch too some time
I looked at the pic code some; got lost and gave up for the time being. ;)
Blocks: 606071
Assignee | ||
Updated•14 years ago
|
Attachment #484715 -
Attachment is obsolete: true
Attachment #484715 -
Flags: approval2.0?
Assignee | ||
Comment 7•14 years ago
|
||
Assignee | ||
Updated•14 years ago
|
Attachment #487851 -
Flags: approval2.0?
Assignee | ||
Comment 8•14 years ago
|
||
Robert, want to either approve or deny so I can stop worrying about merging this? ;)
Updated•14 years ago
|
Attachment #487851 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Updated•14 years ago
|
Whiteboard: [need approval] → [need landing]
Assignee | ||
Comment 9•14 years ago
|
||
Flags: in-testsuite?
Whiteboard: [need landing] → fixed-in-tracemonkey
Comment 10•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•14 years ago
|
Target Milestone: --- → mozilla2.0b8
You need to log in
before you can comment on or make changes to this bug.
Description
•