Closed
Bug 1184887
Opened 9 years ago
Closed 9 years ago
Tests: add SetARMHwCapFlags as a testing builtin and use it in testAtomics
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: bbouvier, Assigned: bbouvier)
Details
Attachments
(1 file)
51.00 KB,
patch
|
h4writer
:
review+
|
Details | Diff | Splinter Review |
So, following bug 1183051, I noticed the ARM vfp configuration hasn't been tested on treeherder so far. Let me introduce the setARMHwCapFlags shell builtin function, which does the same as the shell flag, but directly inside the shell, so that we can have it in tests. I've also fixed indentation in asm.js/testAtomic*, and have had the two tests use asmCompile/asmLink (which actually check that the compilation and linking worked well) instead of plain "use asm" functions. Also added a test case that reproduces the crash in bug 1183051.
Attachment #8635211 -
Flags: review?(hv1989)
Comment 1•9 years ago
|
||
Comment on attachment 8635211 [details] [diff] [review] setarmhwcapflags.patch Review of attachment 8635211 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/builtin/TestingFunctions.cpp @@ +2655,5 @@ > +SetARMHwCapFlags(JSContext* cx, unsigned argc, jsval* vp) > +{ > + CallArgs args = CallArgsFromVp(argc, vp); > + > +#if defined(JS_CODEGEN_ARM) Can you move this a bit lower. That way we still check the argument count and do the ToString call the same way across platform. @@ +2664,5 @@ > + > + RootedString flagsListString(cx, JS::ToString(cx, args.get(0))); > + if (!flagsListString) > + return false; > + #if defined(JS_CODEGEN_ARM)
Attachment #8635211 -
Flags: review?(hv1989) → review+
Assignee | ||
Comment 3•9 years ago
|
||
CC'ing Lars, so he's aware of the new function (and of a more proper way to check that an asm.js compilation worked).
Status: NEW → ASSIGNED
Comment 4•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a3b6daa308f2
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Comment 5•9 years ago
|
||
Lars notes the change.
You need to log in
before you can comment on or make changes to this bug.
Description
•