Re: Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-25 Thread Kearwood Kip Gilbert
I am a user of UltraSparc, but practically only for server-side applications and verifying code to ensure it is written in the most portable (endianness neutral) manner. The Sparc Niagara and Niagara 2 are of particular interest as they are one of the few robust multi-core GPL sourced processors.

Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-24 Thread mratcliffe
The DevTools team need to log some telemetry about whether the current Firefox build is 32 or 64-bit. I was told to use XPCOMABI but the possible results are x86, x86_64, ia_64, ppc, SPARC, Alpha or ARM. The problem is that early mac versions were 32-bit so assuming ppc is 64-bit is not

Re: Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-24 Thread Mike Hoye
Flag the easy ones as [good first bug]s and cc me, please. These are the little fish we throw back in the water to reel in the big fish. - mhoye On 2015-02-24 7:28 AM, David Rajchenbach-Teller wrote: It might be useful to add this to OS.Constants.Sys, which is available to all threads.

Re: Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-24 Thread David Rajchenbach-Teller
It might be useful to add this to OS.Constants.Sys, which is available to all threads. It's basically one line of code in dom/system/OSFileConstants.cpp Cheers, David On 24/02/15 12:44, mratcli...@mozilla.com wrote: Assuming you just want to know what the architecture of the build is, not

Re: Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-24 Thread Kyle Huey
On Tue, Feb 24, 2015 at 2:11 AM, mratcli...@mozilla.com wrote: The DevTools team need to log some telemetry about whether the current Firefox build is 32 or 64-bit. I was told to use XPCOMABI but the possible results are x86, x86_64, ia_64, ppc, SPARC, Alpha or ARM. The problem is that

Re: Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-24 Thread mratcliffe
Assuming you just want to know what the architecture of the build is, not what the architecture of the machine it's running on is, you're making this far more complicated than it needs to be. We don't know what we will support in the future so I wanted a future proof solution... adding

Re: Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-24 Thread mratcliffe
I have settled on doing it the easy way at compile time in nsAppRunner.cpp: NS_IMETHODIMP nsXULAppInfo::GetIs64Bit(bool* aResult) { #ifdef HAVE_64BIT_BUILD *aResult = true; #else *aResult = false; #endif return NS_OK; } ___ dev-platform mailing

Re: Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-24 Thread Philip Chee
On 24/02/2015 19:28, Kyle Huey wrote: Assuming you just want to know what the architecture of the build is, not what the architecture of the machine it's running on is, you're making this far more complicated than it needs to be. x86, arm, and ppc are 32 bit, x86_64 and aarch64 are 64 bit.

Re: Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-24 Thread Kyle Huey
On Tue, Feb 24, 2015 at 8:17 AM, Philip Chee philip.c...@gmail.com wrote: On 24/02/2015 19:28, Kyle Huey wrote: Assuming you just want to know what the architecture of the build is, not what the architecture of the machine it's running on is, you're making this far more complicated than

Re: Detecting 32 or 64-bit Firefox build from privileged JS

2015-02-24 Thread ishikawa
On 2015年02月24日 20:28, Kyle Huey wrote: I'm also not sure why you care about arcane architectures like Itanium, Alpha, and SPARC, since there are approximately zero users of those. - Kyle I think there are users of ultrasparc out there. But as long as SPARC is returned as the architecture,