Commit Graph

958 Commits

Author SHA1 Message Date
Bobby Holley
7250b8aac2 Bug 975419 - Add a JS::TenuredHeap<JSObject*> overload to TraceCallbacks. r=mccr8,terrence 2014-03-03 08:53:42 -08:00
Andrew McCreight
6b925f7324 Bug 977260, part 2 - Use more macros for CC nsDOMCameraControl stuff. r=smaug
Use more powerful macros for nsDOMCameraControl
2014-02-28 09:56:23 -08:00
Andrew McCreight
c479f2a541 Bug 962608 - Make PL_DHashTableInit infallible by default. r=briansmith,bsmedberg,ehsan,froydnj,jduell,jfkthame,roc,smaug 2014-02-27 10:04:09 -08:00
L. David Baron
dfb9ad9186 Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg
This makes sense since the file no longer contains anything with the
nsTraceRefcnt name in it, and it will allow renaming nsTraceRefcntImpl
back to nsTraceRefcnt.
2014-02-26 13:36:35 -08:00
Nathan Froyd
38d5e4285f Bug 976161 - delete dead NSCAP_DISABLE_TEST_DONTQUERY_CASES code; r=bsmedberg 2014-02-24 13:02:43 -05:00
Andrew McCreight
d065a93adf Bug 975223, part 2 - Add nsRefPtrHashtable::Remove that also does a Get. r=froydnj 2014-02-24 17:16:10 -08:00
Andrew McCreight
292daceb96 Bug 975223, part 1 - Make braces less weird in nsRefPtrHashtable. r=froydnj 2014-02-24 17:16:10 -08:00
L. David Baron
06fc468085 Bug 975295 patch 2: Remove the nsITraceRefcnt interface and any instantiation of the nsTraceRefcntImpl object. r=bsmedberg 2014-02-24 15:27:53 -08:00
L. David Baron
8ee755b5cc Bug 975295 patch 1: Remove class nsTraceRefcnt, which is unused. r=bsmedberg 2014-02-24 15:27:53 -08:00
Ehsan Akhgari
ad09f563e0 Bug 969864 - Make nsTArray::SetLength return void; r=froydnj 2014-02-19 08:27:15 -05:00
Neil Rashbrook
fdecf9981d Bug 972167 Followup to make the code compile now that it's actually being used
a=KWierso for checkin to a CLOSED TREE
2014-02-13 21:07:46 +00:00
Neil Rashbrook
86658c7165 Bug 972167 Really give nsAutoArrayBase a copy constructor so that nsAutoTArray's implicit copy constructor will use it r=froydnj 2014-02-13 20:47:32 +00:00
Jacek Caban
cc224d116e Bug 971646 - FileUtilsWin.h fails to compile on GCC. r=bsmedberg 2014-02-13 11:25:26 +01:00
Andrew McCreight
f2ada9f0f9 Bug 970527 - Remove extern C from pldhash.h r=froydnj 2014-02-11 14:56:44 -08:00
Ehsan Akhgari
6ed9144ae7 Bug 970745 - Move USE_STATIC_LIBS to moz.build; r=glandium 2014-02-11 09:12:33 -05:00
Oleg Romashin
24cce95d6b Bug 967796 - Implement Pointer Enter/Leave events support. refactor OutOver element helpers. r=smaug 2014-02-10 22:33:35 -08:00
Ehsan Akhgari
82ebdc883f Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg 2014-02-10 17:57:01 -05:00
Ms2ger
0f6c9634d9 Bug 968766 - Part i: Move the document.all NodeLists into a separate hashtable; r=jst 2014-02-09 09:04:36 +01:00
Jacek Caban
bd25562ba8 Bug 944905 - Fix char16_t/wchar_t mismatch in xpcom/ r=bsmedberg
--HG--
extra : rebase_source : 2f81dd18df59e0498a577c437954c5b1f52f8e28
2014-02-06 17:42:58 +01:00
Birunthan Mohanathas
6a646b838d Bug 828300 - Remove NS_ARRAY_LENGTH. r=ehsan 2014-01-30 13:26:54 -05:00
Joshua Cranmer
a9c5262de0 Bug 450881: Add helpers for XPIDL arrays to nsCOMArray, r=froydnj 2014-01-22 16:19:00 -06:00
Wes Kocher
568a3d2648 Backed out changeset 4c4e95457c87 (bug 961712) for crashing b2g tests on a CLOSED TREE 2014-01-22 15:50:04 -08:00
Chris Lord
0aa482c137 Bug 961712 - Buffer (f)printf_stderr on Android. r=gal
Android logging functions append newlines to all output. Layout debugging
(and perhaps other areas) relies on being able to print partial lines, making
its output almost unreadable. This change adds manual buffering between
newlines, making the output readable again.
2014-01-22 20:20:20 +00:00
Wes Kocher
096be82c47 Backed out changeset 03bdec48d0ac (bug 450881) for Windows build bustage 2014-01-21 18:13:21 -08:00
Joshua Cranmer
b8eaffe78e Bug 450881: Add helpers for XPIDL arrays to nsCOMArray, r=froydnj
--HG--
extra : rebase_source : d87f6cbdd2bab54f5923821409c9197f98b372f4
2014-01-21 18:01:36 -06:00
Phil Ringnalda
29a379a53b Back out 171c124a1402 (bug 961712) for debug b2g mochitest crashes after timeouts 2014-01-20 13:03:26 -08:00
Chris Lord
39d5d47151 Bug 961712 - Buffer (f)printf_stderr on Android. r=gal
Android logging functions append newlines to all output. Layout debugging
(and perhaps other areas) relies on being able to print partial lines, making
its output almost unreadable. This change adds manual buffering between
newlines, making the output readable again.
2014-01-20 17:11:39 +00:00
Benoit Jacob
00e9c80dbb Bug 960591 - Prevent implicitly constructing nsTArray<E> elements from E* pointers - r=ehsan 2014-01-17 11:54:19 -05:00
Terrence Cole
3e141bbf5e Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 3; r=sfink
--HG--
extra : rebase_source : ace7b0fa6ba93acbf0ec8ecaeb68ffa287a33665
2014-01-16 09:48:58 -08:00
Olli Pettay
25af73b606 Bug 958315 - Suspect JS things released by dying C++ objects in the next CC, r=mccr8 2014-01-14 22:23:59 +02:00
Boris Zbarsky
b90683e91c Bug 932837 part 2. Create a refcounted object to manage the lifetime of a JS::StackDescription. r=mccr8, terrence 2014-01-07 19:53:17 -05:00
Carsten "Tomcat" Book
81aa764e2f Backed out changeset 06f381426af1 (bug 944905) for windows bustage on a CLOSED TREE 2014-01-07 15:18:43 +01:00
Jacek Caban
cec8f40264 Bug 944905 - Fix char16_t/wchar_t mismatch in xpcom/ r=bsmedberg 2014-01-07 14:54:52 +01:00
Patrick McManus
8cbe001a55 bug 751465 - websockets dns and proxies r=jduell r=bsmedberg
--HG--
extra : rebase_source : ad2046a95f1ec9000577cc0f67aedc0766a51ed2
2014-01-06 13:52:42 -05:00
Jeff Walden
12220c1619 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
Ehsan Akhgari
eaa7491d77 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
Ms2ger
6c7c16c6b2 Bug 950130 - Move more INCLUDES / LOCAL_INCLUDES to moz.build; r=mshal 2013-12-31 10:06:11 +01:00
Nathan Froyd
7890c85b6f Bug 950882 - micro-optimize NS_TableDrivenQI calling sequence by reordering argument list; r=bsmedberg
For register-rich ABIs (e.g. x86-64 and ARM), QueryInterface's incoming
registers are going to look like:

arg register 1: |this|
arg register 2: the IID of interest
arg register 3: the outparam instance pointer

Most of our QI implementations call NS_TableDrivenQI, which expects
arguments like so:

arg register 1: |this|
arg register 2: the QITableEntry table
arg register 3: the IID of interest
arg register 4: the outparam instance pointer

So we're going to have to do a register shuffle of the IID and the
outparam to be able to load the QITableEntry pointer before calling into
NS_TableDrivenQI.

This patch reorders the argument list of NS_TableDrivenQI so that the
first three arguments match the order that QueryInterface receives them
in.  Then your typical QueryInterface implementation becomes:

- load local |table|
- tail-call NS_TableDrivenQI

Eliminating the register shuffling reduces text size by 12K on an
Android ARM build.
2013-12-13 19:50:02 -05:00
Andrew McCreight
c815051008 Bug 937818, part 1 - Add objects to the purple buffer on AddRef. r=smaug
ICC uses this to track objects that have been AddRef'd during ICC graph building.
For those objects, we may not have the proper information for them, so treat them
as live.
2013-12-17 19:29:57 -08:00
Carsten "Tomcat" Book
9893f955b9 Backed out changeset 261091719842 (bug 937818) for static rooting hazard analysis bustage on a CLOSED TREE 2013-12-17 09:20:51 +01:00
Andrew McCreight
e495d831e0 Bug 937818, part 1 - Add objects to the purple buffer on AddRef. r=smaug
ICC uses this to track objects that have been AddRef'd during ICC graph building.
For those objects, we may not have the proper information for them, so treat them
as live.
2013-12-16 21:30:53 -08:00
Nathan Froyd
23f5fa315e Bug 950281 - micro-optimize NS_TableDrivenQI by ensuring the table has at least 1 non-null entry; r=bsmedberg 2013-12-13 19:17:18 -05:00
Andrew McCreight
a56b513d7c Bug 947626 - Fix index types in nsCOMArray CC helpers and remove whitespace. r=froydnj 2013-12-08 08:56:00 -08:00
Cameron McCormack
aefbbe49ca Bug 947578 - Expose Contains on nsBaseHashtable. r=froydnj 2013-12-08 11:08:58 +11:00
Jon Coppeard
8da8e2247b Bug 939206 - Fix build error in test code on B2G r=me 2013-12-07 16:09:12 +00:00
Jon Coppeard
1c310eeb46 Bug 942928 - Add tests for nsTArray postbarriers r=sfink 2013-12-07 12:50:44 +00:00
Jon Coppeard
bd741e1e35 Bug 939206 - Fix nsTArray post barriers for JS::Heap<T> elements r=bsmedberg 2013-12-07 12:50:28 +00:00
Jon Coppeard
2de3b6aa7f Bug 946732 - Reinstate xpcom/glue gtests r=BenWa 2013-12-05 16:48:48 +00:00
Jacek Caban
50a5638f29 Bug 944905 - Fixed char16_t/wchar_t mismatch in xpcom/ r=bsmedberg 2013-12-04 13:19:09 +01:00
Seth Fowler
e7e7614541 Bug 940142 - Add a lightweight generic hash key class to nsHashKeys.h. r=bsmedberg 2013-12-03 16:23:32 -08:00