Closed Bug 1376928 Opened 8 years ago Closed 8 years ago

Reduce includes in jit/Recover.h

Categories

(Core :: JavaScript Engine: JIT, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file)

As discussed in bug 1367088, comment #7, jit/Recover.h shouldn't include jit/MIR.h.
Attached patch bug1376928.patchSplinter Review
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)
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)
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
js/src/jit/JitFrames.cpp is included in vm/Stack.h, which is included almost everywhere.
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.
(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.

Attachment

General

Created:
Updated:
Size: