Closed
Bug 1472031
Opened 6 years ago
Closed 6 years ago
Miscellaneous tokenizing improvements
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: Waldo, Assigned: Waldo)
References
Details
Attachments
(6 files)
5.23 KB,
patch
|
arai
:
review+
|
Details | Diff | Splinter Review |
3.39 KB,
patch
|
arai
:
review+
|
Details | Diff | Splinter Review |
1.99 KB,
patch
|
arai
:
review+
|
Details | Diff | Splinter Review |
2.26 KB,
patch
|
arai
:
review+
|
Details | Diff | Splinter Review |
4.11 KB,
patch
|
arai
:
review+
|
Details | Diff | Splinter Review |
5.88 KB,
patch
|
arai
:
review+
|
Details | Diff | Splinter Review |
Nothing strictly necessary for UTF-8 parsing, but things that will to one degree or another contribute to getting there.
Assignee | ||
Comment 1•6 years ago
|
||
Technically the "drain" aspect of this is not necessary, but it seems preferable to drain immediately than to hold onto unbounded memory we're never going to use. There are other places that could stand this "drain" treatment, but one thing at a time, as I run across them.
Attachment #8988621 -
Flags: review?(arai.unmht)
Assignee | ||
Comment 2•6 years ago
|
||
Attachment #8988622 -
Flags: review?(arai.unmht)
Assignee | ||
Comment 3•6 years ago
|
||
Attachment #8988623 -
Flags: review?(arai.unmht)
Assignee | ||
Comment 4•6 years ago
|
||
Attachment #8988624 -
Flags: review?(arai.unmht)
Assignee | ||
Comment 5•6 years ago
|
||
Small improvement, nice to not copy stuff (or impose on the compiler to figure out how not to copy, maybe, if we were really lucky before).
Attachment #8988628 -
Flags: review?(arai.unmht)
Assignee | ||
Comment 6•6 years ago
|
||
Fewer lines of code *and* less copying.
Attachment #8988631 -
Flags: review?(arai.unmht)
Updated•6 years ago
|
Attachment #8988621 -
Flags: review?(arai.unmht) → review+
Updated•6 years ago
|
Attachment #8988622 -
Flags: review?(arai.unmht) → review+
Updated•6 years ago
|
Attachment #8988623 -
Flags: review?(arai.unmht) → review+
Updated•6 years ago
|
Attachment #8988624 -
Flags: review?(arai.unmht) → review+
Updated•6 years ago
|
Attachment #8988628 -
Flags: review?(arai.unmht) → review+
Updated•6 years ago
|
Attachment #8988631 -
Flags: review?(arai.unmht) → review+
Pushed by jwalden@mit.edu:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b64aec5cf563
Introduce a drainCharBufferIntoAtom function to clear charBuffer and create an atom from the chars that were in it. r=arai
https://hg.mozilla.org/integration/mozilla-inbound/rev/08cf6e4cccce
Rename atomizeChars to atomizeSourceChars to clarify it's only for atomizing directly from source text. r=arai
https://hg.mozilla.org/integration/mozilla-inbound/rev/481871dcc488
Define TokenStreamAnyChars::updateFlagsForEOL inline in the header, for simplicity. r=arai
https://hg.mozilla.org/integration/mozilla-inbound/rev/d857b06f51ca
Implement a SourceUnits::remaining() function exposing how many code units are left. r=arai
https://hg.mozilla.org/integration/mozilla-inbound/rev/dad92f9be9b7
Avoid copying potential directives in TokenStreamSpecific::getDirective. r=arai
https://hg.mozilla.org/integration/mozilla-inbound/rev/ba24991f7f4d
Add SourceUnits::matchHexDigits and remove SourceUnits::peekCodeUnits used for the same ends (but that also performed a needless copy). r=arai
Comment 8•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b64aec5cf563
https://hg.mozilla.org/mozilla-central/rev/08cf6e4cccce
https://hg.mozilla.org/mozilla-central/rev/481871dcc488
https://hg.mozilla.org/mozilla-central/rev/d857b06f51ca
https://hg.mozilla.org/mozilla-central/rev/dad92f9be9b7
https://hg.mozilla.org/mozilla-central/rev/ba24991f7f4d
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in
before you can comment on or make changes to this bug.
Description
•