Firefox build (Nightly) thread with root permission

2014-03-31 Thread Paul
Hi, I have created a new thread in Nightly and the function can be launched while I executed the script: ./mach run Q1: Because my function is related to kernel, root privilege is necessary. Hence, I got the error message as shown in the following: root privileges needed to run this

Re: MOZ_ASSUME_UNREACHABLE is being misused

2014-03-31 Thread Neil
Joshua Cranmer  wrote: MOZ_ASSUME_UNREACHABLE_MARKER tells the compiler that this code and everything after it can't be reached, so it need do anything. Clang will delete the code after this branch and decide to not emit any control flow. I have found this to be unhelpful when debugging

Re: Promise.jsm and the predefined Promise object

2014-03-31 Thread smaug
On 03/29/2014 02:55 PM, Paolo Amadini wrote: With bug 988122 landing soon, you'll now find a Promise object available by default in the global scope of JavaScript modules. However, this default implementation is still limited, and you're strongly recommended to import Promise.jsm explicitly in

Re: Promise.jsm and the predefined Promise object

2014-03-31 Thread David Rajchenbach-Teller
On 3/31/14 1:34 PM, smaug wrote: Promise.jsm and Promise are still interoperable from the functional point of view, the difference is in the above non-functional characteristics. Promise.jsm also has better performance due to the fact that it avoids the JavaScript / C++ / JavaScript turnaround

Re: Promise.jsm and the predefined Promise object

2014-03-31 Thread Paolo Amadini
On 30/03/2014 22.10, Boris Zbarsky wrote: Hmm. I don't think it was clear to anyone working on the DOM/ES6 promises that were were trying to treat them as do not use kind of things. Obviously, that is not what anyone is proposing here :-) DOM Promises are already enabled by default in

Re: Promise.jsm and the predefined Promise object

2014-03-31 Thread Paolo Amadini
On 31/03/2014 13.42, David Rajchenbach-Teller wrote: I don't remember that we did any benchmark on this. I seem to remember that this was an assumption based on a discussion with bz a long time ago, but it might have been someone else. Yes, memory was my source too. On 31/03/2014 13.34, smaug

Re: Firefox build (Nightly) thread with root permission

2014-03-31 Thread Benjamin Smedberg
On 3/31/14 4:56 AM, Paul wrote: Q1: Because my function is related to kernel, root privilege is necessary. Hence, I got the error message as shown in the following: root privileges needed to run this function--- What function are you talking about? Something in Firefox already, or new

Re: Promise.jsm and the predefined Promise object

2014-03-31 Thread Boris Zbarsky
On 3/31/14 8:18 AM, Paolo Amadini wrote: I've edited bug 939636 to depend on three key issues out of the list I posted before. I think that once those are addressed, there will be no reason to stick to Promise.jsm any longer. Thanks. I'll see what I can do about getting these knocked out.

Re: MOZ_ASSUME_UNREACHABLE is being misused

2014-03-31 Thread Chris Peterson
On 3/28/14, 7:03 PM, Joshua Cranmer  wrote: I included MOZ_ASSUME_UNREACHABLE_MARKER because that macro is the compiler-specific optimize me intrinsic, which I believe was the whole point of the original MOZ_ASSUME_UNREACHABLE. AFAIU, MOZ_ASSUME_UNREACHABLE_MARKER crashes on all Gecko

Re: MOZ_ASSUME_UNREACHABLE is being misused

2014-03-31 Thread Benoit Jacob
2014-03-31 15:22 GMT-04:00 Chris Peterson cpeter...@mozilla.com: On 3/28/14, 7:03 PM, Joshua Cranmer  wrote: I included MOZ_ASSUME_UNREACHABLE_MARKER because that macro is the compiler-specific optimize me intrinsic, which I believe was the whole point of the original

Re: Firefox build (Nightly) thread with root permission

2014-03-31 Thread Paul
Hey BDS, Thanks for your reply. 1. The function I mentioned is the new code I added. 2. I understand that running Firefox with root privileges is not encouraged. However, due to my experiment is related to kernel, root privileges will be necessary to my program. I wiped out my code which