Commit Graph

31100 Commits

Author SHA1 Message Date
Ed Morley
f5ef92b540 Merge latest green inbound changeset and mozilla-central 2014-01-06 12:51:38 +00:00
Edgar Chen
c21937d32d Bug 956240 - WebMobileConnection: Use webidl event generator for the event that is dispatched by mozMobileConnection. r=smaug 2014-01-03 13:55:27 +08:00
Ehsan Akhgari
ebd358dfd7 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Jan de Mooij
444d280495 Bug 956293 - Don't pass RegExp proto to CloneRegExpObject. r=h4writer 2014-01-03 18:58:56 +01:00
Steve Fink
4891f23eb9 Bug 955660 - Remove most field annotations now that virtual methods are handled correctly, and declare that nsIXPConnectJSObjectHolder.GetJSObject will not be overridden. r=terrence 2014-01-02 11:02:19 -08:00
Jeff Walden
b01c238639 Bug 953296 - Implement mozilla::NullptrT as a typedef to use to accept nullptr values. Also add mozilla::IsNullPointer<T>, a trait for detecting *only* true nullptr (emulated nullptr [__null] used by gcc 4.4/4.5 isn't true nullptr). r=ehsan
Generally, if you want a decltype(nullptr)-based overload, you should use SFINAE and IsNullPointer.  (Examples are provided in NullPtr.h comments.)  The problem is NullptrT matches far more than just __null as emulated nullptr for gcc 4.4/4.5 overloading purposes.  This problem is unavoidable without true nullptr.  Currently, the only valid use for NullptrT is believed to be in operator overloads.  All existing nullptr-overloading code has been rewritten to use the appropriate technique for the situation, and MOZ_HAVE_CXX11_NULLPTR is no longer an API.

--HG--
extra : rebase_source : 01abfcb66ae569db7b04a7b53f5cd5fd8151bffd
2014-01-02 17:27:41 -06:00
Jeff Walden
573ddd1f84 Bug 953316 - Add all the other object flags to JSObject::dump's output. r=bhackett
--HG--
extra : rebase_source : 82e7371ceb07550f918c9012c57dab937cee7214
2013-12-20 21:53:40 -05:00
Hannes Verschore
d54e45dc91 Bug 951400: IonMonkey: Disable thread safety asserts during IONFLAGS=logs, r=bhackett 2014-01-03 18:09:44 +01:00
Luke Wagner
157554fed7 Bug 952616 - Fix typo in previous commit changing success message (r=me) 2014-01-03 11:04:23 -06:00
Luke Wagner
7db5895601 Bug 924905 - Do a subsumes check inside the stack iterator. r=jandem
--HG--
extra : rebase_source : ff8407c4f79fd3e2264470379470c526a751e45f
2014-01-03 10:32:56 -06:00
Jan de Mooij
d1bdb837a1 Bug 956316 - Fix ShellOperationCallback compartment mismatch. r=luke 2014-01-03 17:14:46 +01:00
Jon Coppeard
5d3f3da546 Bug 952819 - Disallow starting pre barrier verification when post barrier verifier is already running r=terrence 2014-01-03 10:30:51 +00:00
Jon Coppeard
e765d8705b Bug 930427 - Add a compartment option specifically for mergable compartments r=billm 2014-01-03 10:30:51 +00:00
Jim Blandy
2f9b79f381 Bug 951720: Allow the DebuggerWeakMaps used for Debugger.Source instances to have keys in invisible-to-debugger compartments. r=jonco 2014-01-03 10:30:40 +00:00
Jon Coppeard
55fbe00121 Bug 955818 - Fix missing include of ScopeObject.h r=terrence 2014-01-03 10:26:18 +00:00
Jan de Mooij
fc9170e992 Bug 955838 - Remove JSScript::enclosingScriptsCompiledSuccessfully() and some unused friend API functions. r=bhackett 2014-01-03 11:19:50 +01:00
Boris Zbarsky
0d6c3ccfcb Bug 939581 part 3. Mark DOM calls as movable as needed and allow them to be CSE'd. r=efaust 2014-01-03 16:44:45 -05:00
Boris Zbarsky
e12893d83b Bug 939581 part 2. Don't create resume points for non-effectful methods (which currently just means DOM methods), on the assumption that such methods have no side-effects and throw deterministically based on thisval and arguments. r=jandem,efaust 2013-11-20 11:24:10 -05:00
Boris Zbarsky
be5663751b Bug 939581 part 1. Factor out MCallDOMNative from MCall. r=efaust,jandem 2013-11-20 17:44:56 -05:00
Ehsan Akhgari
58ee2029fd Merge m-c into inbound 2014-01-04 12:14:57 -05:00
Jan de Mooij
20fa9ad06c Bug 953114 - Fix GetElementIC typed array issue. r=efaust 2014-01-04 13:32:35 +01:00
Wes Kocher
1a8353a018 Backed out 3 changesets (bug 939581) to see if it fixes the apparently permanent rootanalysis orange
Backed out changeset 6034450c8684 (bug 939581)
Backed out changeset 6badd39e9d6f (bug 939581)
Backed out changeset 4abc092e62c5 (bug 939581)
2014-01-03 18:23:45 -08:00
Boris Zbarsky
0624d4112c Bug 939581 part 3. Mark DOM calls as movable as needed and allow them to be CSE'd. r=efaust 2014-01-03 16:44:45 -05:00
Boris Zbarsky
6db1297d09 Bug 939581 part 2. Don't create resume points for non-effectful methods (which currently just means DOM methods), on the assumption that such methods have no side-effects and throw deterministically based on thisval and arguments. r=jandem,efaust 2013-11-20 11:24:10 -05:00
Boris Zbarsky
ffc9cbd30f Bug 939581 part 1. Factor out MCallDOMNative from MCall. r=efaust,jandem 2013-11-20 17:44:56 -05:00
Jan de Mooij
f704b17cb2 Bug 956300 - Remove Class argument from functions that also take a TypeObject. r=bhackett 2014-01-03 22:02:57 +01:00
Chris Peterson
ce8d729455 Bug 956161 - Fix Firefox for Android's last -Wuninitialized warning! r=luke 2013-12-14 19:09:06 -08:00
Luke Wagner
7384b47bfa Bug 953104 - OdinMonkey: report validation failure for missing function-pointer tables (r=bbouvier)
--HG--
extra : rebase_source : 4d3c08640274629bd44393aee2234c4f6f829cb0
2014-01-02 17:20:36 -06:00
Nicholas Nethercote
82b05b710d Bug 955942 (part 2) - Remove MemoryUniReporter. r=mccr8.
--HG--
extra : rebase_source : 9d70016cb19637ffece6409a184bf41d574cc6b4
2013-12-07 22:09:10 -08:00
Hannes Verschore
9a5e3ac59e Bug 952984: Fix barriers around matchResultTemplateObject, r=terrence 2014-01-02 20:45:51 +01:00
Andrew McCreight
6cfd8e569a Bug 952660, part 9 - rename clazz to clasp in nsXPCWrappedJS::GetNewOrUsed. r=bholley 2014-01-02 11:33:42 -08:00
Andrew McCreight
308a7aade6 Bug 952660, part 8 - Insert non-root wrappers into the list in the constructor for nsXPCWrappedJS. r=bholley
A non-root wrapper has to be inserted into the list. There's only one place this is needed, but I
think it makes more sense like this.
2014-01-02 11:33:42 -08:00
Andrew McCreight
663d876a37 Bug 952660, part 7 - Replace if with else in nsXPCWrappedJS::GetNewOrUsed. r=bholley
We check for root, then don't change root and check for !root, so this can just be
an else.
2014-01-02 11:33:42 -08:00
Andrew McCreight
64090143a1 Bug 952660, part 6 - Add and use nsXPCWrappedJS::FindOrFindInherited. r=bholley
FindInherited is only ever used after running Find, and the way the checks
are chained is a little weird.
2014-01-02 11:33:42 -08:00
Andrew McCreight
84a36ae02a Bug 952660, part 5 - The null check at the end of nsXPCWrappedJS::GetNewOrUsed will always fail. r=bholley 2014-01-02 11:33:41 -08:00
Andrew McCreight
20b1ae972d Bug 952660, part 4 - Eliminate now-unnecessary null check in nsXPCWrappedJS::GetNewOrUsed. r=bholley 2014-01-02 11:33:41 -08:00
Andrew McCreight
ab20f03087 Bug 952660, part 3 - Eliminate goto return_wrapper. r=bholley
Substitute in the tail of the function for each goto, then eliminate
the resulting branches where possible.
2014-01-02 11:33:41 -08:00
Andrew McCreight
5085bb4817 Bug 952660, part 2 - Take advantage of new being infallible in nsXPCWrappedJS::GetNewOrUsed. r=bholley 2014-01-02 11:33:41 -08:00
Andrew McCreight
af3de44f9b Bug 952660, part 1 - Use smart pointer for clazz in nsXPCWrappedJS::GetNewOrUsed. r=bholley
The trickiest thing the goto in GetNewOrUsed does is release clazz in some cases,
so using a smart pointer will simplify things.
2014-01-02 11:33:41 -08:00
Andrew McCreight
e21965c2c3 Bug 947336, part 3 - Add comment about ownership of nsXPCWrappedJS::mRoot. r=bholley 2014-01-02 11:33:41 -08:00
Andrew McCreight
e102183e17 Bug 947336, part 2 - Make nsXPCWrappedJS::mClass a smart pointer. r=bholley 2014-01-02 11:33:41 -08:00
Andrew McCreight
6b2d93abd5 Bug 947336, part 1 - Make nsXPCWrappedJS::mOuter into a smart pointer. r=bholley 2014-01-02 11:33:40 -08:00
Luke Wagner
9d4515e054 Bug 952616 - OdinMonkey: tweak success message when not stored in cache (r=bbouvier)
--HG--
extra : rebase_source : fd8b46ce32a3231ae8f3533f445576200003be65
2013-12-20 14:32:04 -06:00
Brian Hackett
c164a4e915 Bug 951497 - Add type constraints for definite property analysis. r=jandem 2014-01-02 11:53:38 -05:00
Jan de Mooij
9aa85fd474 Bug 953373 - Use NewObjectWithType when cloning regexps. r=bhackett 2014-01-02 17:39:00 +01:00
Ryan VanderMeulen
4fad5b8144 Backed out changeset cb4cd38abdc5 (bug 945596) for bustage.
CLOSED TREE
2014-01-02 11:17:12 -05:00
masaya iseki
86327b8008 Bug 945596 - Define getJitCompilerOption to confirm jit-compiler-options. r=nbp 2014-01-02 10:50:14 -05:00
Hannes Verschore
dc9ac690c8 Bug 953410: Test for JS_ION in jit/IonOptimizationLevels.h to fix builds with --disable-ion, r=bhackett 2014-01-02 16:22:13 +01:00
Bobby Holley
c88d7136c7 Bug 951847 - Stop pushing a cx in the XPCCallContext constructor. r=gabor 2014-01-01 19:23:56 -08:00
Bobby Holley
ab6785509b Bug 951847 - Make the |cx| param to XPCCallContext mandatory. r=gabor 2014-01-01 19:23:55 -08:00