Closed
Bug 867426
Opened 7 years ago
Closed 7 years ago
GC: remove the Raw* typedefs
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Not set
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: terrence, Assigned: terrence)
References
Details
Attachments
(14 files)
15.03 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
4.94 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
3.02 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
14.17 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
15.28 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
126.60 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
1.49 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
22.13 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
170.45 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
19.40 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
3.30 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
26.30 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
149.82 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
1.37 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
With the static analysis in-place and working, the Raw typedefs are looking rather silly and vestigial. Removing them will reduce our type burden further and allow us to kill the ForwardDeclare macros with fire. The following series of patches was constructed largely with find, grep, sed and a bunch of manual sanity checking. I think I caught all the places that would have thrown off spacing, but some thoughtful spot-checking would still probably be worthwhile.
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #743898 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 2•7 years ago
|
||
Attachment #743899 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 3•7 years ago
|
||
Attachment #743900 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 4•7 years ago
|
||
Attachment #743901 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 5•7 years ago
|
||
Attachment #743902 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 6•7 years ago
|
||
Attachment #743903 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 7•7 years ago
|
||
Attachment #743904 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 8•7 years ago
|
||
Attachment #743905 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 9•7 years ago
|
||
Attachment #743906 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 10•7 years ago
|
||
Attachment #743907 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 11•7 years ago
|
||
Attachment #743908 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 12•7 years ago
|
||
Attachment #743909 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 13•7 years ago
|
||
Attachment #743910 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 14•7 years ago
|
||
Attachment #743911 -
Flags: review?(jcoppeard)
Assignee | ||
Comment 15•7 years ago
|
||
In case some of these leaked into the browser in such a way that ack can't find them, try run is up at: https://tbpl.mozilla.org/?tree=Try&rev=a100e01c2b6c
Updated•7 years ago
|
Attachment #743898 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
Attachment #743899 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
Attachment #743900 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
Attachment #743901 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
Attachment #743902 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
Attachment #743903 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
Attachment #743904 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
Attachment #743905 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
Attachment #743906 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
Attachment #743907 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
Attachment #743908 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
Attachment #743909 -
Flags: review?(jcoppeard) → review+
Comment 16•7 years ago
|
||
Comment on attachment 743910 [details] [diff] [review] v0: RawObject Review of attachment 743910 [details] [diff] [review]: ----------------------------------------------------------------- No problems with the patch, just a couple of incidental things I noticed: ::: js/src/gc/Marking.cpp @@ +701,1 @@ > const char *name) We could fix the alignment here. ::: js/src/gc/RootMarking.cpp @@ +488,5 @@ > case OBJOBJHASHMAP: { > AutoObjectObjectHashMap::HashMapImpl &map = static_cast<AutoObjectObjectHashMap *>(this)->map; > for (AutoObjectObjectHashMap::Enum e(map); !e.empty(); e.popFront()) { > + mozilla::DebugOnly<JSObject *> key = e.front().key; > + MarkObjectRoot(trc, (JSObject **) &e.front().key, "AutoObjectObjectHashMap key"); Should we be using c++ casts here (and the following cases)?
Attachment #743910 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
Attachment #743911 -
Flags: review?(jcoppeard) → review+
Assignee | ||
Comment 17•7 years ago
|
||
Huzzah! It's not often one gets to physically kill one's own bad ideas. https://hg.mozilla.org/integration/mozilla-inbound/rev/90c4b69fcc7f https://hg.mozilla.org/integration/mozilla-inbound/rev/f72c4442a30e https://hg.mozilla.org/integration/mozilla-inbound/rev/7b1025831aef https://hg.mozilla.org/integration/mozilla-inbound/rev/c084cc59bbdf https://hg.mozilla.org/integration/mozilla-inbound/rev/e119cde77a3b https://hg.mozilla.org/integration/mozilla-inbound/rev/f9cf4a647f39 https://hg.mozilla.org/integration/mozilla-inbound/rev/8c8e389fd3c3 https://hg.mozilla.org/integration/mozilla-inbound/rev/b1d2c16bee47 https://hg.mozilla.org/integration/mozilla-inbound/rev/a559bb362a2b https://hg.mozilla.org/integration/mozilla-inbound/rev/e578b67ec2fa https://hg.mozilla.org/integration/mozilla-inbound/rev/566bd5b45961 https://hg.mozilla.org/integration/mozilla-inbound/rev/f234cb1b600e https://hg.mozilla.org/integration/mozilla-inbound/rev/3a8fec8d2393 https://hg.mozilla.org/integration/mozilla-inbound/rev/fa6176c9b03f https://hg.mozilla.org/integration/mozilla-inbound/rev/4fbf994a4b1f A green build is at: https://tbpl.mozilla.org/?tree=Try&rev=a100e01c2b6c The debug bustage is totally unrelated.
Comment 18•7 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4fbf994a4b1f https://hg.mozilla.org/mozilla-central/rev/fa6176c9b03f https://hg.mozilla.org/mozilla-central/rev/3a8fec8d2393 https://hg.mozilla.org/mozilla-central/rev/f234cb1b600e https://hg.mozilla.org/mozilla-central/rev/566bd5b45961 https://hg.mozilla.org/mozilla-central/rev/e578b67ec2fa https://hg.mozilla.org/mozilla-central/rev/a559bb362a2b https://hg.mozilla.org/mozilla-central/rev/b1d2c16bee47 https://hg.mozilla.org/mozilla-central/rev/8c8e389fd3c3 https://hg.mozilla.org/mozilla-central/rev/f9cf4a647f39 https://hg.mozilla.org/mozilla-central/rev/e119cde77a3b https://hg.mozilla.org/mozilla-central/rev/c084cc59bbdf https://hg.mozilla.org/mozilla-central/rev/7b1025831aef https://hg.mozilla.org/mozilla-central/rev/f72c4442a30e https://hg.mozilla.org/mozilla-central/rev/90c4b69fcc7f
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in
before you can comment on or make changes to this bug.
Description
•