Move IsCacheableDOMProxy and clean-up some includes in js/jit
Categories
(Core :: JavaScript Engine: JIT, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox83 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(13 files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
IsCacheableDOMProxy is only used in CacheIR.cpp, so we can move it from BaselineIC.h into that file. After that we can clean-up some includes in BaselineIC.h. And that was followed by more includes clean-ups elsewhere...
| Assignee | ||
Comment 1•5 years ago
|
||
And then fixup the missing includes which were previously transitively
included through BaselineIC.h.
| Assignee | ||
Comment 2•5 years ago
|
||
Depends on D92048
| Assignee | ||
Comment 3•5 years ago
|
||
Depends on D92049
| Assignee | ||
Comment 4•5 years ago
|
||
JS_DISASM_SUPPORTED is defined exactly once in the code base and that's after
this guarded include. But that means the include is never used and hence can
be removed.
Depends on D92050
| Assignee | ||
Comment 5•5 years ago
|
||
Add missing resp. remove unnecessary includes. Also use forward declarations
instead of using declarations.
Additional changes needed:
MozBaseAssembler-vixl.h:
- Include "jit/Label.h" for jit::Label.
Depends on D92051
| Assignee | ||
Comment 6•5 years ago
|
||
Additional changes needed:
ObjectGroup.h:
- Include "gc/Allocator.h" for gc::InitialHeap
Simulator-arm.h:
- Include "js/AllocPolicy.h" for SystemAllocPolicy.
Depends on D92052
| Assignee | ||
Comment 7•5 years ago
|
||
Changes Value to JS::Value because "NamespaceImports.h" is no longer
transitively included.
Depends on D92053
| Assignee | ||
Comment 8•5 years ago
|
||
Additional changes needed:
CompileInfo.h:
- Include "jit/CompileWrappers.h" for js::jit::CompileRuntime
IonAnalysis.h:
- Include "mozilla/Attributes.h" for MOZ_MUST_USE
- Include "vm/TypeInference.h" for js::DPAConstraintInfo and js::TypeNewScriptInitializer
Label.h:
- Include "jit/CompileWrappers.h" for js::jit::CompileRuntime
- Include "js/Utility.h" for js::oom::HadSimulatedOOM().
RegExpShim.h:
- Include "js/RegExpFlags.h" for JSRegExp::Flags
- Include "vm/RegExpShared.h" for js::RegExpShared
Depends on D92054
| Assignee | ||
Comment 9•5 years ago
|
||
Move jit::Label destructor out-of-line, that way we can avoid multiple
debug-only includes in Label.h.
Depends on D92055
| Assignee | ||
Comment 10•5 years ago
|
||
"jsfriendapi.h" can be replaced with the new "js/friend/ErrorMessages.h" header.
Additional changes needed:
BytecodeUtil.h
- Remove unused
PcVectorso we don't need to pull in "js/AllocPolicy.h" for SystemAllocPolicy
Depends on D92056
| Assignee | ||
Comment 11•5 years ago
|
||
Depends on D92057
| Assignee | ||
Comment 12•5 years ago
|
||
- Include for "jsapi.h" wasn't necessary at all.
- "NamespaceImports.h" pulls in many headers, so it was replaced with
"js/Value.h". - Without "NamespaceImports.h"
ValueandUndefinedValueneed to be prepended
withJS::.
Depends on D92058
| Assignee | ||
Comment 13•5 years ago
|
||
"js/CompilationAndEvaluation.h" doesn't need to be included in "vm/Runtime.h".
Depends on D92059
Updated•5 years ago
|
Comment 14•5 years ago
|
||
Comment 15•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4080393d0269
https://hg.mozilla.org/mozilla-central/rev/652ef517fcd9
https://hg.mozilla.org/mozilla-central/rev/b9ef794434ec
https://hg.mozilla.org/mozilla-central/rev/4348ec046df8
https://hg.mozilla.org/mozilla-central/rev/961f77ca2cf8
https://hg.mozilla.org/mozilla-central/rev/af0c4d738960
https://hg.mozilla.org/mozilla-central/rev/ebd21b344280
https://hg.mozilla.org/mozilla-central/rev/50329bd48d5b
https://hg.mozilla.org/mozilla-central/rev/13bccdf72309
https://hg.mozilla.org/mozilla-central/rev/0a205bd06fa7
https://hg.mozilla.org/mozilla-central/rev/d8a252759ff4
https://hg.mozilla.org/mozilla-central/rev/c3881fe13740
https://hg.mozilla.org/mozilla-central/rev/acad63c3a51f
Description
•