Commit Graph

66 Commits

Author SHA1 Message Date
Jacek Caban
b0b4671dba Merge branch 'mozilla-central' 2015-10-19 06:19:39 +02:00
Nathan Froyd
9c5965b035 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Jacek Caban
8b58300d99 Merge branch 'mozilla-central' 2015-07-28 19:04:23 +02:00
Jacek Caban
8c102cc2ed Merge branch 'mozilla-central'
Conflicts:
	dom/base/nsDocument.h
	dom/base/nsIDocumentObserver.h
	dom/base/nsIMutationObserver.h
	dom/html/HTMLTableRowElement.h
	image/src/VectorImage.cpp
	parser/html/nsHtml5Parser.h
	parser/htmlparser/nsParser.h
2015-03-25 17:41:36 +01:00
Ehsan Akhgari
33bb32f549 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Daniel Holbert
2c24121797 Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
This patch was generated by a script.  Here's the source of the script for
future reference:

find . \( -iname "*.cpp" -o -iname "*.h" \) | \
  xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07:00
Jacek Caban
89d8a84a15 Merge tag 'FIREFOX_AURORA_34_BASE'
Conflicts:
	content/base/src/nsGenericDOMDataNode.cpp
	image/src/VectorImage.cpp
	js/src/vm/TypedArrayObject.cpp
	layout/build/nsLayoutCID.h
	mfbt/FloatingPoint.h
	modules/libpref/src/init/all.js
	parser/htmlparser/src/nsParser.h
2014-09-05 17:27:02 +02:00
Jacek Caban
33b883f77d Merge branch 'mozilla-central'
Conflicts:
	content/base/public/nsIDocumentObserver.h
	content/base/src/nsContentUtils.cpp
	docshell/base/nsDocShell.cpp
	dom/interfaces/html/nsIDOMHTMLFormElement.idl
	dom/plugins/base/nsNPAPIPluginInstance.h
	layout/build/nsLayoutModule.cpp
	mfbt/FloatingPoint.h
	mozglue/build/Makefile.in
	parser/html/nsHtml5TreeOpExecutor.cpp
	parser/htmlparser/src/nsParser.h
	widget/windows/nsWindow.cpp
	xpcom/glue/nsCycleCollectorUtils.cpp
2014-06-02 13:30:02 +02:00
Birunthan Mohanathas
e52329c788 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Birunthan Mohanathas
6ea79dfc7c Bug 1046841 - Fix more style violations in previously touched .cpp files in xpcom/. r=froydnj 2014-08-25 12:17:15 -07:00
Ehsan Akhgari
e5e94302ca Bug 1038148 - Give LowEventsReporter a private destructor; r=bjacob 2014-07-14 21:47:01 -04:00
Benoit Jacob
1f73b3fe2e Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd 2014-06-30 18:11:53 -04:00
Wes Kocher
d65e707f3f Backed out 4 changesets (bug 1028588) for build bustage
Backed out changeset 13a8bae671ca (bug 1028588)
Backed out changeset 19a19833f1d6 (bug 1028588)
Backed out changeset d5fae80054de (bug 1028588)
Backed out changeset 5942ad3859b8 (bug 1028588)
2014-06-30 15:50:19 -07:00
Benoit Jacob
35b82308d8 Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd 2014-06-30 18:11:53 -04:00
Birunthan Mohanathas
861e6d5ffe Bug 995730 - Fix style violations in xpcom/base/. r=froydnj,continuation 2014-05-13 20:41:38 +03:00
Jacek Caban
ec21efcdb1 Merge branch 'mozilla-central' 2013-07-15 23:33:48 +02:00
Nicholas Nethercote
39f29c384a Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
--HG--
extra : rebase_source : 5eb756b17a97e751deb0f47e909fdb35533cb23b
2014-05-20 23:06:54 -07:00
Nicolas B. Pierron
a0ecacf230 Bug 876029 - Make Gonk memory pressure by-pass the event queue. r=jlebar 2013-07-09 13:47:15 -07:00
Jacek Caban
287685c540 Merge branch 'mozilla-central'
Conflicts:
	content/base/public/Makefile.in
	content/base/src/nsObjectLoadingContent.cpp
	content/base/src/nsObjectLoadingContent.h
	dom/plugins/base/Makefile.in
	layout/build/nsLayoutModule.cpp
2013-04-01 10:52:40 +02:00
Jacek Caban
4b9489b3fb Merge branch 'mozilla-central' 2013-01-14 18:56:56 +01:00
Trevor Saunders
e1d9c076e4 bug 829288 - fix a bunch of mingw warnings in xpcom/ r=ehsan 2013-01-10 03:39:40 -05:00
Jacek Caban
18b1c7a2e3 Merge branch 'mozilla-central'
Conflicts:
	content/base/src/nsObjectLoadingContent.cpp
	content/base/src/nsObjectLoadingContent.h
2012-12-10 11:16:40 +01:00
Ryan VanderMeulen
11e25eb4b6 Backed out changeset 1c6223f7c74f (bug 876029) for Android armv6 mochitest-1/3 crahes. 2013-07-07 21:18:36 -04:00
Nicolas B. Pierron
357fed3c71 Bug 876029 - Make Gonk memory pressure by-pass the event queue. r=jlebar 2013-07-07 16:02:58 -07:00
Mike Hommey
95d176978d Bug 804303 part 1 - Cleanup how the mozjemalloc/jemalloc3 glue is set up, attempting to make it clearer. r=jlebar,r=khuey
--HG--
rename : memory/build/extraMallocFuncs.c => memory/build/jemalloc_config.c
rename : memory/mozjemalloc/jemalloc.h => memory/build/mozmemory.h
rename : memory/build/extraMallocFuncs.c => memory/build/mozmemory_wrap.c
2012-12-07 09:32:24 +01:00
Jacek Caban
1adfb7db78 Merge branch 'mozilla-central'
Conflicts:
	layout/build/nsLayoutModule.cpp
2012-11-20 14:31:02 +01:00
Jacek Caban
f445f29c02 Merge branch 'mozilla-central'
Conflicts:
	gfx/harfbuzz/src/hb-buffer-private.hh
2012-08-24 11:56:09 +02:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Jacek Caban
7a316c8a0a Merge branch 'mozilla-central' 2012-06-14 16:35:20 +02:00
Nicholas Nethercote
4c6045114c Bug 760352 (part 2) - Treeify non-JS-compartment KIND_OTHER memory reports where appropriate. r=jlebar.
--HG--
extra : rebase_source : 886b3d40a8dc5f7092ed35ffe280814576ca021b
2012-06-11 20:32:26 -07:00
Jacek Caban
3a18ea3586 Merge branch 'mozilla-central' 2012-05-21 16:21:15 +02:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Jacek Caban
68b1a198fb Merge remote branch 'origin/mozilla-central'
Conflicts:
	configure.in
	gfx/layers/d3d10/ImageLayerD3D10.cpp
	gfx/layers/d3d9/ImageLayerD3D9.cpp
	xpcom/base/AvailableMemoryTracker.cpp
2012-05-14 15:38:44 +02:00
Jacek Caban
11fb160ad5 Merge branch 'mozilla-central'
Conflicts:
	xpcom/base/AvailableMemoryTracker.cpp
2012-04-16 17:44:31 +02:00
Jacek Caban
b72b6d29af Merge branch 'mozilla-central' 2012-04-10 10:37:31 +02:00
Jacek Caban
58939fb628 Merge branch 'mozilla-central' 2012-03-13 12:49:50 +01:00
Veeraya Pupatwibul
1bdf9d9923 Bug 741333 - Remove PRBool/PR_TRUE/PR_FALSE that crept in r=Ms2ger 2012-04-04 11:15:10 +02:00
Jacek Caban
36f8d72627 Disable remaining DLL hooks 2012-02-13 13:09:25 +01:00
Gabriele Svelto
ffd5580b48 Bug 805855 - Free dirty pages in response to all memory-pressure messages. r=jlebar 2012-11-12 17:41:23 +01:00
Justin Lebar
13b09b8b45 Bug 741540 - Add AvailableMemoryTracker's hooks before any threads have started up. r=bsmedberg
--HG--
extra : rebase_source : 5135df39b3ae022e75f8651b2e10a378edbae158
2012-04-09 13:53:08 -04:00
Justin Lebar
6ac5b1589c Bug 717092 - Rename pref 'low_physical_mem_threshold_mb' to 'low_physical_memory_threshold_mb', for consistency with the other low-memory prefs. r=njn 2012-01-11 11:11:32 -05:00
Justin Lebar
729d39eda6 Bug 712997 - Add correct tri-license headers to AvailableMemoryTracker.{cpp|h}. r=gerv
--HG--
extra : rebase_source : 085859bd52094cb93f0144a8c2e86b34a9eaffe2
2011-12-22 09:54:00 -05:00
Gabriele Svelto
09be4479db Bug 850607 - Properly react to changes to the 'memory.free_dirty_pages' preference. r=jlebar 2013-03-13 12:24:04 +01:00
Justin Lebar
8752f15ad1 Bug 733495 - Monitor ullAvailPageFile (available commit space) on Windows, and fire a low-memory event when it gets low. r=bsmedberg 2012-03-08 14:44:20 -05:00
Justin Lebar
421d17bf38 Back out changeset b2ac02d89f41 (wrong bug number; was 733496, should have been 733495). 2012-03-08 14:43:09 -05:00
Justin Lebar
09de20e129 Bug 733496 - Monitor ullAvailPageFile (available commit space) on Windows, and fire a low-memory event when it gets low. r=bsmedberg 2012-03-08 14:27:14 -05:00
Birunthan Mohanathas
cf3e12c35a Bug 995730 - Change xpcom/base/ to use 2 space indentation
This also removes trailing whitespace in reindented files.
2014-05-05 20:30:39 +03:00
Birunthan Mohanathas
ff8ce9bd42 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04: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
Nicholas Nethercote
82b05b710d Bug 955942 (part 2) - Remove MemoryUniReporter. r=mccr8.
--HG--
extra : rebase_source : 9d70016cb19637ffece6409a184bf41d574cc6b4
2013-12-07 22:09:10 -08:00