Closed
Bug 788096
Opened 14 years ago
Closed 14 years ago
Remove ObjectBox::emitLink
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: n.nethercote, Assigned: n.nethercote)
Details
Attachments
(3 files)
|
11.55 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
|
10.46 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
|
2.64 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
ObjectBox::emitLink can be removed with a little effort.
| Assignee | ||
Comment 1•14 years ago
|
||
This patch changes CGObjectList to use a vector instead of a list, which
makes it simpler and more like CGConstList. It also allows
ObjectBox::emitLink to be removed.
Attachment #658002 -
Flags: review?(jorendorff)
| Assignee | ||
Comment 2•14 years ago
|
||
This patch introduces CGTryNoteList, which is a lot like CGObjectList. This
makes the try note handling a lot simpler. It also removes TryNode struct,
the name of which was confusingly similar to JSTryNote.
Attachment #658324 -
Flags: review?(jorendorff)
| Assignee | ||
Comment 3•14 years ago
|
||
We have CGObjectList and CGTryNoteList, in which the "CG" presumably stands
for "code generation". We also have GCConstList, which is surely a typo.
This patch changes it to CGConstList.
Attachment #658326 -
Flags: review?(jorendorff)
Comment 4•14 years ago
|
||
Comment on attachment 658002 [details] [diff] [review]
Remove ObjectBox::emitLink.
Converting a linked list to a vector? All right, I guess.
Attachment #658002 -
Flags: review?(jorendorff) → review+
Comment 5•14 years ago
|
||
Oh, I missed the other two patches here. I'll get to them tomorrow morning.
Comment 6•14 years ago
|
||
Comment on attachment 658324 [details] [diff] [review]
(part 2) - Introduce CGTryNoteList for storing try notes in the bytecode mitter.
Review of attachment 658324 [details] [diff] [review]:
-----------------------------------------------------------------
...for some definition of "morning"
::: js/src/frontend/BytecodeEmitter.cpp
@@ +6983,5 @@
> + JSTryNote note;
> + note.kind = kind;
> + note.stackDepth = (uint16_t)stackDepth;
> + note.start = (uint32_t)start;
> + note.length = (uint32_t)(end - start);
C++-style casts (on the asserts too) would be nice.
Attachment #658324 -
Flags: review?(jorendorff) → review+
Comment 7•14 years ago
|
||
Comment on attachment 658326 [details] [diff] [review]
(part 3) - Rename GCConstList as CGConstList for consistency with similar types.
Review of attachment 658326 [details] [diff] [review]:
-----------------------------------------------------------------
this didn't really take me 15 minutes to review, i got a coffee
Attachment #658326 -
Flags: review?(jorendorff) → review+
| Assignee | ||
Comment 8•14 years ago
|
||
| Assignee | ||
Comment 9•14 years ago
|
||
I undid part 1 because it regressed Talos Trace Malloc Allocs by ~1%. Sigh.
https://hg.mozilla.org/integration/mozilla-inbound/rev/3e1d94c1352f
Comment 10•14 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c77231ed11be
https://hg.mozilla.org/mozilla-central/rev/359e4c33b89b
https://hg.mozilla.org/mozilla-central/rev/f3b3b27099a9
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Comment 11•14 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•