Closed
Bug 1037869
Opened 10 years ago
Closed 10 years ago
Latin1 strings: Fix remaining issues
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(1 file)
32.79 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
This patch removes the old JSString methods like chars/getChars and fixes the few remaining callers of these functions. It also removes some now-unused APIs. Some others are also unused but may be nice to keep for some embedders so I fixed them by adding an AutoCheckCannotGC argument and added separate Latin1/TwoByte versions. Most of this is removing code: 14 files changed, 97 insertions(+), 198 deletions(-)
Attachment #8454919 -
Flags: review?(terrence)
Comment 1•10 years ago
|
||
Comment on attachment 8454919 [details] [diff] [review] Patch Review of attachment 8454919 [details] [diff] [review]: ----------------------------------------------------------------- \o/ Wow, done already? ::: dom/bindings/BindingUtils.cpp @@ +364,5 @@ > TOSTRING_CLASS_RESERVED_SLOT); > const JSClass* clasp = static_cast<const JSClass*>(v.toPrivate()); > > v = js::GetFunctionNativeReserved(callee, TOSTRING_NAME_RESERVED_SLOT); > JSString* jsname = static_cast<JSString*>(v.toString()); That static cast looks really funky, please remove it while you're here. ::: js/src/jsapi.h @@ -4148,5 @@ > * fallible context by JS_FlattenString. To catch errors, a separate opaque > * JSFlatString type is returned by JS_FlattenString and expected by > * JS_GetFlatStringChars. Note, though, that this is purely a syntactic > * distinction: the input and output of JS_FlattenString are the same actual > - * GC-thing so only one needs to be rooted. If a JSString is known to be flat, D-: Thanks for fixing this comment!
Attachment #8454919 -
Flags: review?(terrence) → review+
Assignee | ||
Comment 2•10 years ago
|
||
Thanks again for the quick review! https://hg.mozilla.org/integration/mozilla-inbound/rev/0f25f3ccb7b3
Comment 3•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0f25f3ccb7b3
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•