Closed
Bug 1271407
Opened 10 years ago
Closed 10 years ago
Remove unnecessary methods from `js::ScriptSource`
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla49
| Tracking | Status | |
|---|---|---|
| firefox49 | --- | fixed |
People
(Reporter: fitzgen, Assigned: fitzgen)
Details
Attachments
(1 file, 1 obsolete file)
|
6.62 KB,
patch
|
fitzgen
:
review+
|
Details | Diff | Splinter Review |
This commit removes the following methods from `js::ScriptSource`:
* `compressedChars`
* `compressedBytes`
* `uncompressedChars`
They are throwbacks from when `ScriptSource` had this big, hand-rolled tagged
union, and these methods were getters that did all sanity asserts on the tag
state. That union has since been replaced with a `mozilla::Variant`, so we
should just use `mozilla::Variant`'s type-safe accessors instead.
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8750441 -
Flags: review?(luke)
| Assignee | ||
Comment 2•10 years ago
|
||
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Updated•10 years ago
|
Attachment #8750441 -
Flags: review?(luke) → review+
Comment 4•10 years ago
|
||
Backed out for the same reason as bug 1269451.
https://hg.mozilla.org/integration/mozilla-inbound/rev/7a1f2d5a9ac0
Comment 5•10 years ago
|
||
holy crap, this set of changes caused a boatload of talos regressions, here is the list of improvements when we back this out:
https://treeherder.mozilla.org/perf.html#/alerts?id=1152
| Assignee | ||
Comment 6•10 years ago
|
||
(In reply to Joel Maher (:jmaher) from comment #5)
> holy crap, this set of changes caused a boatload of talos regressions, here
> is the list of improvements when we back this out:
> https://treeherder.mozilla.org/perf.html#/alerts?id=1152
I think this is much more likely caused by the patch in bug 1269451, which landed at the same time.
| Assignee | ||
Comment 7•10 years ago
|
||
Try push and talos run with just this commit:
remote: Follow the progress of your build on Treeherder:
remote: https://treeherder.mozilla.org/#/jobs?repo=try&revision=d9700b496e01
remote:
remote: It looks like this try push has talos jobs. Compare performance against a baseline revision:
remote: https://treeherder.mozilla.org/perf.html#/comparechooser?newProject=try&newRevision=d9700b496e01
| Assignee | ||
Comment 8•10 years ago
|
||
This fixes one more use of `uncompressedChars` that went away in bug 1269451,
but needs to go away in this patch now that I'm rebasing off of bug 1269451.
Carrying r+.
Attachment #8752404 -
Flags: review+
| Assignee | ||
Updated•10 years ago
|
Attachment #8750441 -
Attachment is obsolete: true
| Assignee | ||
Comment 9•10 years ago
|
||
Try push:
remote: Follow the progress of your build on Treeherder:
remote: https://treeherder.mozilla.org/#/jobs?repo=try&revision=7aeec30df380
remote:
remote: It looks like this try push has talos jobs. Compare performance against a baseline revision:
remote: https://treeherder.mozilla.org/perf.html#/comparechooser?newProject=try&newRevision=7aeec30df380
| Assignee | ||
Comment 10•10 years ago
|
||
As suspected, perfherder shows that this patch is fine, and it was the other bug that caused the slow downs.
Keywords: checkin-needed
Comment 11•10 years ago
|
||
| bugherder landing | ||
Keywords: checkin-needed
Comment 12•10 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•