Andreea Pavel
363ad2007d
Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE
2018-03-15 00:11:42 +02:00
Andi-Bogdan Postelnicu
ad0f5aaafb
Bug 1437532 - prevent doing memset on a non-trivial type. r=jorendorff
...
MozReview-Commit-ID: C8BfwJSHkWM
--HG--
extra : rebase_source : 3bd28ff459b76be79da6a518fb1da49b23aef9fe
2018-03-13 11:57:49 +02:00
Luke Wagner
8a5136ff57
Bug 1435360 - Baldr: implement wasm interrupt in terms of TlsData branch and stack overflow check (r=bbouvier)
...
--HG--
extra : rebase_source : 77543186df0d37d7267101c0c1a6b672405be461
2018-03-12 15:10:06 -05:00
Brindusan Cristian
575a3a3976
Backed out 3 changesets (bug 1435360) for web-platform reftests failures on marionette/content/reftest.js CLOSED TREE
...
Backed out changeset c4bc47b31311 (bug 1435360)
Backed out changeset eb7a4a96c333 (bug 1435360)
Backed out changeset 7d6183aa40da (bug 1435360)
2018-03-12 23:53:41 +02:00
Luke Wagner
d389a89796
Bug 1435360 - Baldr: implement wasm interrupt in terms of TlsData branch and stack overflow check (r=bbouvier)
...
--HG--
extra : rebase_source : c65945e89c19c0f4bd4208b0e67348ef6b410797
2018-03-12 15:10:06 -05:00
Jason Orendorff
e7c94fff59
Bug 1439063 - Part 1: Move several public headers from js/src to js/public. r=jandem.
...
js/src/jsalloc.h -> js/public/AllocPolicy.h
jsalloc.cpp -> js/src/util/AllocPolicy.cpp
jsbytecode.h -> merge into js/public/TypeDecls.h
jsprf.h -> js/public/Printf.h
jsprf.cpp -> js/src/util/Printf.cpp
jsprototypes.h -> public/ProtoKey.h
jswrapper.h -> js/Wrapper.h
--HG--
rename : js/src/jsalloc.h => js/public/AllocPolicy.h
rename : js/src/jsprf.h => js/public/Printf.h
rename : js/src/jsprototypes.h => js/public/ProtoKey.h
rename : js/src/jswrapper.h => js/public/Wrapper.h
rename : js/src/jsalloc.cpp => js/src/util/AllocPolicy.cpp
rename : js/src/jsprf.cpp => js/src/util/Printf.cpp
extra : rebase_source : 98b16d94c469202eab0303a8da844f1d0b6aa809
extra : amend_source : e0b16c1077226d6fe240f4d7096537f93b43f2b8
extra : histedit_source : d94e0ba7904a7d66742c7fac43f638aaec4fa4e5
2018-02-21 10:30:19 -06:00
André Bargull
04c864d3c5
Bug 1437530: Cache template literal objects per call site again. r=arai
2018-02-19 05:07:29 -08:00
Andrew McCreight
df1f7c00c3
Bug 1437978 - Add memory reporting for scriptCountsMap. r=nbp
...
MozReview-Commit-ID: 1AJHhJDJerr
--HG--
extra : rebase_source : f867bd00f1c41052fc6eadc23cd2dd1e41a2c354
2018-02-13 10:00:14 -08:00
Jon Coppeard
bccffc2ea8
Bug 1400278 - Replace runtime allocation with system or zone allocation where possible r=jandem
2017-09-20 13:19:32 +01:00
Jon Coppeard
ac6b4e8831
Backed out changeset 29b2e8acf5f9 (bug 1400278) for local crashes
2017-09-21 15:50:36 +01:00
Jon Coppeard
056acc6fae
Bug 1400278 - Replace runtime allocation with system or zone allocation where possible r=jandem
2017-09-20 13:19:32 +01:00
Jason Orendorff
ddaf859c55
Bug 1363200 - JSAPI for realms: Change a few XPConnect methods to take Realm arguments instead of JSCompartments. r=mrbkap
...
This also introduces JS::GetObjectRealmOrNull, which returns an object's realm,
or null if the object is a cross-compartment wrapper. In the new order,
wrappers can't have realms, since they must be shared across all realms in a
compartment. We're introducing this new function early (even though it's
*currently* possible to assign a realm to wrappers) in order to see in
advance if the possibility of returning null will cause problems.
(It looks like it won't.)
--HG--
extra : rebase_source : e55ebbbc4edf2a18ce267198928246592060e339
extra : source : d6bfce1187aa13dbfab03f9566ff7b05b6705e70
2017-06-28 12:31:53 -07:00
Jan de Mooij
db3fda15b3
Bug 1378740 - Share RegExpShareds across compartments within a zone. r=jonco
2017-07-06 16:40:39 +02:00
Jan de Mooij
113e7692b5
Bug 1358047 - Move Baseline CacheIR code map from JitCompartment to JitZone. r=djvj
2017-04-24 12:41:04 +02:00
Hannes Verschore
e8f7043d0b
Bug 1319746: Add a memory reporter for CFGGraph on BaselineScript, r=njn
2017-04-21 19:37:06 +02:00
Hannes Verschore
31296801c2
Bug 1334409 - TraceLogging: Add memory reporter for TraceLogging, r=njn
2017-04-21 19:37:04 +02:00
Jon Coppeard
973692b373
Bug 1345177 - Make RegExpShared a GC thing r=sfink
2017-03-27 10:38:29 +01:00
Jon Coppeard
1376c2700e
Backed out changesets e66f564d9749 and 0380d914ad39 (bug 1345177) for rooting hazards
2017-03-27 11:09:54 +01:00
Jon Coppeard
f7a6438226
Bug 1345177 - Make RegExpShared a GC thing r=sfink
2017-03-27 10:38:29 +01:00
Shu-yu Guo
c91e65240b
Bug 1108941 - Implement the per-global template literal registry. (r=arai,jonco)
2017-03-08 12:00:54 -08:00
Brian Hackett
8033ed29a8
Bug 1324002 - Mark atoms separately in each zone, r=jonco,mccr8,peterv.
...
--HG--
extra : rebase_source : 53cf4fa94f122a991c2adbd7bae3714de4391bb4
2017-01-30 06:31:47 -07:00
André Bargull
8a555a2bfd
Bug 1303091 - Share static Intl data across compartments. r=Waldo, r=jonco
...
--HG--
rename : js/src/builtin/IntlTzData.js => js/src/builtin/IntlTimeZoneData.h
extra : rebase_source : 558f4fba32efdee429423055f3786e1dc09e4d68
2016-11-17 14:40:18 -08:00
Benjamin Bouvier
fcf5a05013
Bug 1307768: Don't include wasmGuardPages with the rest of the ClassInfo fields; r=njn
...
MozReview-Commit-ID: 9tqQdAn2Ywa
--HG--
extra : rebase_source : 0a8ed1a2637968285f497ef3e41aa3b75a8ed49f
extra : amend_source : 759c252412b2e5ba99805cf5bb05828ff947f833
2016-10-14 14:53:08 +02:00
Benjamin Bouvier
b81b572a1c
Bug 1303013: Account memory for wasm guard pages; r=njn, r=luke
...
MozReview-Commit-ID: BHS1UfgT1yf
--HG--
extra : rebase_source : 7fea9606f776a904870fdfb4bbb93e43fd4b0a44
2016-09-19 19:39:50 +02:00
Shu-yu Guo
03569f36dd
Bug 1263355 - Report memory metrics for Scopes. (r=njn)
2016-08-25 01:28:47 -07:00
Shu-yu Guo
e2b6833e0a
Bug 1263355 - Rewrite the frontend: bindings. (r=jorendorff,Waldo)
2016-08-25 01:28:47 -07:00
Jan de Mooij
d8047f2b2f
Bug 1295967 - Share Shapes and BaseShapes across compartments. r=jonco,fitzgen,njn
2016-08-23 11:25:54 +02:00
Jon Coppeard
17304689a2
Bug 1291292 - Use dynamic chunk allocation for the nursery r=terrence
2016-08-11 17:14:56 +01:00
Jan de Mooij
0ad12515f4
Bug 1292892 part 1 - Stop using JSRuntime outside SpiderMonkey. r=bz,terrence,fitzgen,kanru
2016-08-11 14:39:22 +02:00
Jan de Mooij
900af968f3
Bug 1283855
part 28 - Make more GC APIs take JSContext instead of JSRuntime. r=terrence
...
--HG--
extra : rebase_source : c2d35b5d45cad074b9a9a144bc25ea4a32b8b246
2016-07-07 09:56:09 +02:00
Nick Fitzgerald
42225056cf
Bug 1211723 and 1260570 - Share JS source text between JSRuntimes; r=jimb
...
This commit adds `SharedImmutableStringsCache` which allows for de-duplication
and sharing of immutable strings between threads and JSRuntimes.
Each JSRuntime gets a SharedImmutableStringsCache member, but the accessor
always returns the parent runtime's cache. The caches in child JSRuntime's are
not wasting space, however, as initialization and allocation of the table
happens lazily within SharedImmutableStringsCache.
Furthermore, this commit removes `js::ScriptSource::Parent` and the
`CompressedSourceSet`. They are unnecessary because source text is always shared
via the parent runtime's `SharedImmutableStringsCache` now.
2016-05-06 16:53:45 -07:00
Nicholas Nethercote
5eb5cc7d6c
Bug 1132502 (part 1) - Abort if compartmentStats is null during memory reporting. r=jandem.
...
We have inconclusive evidence that compartmentStats is sometimes nullptr during
memory reporting, which would be bad. This patch makes us abort in that case.
It also changes some pointers to references to make the expected non-nullness
clearer.
--HG--
extra : rebase_source : c49f727450ce065d0e84d7728057c93d35353e91
2016-04-15 12:03:39 +10:00
Nicholas Nethercote
931d190779
Bug 1244841 - Don't measure SharedArrayBuffer objects multiple times. r=lth.
...
Redoes object element measurement and reporting:
- Adds "non-heap/elements/shared", which reports a (size / refcount)
measurement. Previously these measurements went into
"non-heap/elements/mapped" and the full size would be erroneously reported
for every thread sharing the buffer.
- Renames "non-heap/elements/mapped" as "non-heap/elements/normal".
- Renames "malloc-heap/elements/non-asm.js" as "malloc-heap/elements/normal".
- Leaves "{malloc,non}-heap/elements/asm.js" unchanged.
--HG--
extra : rebase_source : cd1a660000fcb95674b317098be2dfec792b2c8e
2016-02-12 09:18:46 +11:00
Nicholas Nethercote
462eb9a0d4
Bug 1245737 (part 2) - Don't bother measuring DtoaState. r=bhackett.
...
It's gone from 4,096 bytes per JS thread to 72 bytes per thread. (Also, the
old code only measured the DtoaState for the main thread.)
--HG--
extra : rebase_source : bfe0772b8c760a45ca3665e2c0939b121189520a
2016-02-05 14:50:55 +11:00
Nicholas Nethercote
ff840e5f16
Bug 1246855 (part 2) - Measure CompartmentPrivates during memory reporting. r=terrence.
...
This also expands the coverage to include the hash table elements in the
mWrappedJSMap.
2016-02-10 08:41:38 +11:00
Nicholas Nethercote
3a94c4149a
Bug 1245761 (part 2) - Measure JIT compartments. r=jandem.
...
--HG--
extra : rebase_source : cc6d1c57306405cdaada9ff876256b8eb2dad03f
2016-02-04 17:36:06 +11:00
Michael Wu
ed4b205b47
Bug 1212663 - Use doxygen style comments in jsapi, r=Waldo
2015-10-17 13:27:16 -04:00
Shu-yu Guo
76da4d1112
Bug 1202902
- Support non-syntactic extensible lexical scopes. (r=billm)
2015-10-06 14:00:29 -07:00
Terrence Cole
fe83447e72
Bug 1196848 - Add Zone::uniqueIds to about:memory reports; r=njn
...
--HG--
extra : rebase_source : 313662129f131a9249b73232c600f34c92738078
2015-08-26 14:51:43 -07:00
Terrence Cole
4955cf8ac2
Bug 1196925 - Remove the non-existing relocatable store buffer counts from about:memory; r=njn
2015-08-26 14:51:43 -07:00
Terrence Cole
ca1d87a88a
Backout 15fa4c3a45ec (Bug 1196848) for being on top of a regression.
...
--HG--
extra : rebase_source : 7783be3966c4f963ad9aadfa9dc145b1b832c143
2015-09-03 09:35:43 -07:00
Terrence Cole
46a19ca98d
Backout ff66ba4688c0 (Bug 1196925) for being on top of a regression.
...
--HG--
extra : rebase_source : 2a97f610801a7157f513ed3a3b52533d724f1c81
2015-09-03 09:35:02 -07:00
Terrence Cole
23db9f8879
Bug 1196925 - Remove the non-existing relocatable store buffer counts from about:memory; r=njn
...
--HG--
extra : rebase_source : 7b704f68283b7921225e43ec607315f283556817
2015-08-26 14:51:43 -07:00
Terrence Cole
899ec10be3
Bug 1196848 - Add Zone::uniqueIds to about:memory reports; r=njn
...
--HG--
extra : rebase_source : 0b7173fc4d344f55b5b8c41e010ea65c7048091e
2015-08-26 14:51:43 -07:00
Jeff Walden
d878a013d1
Bug 1185739 - Fix self-comparison warnings in MemoryMetrics.h. r=efaust
...
--HG--
extra : rebase_source : 0efd43d45100d4fe56cd22039c2349635c3d9161
2015-07-20 15:17:25 -07:00
Nicholas Nethercote
915d8780c8
Bug 1181452 - Add memory reporting infrastructure for Servo to SpiderMonkey. r=till.
...
Basically, this change is all about aggregating SpiderMonkey's fine-grained
measurements into the new set of coarse-grained measurements, called
ServoSizes (which is similar to the existing TabSizes). The change utilizes and
extends the existing macro machinery to do this in a way that has some chance
to maintaining correctness over the long-term despite the fact that this code
is so fiddly.
--HG--
extra : rebase_source : 1dc3d92830902d9e24496dcdc5f1ee8a6fe39fb4
2015-07-07 23:18:44 -07:00
Terrence Cole
c01ef51c2d
Bug 1167453 - Rename JSGCTraceKind and make it a C++11 enum class; r=jonco
...
--HG--
extra : rebase_source : 7dbeee0826fa20477ed227c9d336fdfe6de6ffd2
2015-05-22 10:40:24 -07:00
Brian Hackett
a7c7f13a97
Bug 1161077 - Allocate unboxed arrays in the nursery, r=terrence.
2015-05-04 16:36:54 -07:00
Jim Blandy
fc9d59392a
Bug 1062473: Implement JS::ubi::Node::size for JSObjects. r=sfink,terrence
...
--HG--
extra : rebase_source : cc27cefa89ab9689cbfe7f62635a00c3363f4265
extra : histedit_source : fd7c1ca09c654b27536774d7b722319819dd74e0
2015-04-01 18:04:53 -07:00
Jan de Mooij
b8b1677f0f
Bug 1144366
- Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff
2015-03-28 23:22:11 +01:00