Closed
Bug 571810
Opened 15 years ago
Closed 15 years ago
TM: slow arrays don't need special objectops
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: gal, Assigned: gal)
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
2.63 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•15 years ago
|
||
I think this is a left-over from when slow arrays had a weird enumerator handling that dealt with slowification during iteration.
Assignee | ||
Comment 2•15 years ago
|
||
Assignee: general → gal
Assignee | ||
Updated•15 years ago
|
Attachment #450970 -
Flags: review?(mrbkap)
![]() |
||
Comment 3•15 years ago
|
||
You can also remove slowarray_addProperty(), AFAICT.
This will cause merge conflicts for my type-specific arrays patch.
![]() |
||
Comment 4•15 years ago
|
||
(In reply to comment #3)
> You can also remove slowarray_addProperty(), AFAICT.
Hmm, no, scratch that, I was mixing this up with js_SlowArrayClass. (Hmm, that's odd that we have some class methods in JSClass and some in JSObjectOps.)
Assignee | ||
Comment 5•15 years ago
|
||
Its a layering. ObjectOps implements object behavior ("the hashtable"), Class observes object behavior ("as you put this in the hashtable, call me first so I might change or observe the value on the fly").
Updated•15 years ago
|
Attachment #450970 -
Flags: review?(mrbkap) → review+
Comment 6•15 years ago
|
||
Andreas asked and we reconstructed that the only reason slow arrays had custom ops was for custom iteration. So this is a followup to fastiterators, in a sense.
/be
Comment 7•15 years ago
|
||
Landed for Andreas (I need this for other work, myself):
http://hg.mozilla.org/tracemonkey/rev/e6d125e859bf
/be
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Whiteboard: fixed-in-tracemonkey
Comment 8•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•