Closed
Bug 1199887
Opened 10 years ago
Closed 10 years ago
Various renaming, code cleanups to do before bug 1187234/bug 1179003
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: Waldo, Assigned: Waldo)
References
Details
Attachments
(3 files)
5.97 KB,
patch
|
evilpies
:
review+
|
Details | Diff | Splinter Review |
10.15 KB,
patch
|
evilpies
:
review+
|
Details | Diff | Splinter Review |
12.10 KB,
patch
|
evilpies
:
review+
|
Details | Diff | Splinter Review |
This is mostly some dumb stuff noticed around is-class assertions that I removed in bug 1179003. A little grab-baggy, but pretty minimal.
(Given the size of changes in bug 1179003 and bug 1187234, and my understanding of your school schedule, I held off on requesting review from you, evilpie. If you want to look/review anyway, go ahead.)
Assignee | ||
Comment 1•10 years ago
|
||
One of the callers checks class directly just prior to calling this. The other does a proxy-permitting check a little earlier. Too bad we can't use Handle<RegExpObject*> or something to connote this class-checked status -- at least not with the existing APIs. Maybe we could invent a template class to convey (X or wrapped X) somehow. But definitely another bug, if it ever happens.
Attachment #8654465 -
Flags: review?(evilpies)
Assignee | ||
Comment 2•10 years ago
|
||
The interpreter-based path where returning as Value makes sense, isn't the primary sense any more. Return the string that everyone *but* the interpreter wants, directly.
The last patch here does likewise for str_replace_string_raw -- just keeping them separate for smallness.
Attachment #8654466 -
Flags: review?(evilpies)
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8654467 -
Flags: review?(evilpies)
Comment 4•10 years ago
|
||
Comment on attachment 8654465 [details] [diff] [review]
Rename StringRegExpGuard::init(JSContext*, JSObject*) to initRegExp
Review of attachment 8654465 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/jsstr.cpp
@@ +2122,5 @@
> obj_ = regexp;
>
> MOZ_ASSERT(ObjectClassIs(obj_, ESClass_RegExp, cx));
>
> if (!RegExpToShared(cx, obj_, &re_))
Can you fix this?
Attachment #8654465 -
Flags: review?(evilpies) → review+
Comment 5•10 years ago
|
||
Comment on attachment 8654466 [details] [diff] [review]
Make str_replace_regexp_raw return a JSString*, rather than return its always-string result via outparam
Review of attachment 8654466 [details] [diff] [review]:
-----------------------------------------------------------------
Very nice.
Attachment #8654466 -
Flags: review?(evilpies) → review+
Updated•10 years ago
|
Attachment #8654467 -
Flags: review?(evilpies) → review+
Comment 7•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/dde65be15e24
https://hg.mozilla.org/mozilla-central/rev/9de14ef7802e
https://hg.mozilla.org/mozilla-central/rev/e0d198f50e59
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•