Closed
Bug 1376928
Opened 8 years ago
Closed 8 years ago
Reduce includes in jit/Recover.h
Categories
(Core :: JavaScript Engine: JIT, enhancement)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(1 file)
2.55 KB,
patch
|
Details | Diff | Splinter Review |
As discussed in bug 1367088, comment #7, jit/Recover.h shouldn't include jit/MIR.h.
Assignee | ||
Comment 1•8 years ago
|
||
Simply changes the MNewObject::Mode field to a raw uint8. And the jsarray.h includes is also no longer needed, so I removed it as well.
Attachment #8881945 -
Flags: review?(nicolas.b.pierron)
Assignee | ||
Comment 2•8 years ago
|
||
Comment on attachment 8881945 [details] [diff] [review]
bug1376928.patch
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c8448715a4960c5258f7c4536060baf3d0c14b6d shows failures in generated static_asserts in non-unified builds. So it's not yet ready for review.
Attachment #8881945 -
Flags: review?(nicolas.b.pierron)
Assignee | ||
Comment 3•8 years ago
|
||
Turns out that Recover.h is only included in four cpp-files, so it's probably not worth the trouble to remove the MIR.h include from it:
js/src/jit/BaselineBailouts.cpp
js/src/jit/JitFrames.cpp
js/src/jit/Recover.cpp
js/src/jit/Snapshots.cpp
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Comment 4•8 years ago
|
||
js/src/jit/JitFrames.cpp is included in vm/Stack.h, which is included almost everywhere.
Comment 5•8 years ago
|
||
Oh, my mistake. It used to be included indirectly in JitFrameIterator.h for decoding the recover instructions.
As it is only included in cpp files, I no longer see any issues then.
Assignee | ||
Comment 6•8 years ago
|
||
(In reply to Nicolas B. Pierron [:nbp] from comment #5)
> Oh, my mistake. It used to be included indirectly in JitFrameIterator.h for
> decoding the recover instructions.
> As it is only included in cpp files, I no longer see any issues then.
Great! \o/
You need to log in
before you can comment on or make changes to this bug.
Description
•