Граф коммитов

2004 Коммитов

Автор SHA1 Сообщение Дата
Steve Fink 97f8e4d9ab Bug 1366083 - Diagnostic assert for ObjectValue(nullptr), r=jonco
--HG--
extra : rebase_source : 796da9b227da9aecf84c9cc5680aa448e2c1319b
2017-11-21 17:04:22 -08: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
Jason Orendorff a48654929c Bug 1439665 - Part 1: #include some headers directly in files that use them. r=sfink.
"Include what you use."

--HG--
extra : rebase_source : 2239a380029e0efbc9dd3042459222a67c38d70f
extra : amend_source : 4453c32cc469caa592049167205666997f1a1e7b
extra : histedit_source : a533edd4a4d3d0642b08989e93674661d27baa6a%2C37d27eeef9580381ccc0de8507f60166dabf1730
2018-02-20 11:28:12 -06:00
Jason Orendorff d07bbcafa1 Bug 1439626 - Remove js/public/LegacyIntTypes.h. r=Waldo.
--HG--
extra : rebase_source : 6b63992919109ab8940ae5e4df840b23fd8501e3
2018-02-20 09:39:39 -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
Cosmin Sabou 768831260e Backed out 2 changesets (bug 1437428) for frequent xpcfailures on marAppApplyUpdateStageOldVersionFailure.js a=backout
Backed out changeset b915e160a690 (bug 1437428)
Backed out changeset 0fcad4eaabb6 (bug 1437428)

--HG--
rename : tools/profiler/core/RegisteredThread.cpp => tools/profiler/core/ThreadInfo.cpp
2018-02-18 23:57:55 +02:00
Chris Peterson d09123f248 Bug 1436263 - Part 1: Replace `final override` virtual function specifiers with just `final`. r=froydnj
MozReview-Commit-ID: DE5HkIhsZ6D

--HG--
extra : rebase_source : 94831c1e13a840dd2ea0600f64bcf70c2bf938d9
extra : source : cf9283bf1b0bca3a6311c98e227329d451f80ecb
2018-02-05 22:46:57 -08:00
Dorel Luca e6b2438e24 Merge mozilla-central to autoland 2018-02-17 11:59:56 +02:00
Jason Orendorff 50d9e51a7d Bug 1438278 - Part 3: Rename some files into js/src/gc. r=jonco.
jsgc.* -> gc/GC.*
jshashutil.h -> gc/HashUtil.h
jsweakmap.* -> gc/WeakMap.*
vm/WeakMapPtr.cpp -> gc/WeakMapPtr.cpp

--HG--
rename : js/src/jsgcinlines.h => js/src/gc/GC-inl.h
rename : js/src/jsgc.cpp => js/src/gc/GC.cpp
rename : js/src/jsgc.h => js/src/gc/GC.h
rename : js/src/jshashutil.h => js/src/gc/HashUtil.h
rename : js/src/jsweakmap.cpp => js/src/gc/WeakMap.cpp
rename : js/src/jsweakmap.h => js/src/gc/WeakMap.h
rename : js/src/vm/WeakMapPtr.cpp => js/src/gc/WeakMapPtr.cpp
extra : rebase_source : 8435ece63e11545a633ae0cdf6ed4a46cb017457
extra : amend_source : cfb63d098bf2fb27d63221a24457d8aaf8884137
extra : intermediate-source : 2d498c561ba67baf3ad09b6c29f4a8985997928c
extra : source : c1df7b31137da2bbea5ae1169cc07dd0f4974376
2018-02-14 16:00:46 -06:00
Markus Stange 8bb2083b22 Bug 1437428 - Make PseudoStack a member of RacyInfo instead of inheriting from it. r=njn
MozReview-Commit-ID: 3fumT1Livf6

--HG--
extra : rebase_source : fa201a7023ba9ffa5d0d23e2886ad151f4a7930a
2018-01-31 17:42:49 -05:00
Jon Coppeard b188b2d674 Bug 1399866 - Add gray marking asserts to proxy write functions r=sfink 2018-02-16 11:40:04 +00:00
Markus Stange e50b258807 Bug 1385998 - Fix a typo in a comment.
MozReview-Commit-ID: AiHDDUKGHhi
2018-02-15 22:29:32 -05:00
Andreea Pavel 74b7ffee40 Merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : js/src/jscompartment.cpp => js/src/vm/JSCompartment.cpp
rename : js/src/jscompartment.h => js/src/vm/JSCompartment.h
rename : js/src/jsscript.cpp => js/src/vm/JSScript.cpp
rename : js/src/jsscript.h => js/src/vm/JSScript.h
extra : amend_source : 9c233cb959c45e401189d089a094f9d141d2b912
2018-02-15 12:24:21 +02: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
Markus Stange 8fb2503b8a Bug 1434965 - Replace callback-based API ForEachProfiledFrame with an iterator-based API called GetProfiledFrames. r=njn
This also renames ForEachProfiledFrameOp::FrameHandle to ProfiledFrameHandle.

MozReview-Commit-ID: 7Jh1x2QWjXe

--HG--
extra : rebase_source : 8bb0fa15fa20215f03148cfd30ae0e41f82330fd
2018-02-10 20:38:41 -05:00
Markus Stange 49735a3768 Bug 785440 - Add js::GetContextProfilingStack in such a way that it can be inlined into non-JS code. r=sfink
This requires moving some things around. RootingContext is an existing
superclass of JSContext whose members are exposed in a header file, so we can
use it to expose the location of the geckoProfiler_ member to non-JS code.

MozReview-Commit-ID: 3oClAEVMsDr

--HG--
extra : rebase_source : f5943a710cddaa65cfdcb13370f95387caaf6892
extra : source : 2f5b804cef7b0888ac6121f5645bbb910750ed72
2018-01-05 14:35:00 +01:00
Steve Fink 0742a54280 Bug 903519 - Strings in the nursery: JIT, r=jandem
--HG--
extra : rebase_source : 3e2c013d3085fa87f930bbf620c1cb5b46f8952e
extra : histedit_source : a07cbe1740f88d26a9a696cdcb5007181cc92ee8
2018-02-05 16:22:22 -08:00
Steve Fink 2cf574b314 Bug 903519 - Default nursery strings to off, add ability to enable, r=jonco
--HG--
extra : rebase_source : bdc3a320de7f1e6d3ac620113852af63bdfd592f
extra : source : 71831e232df2957c9ea178986218e3d6eeef6c0b
extra : histedit_source : 2e77c0ce51da517d8d391fde25c947004475d8e4
2017-11-03 14:00:14 -07:00
Steve Fink 34decd09c6 Bug 903519 - Change Relocated marker to not confuse string vs object bit, r=jonco
--HG--
extra : rebase_source : 58f6ed8ba0692ad60b99c9d6a637231693e2316c
extra : source : 6f3666e9540e849056347f7b9d8a40e41396115e
extra : histedit_source : 315716a40a4ffba00fce14c8d58380128804e53d%2Cd69faed961ccbfc63d378ccf34c600d8698483f4
2017-11-03 12:27:52 -07:00
Nicolas B. Pierron f37e8775a7 Bug 1433111 - Zero the payload if the Value tag does not match the expected tag. r=jandem 2018-02-09 16:49:30 +00:00
Markus Stange 46a81f0069 Bug 1385998 - Use ReleaseAcquire memory ordering when modifying the PseudoStack. r=froydnj
Before this patch, the writes to stackPointer were done using sequentially-
consistent stores. On x86 these compile to 'xchg' instructions, which showed up
as the most expensive part of the PseudoStack overhead.

MozReview-Commit-ID: IP9w9ievEXZ

--HG--
extra : rebase_source : 6b08b1ce98b59812e9da6da055a9a8daa18a1200
2018-02-05 16:41:29 -05:00
Markus Stange 3c3d175106 Bug 1385998 - Don't use atomic increments / decrements on stackPointer. r=froydnj
Only one thread ever modifies a PseudoStack, so we don't need to enforce
synchronization of writes from different threads. We can just read the old
value, add one to it, and then do an atomic store with the new value, because
we know that the current value of stackPointer can't have changed in the
meantime.

On its own, this patch actually seems to make things slower. But combined with
the next patch (which changes the memory ordering to ReleaseAcquire) it doesn't.
(I haven't checked whether the next patch on its own would give just as much
improvements with and without this patch.)

MozReview-Commit-ID: 3WIdyJC9kcj

--HG--
extra : rebase_source : c4e88746a0239cab3d0f9cf6f7b7fb10732a62ab
2017-08-02 14:36:43 -04:00
Markus Stange 49d6d03730 Bug 1348959 - Remove wraparound indexing in ProfileBuffer. r=djvj,mystor,njn
MozReview-Commit-ID: LeBFSRE6GXR

--HG--
extra : rebase_source : c46c0cd0dd543a367f72000e3cae65260a25b365
extra : source : 0f2e9dd7d45551d40944e4219e5a9eb92d54b2c4
2018-02-06 00:25:30 -05:00
Jon Coppeard 779ba02591 Bug 1432794 - Skip prototype and constructor intialization for off-thread parsing r=jandem 2018-01-30 17:57:40 +00:00
Jeff Walden 8314131139 Bug 1432646 - Implement mozilla::WrapToSigned. r=froydnj
--HG--
extra : rebase_source : 2c1a216830767da789eea59d00b55a45845f4d60
2018-01-25 14:48:01 -08:00
Jeff Walden 1cf916f6d8 Bug 1432646 - Don't overflow performing signed integer arithmetic when performing |JS::ToInt32(0xFFFFFFFF)|. r=froydnj
--HG--
extra : rebase_source : bf64d6eceb631fbd4fe018a34530defd59e20d71
2018-01-25 14:47:55 -08:00
Lars T Hansen 1ccda3f5bc Bug 1427130 - Add guard to SAB structured clone. r=jorendorff
This demotes a MOZ_RELEASE_ASSERT in the SAB case for SC write to a
run-time check.  The reason is that the clone policy must conform to
the clone scope, specifically, if the scope is DifferentProcess then
the policy must deny SAB.

The check was an assert previously because we mistakenly thought that
we controlled all the callers, but we do not - the TestingFunction
serialize() has a permissive API and instead of adding a lot of
complexity there we should change the assert to a run-time check.  The
code is more resilient as a result anyway.

Also document this quirk in the SC header file.

--HG--
extra : rebase_source : 4b632fe57bc9ebf3f38210b1ffad11fde57befa6
2018-01-15 11:31:35 +01:00
Steve Fink f8eb88c8a6 Bug 903519 - Strings in the nursery: allow any thread to access zone of permanent atoms, r=jonco
--HG--
extra : rebase_source : 2d970b2ea4b2520f8f9ca1941e1fa21966119af5
extra : source : 7854bfe5d68346a38b25d93ea8870f47bce4f901
2017-07-30 13:21:53 -07:00
Steve Fink 1c184b5229 Bug 903519 - Strings in the nursery: barriers, r=jonco
--HG--
extra : rebase_source : 64f8aa23157acad4f56c0fedfe7055976ecdccaa
extra : source : 7d56db66836900bc7758c6829b9235a3dd26947e
2017-07-28 16:46:38 -07:00
Jan de Mooij 93e1e4e3d9 Bug 1432479 - Use XOR for Value unboxing on 64-bit to mitigate certain Spectre attacks. r=luke
--HG--
extra : rebase_source : e0825f48994b4556db2f71d04d3c0971de5275ac
2018-01-24 12:33:53 +01:00
Jason Orendorff f5bc70ac9c Bug 1429206 - Part 1: Use js/TypeDecls.h instead of redeclaring certain types. r=jandem.
This adds JS::Zone to TypeDecls.h. Arguably that is pretty borderline, but
even though the Zone type is only used in a dozen or so places in Gecko,
it's a central concept.

--HG--
extra : rebase_source : 2267ad26c8888f3db9213acdb64ce7a56b1c16e5
extra : source : 7f7eb82a83f47c8e1a4b67527c42f88e35f9ff4a
2017-12-18 14:45:06 -06:00
Paul Bone debeadacaa Bug 1430703 - Fix some too-loose static assertions r=cduan
--HG--
extra : rebase_source : 9a5b7de473290dc8d8578406513a9f002434b274
extra : histedit_source : cd563024fa007e3f40f108cd7d2339946bb40ec6
2017-12-13 11:31:39 +11:00
Chris Peterson 37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Jan de Mooij 03f5b1346f Bug 1113014 - Don't emit a branch in LoadDOMPrivate if we know the object kind (native or proxy) statically. r=bz
--HG--
extra : rebase_source : 6648791a98335471d84afbcff73d4801d80e602d
2018-01-12 12:47:19 +01:00
Noemi Erli cea0d65a57 Backed out 20 changesets (bug 903519) for detected memory leaks on a CLOSED TREE
Backed out changeset 3f72f8747e29 (bug 903519)
Backed out changeset bb2cc298a155 (bug 903519)
Backed out changeset cc56f32ddae8 (bug 903519)
Backed out changeset ec5b307a28aa (bug 903519)
Backed out changeset 38f4e0426bdd (bug 903519)
Backed out changeset 71831e232df2 (bug 903519)
Backed out changeset 6f3666e9540e (bug 903519)
Backed out changeset c62e5867d763 (bug 903519)
Backed out changeset 7854bfe5d683 (bug 903519)
Backed out changeset f5f72c93adf9 (bug 903519)
Backed out changeset 7d56db668369 (bug 903519)
Backed out changeset 7c96258a6459 (bug 903519)
Backed out changeset 11b3f0fda4ad (bug 903519)
Backed out changeset 2bc9d427f427 (bug 903519)
Backed out changeset fdb6431ea4ff (bug 903519)
Backed out changeset 6d7d15b25489 (bug 903519)
Backed out changeset 457008b194a8 (bug 903519)
Backed out changeset 80b9d97bf1fe (bug 903519)
Backed out changeset 1fc5ee0d0116 (bug 903519)
Backed out changeset 9316d8f7b92a (bug 903519)
2018-01-11 22:18:23 +02:00
Steve Fink cf8e0f399f Bug 903519 - Strings in the nursery: JIT, r=jandem
--HG--
extra : rebase_source : 5a63d6424a2d4a593e2d45beb8dd287278d3a6b0
2018-01-04 15:49:14 -08:00
Steve Fink 294ff2a8f0 Bug 903519 - Default nursery strings to off, add ability to enable, r=jonco
--HG--
extra : rebase_source : 17eb8dcee3ec3b1245e88fb672c8d9ef0180205c
2017-11-03 14:00:14 -07:00
Steve Fink 1510c0fff7 Bug 903519 - Change Relocated marker to not confuse string vs object bit, r=jonco
--HG--
extra : rebase_source : 20e3e3d984b4a523abb6f3e2e0383a110d50ab53
2017-11-03 12:27:52 -07:00
Steve Fink ada1935fff Bug 903519 - Strings in the nursery: allow any thread to access zone of permanent atoms, r=jonco
--HG--
extra : rebase_source : b2ad4f1518f4dfb56dca2efbf22aaf173f09a2a3
2017-07-30 13:21:53 -07:00
Steve Fink 0c8e914a3b Bug 903519 - Strings in the nursery: barriers, r=jonco
--HG--
extra : rebase_source : e28ddcc4b57d7498f27f4d6c3cfa5fdacf3c56f4
2017-07-28 16:46:38 -07:00
Adrian Wielgosik 0e43a76787 Bug 1421358 - Remove GCRuntime::notifyDidPaint and refresh_frame_slices.enabled pref. r=jonco
MozReview-Commit-ID: HBh0qyPckKv
2018-01-06 22:25:25 +01:00
David Teller 4382d682b7 Bug 1377007 - GC for binjs-ref parser;r=sfink
MozReview-Commit-ID: EjZZ1ofm52t

--HG--
extra : rebase_source : 72f5f294fd11360260c6958520c980cd6dcb3427
2017-09-05 14:51:30 +02:00
Narcis Beleuzu 996e222d3a Backed out 7 changesets (bug 1377007) for web platform reftests failures on CSS2/borders. r=backout
Backed out changeset c30bc5d5adbc (bug 1377007)
Backed out changeset 33fdf9e531e2 (bug 1377007)
Backed out changeset 267abdb38036 (bug 1377007)
Backed out changeset 4a452c3ac115 (bug 1377007)
Backed out changeset e9310960c9e6 (bug 1377007)
Backed out changeset 8e5e61dfbbaf (bug 1377007)
Backed out changeset 9ac83e79e656 (bug 1377007)
2017-12-15 02:16:50 +02:00
David Teller e6ed8aa3c2 Bug 1377007 - GC for binjs-ref parser;r=sfink
MozReview-Commit-ID: EjZZ1ofm52t

--HG--
extra : rebase_source : 9bad473b5b8b90c8fcc6f6b114d004ce97bb0cff
2017-09-05 14:51:30 +02:00
Jon Coppeard ff4f5d0483 Backed out changesets 115d70e6c818 and 1938afc34193 for memory and performance regressions (bug 1422575) 2017-12-12 16:29:19 -06:00
Jon Coppeard 0228e51379 Bug 1422575 - Give hash tables a minimum capacity based on the parameter passed to init() r=sfink 2017-12-07 18:28:42 +00:00
Dorel Luca 20ddc8dfae Backed out 7 changesets (bug 1377007) for failing build bustage on Linux pgo and faling Cpp's jsapi-tests r=backout on a CLOSED TREE
Backed out changeset 9428a4ed7dec (bug 1377007)
Backed out changeset 4407b43a8aff (bug 1377007)
Backed out changeset 65a37a7f78a5 (bug 1377007)
Backed out changeset 276fe6d9b716 (bug 1377007)
Backed out changeset 1de46e60ffba (bug 1377007)
Backed out changeset 893e303e17ec (bug 1377007)
Backed out changeset 081a241e25d4 (bug 1377007)
2017-12-04 18:01:09 +02:00
David Teller 6cbd331d9e Bug 1377007 - GC for binjs-ref parser;r=sfink
MozReview-Commit-ID: EjZZ1ofm52t

--HG--
extra : rebase_source : f45fc9709f0c2d18baccdc27cba3476b7a610b61
2017-09-05 14:51:30 +02:00
Andrew McCreight 6d088f4ffe Bug 1421355, part 6 - Remove JS::NotifyDidPaint. r=jonco
MozReview-Commit-ID: 6rdvr6QfAD1

--HG--
extra : rebase_source : e3e1fb7de9cc30d10cd17d00f4290e27a46b4c0e
2017-11-28 10:04:23 -08:00
Lars T Hansen 3f9a90d355 Bug 1412852 - Structured clone WebAssembly.Memory objects. r=sfink
--HG--
extra : rebase_source : 0f96caf022c5d0ec51e5c9710468ed8015acf4aa
2017-10-31 13:38:28 +01:00