Jan de Mooij
69fca6313c
Bug 1055758 - rm Ion CompilerRoot infrastructure. r=bhackett
...
--HG--
extra : rebase_source : 73d4b369b240436d0c2cc95a9f40cac783c6adb5
2014-08-20 12:18:49 +02:00
Terrence Cole
3718c92afc
Bug 1047120 - PurpleBuffer doesn't actually need to use Heap<T>; r=mccr8,jonco
2014-07-31 14:43:45 -07:00
Terrence Cole
8d0192ae1b
Bug 1045181 - Miscellaneous small cleanups in js::gc; r=jonco
2014-07-29 10:47:43 -07:00
Chris Peterson
23f9c657f5
Bug 1036780 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in js/src/gc. r=terrence
2014-06-29 23:05:34 -07:00
Jim Blandy
7a407c784d
Bug 961325: Give PersistentRooted a copy constructor that can take a 'const' original. r=terrence
2014-06-23 12:59:19 -07:00
Terrence Cole
06bb27de7f
Bug 1028358; r=jonco
...
--HG--
extra : rebase_source : 41cf1eaa104bf386c77777be906236d1d15a2622
2014-06-23 12:36:36 -07:00
Birunthan Mohanathas
bc0233fe47
Bug 1026535 - Fix mismatched class/struct tags. r=ehsan
2014-06-18 17:57:51 -07:00
Terrence Cole
2cfeae1d9e
Bug 1017650 - Re-arrange the GC API include dependency ordering; r=jonco
...
--HG--
extra : rebase_source : bc27b7206c674ef2247169dd700b9fbf61e5bd74
2014-06-16 11:59:45 -07:00
Jon Coppeard
1e52d084da
Bug 1021114 - Remove GCMethods::kind() in favour or RootKind::rootKind() r=terrence
2014-06-07 10:34:57 +01:00
Ryan VanderMeulen
c926517847
Backed out 3 changesets (bug 1021114, bug 988486) for GC crashes on a CLOSED TREE.
...
Backed out changeset f56234ba7ec7 (bug 1021114)
Backed out changeset 14a4a9062253 (bug 988486)
Backed out changeset 03eccac81e15 (bug 988486)
2014-06-07 00:03:17 -04:00
Jon Coppeard
a51d6e0272
Bug 1021114 - Remove GCMethods::kind() in favour or RootKind::rootKind() r=terrence
2014-06-07 10:34:57 +01:00
Jon Coppeard
fb0a091308
Bug 1020690 - Type exact stack rooting machinery. r=sfink
...
--HG--
extra : rebase_source : 366ff0579912b8a03f29abb882cabcc982a44d47
2014-06-05 10:38:00 -04:00
Ryan VanderMeulen
cf6ea4c31e
Backed out changeset 846ee7c7debf (bug 1020690) for bustage.
...
CLOSED TREE
2014-06-05 14:39:11 -04:00
Jon Coppeard
095ddda7f4
Bug 1020690 - Type exact stack rooting machinery. r=sfink
2014-06-05 10:38:00 -04:00
Ehsan Akhgari
5b0272c079
Bug 1013663 - Fix some bad implicit conversion constructors in the JS engine; r=jorendorff,jandem
2014-05-25 21:46:24 -04:00
Dan Gohman
ad6d8397a0
Bug 1012971 - SpiderMonkey: Fix various warnings. r=nbp
2014-05-22 11:15:06 -07:00
Jon Coppeard
1d203c9d72
Bug 929314 - Remove Handle::repoint() r=terrence
2014-05-20 10:57:03 +01:00
Terrence Cole
458143c115
Bug 989414 - Access the store buffer through the chunk trailer; r=jonco
2014-05-01 09:26:12 -07:00
Terrence Cole
ef5f219fda
Bug 995442 - Don't post-barrier non-objects in the browser; r=sfink
2014-04-11 14:29:14 -07:00
Peter Van der Beken
9bbd30a4ac
Bug 990158 - Make inner windows use their wrapper cache. r=bz.
...
--HG--
extra : rebase_source : bc040c75280bb45ae7ab0ed302130ff5d7178153
2013-11-09 11:20:22 +01:00
Terrence Cole
fdb0eed6c9
Bug 987666 - Remove the unused dynamic root analysis. r=sfink
2014-03-24 18:32:36 -04:00
Bobby Holley
611c847a27
Bug 975419 - Add a JS::TenuredHeap<JSObject*> overload to TraceCallbacks. r=mccr8,terrence
2014-03-03 08:53:42 -08:00
Terrence Cole
42bee7f6b4
Bug 919544 - Allow cached object allocation to GC; r=jandem
2014-02-01 12:04:03 -08:00
Chris Peterson
d2c6598a97
Bug 712873 - Part 2: Replace JS_ASSERT with MOZ_ASSERT outside js/src/ directory. r=luke
2014-02-17 22:24:15 -08:00
Daniel Holbert
c516662c22
back out 3a8893b28489 (bug 712939) and 39adab158c17,16add78c43e3,37193db7e15b (bug 712873), for build bustage.
2014-02-19 00:15:51 -08:00
Chris Peterson
58e6c13345
Bug 712873 - Part 2: Replace JS_ASSERT with MOZ_ASSERT outside js/src/ directory. r=luke
2014-02-17 22:24:15 -08:00
Luke Wagner
5ac29476e6
Bug 936236 - Inline allocateSlots into caller and handlify (r=jonco)
2014-02-13 11:17:43 -06:00
Terrence Cole
1716ba8f56
Bug 885954 - Add comments to barrier classes explaining our use of C++ move semantics; r=jimb
2014-02-07 10:03:21 -08:00
Nicholas Nethercote
8ad98d5f7b
Bug 964238 (part 1) - Remove JSStableString and StableTwoByteChars. r=terrence.
...
--HG--
extra : rebase_source : 1859ce0b42661494fa13628551359a5a5d5663c0
2014-01-30 14:58:53 -08:00
Jon Coppeard
904faa3371
Bug 961077 - Take marking function as template parameter in PersistentRootedMarker r=sfink
2014-01-23 09:53:42 +00:00
Steve Fink
9f72871624
Bug 960342 - Add a RootedGeneric general class, r=terrence
2014-01-22 11:52:44 -08:00
Jon Coppeard
eddc75fd8f
Bug 961077 - Make PersistentRooted use private inheritance when deriving from LinkedListElement r=sfink
2014-01-22 11:28:06 +00:00
Jon Coppeard
5437959382
Bug 960544 - Always export rooting APIs and stop linking unit tests against JS library r=glandium
2014-01-17 10:18:19 +00:00
Jeff Walden
5d3f01c937
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
Sean Stangl
dcde6d6dea
Bug 949195 - Don't refer to IsInRequest() when JS_DEBUG is not defined. r=efaust
2013-12-11 14:06:04 -08:00
Sean Stangl
33cecd91b2
Bug 939505 - Use JS_DEBUG in public headers. r=jorendorff
2013-12-06 15:03:08 -08:00
Trevor Saunders
36e24ccdae
bug 938025 - part 2 - fix some static constructors in the jseng r=waldo
2013-11-22 15:05:04 -05:00
Jon Coppeard
5bdcd42d7f
Bug 938211 - Supply copy assignment operator for Heap<T> and fix up some other classes in RootingAPI.h r=sfink
2013-11-18 17:21:44 +00:00
Jim Blandy
e2f0547581
Bug 892643: Implement PersistentRooted<T>, an unrestricted-lifetime rooting type. r=terrence, jcoppeard
2013-11-04 13:35:08 -08:00
Jon Coppeard
fba2cabd21
Bug 931446 - Improve documentation comment on JS::Heap r=terrence
2013-11-01 10:20:50 +00:00
Nicholas Nethercote
3b80765894
Bug 925584 - Remove some unnecessary jsapi.h inclusions from .cpp files. r=Ms2ger.
...
--HG--
extra : rebase_source : 41fcb0e922a519ef679c1c1b6293c2b638e83a48
2013-10-10 15:22:35 -07:00
Jim Blandy
53a9ab4dc3
Bug 928507: Properly hide JS::Handle's assignment operator; add 'repoint' method to deal with the fallout; fix C1Spewer, IonSpewer, and CompileOptions. r=terrence
2013-10-21 12:56:44 -07:00
Ehsan Akhgari
ef1d626e26
Bug 915735 - Part 1: Work around a bug in the MSVC PGO instrumented builds which prevents xpcshell to run successfully as a host tool during builds; r=sfink
...
--HG--
extra : rebase_source : e9b3bfc9cae14d0a699f584ccbda80157b065bc0
2013-09-23 15:28:08 -04:00
Terrence Cole
a3990e4631
Bug 918118 - Delete MutableHandle constructors for int and nullptr; r=jonco
...
This should prevent accidently misuse of MutableHandle.
--HG--
extra : rebase_source : 836a46068770281de24b6a11a04352b49c1dd05d
2013-08-06 15:09:15 -07:00
Birunthan Mohanathas
578826a89e
Bug 784739 - Switch from NULL to nullptr in js/ductwork/, js/ipc/, and js/public/; r=ehsan
2013-09-19 15:24:53 -04:00
Nicholas Nethercote
01c70c8c97
Bug 911020 - Introduce js/TypeDecls.h, which holds very commonly used type declarations from the JS engine. r=luke.
...
--HG--
extra : rebase_source : 008ef689989f93b46627b8be8608bdbc544ca3a2
2013-08-27 19:59:14 -07:00
Nicholas Nethercote
219bcb46a2
Bug 909178 (part 1) - Move |jsid| from jsapi.h into js/Id.h. r=luke.
...
--HG--
extra : rebase_source : b0d38093a9f40a532e73c2c30ae86b8970b814ac
2013-08-21 22:26:56 -07:00
Nicholas Nethercote
74c7654541
Bug 898274 (part 1) - Fix ordering of various #include statements. r=benjamin.
2013-08-13 15:34:12 -07:00
Nicholas Nethercote
e7fe914e75
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
Jon Coppeard
61d335141c
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
2824b29025
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
Terrence Cole
28afcc4d1d
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
Jon Coppeard
ba4685ee98
Bug 891966 - 2 - Comment calls to Handle::fromMarkedLocation r=bz
2013-07-23 10:58:28 +01:00
Jon Coppeard
03004ec89e
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
e526358777
Bug 888338 - 1 - Add TenuredHeap<T> class r=terrence r=bz
2013-07-23 10:58:26 +01:00
Jeff Walden
7c8d6dea3e
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
Brian Hackett
aafb978437
Bug 885758 - Add ExclusiveContext for use by threads with exclusive access to their compartment, r=billm.
2013-07-10 09:29:52 -06:00
Jon Coppeard
32a8cfef5d
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
3da6ed220e
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
3e059c7221
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
674bdae8dc
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
Steve Fink
38ddb62f45
Bug 887362 - Fix include tangle for CheckStackRoots, r=ehoogeveen
...
--HG--
extra : rebase_source : 0bad13a22809afb35f924decc02b55a3e87db486
2013-06-26 11:21:36 -07:00
Terrence Cole
f05eb3a4f7
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
12acfa2b71
Bug 868302 - Enable rooting LIFO assertions in DEBUG, r=terrence
2013-05-03 13:53:15 -07:00
Jon Coppeard
4cc78f2b6c
Bug 885315 - GC: Add some documentation comments for JS::Heap<T> r=sfink
2013-06-21 14:12:45 +01:00
Terrence Cole
70f401359a
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
Terrence Cole
284b554ae9
Bug 848592 - Fix some dynamic rooting analysis failures; r=sfink
2013-06-14 13:48:39 -07:00
Bobby Holley
9762bd6b16
Bug 883450 - Assert that we're in a request whenever we create a Rooted<T>. r=terrence
2013-06-20 11:05:34 -07:00
Emanuel Hoogeveen
e0a70e1fe3
Bug 883697 (part 1) - Make include guards consistent in js/ductwork/, js/ipc/ and js/public/. r=njn.
...
--HG--
extra : rebase_source : 34f5559ba6e64831905686e12356b70109d873a8
2013-06-19 17:59:09 -07:00
Jon Coppeard
e2a2d38706
Bug 884283 - GC: Rename RootMethods to GCMethods r=terrence
2013-06-19 11:32:26 +01:00
Jon Coppeard
7295df4d69
Bug 877762 - GC: Post-barrier cycle collector participants - 1 Fixes and updates to JS::Heap<T> r=terrence
2013-06-18 11:00:37 +01:00
Terrence Cole
fa77ae873c
No Bug - Assert that our Rooting ABI is correct; r=sfink
...
--HG--
extra : rebase_source : 3247d6a22f73d278ae4e6904dff28a1b727e5169
2013-06-13 15:14:44 -07:00
Bill McCloskey
ba19c64e28
Bug 880697 - Add JSRuntime constructor for Rooted. r=terrence
2013-06-12 14:17:54 -07:00
Boris Zbarsky
24d0bddba5
Bug 877281 part 5. Add a set() method to Rooted. r=terrence
2013-06-07 22:45:45 -04:00
Joshua Cranmer
f9295075bf
Bug 868285 - Fix static checking builds, part 2: Add MOZ_NONHEAP_CLASS. r=ehsan
...
--HG--
rename : build/clang-plugin/tests/TestStackClass.cpp => build/clang-plugin/tests/TestNonHeapClass.cpp
2013-05-27 16:05:02 -05:00
Jon Coppeard
18542d913b
Bug 875872 - Add public Heap<T> class for implementing post-barriers in the browser r=terrence
2013-05-27 12:51:25 +01:00
Boris Zbarsky
76ce95b003
Bug 875939. Make passing a Rooted<T> or Handle<T> to a function taking |const T&| not be a gc hazard. r=terrence
2013-05-24 22:38:09 -04:00
Eddy Bruel
6836f87c30
Bug 637572 - Implement ScriptSourceObject; r=jimb
2013-05-22 16:06:54 -07:00
Boris Zbarsky
cab8324d5a
Bug 868715 part 10. Create specializations of Optional for 'any' and 'object' types so that we can have those look like Optional<Handle<Value> > and Optional<Handle<JSObject*> > respectively. r=peterv,sfink
2013-05-16 12:36:56 -04:00
Terrence Cole
b6975a8444
Bug 867426 - Remove the ForwardDeclare MACROs; r=jonco
...
--HG--
extra : rebase_source : dea4bcfa57a684e42105e087839785af2231e37d
2013-04-30 15:41:20 -07:00
Terrence Cole
8e6d671a3d
Bug 867426 - Remove RawObject typedef; r=jonco
...
--HG--
extra : rebase_source : cf90289656cdcbc2c33e918db4d5347613ad6360
2013-04-30 15:41:12 -07:00
Terrence Cole
4b5e15caee
Bug 867426 - Remove RawId typedef; r=jonco
...
--HG--
extra : rebase_source : c7037a278958ca4cc7467ce6ad0905f8f379c950
2013-04-30 15:41:04 -07:00
Terrence Cole
d8275d0a9b
Bug 867426 - Remove RawValue typedef; r=jonco
...
--HG--
extra : rebase_source : f349413647882730b91ec0bd196772359ec63073
2013-04-30 15:40:56 -07:00
Terrence Cole
353919a532
Bug 867426 - Remove RawString typedef; r=jonco
...
--HG--
extra : rebase_source : 1cec78a4251429458c4df7fecb652e43443d7b5b
2013-04-30 15:40:48 -07:00
Terrence Cole
05bb64b19d
Bug 867426 - Remove RawScript typedef; r=jonco
...
--HG--
extra : rebase_source : c32ce48bca7fea1dfdafbf9395835613d8a57276
2013-04-30 15:40:40 -07:00
Terrence Cole
6b5a5fb7f0
Bug 867426 - Remove RawFunction typedef; r=jonco
...
--HG--
extra : rebase_source : 67d89131676dfde8d70dcc4e1b4754b1243e3d85
2013-04-30 15:40:29 -07:00
Steve Fink
4c2891de74
No bug, DONTBUILD. Comment fix.
2013-04-27 12:27:53 -07:00
Jon Coppeard
60ea0f8e74
Bug 864848 - Mark Rooted<> as stack only r=terrence
2013-04-25 11:55:30 +01:00
Sean Stangl
dc8230838c
Bug 860029 - Standardize Modelines in the JS Module. r=njn
2013-04-16 13:47:10 -07:00
Phil Ringnalda
23acd61026
Back out a5a1dd3bd8ae (bug 860029) for stupidorange
2013-04-15 12:55:38 -07:00
Sean Stangl
d3d0513618
Bug 860029 - Standardize Modelines in the JS Module. r=njn
2013-04-15 11:33:03 -07:00
Jon Coppeard
60d8ffb1e9
Bug 860704 - GC: Comment says RawT converts to RootedT r=terrence
...
--HG--
extra : rebase_source : 2f5388adb27a97ee3762d6cab7ec0591b0f718b3
2013-04-12 09:31:43 +01:00
Phil Ringnalda
fe48637b66
Back out 5bf9771e1a28 (bug 860029) for bustage
...
CLOSED TREE
2013-04-11 19:55:37 -07:00
Sean Stangl
900638a687
Bug 860029 - Standardize Modelines in the JS Module. DONTBUILD. r=njn
2013-04-11 18:48:59 -07:00
Jeff Walden
9443788310
Bug 851237 - Replace StaticAssert uses with MOZ_STATIC_ASSERT. r=dholbert
...
--HG--
extra : rebase_source : d8b9715e05b959b11ee0f645141fd077b8599ab1
2013-03-21 18:26:15 -07:00
Jon Coppeard
caf100b9a8
Bug 781070 - make NullPtr public r=terrence
...
--HG--
extra : rebase_source : d59f24956708178c310cfca220bfd77d237e8f19
2013-03-20 10:41:20 +00:00
Jon Coppeard
525e02647c
Bug 848754 - GC: Remove relaxed root checking infrastructure r=terrence
...
--HG--
extra : rebase_source : 7f781b1c7edbae14ce9b2fd4d45c44e8cb5c2968
2013-03-08 08:54:59 +00:00
Jon Coppeard
3dcda9b143
Bug 849273 - Investigate splitting the js and JS namespaces r=terrence
...
--HG--
extra : rebase_source : 2b131d0177f02e5f0e89398545481fcacbfde00f
2013-03-19 10:35:41 +00:00
Terrence Cole
3e92ec99e1
Bug 850074 - Move SpiderMonkey stack rooting infrastructure to RootingAPI.h; r=billm
...
--HG--
rename : js/src/gc/Root.h => js/public/RootingAPI.h
extra : rebase_source : 52027c9c887f686a86097e5465179fa69fac9d6c
2013-03-12 14:05:57 -07:00