Commit Graph

618 Commits

Author SHA1 Message Date
Terrence Cole
1ba90fd085 Bug 948516 - Assert that js::HashTable pointers and enumerators are used correctly; r=luke 2013-12-03 12:51:02 -08:00
Tom Schuster
153ffc1fbc Bug 697343 - Introduce a slice hook to allow optimizing Array.prototype.slice for Proxies etc. r=jandem,bz 2013-12-05 20:07:24 +01:00
Tom Schuster
f24c8c5b90 Bug 697343 - Remove getElementIfPresent. r=Waldo 2013-12-05 20:07:24 +01:00
Sean Stangl
c8c6d69eb0 Bug 939505 - Use JS_DEBUG in public headers. r=jorendorff 2013-12-06 15:03:08 -08:00
Jon Coppeard
cacaec6884 Bug 939993 - Add assert that hash key is still valid in HashTable::relookupOrAdd r=sfink 2013-12-07 12:50:52 +00:00
Joshua Cranmer
21ce805be7 Bug 929200, part 2: Add MOZ_HEAP_ALLOCATOR to JSContext::new_, r=jimb.
--HG--
extra : rebase_source : 94273fe87e4e432a493dd55a89a005a89e7bb998
2013-12-06 21:21:54 -06:00
Nicholas D. Matsakis
e126da2e0d Bug 933760 - Track a type object for each type representation, associate with the type descriptor r=bhackett 2013-11-01 11:10:47 -04:00
Ryan VanderMeulen
c60e2ccac4 Backed out 12 changesets (bug 927782) for SM rootanalysis orange.
Backed out changeset f86d2d4cfadf (bug 927782)
Backed out changeset 51d6617835d1 (bug 927782)
Backed out changeset eed9795fa80e (bug 927782)
Backed out changeset b971de7edfff (bug 927782)
Backed out changeset 5f086f95b305 (bug 927782)
Backed out changeset 8c74b1f68590 (bug 927782)
Backed out changeset f1237f11edcd (bug 927782)
Backed out changeset d6946bd743b3 (bug 927782)
Backed out changeset cbdd50c96b85 (bug 927782)
Backed out changeset fc7a979712fc (bug 927782)
Backed out changeset c8304ccf88e9 (bug 927782)
Backed out changeset 9d99e9ca7b32 (bug 927782)
2013-12-06 15:03:19 -05:00
Andy Wingo
457223d858 Bug 927782 - Part 10: Iterate block chain from compile-time block scope maps, not runtime blockChain. r=luke 2013-12-06 18:42:08 +01:00
Ryan VanderMeulen
33d0976fb1 Backed out changesets 22770b30545b, 0809370fabdb, 4ef4764c1b55, and bfe768b87464 (bug 697343) due to Gaia UI test bustage.
CLOSED TREE
2013-12-05 16:19:47 -05:00
Tom Schuster
ee31489fb4 Bug 697343 - Introduce a slice hook to allow optimizing Array.prototype.slice for Proxies etc. r=jandem,bz 2013-12-05 20:07:24 +01:00
Tom Schuster
24a3fda1a8 Bug 697343 - Remove getElementIfPresent. r=Waldo 2013-12-05 20:07:24 +01:00
Nicholas Nethercote
84eb42e808 Bug 943744 (part 3) - Re-use the |strings| table from the zone with the most strings when computing totals. r=till.
--HG--
extra : rebase_source : 3fa7b4249526ffcfbadd108aa55e7e9e5f0c8ebf
2013-12-04 03:54:54 -08:00
Nicholas Nethercote
b72a8989be Bug 943744 (part 2) - Represent the sizes in StringInfo more compactly. r=till.
--HG--
extra : rebase_source : 799693bac2beb4609daf55fc5e8cbe19adff3ed8
2013-12-02 21:40:25 -08:00
Nicholas Nethercote
6633debe59 Bug 943744 (part 1) - Remove StringInfo::length. r=till.
--HG--
extra : rebase_source : 4ac0be283e35bd878ad4410b805548255fcd8cee
2013-12-02 21:40:25 -08:00
Jeff Walden
0d8f37059b Bug 940033 - js::HashMapEntry::{key,value} fields should be private, with accessors, and the former should expose a const reference. r=jimb
--HG--
extra : rebase_source : 439d194ed15bf87e9643c9c09d4512ff7f616fcc
2013-11-25 17:35:09 -08:00
Jeff Walden
2db00edd4f Bug 937751 - Followup to compile with clang versions that treat |struct S; struct __attribute__((visibility("default"))) S {};| as an error. rs=mccr8
--HG--
extra : rebase_source : 97d6faaaa484a9544d2683c4a1af5c3e044fa2d3
2013-12-03 15:53:40 -08:00
Andrew McCreight
77e7f35a46 Bug 937751, part 2 - Move SliceBudget into js/public. r=billm 2013-12-03 10:47:47 -08:00
Jeff Walden
5df864e216 Bug 943839 - Simplify Anchor and get rid of JS_AnchorPtr. r=terrence
--HG--
extra : rebase_source : f2d9e039f758b6078c57f601537effe8c7c39f82
2013-12-02 15:43:30 -08:00
Andrew McCreight
cc18a72222 Bug 944491 - Add null-checking assert to GetGCThingRuntime. r=jonco 2013-11-29 12:44:00 -08:00
Trevor Saunders
47ff1bd045 bug 938025 - part 2 - fix some static constructors in the jseng r=waldo 2013-11-22 15:05:04 -05:00
Carsten "Tomcat" Book
29b36011f5 Backed out changeset 042ab55b8476 (bug 939993) for Spidermonkey rootanalysis orange on a CLOSED TREE 2013-11-25 15:04:35 +01:00
Jon Coppeard
eb1f048c43 Bug 939993 - Check that AddPtrs are used only with matching Lookup values r=sfink 2013-11-25 11:26:10 +00:00
Jim Chen
bfd7556706 Bug 935092 - Const-ify profiler pseudostack entries; r=BenWa 2013-11-22 14:17:30 -05:00
Ryan VanderMeulen
1e4f3c8477 Backed out changeset 1469f9e856c0 (bug 939993) for SM rootanalysis crashes.
CLOSED TREE
2013-11-21 09:44:27 -05:00
Jon Coppeard
29d17a9ee7 Bug 939993 - Check that AddPtrs are used only with matching Lookup values r=sfink 2013-11-19 22:53:32 +00:00
Shu-yu Guo
470bcaae2e Bug 933882 - Invalidate JIT code instead of doing full GC on debug mode toggle. (r=bhackett) 2013-11-20 22:50:28 -08:00
Jon Coppeard
6c959ac057 Bug 935136 - Remove the now unnecessary UnbarrieredMutableValueOperations r=terrence 2013-11-19 22:53:36 +00:00
Ed Morley
0f65d839f4 Backed out changeset 1b720320ccf4 (bug 939993) for rootanalysis assertions on a CLOSED TREE 2013-11-20 16:38:41 +00:00
Ed Morley
ac849a0cf8 Backed out changeset b75c703f2e7e (bug 935136) 2013-11-20 16:38:13 +00:00
Jon Coppeard
ad9abaa05b Bug 935136 - Remove the now unnecessary UnbarrieredMutableValueOperations r=terrence 2013-11-19 22:53:36 +00:00
Jon Coppeard
29da11f188 Bug 939993 - Check that AddPtrs are used only with matching Lookup values r=sfink 2013-11-19 22:53:32 +00:00
Jim Blandy
02179a60fa Bug 937404 - Remove the unused NotableStringInfo copy constructor. r=jimb
--HG--
extra : rebase_source : 9af09cb34a2bda3b1cbee61c85617a25c5876106
2013-11-18 13:48:45 -08:00
Jim Blandy
f0a0296f91 Bug 896100: Convert all uses of OldMove and MoveRef to true rvalue references and the modern Move and Forward. r=luke, r=waldo 2013-11-19 09:05:36 -08:00
Jon Coppeard
de7a99ed0d 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
Michael Shuen
7581110bd7 Bug 937916 - Implement TrueValue() and FalseValue(). r=sfink 2013-11-15 21:46:39 -05:00
Jon Coppeard
0e138bb07b Bug 935136 - Always barrier assignments to Heap<Value> r=terrence 2013-11-12 11:21:01 +00:00
Wes Kocher
3dbc5bd2fa Backed out 7 changesets (bug 935228, bug 936143, bug 935470, bug 933882, bug 934799) for breaking ASAN browser-chrome tests on a CLOSED TREE
Backed out changeset ae6f2151610f (bug 934799)
Backed out changeset 82495f0c5da2 (bug 934799)
Backed out changeset 77be849d81e7 (bug 935228)
Backed out changeset 555e5759fe5f (bug 935470)
Backed out changeset ce4011f33422 (bug 933882)
Backed out changeset e13e98eab890 (bug 936143)
Backed out changeset fb230c191a88 (bug 936143)
2013-11-11 16:53:59 -08:00
Terrence Cole
6ead2470c7 Bug 935800 - Assert that we do not GC in the lifetime of a ForkJoinSlice; r=shu
--HG--
extra : rebase_source : ec2dc1db758e5bef4720b5442e006e9df44c165b
2013-11-06 15:43:19 -08:00
Shu-yu Guo
744122c7e5 Bug 933882 - Invalidate JIT code instead of doing full GC on debug mode toggle. (r=bhackett) 2013-11-11 14:18:34 -08:00
Jeff Walden
3080160eaf Bug 934718 - Simplify some of the alpha computations in HashTable.h by converting alpha fractions to numerator/denominator ratios of integers, and convert associated JS_STATIC_ASSERT to static_assert. r=luke
--HG--
extra : rebase_source : a35631c885ad7058739d9e99498714f318ef589c
2013-10-24 17:11:32 +01:00
Jeff Walden
04e9645fc3 Bug 903332 - Make watch/unwatch into proxy hooks and such, and make watching/unwatching work on DOM proxies and windows (or at least work as much as it ever did, which is to say kinda-sorta-ish). r=bhackett, r=efaust
--HG--
extra : rebase_source : 58dc71e7e58208a2cfa12b265adca7b189e5e5bd
2013-10-29 16:39:09 -07:00
Nicholas Nethercote
3f670f9d0f Bug 634417 - Remove inappropriate uses of vanilla malloc/calloc/realloc/free/strdup from SpiderMonkey. r=luke.
--HG--
extra : rebase_source : 4470cdf58a482eb05f94cd00a9800d8e6a0d2252
2013-11-08 09:52:14 +11:00
Ryan VanderMeulen
9d31989c15 Backed out changeset 471db633b20c (bug 903332) for B2G desktop mochitest-1 failures. 2013-11-07 16:10:21 -05:00
Jeff Walden
39bee2a91f Bug 903332 - Make watch/unwatch into proxy hooks and such, and make watching/unwatching work on DOM proxies and windows (or at least work as much as it ever did, which is to say kinda-sorta-ish). r=bhackett, r=efaust
--HG--
extra : rebase_source : b5bae3832b7718b579abb7c09f36c9c46907d7cc
2013-10-29 16:39:09 -07:00
Jeff Walden
61a2eb48a6 Bug 921561 - Make JS_DECLARE_NEW_METHODS use C++11 "perfect" forwarding (which isn't, because it won't let you pass an expression that's a bit field #nowyouknow), to eliminate issues arising when non-const references are used in these methods with classes that don't copy nicely, or shouldn't be copied for perf reasons. r=luke
--HG--
extra : rebase_source : d2b446e0ee6e5613faa962b92acc9f91584fe7ac
2013-09-27 11:19:43 -07:00
Terrence Cole
ed9c30c1a6 Bug 931912 - Suppress an exact rooting hazard false positive in nsWindowSH::Finalize; r=sfink
--HG--
extra : rebase_source : 3934e7cd7e21e37de20aadac203db6a285021691
2013-11-05 15:02:35 -08:00
Andrew McCreight
748cd6b364 Bug 905382, part 1 - Implement a read barrier for GC things. r=jonco 2013-11-04 15:01:38 -08:00
Andrew McCreight
9402825392 Bug 934990 - Export CurrentThreadCanAccess functions properly. r=terrence 2013-11-05 08:55:28 -08:00
Jim Blandy
1dfa8c46d0 Bug 892643: Implement PersistentRooted<T>, an unrestricted-lifetime rooting type. r=terrence, jcoppeard 2013-11-04 13:35:08 -08:00
Nicholas Nethercote
2762e3b8e7 Bug 932440 - Re-fix a compiler warning in memorymetrics that was fixed in bug 924608 but was then undone by a bad manual merge. r=me.
--HG--
extra : rebase_source : 370eacd5a6f0d0015e0b685ea66a4c47df248a34
2013-10-29 20:15:09 -07:00
Jon Coppeard
f2244ae74c Bug 931446 - Improve documentation comment on JS::Heap r=terrence 2013-11-01 10:20:50 +00:00
Terrence Cole
d22937377d Bug 932364 - Fix an exact rooting hazard around AddSizeOfTab; r=njn
--HG--
extra : rebase_source : cb0ab85f7f850ce3c250dd75ff32a416dba7b153
2013-10-28 10:14:06 -07:00
Nicholas Nethercote
ba1e9bce90 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
Terrence Cole
40bc663533 Bug 929800 - Handlify the structured clone interface; r=sfink,smaug
--HG--
extra : rebase_source : 4f21dd799ad27dc665997d4912996a500ae8a2f2
2013-10-22 17:18:32 -07:00
André Bargull
0108f0ae11 Bug 928508 - Change String.prototype.@@iterator to iterate over code points. r=jorendorff. 2013-10-23 11:42:25 -05:00
Nicholas Nethercote
1bd2044812 Bug 918207 - Support per-tab memory profiling. r=billm,mccr8,till,smaug,nfroyd.
--HG--
extra : rebase_source : 7603eaedbd761c6b231b1b911f719388864755e6
2013-10-22 14:53:26 -07:00
Steve Fink
aeae463c90 Bug 861925 - Steal and neuter ArrayBuffers at end of structured clone, r=jorendorff
--HG--
extra : rebase_source : 3378a06b47e7ee2f45da841b3604077b4c2b64e6
2013-10-15 23:48:20 -07:00
Masatoshi Kimura
5ed6f6037f Bug 928220 - Get rid of JS_INLINE 2013-10-22 06:34:24 +09:00
Jim Blandy
942c94a36b 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
Jan de Mooij
0e6329363f Bug 859892 - Rename JS_CANONICALIZE_NAN to JS::CanonicalizeNaN. r=Waldo 2013-10-17 10:16:17 +02:00
Ehsan Akhgari
eb82766684 Bug 895047 - Make char16_t available everywhere and use that to define PRUnichar and jschar; r=jcranmer,jorendorff,glandium 2013-10-17 00:36:13 -04:00
Phil Ringnalda
b6be4e4a2d Back out ee100983f921 (bug 895047) for build bustage
CLOSED TREE
2013-10-16 21:51:55 -07:00
Ehsan Akhgari
2d5e8722de Bug 895047 - Make char16_t available everywhere and use that to define PRUnichar and jschar; r=jcranmer,jorendorff,glandium 2013-10-17 00:36:13 -04:00
Nathan Froyd
536daacd4a Bug 925879 - use JS_BITS_PER_WORD instead of JS_BYTES_PER_WORD in HashTable.h; r=njn 2013-10-15 10:11:03 -04:00
Nathan Froyd
40058dc20d Bug 925807 - define JS_BITS_PER_WORD in terms of JS_64BIT; r=njn 2013-10-11 15:11:48 -04:00
Nicholas D. Matsakis
e5bcf895a3 Bug 914220 - Move TypedObject global names into a TypedObject module r=waldo 2013-09-09 11:52:11 -04:00
Wes Kocher
b7f38f71d3 Backed out 5 changesets (bug 861925) so I can backout bug 900669 cleanly
Backed out changeset 8febf2f0e35d (bug 861925)
Backed out changeset e646195f32ae (bug 861925)
Backed out changeset 015a92e94c07 (bug 861925)
Backed out changeset 4546406915c1 (bug 861925)
Backed out changeset 63321a464309 (bug 861925)
2013-10-15 18:51:50 -07:00
Steve Fink
44bbabd65e Bug 861925 - Steal and neuter ArrayBuffers at end of structured clone, r=jorendorff
--HG--
extra : rebase_source : 90ef9de8673dc50e81810a8cdcc86c8a8dbbc7bb
2013-10-15 17:26:19 -07:00
Jason Orendorff
8a94a69b2e Bug 923836 - Set aside the first 3 reserved slots of global objects for application use. r=Waldo.
--HG--
extra : rebase_source : 027d8ed582b276845ff49c19b867d82b058542e1
2013-10-14 15:24:11 -05:00
Jon Coppeard
8a0e99e319 Bug 925817 - GenerationalGC: Refactor inside nursery check to avoid repetition r=terrence 2013-10-14 10:16:25 +01:00
Wes Kocher
789e85bd4c Backed out changeset e807ddf2965f (bug 688852) for test bustage 2013-10-11 18:07:40 -07:00
Terrence Cole
a531d1daa8 Bug 688852 - Rewrite Array.prototype.concat to use spec steps; r=Waldo
--HG--
extra : rebase_source : b82607aabd4f959e7c204073a440225c6a12da6c
2013-01-03 17:34:34 -08:00
Terrence Cole
2def425cd7 Bug 924608 - Fix a compiler warning in memorymetrics; r=njn 2013-10-08 14:15:59 -07:00
Shu-yu Guo
c1500d105d Bug 921325 - Return bool from PJS VM functions and use the fatal bit on ForkJoinSlice to signal fatal vs retry. (r=nmatsakis) 2013-10-10 20:02:32 -07:00
Nathan Froyd
021347c234 Bug 924391 - don't use JS_BITS_PER_WORD in HeapAPI.h; r=billm 2013-10-08 09:54:33 -04:00
Shu-yu Guo
128b76beaa Bug 903193 - Part 4: Add ability to do read only lookup on the Shape tree. (r=bhackett) 2013-10-08 15:14:03 -07:00
Douglas Crosher
e5a88dc385 Bug 923328 - Ionmonkey: fix float32 hash function. r=terrence 2013-10-03 10:11:18 +10:00
Nicholas Nethercote
7b28fd1ce6 Bug 921954 - Clean up type inference memory reporting. r=bhackett.
--HG--
extra : rebase_source : a3c640921882a997017b1cddca189f5b3217a88e
2013-09-30 16:20:33 -07:00
Terrence Cole
521b39de48 Bug 609896 - Optimize copy and initialization of DenseElements; r=billm
--HG--
extra : rebase_source : a0cf2605a7f1277352ff9163379632992c56d09a
2013-09-25 15:19:08 -07:00
Jan de Mooij
5e1449fc8a Bug 915763 - Remove TypeScript::dynamicList and dynamic Monitor functions. r=bhackett 2013-09-28 11:45:21 +02:00
Nicholas Nethercote
d9faec9168 Bug 920852 (part 4) - Reorder a bunch of stuff. r=till.
--HG--
extra : rebase_source : b386abc4bfcdc85fad4071eeb06de2ca83a17bd8
2013-09-25 20:17:19 -07:00
Nicholas Nethercote
11e8b2ada6 Bug 920852 (part 3) - Tweak various things about RuntimeStats. r=till.
--HG--
extra : rebase_source : 0748417364e0b8be25846f573d93fc657b228d19
2013-09-24 23:24:29 -07:00
Nicholas Nethercote
ad7a5171ab Bug 920852 (part 2) - Rename fields of ZoneStatsPod and StringInfo to match memory reporter paths. r=till.
--HG--
extra : rebase_source : d67dc7deedee6213f640ca2ae31a959b66d8d64e
2013-09-24 23:24:28 -07:00
Nicholas Nethercote
fb856a694f Bug 920852 (part 1) - Rename fields of ObjectsExtraSizes and CompartmentStats to match memory reporter paths. r=till.
--HG--
extra : rebase_source : 0f55dd20e69d3410d0cb811529f53570f588cc5e
2013-09-24 23:24:28 -07:00
Ehsan Akhgari
7fb9b3a9b0 Bug 921130 - Minimize the #includes in js/src/jit; r=luke 2013-09-26 18:34:54 -04:00
Nicholas Nethercote
581d98b690 Bug 919889 (part 5) - Use macros to eliminate repetitive, error-prone code in MemoryMetrics.{h,cpp}. r=luke. 2013-09-24 23:24:28 -07:00
Nicholas Nethercote
ed1d20ddc2 Bug 919889 (part 4) - Assorted minor clean-ups. r=luke. 2013-09-24 23:24:28 -07:00
Nicholas Nethercote
82a1594d4f Bug 919889 (part 3) - Move the private_ field out of ObjectsExtraSizes. r=luke. 2013-09-24 23:24:28 -07:00
Dan Gohman
35a37abb6d Bug 916580 - Fix bugs related to the usage of calloc. r=luke 2013-09-25 12:18:43 -07:00
Jon Coppeard
1b245e7684 Bug 912567 - Split HashMap/HashSet::rekey() into rekey() and rekeyIfMoved() r=terrence 2013-09-24 10:03:32 +01:00
Ehsan Akhgari
66a3352644 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
Dan Gohman
463a7c338e Bug 918350 - SpiderMonkey: Remove js_NaN in favor of a new mozilla::GenericNaN() function. r=waldo 2013-09-19 18:42:56 -07:00
Terrence Cole
a5d10031c6 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
3f4f32b49a 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
Steve Fink
66d1472935 Bug 916986 - Implement a JSAutoAssertNoGC for the analysis to pay attention to, r=terrence 2013-09-17 10:50:03 -07:00
Bill McCloskey
405434ea57 Bug 905926 - Move rambo GC to runtime destruction. r=jonco 2013-09-17 09:46:32 -07:00
Bobby Holley
1ad8df102b Bug 905926 - Remove watchpoints on all compartments during shutdown, not just the cx compartment. r=billm 2013-09-17 09:46:32 -07:00
Brian Hackett
5acb780b03 Bug 915473 - Distinguish stack type sets from compiler-created temporary type sets, r=jandem. 2013-09-12 18:30:03 -06:00
Nicholas Nethercote
ea9d467f99 Bug 915482 (part 1) - Move most of gc/Barrier-inl.h into gc/Barrier.h. r=terrence.
--HG--
extra : rebase_source : e3fbf54420858cd5ae5328f4cf5c5001d1d0ccb9
2013-09-11 16:51:17 -07:00
Dan Gohman
8b7074b6dc Bug 910823 - Constify static js::Class/JSClass instances. r=waldo 2013-09-11 05:49:05 -07:00
Benjamin Bouvier
69698e03f0 Bug 888109: Float32 general optimizations for IonMonkey: framework and arithmetic operations; r=sstangl,nbp 2013-07-18 15:13:15 -07:00
Nicholas Nethercote
73b867f80f Bug 910771 (part 2) - Move some stuff from JS::Zone to JS::shadow::Zone, and from JSRuntime to JS::shadow::Runtime.h. r=terrence. 2013-09-04 19:19:04 -07:00
Nicholas Nethercote
3e6eda137c Bug 910771 (part 1) - Create js/Tracer.h and gc/Tracer.cpp. r=terrence. 2013-09-02 22:01:18 -07:00
Kyle Huey
abebd382da Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8 2013-09-08 20:28:48 -07:00
Phil Ringnalda
4fba4a0f6c Back out a615811b12e4 (bug 888109) for not actually building 2013-09-06 18:48:56 -07:00
Benjamin Bouvier
6eee8c4679 Bug 888109: Float32 general optimizations for IonMonkey: framework and arithmetic operations; r=sstangl,nbp 2013-07-18 15:13:15 -07:00
Jason Orendorff
5aead903ea Bug 893186, part 5 - Delete JS_GetPropertyAttributes and many similar APIs; remove half a dozen methods from JS::Class. r=Waldo.
--HG--
extra : rebase_source : 1f4a01938b06b66ef855f9b654f098b4819b1390
2013-09-06 12:05:30 -05:00
Phil Ringnalda
6d28bb73ed Back out b817abcebadf (bug 888109) for unexpected assertions 2013-09-05 21:01:05 -07:00
Benjamin Bouvier
1bd5dec356 Bug 888109: Float32 general optimizations for IonMonkey: framework and arithmetic operations; r=sstangl,nbp 2013-07-18 15:13:15 -07:00
Nicholas Nethercote
3a2ab0db3f Bug 912411 (part 2) - Move JSID_{VOID,EMPTY}HANDLE from jsapi.{h,cpp} to Id.{h,cpp}. r=luke.
--HG--
extra : rebase_source : 5fb68bf5079e3261fdca6cb99717d3a502c878f3
2013-09-05 16:08:57 -07:00
Jeff Walden
04c2468283 Bug 730805 - Provide mozilla/IntegerPrintfMacros.h to implement the PRI* macros portion of the <inttypes.h> interface. r=espindola
--HG--
extra : rebase_source : be80333003c6fec659e736a77463568c836d8348
2011-12-15 00:27:42 -05:00
Nicholas Nethercote
191ed08f6a 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
Justin Lebar
2e2403726d Bug 909977 - Rename mozilla::Move to mozilla::OldMove, and make mozilla::Move a synonym for std::move(). r=waldo
--HG--
extra : rebase_source : 7b3bb02cc8cbc0ad6721c6c3895564d9567b8ddb
2013-08-29 11:54:14 -07:00
Jon Coppeard
8bab73cb34 Bug 906387 - Rehash hash tables if necessary when rekeying during minor GC r=terrence 2013-08-29 10:27:50 +01:00
Nicholas Nethercote
59fc32f043 Bug 909623 (part 4) - Create js/CallNonGenericMethod.h and vm/CallNonGenericMethod.cpp. r=luke.
--HG--
extra : rebase_source : 5a81a57ea81227c995d7fd0933c226ac10384991
2013-08-26 21:39:38 -07:00
Nicholas Nethercote
3f5d413d90 Bug 909597 (part 2) - Rename jsdbgapi.{h,cpp} as {js,vm}OldDebugAPI.{h,cpp}. r=luke.
--HG--
rename : js/src/jsdbgapi.h => js/public/OldDebugAPI.h
rename : js/src/jsdbgapi.cpp => js/src/vm/OldDebugAPI.cpp
extra : rebase_source : 9cd65a698e726c43d88d650f40823367bf98feae
2013-08-26 19:05:20 -07:00
Jon Coppeard
26d42248d9 Bug 726687 - Stop rekeying from calling pre barriers r=terrence 2013-02-15 17:59:19 +00:00
Nicholas Nethercote
8036ad5d1b Bug 909178 (part 2) - Make jsclass.h not depend on jsapi.h, and rename it js/Class.h. r=jwalden.
--HG--
rename : js/src/jsclass.h => js/public/Class.h
extra : rebase_source : 31ecd4074181c234f7f71eef04a10ae371c35eaa
2013-08-21 22:26:57 -07:00
Nicholas Nethercote
3ea67ab547 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
Luke Wagner
cec964ccec Bug 908255 - tidy up 'non-destructive' functions, give StringHashPolicy a scarier name (r=terrence)
--HG--
extra : rebase_source : 84bbc6c0416190a9dae8c758262def530a591219
2013-08-22 13:54:34 -05:00
Nicholas Nethercote
d208a00ee8 Bug 905017 (part 3, attempt 2) - Move profiling stack stuff from jsapi.h to js/ProfilingStack.h. r=billm.
--HG--
extra : rebase_source : 8226a31c4f2a286ba843da616b1061ca034a5d41
2013-08-19 23:45:26 -07:00
Nicholas Nethercote
9ce6c39a8f Bug 905017 (part 2, attempt 2) - Move structured clone stuff from jsapi.{h,cpp} and jsclone.{h,cpp} to js/StructuredClone.{h,cpp}. r=billm.
--HG--
rename : js/src/jsclone.cpp => js/src/vm/StructuredClone.cpp
extra : rebase_source : 2699588c63ef58ab84bc8c63adc0487648af3834
2013-08-19 23:43:47 -07:00
Ms2ger
f79ae70d10 Backout changesets 7e6fb33fdf22:c85332df4320 (bug 905017) for windows bustage. 2013-08-22 10:16:30 +02:00
Nicholas Nethercote
c8e2369441 Bug 905017 (part 3) - Move profiling stack stuff from jsapi.h to js/ProfilingStack.h. r=billm.
--HG--
extra : rebase_source : 8322f1c96b95685912375484172d47f53107947f
2013-08-19 23:45:26 -07:00
Nicholas Nethercote
4caa0f8ea2 Bug 905017 (part 2) - Move structured clone stuff from jsapi.{h,cpp} and jsclone.{h,cpp} to js/StructuredClone.{h,cpp}. r=billm.
--HG--
rename : js/src/jsclone.cpp => js/src/vm/StructuredClone.cpp
extra : rebase_source : ecce9699ddb45535aa94d5e3add901f5a8620c46
2013-08-19 23:43:47 -07:00
Nicholas Nethercote
42ccf38dcd Bug 905017 (part 1) - Minimize inclusions of JS engine headers in .h and .idl files. r=billm.
--HG--
extra : rebase_source : 984c61ab12f46be0509b1ce0d458d9a6e5841c64
2013-08-17 15:50:18 -07:00
Jon Coppeard
3d479ee9f2 Bug 903548 - GC: What do we do for UnmarkGray on a Nursery GCThing? r=billm 2013-08-19 14:48:35 +01:00
Luke Wagner
d781c80896 Bug 902506 - OdinMonkey: fix/enhance asm.js memory reporting (r=njn)
--HG--
extra : rebase_source : eafb0f56e7ed851e2e62a2ba908e63ea273c1c77
2013-08-08 21:38:42 -05:00
Ehsan Akhgari
89f3f3f783 Backed out changeset 9cdd168a8518 (bug 904108) because it includes an unreliable Clang marketing version check 2013-08-16 11:53:46 -04:00
Nicholas Nethercote
a08edb8e18 Bug 898274 (part 1) - Fix ordering of various #include statements. r=benjamin. 2013-08-13 15:34:12 -07:00
Ms2ger
6d567ab3cc Bug 904110 - Move alignment features out of Util.h into a new header; r=Waldo 2013-08-14 09:00:52 +02:00
Brian Hackett
ac342eaa66 Bug 902095 - Allow accessing the compartment/zone for ExclusiveContext, r=billm. 2013-08-13 09:13:46 -06:00
Adam Roach [:abr]
348d297f5d Bug 904108 - Add explicit assignment operator to js::Value r=luke 2013-08-12 12:01:23 -05:00
Daniel Holbert
5147b2a802 Backed out changeset fde265c467b2 (Bug 902095) for SM(r) bustage 2013-08-12 13:40:15 -07:00
Brian Hackett
aafd4bd829 Bug 902095 - Allow accessing the compartment/zone for ExclusiveContext, r=billm. 2013-08-12 13:57:02 -06:00
Nicholas Nethercote
a1efea7412 Bug 902917 - Remove some unnecessary #includes in SpiderMonkey. r=till.
--HG--
extra : rebase_source : 2a767e04768a94eb943370bbe7945a8dc409bf1d
2013-08-08 16:07:22 -07:00
Nathan Froyd
d52051fb0c Bug 899309 - modify JS::Value and some helper functions to be constexpr-foldable; r=luke 2013-07-29 16:59:34 -04:00
Nicholas Nethercote
b756f6b258 Bug 898914 (part 1) - Remove JSBool.
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
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