Closed Bug 392883 Opened 17 years ago Closed 17 years ago

ActionMonkey: remove gcThingFlags

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jorendorff, Assigned: jorendorff)

References

Details

Attachments

(1 file, 3 obsolete files)

They're just taking up space.

* The type bits: use the vtable.  jsdoubles don't have a vtable, so they'll need a workaround. (Note: The cycle collector sneakily uses these bits, in nsXPConnect.cpp; it will be changed too.)

* The GCF_LOCK bit: mainly replaced by allowing MMgc to scan rt->gcLocksHash, bug 389832. There is also a string optimization that uses this bit. It's yet to be determined what to do about that.

* The GCF_MUTABLE bit: move into JSString; see bug 391290.

* The GCF_SYSTEM bit: move into JSObject. Details to be determined.
Blocks: 393023
Status: NEW → ASSIGNED
Assignee: general → anemitz
Status: ASSIGNED → NEW
Depends on: 396758
Attached patch v1 (obsolete) — Splinter Review
This is fairly trivial now--Igor did all the hard work in trunk!

Thanks, Igor.
Assignee: anemitz → jorendorff
Status: NEW → ASSIGNED
Attachment #293210 - Flags: review?(igor)
(In reply to comment #0)
> * The type bits: use the vtable.  jsdoubles don't have a vtable, so they'll
> need a workaround. (Note: The cycle collector sneakily uses these bits, in
> nsXPConnect.cpp; it will be changed too.)
> 
> * The GCF_LOCK bit: mainly replaced by allowing MMgc to scan rt->gcLocksHash,
> bug 389832. There is also a string optimization that uses this bit. It's yet to
> be determined what to do about that.

That can be replaced by a hash table and an explicit tracing of atomized strings to avoid an extra hash table entries for them.
The string optimization appears to be gone in trunk, and the locking functionality is already long gone in ActionMonkey branch (bug 389832).  So there was nothing left to replace.
Attachment #293210 - Flags: review?(igor) → review+
Attached patch changes from v1 to v2 (obsolete) — Splinter Review
Attachment #293210 - Attachment is obsolete: true
Attached patch v2 - also deletes GCX_ constants (obsolete) — Splinter Review
Sorry for the noise, igor - I just realized I didn't delete as much stuff as I could've.
Attachment #294112 - Flags: review?(igor)
Attachment #294112 - Flags: review?(igor) → review+
Attached patch v3 - for checkinSplinter Review
Same as v2 except for merges
Attachment #294111 - Attachment is obsolete: true
Attachment #294112 - Attachment is obsolete: true
Pushed changeset e92ee8ec06d5 to actionmonkey branch.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
Flags: in-litmus-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: