Nicholas Nethercote
715c4b39fc
Bug 902820 - Fix a bunch of compile warnings in SpiderMonkey. r=till.
...
--HG--
extra : rebase_source : 0306d26443640104bae575a60fec7a693f7b43c5
2013-08-08 06:33:49 -07:00
Nicholas Nethercote
25d70fdd97
Bug 902332 - Replace JS_{FALSE,TRUE} with {false,true} almost everywhere. r=luke,bz.
...
--HG--
extra : rebase_source : 25f4de1bfae830b0af6407d260a70b787ab1dc9b
2013-08-06 23:59:54 -07:00
Nicholas Nethercote
ba723f1034
Bug 901750 - Change return type of |JSNative| from |JSBool| to |bool|. code=nnethercote,jandem. r=luke,bz.
...
--HG--
extra : rebase_source : 5b3d7cc339af6d93bde078322e25c6e740d1b617
2013-08-02 00:41:57 -07:00
Justin Lebar
29c7abe55d
Bug 893222 - Part 3: Modify the JS memory reporter to consider a string as "notable" if we have many small copies of it. r=njn
2013-08-05 16:33:00 -07:00
Ryan VanderMeulen
24743de8ad
Backed out 7 changesets (bug 893222, bug 899256) for build bustage on a CLOSED TREE.
...
Backed out changeset 4aa234138f44 (bug 893222)
Backed out changeset 4b0bf28abdf2 (bug 899256)
Backed out changeset ea8b6ba99c05 (bug 893222)
Backed out changeset ac8220cb61d5 (bug 893222)
Backed out changeset d01358ff4b15 (bug 893222)
Backed out changeset 3baebe7cc655 (bug 893222)
Backed out changeset 4bdf8611ec57 (bug 893222)
2013-08-02 14:49:38 -04:00
Justin Lebar
5c20755f20
Bug 893222 - Part 3: Modify the JS memory reporter to consider a string as "notable" if we have many small copies of it.
2013-08-02 10:02:40 -07:00
Jon Coppeard
938093c13e
Bug 899976 - GC: Fix unsafe references related to ToInt* functions - js engine changes r=sfink
2013-08-02 13:15:38 +01:00
Ehsan Akhgari
5ee21d6d3f
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
...
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
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 "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Ehsan Akhgari
4c789cad3e
Bug 872127 - Part 1: Remove support for MOZ_CUSTOM_STDINT_H; r=Waldo,ted
2013-07-30 10:24:49 -04:00
Terrence Cole
7bde45b12a
Bug 887563 - Convert CallArgs::operator[] to return a Handle; r=Waldo,bz
...
--HG--
extra : rebase_source : a06130820b34f6e1f5bc317e89c087cf0db9eeb8
2013-06-26 16:26:45 -07:00
Terrence Cole
5bec5ea06c
Bug 890048 - Fix rooting of the findReferences shell command; r=jimb,billm
2013-07-24 16:32:21 -07:00
Nicholas Nethercote
2874baae06
Bug 892806 - Clean up InflateUTF8String() and related functions. r=terrence.
...
--HG--
extra : rebase_source : df901e9900fbd01f1adbe430b9ac52428499681f
2013-07-09 23:17:32 -07:00
Nicholas Nethercote
20b74efd15
Bug 888088 (part 0) - Some minor #include fix-ups. r=wmccloskey.
...
--HG--
extra : rebase_source : edb1291d4571c2ea3bd942e2b1fcea0ab58cbe25
2013-07-23 17:34:12 -07:00
Jon Coppeard
3155328d9e
Bug 891966 - 2 - Comment calls to Handle::fromMarkedLocation r=bz
2013-07-23 10:58:28 +01:00
Jon Coppeard
da4b383f2b
Bug 891966 - 1 - Don't allow construction of Handle<T> from Heap<T> r=bz
2013-07-23 10:58:27 +01:00
Jon Coppeard
1bb7f2a908
Bug 888338 - 1 - Add TenuredHeap<T> class r=terrence r=bz
2013-07-23 10:58:26 +01:00
Jeff Walden
e127f08ae6
Bug 891177 - Implement mozilla/Vector.h, and make js/Vector.h implement js::Vector using mozilla::Vector's implementation of the functionality. r=terrence
...
--HG--
rename : js/public/Vector.h => mfbt/Vector.h
extra : rebase_source : d5f87a48485e3f2241228a4b003e80974c86fd5f
2013-07-09 16:33:29 -07:00
Jeff Walden
6c81653318
Bug 891177 - Remove Vector.h's js/TemplateLib.h dependency by introducing mfbt/TemplateLib.h with the necessary bits. r=terrence
...
--HG--
extra : rebase_source : e84231171d6bd6c1e2de8201b8c9563375723d01
2013-07-08 12:42:13 -07:00
Jeff Walden
87d5876801
Bug 891177 - Remove Vector.h's js/Utility.h dependency. r=terrence
...
--HG--
extra : rebase_source : d9be649a097b3b9b92cd62685d0fadfa8c0e2bc4
2013-07-03 16:07:43 -07:00
Jeff Walden
5805e8a35e
Bug 891177 - Move leading/trailing-zero-bit counting functions, ceiling/floor log2 functions, and round-up-pow2 functions into MathAlgorithms.h. r=terrence
...
--HG--
extra : rebase_source : 8cfbd68b8cd4a0e21185dd864c7e827ccfa6b751
2013-07-03 15:46:51 -07:00
Justin Lebar
ae700dba20
Bug 893281 - Don't require a no-args constructor for elements in a JS::Vector if you call GrowByUninitialized(). r=luke
2013-07-15 12:10:59 -07:00
Shu-yu Guo
3dc72d6c3e
Bug 891946 - Rename ThreadSafeContext variables from tcx -> cx. (r=bhackett)
2013-07-10 18:25:42 -07:00
Shu-yu Guo
e2976ff901
Bug 881593 - Part 1: Change LossyTwoByteCharsToNewLatin1CharsZ to take ThreadSafeContext. (r=billm)
2013-07-10 18:25:33 -07:00
Shu-yu Guo
58bdf6c9ed
Bug 881988 - Support calling natives in parallel. (r=djvj)
2013-07-10 18:25:33 -07:00
Jeff Walden
8a8be12d99
Bug 891177 - Move js::Swap to mozilla::Swap. r=terrence
...
--HG--
extra : rebase_source : 925bccd4fa3f95e1aa4e17d94ad5a443fc7a63aa
2013-07-03 15:57:33 -07:00
Jeff Walden
919f4b04c8
Bug 891177 - Add ReentrancyGuard.h as a helper class for asserting that use of a class is non-reentrant. r=terrence
...
--HG--
extra : rebase_source : 3751e523c0b0315697cb6e005dfd8ee625f6dd58
2013-07-02 17:47:08 -07:00
Jeff Walden
6b0a83fef4
Bug 891177 - Use MOZ_STATIC_ASSERT, not JS_STATIC_ASSERT, in Vector.h. r=terrence
...
--HG--
extra : rebase_source : 35bf9a16df56ff308ff2761f0f088a1ca980f04a
2013-07-02 17:33:32 -07:00
Jeff Walden
319a73b7a4
Bug 891177 - s/JS_ALWAYS/MOZ_ALWAYS/g and s/JS_NEVER/MOZ_NEVER/g on Vector.h. r=terrence
...
--HG--
extra : rebase_source : 345ebb6b5d7f7b023bcebdf1610de4f03c98cf46
2013-07-02 17:31:49 -07:00
Jeff Walden
243d2bf01d
Bug 891177 - s/JS_ASSERT/MOZ_ASSERT/g on Vector.h. r=terrence
...
--HG--
extra : rebase_source : 9ed551860edfb8801725a3575335039c1bb07692
2013-07-02 17:29:29 -07:00
Jeff Walden
fe51d6bb86
Bug 891177 - Implement Move.h to define a move-construction interface. r=terrence
...
--HG--
extra : rebase_source : 45f9bb87fc0ee96ea35005ca0dcb263aa11745b8
2013-07-02 17:25:13 -07:00
Brian Hackett
4f07a29526
Bug 885758 - Add ExclusiveContext for use by threads with exclusive access to their compartment, r=billm.
2013-07-10 09:29:52 -06:00
Terrence Cole
b57778c83f
Bug 888117 - Properly barrier the JSON stringifier's CycleDetection set; r=billm
...
--HG--
extra : rebase_source : 9cd269cf38bacfb63cbceef5dec795da2c24750c
2013-06-27 18:12:54 -07:00
Steve Fink
2f47851cda
Bug 890076 - Move isConstructing to CallArgs, r=Waldo
...
--HG--
extra : rebase_source : f66e59fbd201153a4329a82264c32ad72465d654
2013-07-03 22:59:43 -07:00
Terrence Cole
d145542530
Bug 878160 - GC: post barrier weak references in the browser - part 2 browser r=terrence r=billm
...
--HG--
extra : rebase_source : a1856a7dce28da5086f6fbeaeda15596193aa7ad
2013-06-05 16:40:02 -07:00
Jon Coppeard
ff4b38f917
Bug 878160 - GC: post barrier weak references in the browser - part 1 JS engine r=terrence
...
--HG--
extra : rebase_source : 4dfd4f8f46564d3a9858646a0f68c9047c2f7e93
2013-07-02 09:43:45 +01:00
Justin Lebar
904130e9c2
Bug 820686 - Follow-up: s/MOZ_ASSUME_NOT_REACHED/MOZ_ASSUME_UNREACHABLE/. rs=waldo
...
I'd meant to do this, but I only got as far as the comment in mfbt. Oops!
--HG--
extra : rebase_source : 3cfe3ef1bf401eb7d9a10fcabcfb39008e9553a4
2013-06-28 19:20:12 -07:00
Justin Lebar
6c46d0633d
Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Justin Lebar
de08e1432c
Bug 820686 - Rename MOZ_NOT_REACHED() and JS_NOT_REACHED() to MOZ_ASSUME_NOT_REACHED(). r=waldo
...
This includes a mechanical renaming of MOZ_NOT_REACHED to MOZ_ASSUME_NOT_REACHED in JS. Later patches in this queue clean up whitespace errors and so on.
2013-06-28 18:38:31 -07:00
Nicholas Nethercote
66f90c8922
Bug 883696 (part 4) - Include full paths in #include statements in the rest of js/src/ and js/public/. r=luke.
2013-06-27 17:37:29 -07:00
Cykesiopka
06857ab4f5
Bug 831741 - Followup: Remove remaining __cplusplus bits from /js (with exceptions). r=jorendorff
2013-06-26 21:35:11 -04:00
Steve Fink
7d4ba82022
Bug 887362 - Fix include tangle for CheckStackRoots, r=ehoogeveen
...
--HG--
extra : rebase_source : 0bad13a22809afb35f924decc02b55a3e87db486
2013-06-26 11:21:36 -07:00
Terrence Cole
ffcfc9d60b
Bug 848592 - Fix some dynamic rooting analysis failures; r=sfink
...
--HG--
extra : rebase_source : 0d614298d3e9879a0ac5f95561329dc3a80d693b
2013-06-14 13:48:39 -07:00
Steve Fink
6e805a1adc
Bug 868302 - Enable rooting LIFO assertions in DEBUG, r=terrence
2013-05-03 13:53:15 -07:00
Catalin Iacob
1544c37641
Bug 798914 (part 4) - Use newly introduced mozilla::MallocSizeOf in js. r=njn.
...
--HG--
extra : rebase_source : d1c063b94c7ec58729150cbea602bb4c9f2a0e24
2013-06-23 13:21:01 +02:00
Terrence Cole
eaad8a3737
Bug 840242 - Use the runtime page size to control arena decommit; r=luke
...
--HG--
extra : rebase_source : e183246d7a2f381e015e7d860336330a726cb9f8
2013-02-11 13:59:10 -08:00
Phil Ringnalda
9f4c5472ab
Back out 1b81a9c88872 (bug 840242) for committing infanticide in Nursery.o
2013-06-21 18:53:24 -07:00
Terrence Cole
af471f2f39
Bug 840242 - Use the runtime page size to control arena decommit; r=luke
...
--HG--
extra : rebase_source : 575a7485a5c6ac51f5c0cadc91616302326ce770
2013-02-11 13:59:10 -08:00
Jan de Mooij
ae7738d127
Bug 881902 - Remove ContextStack and StackSpace. r=luke,njn
2013-06-21 08:28:06 +02:00
Jon Coppeard
d5f923c927
Bug 885315 - GC: Add some documentation comments for JS::Heap<T> r=sfink
2013-06-21 14:12:45 +01:00
Terrence Cole
700816d4d6
Backout ac48416672e7 for unexpected SM(r) failures.
...
Even if the there is a CLOSED TREE by the time I push.
--HG--
extra : rebase_source : b6ccfb766566415e50f1f48c6c738ed72f86babf
2013-06-20 16:17:37 -07:00