Closed
Bug 1011693
Opened 10 years ago
Closed 10 years ago
Store dollar index instead of jschar* in ReplaceData
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(3 files)
3.60 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
3.35 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
9.77 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
We want this for both ASCII strings and nursery-allocated strings/chars.
Assignee | ||
Comment 1•10 years ago
|
||
dollarEnd is repstr->chars() + repstr->length(). There's no need to store it separately.
Attachment #8424129 -
Flags: review?(terrence)
Assignee | ||
Comment 2•10 years ago
|
||
Rewrites two loops a bit to prepare for the next patch.
Attachment #8424132 -
Flags: review?(terrence)
Assignee | ||
Comment 3•10 years ago
|
||
s/ReplaceData::dollar/ReplaceData::dollarIndex. Also removed the ENSURE() macro for error handling while I was there. if (!x) return false; is an extra line but it's much clearer.
Attachment #8424134 -
Flags: review?(terrence)
Comment 4•10 years ago
|
||
Comment on attachment 8424129 [details] [diff] [review] Part 1 - rm ReplaceData::dollarEnd Review of attachment 8424129 [details] [diff] [review]: ----------------------------------------------------------------- I had forgotten how horrific the existing code here is. r=me
Attachment #8424129 -
Flags: review?(terrence) → review+
Comment 5•10 years ago
|
||
Comment on attachment 8424132 [details] [diff] [review] Part 2 - Refactor some loops Review of attachment 8424132 [details] [diff] [review]: ----------------------------------------------------------------- r=me
Attachment #8424132 -
Flags: review?(terrence) → review+
Comment 6•10 years ago
|
||
Comment on attachment 8424134 [details] [diff] [review] Part 3 - Store dollar position as index instead of jschar* Review of attachment 8424134 [details] [diff] [review]: ----------------------------------------------------------------- Nice! r=me
Attachment #8424134 -
Flags: review?(terrence) → review+
Assignee | ||
Comment 7•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/d6d6c5381f95 https://hg.mozilla.org/integration/mozilla-inbound/rev/578778d7baca https://hg.mozilla.org/integration/mozilla-inbound/rev/e8edc293a081
Comment 8•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d6d6c5381f95 https://hg.mozilla.org/mozilla-central/rev/578778d7baca https://hg.mozilla.org/mozilla-central/rev/e8edc293a081
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•