Closed
Bug 1302448
Opened 5 years ago
Closed 5 years ago
Rename *JSRuntime classes to *JSContext
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla51
Tracking | Status | |
---|---|---|
firefox51 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(3 files)
117.43 KB,
patch
|
mccr8
:
review+
|
Details | Diff | Splinter Review |
155.63 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
6.62 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
We now use JSContext instead of JSRuntime, so we should rename {CycleCollectedJSRuntime, XPCJSRuntime, WorkerJSRuntime} to finish this conversion.
Assignee | ||
Comment 1•5 years ago
|
||
Attachment #8790757 -
Flags: review?(continuation)
Assignee | ||
Comment 2•5 years ago
|
||
Sorry this is a big patch, most of it is trivial renaming though.
Attachment #8790762 -
Flags: review?(mrbkap)
Assignee | ||
Comment 3•5 years ago
|
||
Note that JS::RuntimeStats still has to be renamed as well.
Attachment #8790763 -
Flags: review?(amarchesini)
Comment 4•5 years ago
|
||
Comment on attachment 8790763 [details] [diff] [review] Part 3 - WorkerJSRuntime Review of attachment 8790763 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/workers/RuntimeService.cpp @@ +1042,5 @@ > Wrap, > nullptr, > }; > > +class WorkerJSContext : public mozilla::CycleCollectedJSContext class WorkerJSContext MOZ_STACK_CLASS final : ... ::: dom/workers/WorkerPrivate.cpp @@ +1506,5 @@ > return StringBeginsWith(s, NS_LITERAL_CSTRING("explicit/")); > } > #endif > > +class WorkerJSContextStats : public JS::RuntimeStats final
Attachment #8790763 -
Flags: review?(amarchesini) → review+
Comment 5•5 years ago
|
||
Comment on attachment 8790757 [details] [diff] [review] Part 1 - CycleCollectedJSRuntime Review of attachment 8790757 [details] [diff] [review]: ----------------------------------------------------------------- Very thorough.
Attachment #8790757 -
Flags: review?(continuation) → review+
Comment 6•5 years ago
|
||
Comment on attachment 8790762 [details] [diff] [review] Part 2 - XPCJSRuntime Review of attachment 8790762 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/xpconnect/src/XPCInlines.h @@ +535,5 @@ > return JS_HasPropertyById(cx, obj, id, &dummy); > } > > inline jsid > +GetCXIdByIndex(JSContext* cx, unsigned index) Nit: the capital X here seems odd. Maybe GetCxIdByIndex? GetJSIDByIndex? GetIdByIndex?
Attachment #8790762 -
Flags: review?(mrbkap) → review+
Pushed by jandemooij@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/fff0c85df590 part 1 - Rename CycleCollectedJSRuntime to CycleCollectedJSContext. r=mccr8 https://hg.mozilla.org/integration/mozilla-inbound/rev/1d1db582972c part 2 - Rename XPCJSRuntime to XPCJSContext. r=mrbkap https://hg.mozilla.org/integration/mozilla-inbound/rev/b0675d0dcfb5 part 3 - Rename WorkerJSRuntime to WorkerJSContext. r=baku
Assignee | ||
Comment 8•5 years ago
|
||
(In reply to Andrea Marchesini [:baku] from comment #4) > > +class WorkerJSContextStats : public JS::RuntimeStats > > final Done. I think this one can also be MOZ_STACK_CLASS, like the other one, so I added that as well. (In reply to Blake Kaplan (:mrbkap) from comment #6) > > +GetCXIdByIndex(JSContext* cx, unsigned index) > > Nit: the capital X here seems odd. Maybe GetCxIdByIndex? GetJSIDByIndex? > GetIdByIndex? I renamed it to GetJSIDByIndex, thanks.
Comment 9•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fff0c85df590 https://hg.mozilla.org/mozilla-central/rev/1d1db582972c https://hg.mozilla.org/mozilla-central/rev/b0675d0dcfb5
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in
before you can comment on or make changes to this bug.
Description
•