Closed Bug 1037869 Opened 10 years ago Closed 10 years ago

Latin1 strings: Fix remaining issues

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

Attached patch Patch (deleted) — 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)
Blocks: 1037871
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+
Depends on: 1029422
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Depends on: 1039611
Depends on: 1115986
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: