Closed
Bug 1496863
Opened 7 years ago
Closed 7 years ago
Various UTF-8-to-UTF-16 inflation mini-fixes
Categories
(Core :: JavaScript Engine, enhancement, P2)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla64
| Tracking | Status | |
|---|---|---|
| firefox64 | --- | fixed |
People
(Reporter: Waldo, Assigned: Waldo)
Details
Attachments
(3 files)
|
3.28 KB,
patch
|
evilpies
:
review+
|
Details | Diff | Splinter Review |
|
1.63 KB,
patch
|
evilpies
:
review+
|
Details | Diff | Splinter Review |
|
862 bytes,
patch
|
evilpies
:
review+
|
Details | Diff | Splinter Review |
Noticed these while looking at the changes bug 1495571 made.
| Assignee | ||
Comment 2•7 years ago
|
||
Attachment #9014973 -
Flags: review?(arai.unmht)
| Assignee | ||
Comment 3•7 years ago
|
||
Attachment #9014974 -
Flags: review?(arai.unmht)
Comment 4•7 years ago
|
||
Comment on attachment 9014972 [details] [diff] [review]
Add a constexpr char16_t unicode::REPLACEMENT_CHARACTER, and change the two (!) separate const char16_t variables of the same value in CharacterEncoding.cpp with it
Review of attachment 9014972 [details] [diff] [review]:
-----------------------------------------------------------------
(stealing)
Attachment #9014972 -
Flags: review?(arai.unmht) → review+
Comment 5•7 years ago
|
||
Comment on attachment 9014973 [details] [diff] [review]
Use precise capture-lists for the various lambdas in CharacterEncoding.cpp, rather than using [&] and capturing everything willy-nilly by reference
Review of attachment 9014973 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/vm/CharacterEncoding.cpp
@@ +420,4 @@
> ? OnUTF8Error::InsertQuestionMark
> : OnUTF8Error::InsertReplacementCharacter;
> size_t j = 0;
> + auto push = [dst, &j](char16_t c) -> LoopDisposition {
No &dst? Doesn't this mean copy?
Updated•7 years ago
|
Attachment #9014974 -
Flags: review?(arai.unmht) → review+
Comment 6•7 years ago
|
||
Comment on attachment 9014973 [details] [diff] [review]
Use precise capture-lists for the various lambdas in CharacterEncoding.cpp, rather than using [&] and capturing everything willy-nilly by reference
Review of attachment 9014973 [details] [diff] [review]:
-----------------------------------------------------------------
Oh dst is a pointer obviously.
Attachment #9014973 -
Flags: review?(arai.unmht) → review+
Updated•7 years ago
|
Priority: -- → P2
Pushed by jwalden@mit.edu:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ed81d578d775
Add a constexpr char16_t unicode::REPLACEMENT_CHARACTER, and change the two (!) separate const char16_t variables of the same value in CharacterEncoding.cpp with it. r=evilpie
https://hg.mozilla.org/integration/mozilla-inbound/rev/da12058b40be
Use precise capture-lists for the various lambdas in CharacterEncoding.cpp, rather than using [&] and capturing everything willy-nilly by reference. r=evilpie
https://hg.mozilla.org/integration/mozilla-inbound/rev/d912f4d60ea4
Remove an obsolete comment. r=evilpie
Comment 8•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/ed81d578d775
https://hg.mozilla.org/mozilla-central/rev/da12058b40be
https://hg.mozilla.org/mozilla-central/rev/d912f4d60ea4
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•