Collapse ICCacheIR_UpdatedStub into ICUpdatedStub
Categories
(Core :: JavaScript Engine: JIT, enhancement, P3)
Tracking
()
People
(Reporter: mgaudet, Assigned: asorholm, Mentored)
References
Details
Attachments
(4 files)
Updated•7 years ago
|
Reporter | ||
Comment 2•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Here is what I have so far. I have this code commented out https://searchfox.org/mozilla-central/source/js/src/jit/BaselineIC.h#609-617, the patch doesn't work otherwise, but I'm working on getting it to work without that code commented out.
I'll also attach the diff'ed output of jit-test/jit_test.py build_DBG.OBJ/dist/bin/js
run with and without these fixes, and the diff'ed output of tests/jstests.py build_DBG.OBJ/dist/bin/js
run with and without these fixes.
Any feedback is appreciated, thanks!
Comment 10•6 years ago
|
||
(In reply to Adam Holm from comment #8)
Created attachment 9037807 [details]
diff'ed output from runningjit-test/jit_test.py build_DBG.OBJ/dist/bin/js
with and without fixes
Why do you get so many test failures even without the patch?
All tests should pass without the patch.
Comment 11•6 years ago
|
||
Assignee | ||
Comment 12•6 years ago
|
||
(In reply to Jan de Mooij [:jandem] from comment #10)
(In reply to Adam Holm from comment #8)
Why do you get so many test failures even without the patch?All tests should pass without the patch.
This is a very good point, haha. Thanks for pointing this out!
(In reply to Jan de Mooij [:jandem] from comment #11)
Thanks for working on this.
The patch makes sense, but it would be better and simpler to fold
ICUpdatedStub into ICCacheIR_Updated instead of the other way around. That
way you don't have to change the stub kind etc.
I'll implement this after I address the above test issue. Thank you for the suggestion and the great feedback!
Comment 13•6 years ago
|
||
(In reply to Adam Holm from comment #12)
I'll implement this after I address the above test issue. Thank you for the suggestion and the great feedback!
Great! Let me know if you need help with the failing tests. It's curious they fail on your machine.
Assignee | ||
Comment 14•6 years ago
|
||
Collapsed ICUpdatedStup into ICCacheIR_Updated.
Assignee | ||
Comment 15•6 years ago
|
||
(In reply to Jan de Mooij [:jandem] from comment #13)
(In reply to Adam Holm from comment #12)
I'll implement this after I address the above test issue. Thank you for the suggestion and the great feedback!
Great! Let me know if you need help with the failing tests. It's curious they fail on your machine.
I've submitted my patch implementing the folding you suggested to Phabricator (let me know if I did anything incorrectly in that process). I ran the jstests.py
and jit_test.py
tests with the build_DBG.OBJ/dist/bin/js
again and didn't run into the same errors, so I'm not sure what caused them. There were a handful of timeouts, but when I ran those test files individually, they passed. I also ran the benchmarks described here: https://wiki.mozilla.org/JavaScript:New_to_SpiderMonkey#Benchmark_your_changes, and got good results on my machine.
Reporter | ||
Comment 16•6 years ago
|
||
(Seems a patch went arwy; see phabricator comments!)
Reporter | ||
Updated•6 years ago
|
Comment 17•6 years ago
|
||
Comment 18•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Description
•