Closed
Bug 921130
Opened 11 years ago
Closed 11 years ago
Minimize the #includes in js/src/jit
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
(deleted),
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
Attachment #810705 -
Flags: review?(luke)
Assignee | ||
Comment 1•11 years ago
|
||
Comment 2•11 years ago
|
||
Comment on attachment 810705 [details] [diff] [review]
Patch (v1)
Thanks! One nit throughout the patch: can you indent everywhere you put #idefs like so:
#ifdef MOZ_INSTRUMENTS
# include "devtools/Instruments.h"
#endif
Attachment #810705 -
Flags: review?(luke) → review+
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to comment #2)
> Thanks! One nit throughout the patch: can you indent everywhere you put #idefs
> like so:
>
> #ifdef MOZ_INSTRUMENTS
> # include "devtools/Instruments.h"
> #endif
Sure, will do before landing.
Assignee | ||
Comment 4•11 years ago
|
||
Assignee | ||
Comment 5•11 years ago
|
||
This broke no-ion builds: <https://tbpl.mozilla.org/php/getParsedLog.php?id=28432259&tree=Mozilla-Inbound>
I tried to fix this locally, but I don't think I know enough about what should and should not be in no-ion builds. Luke, any idea who can fix those builds?
Flags: needinfo?(luke)
Comment 6•11 years ago
|
||
It's weird that this didn't show up in the try push. You should be able to repro the compile errors locally by just configuring and building a js shell with --disable-ion.
Flags: needinfo?(luke)
Comment 7•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Comment 8•11 years ago
|
||
Note: I am seeing a lot of build errors with --disable-ion.
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Luke Wagner [:luke] from comment #6)
> It's weird that this didn't show up in the try push. You should be able to
> repro the compile errors locally by just configuring and building a js shell
> with --disable-ion.
Yeah I can *reproduce* the errors just fine. I just don't know how to fix them, because it actually requires one to know what code should be compiled in no-ion mode and which code should not... :/
Flags: needinfo?(luke)
Comment 10•11 years ago
|
||
I don't know why ForkJoin.h needs MIR.h and Clang doesn't know either (tried both debug/opt builds).
Attachment #811901 -
Flags: review?(luke)
Updated•11 years ago
|
Attachment #811901 -
Flags: review?(luke) → review+
Comment 11•11 years ago
|
||
Flags: needinfo?(luke)
Comment 12•11 years ago
|
||
Backed out for compilation failures on ion android builds:
https://tbpl.mozilla.org/php/getParsedLog.php?id=28560698&tree=Mozilla-Inbound
https://hg.mozilla.org/integration/mozilla-inbound/rev/210167f25955
Comment 13•11 years ago
|
||
Sorry for that. We have to forward-declare MDefinition, don't know how I missed that and why it only breaks Android.
I sent an updated patch to Try. On the bright side, it did fix the No-Ion build...
Comment 14•11 years ago
|
||
Comment 15•11 years ago
|
||
Let's try this again with a forward declaration of MDefinition:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e43f1bac03c1
Linux/Windows/Android/Android NoIon are all green on Try:
https://tbpl.mozilla.org/?tree=Try&showall=1&rev=1a0bf267064e
Comment 16•11 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•