Closed
Bug 1011355
Opened 11 years ago
Closed 11 years ago
Minor FreeSpan/FreeList clean-ups
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: n.nethercote, Assigned: n.nethercote)
Details
Attachments
(3 files)
3.87 KB,
patch
|
billm
:
review+
|
Details | Diff | Splinter Review |
10.13 KB,
patch
|
billm
:
review+
|
Details | Diff | Splinter Review |
1.42 KB,
patch
|
billm
:
review+
|
Details | Diff | Splinter Review |
I have three clean-up patches.
![]() |
Assignee | |
Comment 1•11 years ago
|
||
This patch removes allocateFromNewArena. All FreeList allocations now occur in
allocate(), which is nice.
Attachment #8423566 -
Flags: review?(wmccloskey)
![]() |
Assignee | |
Comment 2•11 years ago
|
||
ArenaHeader uses a compact FreeSpan representation to save space. The
implementation of this is, uh, lower-level than is ideal. This patch introduces
a new class CompactFreeSpan to remedy this. The resulting code is a little more
verbose but much more readable, and it avoids manual shifting and masking.
Attachment #8423568 -
Flags: review?(wmccloskey)
![]() |
Assignee | |
Comment 3•11 years ago
|
||
Attachment #8423583 -
Flags: review?(wmccloskey)
Attachment #8423566 -
Flags: review?(wmccloskey) → review+
Comment on attachment 8423566 [details] [diff] [review]
Remove FreeList::allocateFromNewArena()
Review of attachment 8423566 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/jsgc.cpp
@@ +1599,2 @@
> JS_ASSERT(!aheader->hasFreeThings());
> + Arena* arena = aheader->getArena();
Oops, just noticed that the * should go with |arena|.
Attachment #8423568 -
Flags: review?(wmccloskey) → review+
Attachment #8423583 -
Flags: review?(wmccloskey) → review+
![]() |
Assignee | |
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/734a94168769
https://hg.mozilla.org/mozilla-central/rev/6a3df055066a
https://hg.mozilla.org/mozilla-central/rev/5385817bdae6
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•