Closed
Bug 1468749
Opened 6 years ago
Closed 6 years ago
TypeOfIRGenerator doesn't participate in CacheIR logs
Categories
(Core :: JavaScript Engine: JIT, defect, P3)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox62 | --- | wontfix |
firefox64 | --- | wontfix |
firefox65 | --- | wontfix |
firefox66 | --- | fixed |
People
(Reporter: mgaudet, Assigned: shivambalikondwar, Mentored)
Details
(Keywords: good-first-bug, Whiteboard: [lang=c++])
Attachments
(1 file, 2 obsolete files)
Unlike most of the IR Generators in js/src/jit/CacheIR.cpp, TypeOfIRGenerator appears not to participate in the logging provided by running with a debug build and CACHEIR_LOGS=1 Tasks: * Add a trackAttached method to TypeOfIRGenerator that reports its const char* argument to the cacheIR spewer, along with the value of val_, which is what the IR generator is using to make its attachment decisions. This can be modeled on other CacheIR trackAttached methods. * Add calls to the newly added trackAttached to name the caches that successfully attach. * Verify that the logging works by doing a debug build of spidermonkey, and running a test case with the environment variable CACHEIR_LOGS=1, and checking /tmp/cacheir_logs.* for output from TypeOfIRGenerator.
Updated•6 years ago
|
Priority: -- → P3
Updated•6 years ago
|
Whiteboard: [lang=c++]
Comment 1•6 years ago
|
||
Hi I'm very new to this. Would anyone help me in picking up the bug
Reporter | ||
Comment 2•6 years ago
|
||
Hi Gowry; first step would be to make sure you can build Spidermonkey [1], then you can follow the tasks above. One very useful tool to find code is https://searchfox.org [1]: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation
Assignee | ||
Comment 3•6 years ago
|
||
i have the changes ready but i want to test it, can you specify how to do it i have a build of mozilla-central ready thanks :)
Assignee | ||
Comment 4•6 years ago
|
||
also who all are the reviewers i will add them in phabricator
Reporter | ||
Comment 5•6 years ago
|
||
Hey, you can add me as a reviewer. As far as testing, I usually find a test case by putting MOS_CRASH(“hit”) just before the code I changed, building, and running the JIT tests (at my phone right now so can’t give exact invocation. Set the needinfo flag to me if you need more help. After you find a test case, run with the environment variable CACHEIR_LOGS=$PWD/logs. This will produce a log file in the current directory where you can look for your Newley added output.
Assignee | ||
Comment 6•6 years ago
|
||
what is the irc for cpp developers/contributors ? i want to discuss on the bug
Reporter | ||
Comment 7•6 years ago
|
||
You can find the people you'd need for this bug on #jsapi (on irc.mozilla.org); for more general questions about Mozilla C++ development, try #developers (or potentially #introduction).
Assignee | ||
Comment 8•6 years ago
|
||
you just went i can't find the jsapi irc on mibbit is it suspended ?
Reporter | ||
Comment 9•6 years ago
|
||
It is not, however, it is (gently) hidden due to IRC spam problems. You'll need to register your IRC nickname in order to join #jsapi: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Getting_Started_with_IRC (see the section on NickServ).
Assignee | ||
Comment 10•6 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
Updated•6 years ago
|
Attachment #9028059 -
Attachment is obsolete: true
Updated•6 years ago
|
Attachment #9025003 -
Attachment is obsolete: true
Assignee | ||
Comment 12•6 years ago
|
||
I added the trackAttached method in the CacheIr.cpp file Please review that it logs correctly
Updated•6 years ago
|
Attachment #9029727 -
Attachment description: Bug 1468749 trackAtteched method added for TypeOfIrGenerator in CacheIR.cpp → Bug 1468749 trackAttached method added for TypeOfIrGenerator in CacheIR.cpp
Comment 13•6 years ago
|
||
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/616d351dbe7b trackAttached method added for TypeOfIrGenerator in CacheIR.cpp r=tcampbell
Updated•6 years ago
|
Assignee: nobody → shivambalikondwar
Updated•6 years ago
|
status-firefox64:
--- → wontfix
status-firefox65:
--- → wontfix
status-firefox66:
--- → affected
status-firefox-esr60:
--- → unaffected
Comment 14•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/616d351dbe7b
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•