Closed
Bug 752578
Opened 13 years ago
Closed 13 years ago
Remove JSGuardObjectNotifier and all the JS_GUARD_OBJECT* macros, use MOZ_GUARD_OBJECT* macros instead
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: Waldo, Assigned: Waldo)
Details
(Whiteboard: [js:t][lang=c++])
Attachments
(4 files)
37.03 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
9.64 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
3.72 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
4.22 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
We should only use one implementation of this stuff.
I'd be happy to mentor this at a future time, but I'm a bit too hosed to do it right now, alas. :-\
![]() |
||
Updated•13 years ago
|
Whiteboard: [good first bug][lang=c++] → [js:t][good first bug][lang=c++]
Whiteboard: [js:t][good first bug][lang=c++] → [js:t][lang=c++][mentor=waldo]
Assignee | ||
Updated•13 years ago
|
Whiteboard: [js:t][lang=c++][mentor=waldo] → [js:t][lang=c++]
Assignee | ||
Comment 1•13 years ago
|
||
My mind turned to mush on the drive to Chicago last week, so I picked this up and finished it off, to make forward progress on something.
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #697066 -
Flags: review?(Ms2ger)
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #697067 -
Flags: review?(Ms2ger)
Assignee | ||
Comment 4•13 years ago
|
||
Attachment #697068 -
Flags: review?(Ms2ger)
Comment 5•13 years ago
|
||
Comment on attachment 697064 [details] [diff] [review]
1 - Easy cases where the macros are only in the class definition
Review of attachment 697064 [details] [diff] [review]:
-----------------------------------------------------------------
No objections to this patch from my side.
::: js/src/jsapi.h
@@ +5540,2 @@
>
> class JSAutoByteString {
Didn't you want to move this { too?
::: js/src/jsutil.h
@@ +159,3 @@
> template<typename T>
> class AutoScopedAssign
> {
Don't we have something like this in mfbt? If not, at least somewhere in Gecko... Followup please :)
Attachment #697064 -
Flags: review?(Ms2ger) → review+
Comment 6•13 years ago
|
||
Comment on attachment 697066 [details] [diff] [review]
2 - Trickier cases with only-parameter uses, constructors defined out-of-line, etc.
Review of attachment 697066 [details] [diff] [review]:
-----------------------------------------------------------------
Or this.
Attachment #697066 -
Flags: review?(Ms2ger) → review+
Comment 7•13 years ago
|
||
Comment on attachment 697067 [details] [diff] [review]
3 - Fix instances in js/ipc (do we even build this any more?)
Review of attachment 697067 [details] [diff] [review]:
-----------------------------------------------------------------
Bah. Do whatever you want with this code.
Attachment #697067 -
Flags: review?(Ms2ger) → review+
Comment 8•13 years ago
|
||
Comment on attachment 697068 [details] [diff] [review]
4 - Remove JS_GUARD* macros
Review of attachment 697068 [details] [diff] [review]:
-----------------------------------------------------------------
Good riddance!
Attachment #697068 -
Flags: review?(Ms2ger) → review+
Assignee | ||
Comment 9•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e024dfa5a774
https://hg.mozilla.org/integration/mozilla-inbound/rev/0d6c5f87f08b
https://hg.mozilla.org/integration/mozilla-inbound/rev/7f628cbf1073
https://hg.mozilla.org/integration/mozilla-inbound/rev/01efd933f60b
Target Milestone: --- → mozilla20
![]() |
||
Comment 10•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e024dfa5a774
https://hg.mozilla.org/mozilla-central/rev/0d6c5f87f08b
https://hg.mozilla.org/mozilla-central/rev/7f628cbf1073
https://hg.mozilla.org/mozilla-central/rev/01efd933f60b
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•