Jan de Mooij
3cc60aaa15
Bug 1715512 part 19 - Remove now-unused JSID_EMPTY. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D117319
2021-06-18 12:02:16 +00:00
Jan de Mooij
531b5e0b77
Bug 1715512 part 7 - Add PropertyKey::isVoid. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D117307
2021-06-17 16:51:42 +00:00
Simon Giesecke
951cfd1012
Bug 1678374 - Fix includes in js/public. r=jandem
...
Differential Revision: https://phabricator.services.mozilla.com/D97615
2021-03-12 10:42:21 +00:00
Tom Schuster
962e598d8f
Bug 1695736 - Atom API for PropertyKey. r=jandem
...
Might as well add some nicer APIs to make the following patch nicer to read.
Differential Revision: https://phabricator.services.mozilla.com/D106992
2021-03-03 10:12:55 +00:00
Jon Coppeard
0bbf0e853e
Bug 1666853 - Part 4: Remove use of ApplyGCThingTyped from Value barriers as this doesn't generate good code r=sfink
...
Differential Revision: https://phabricator.services.mozilla.com/D91311
2020-09-26 10:40:48 +00:00
Jan de Mooij
287b183550
Bug 1662366 part 6 - Trace cloned CacheIR stub data. r=iain
...
Initially the plan was to reuse TraceCacheIRStub but this patch adds the tracing
code for Warp separately because:
* CacheIR stub data in Warp contains nursery indexes. It's nice to keep that out of the IC-tracing code.
* We can use WarpGCPtr similar to other snapshotted GC pointers. It asserts GC things are not moved.
Differential Revision: https://phabricator.services.mozilla.com/D88965
2020-09-02 07:35:15 +00:00
yohaan
a7ebf0a72f
Bug 1655110
added isPrivateName method to replace JSID manipulations r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D88404
2020-08-27 19:51:32 +00:00
Tom Schuster
16e34d88a9
Bug 1633145 - Replace NON_INTEGER_ATOM_TO_JSID. r=jandem
...
This also allows us to remove JSID_FROM_BITS and gives us stronger assertions everywhere for the whack integer-string case.
Differential Revision: https://phabricator.services.mozilla.com/D72564
2020-04-30 18:18:35 +00:00
Tom Schuster
bd161088e3
Bug 1633145 - Replace INTERNED_STRING_TO_JSID. r=jandem
...
I am honstely still not convinced that this function should actually exists.
It seems like a convulted way of saying AtomToId, while also asserting that the atom is pinned.
Differential Revision: https://phabricator.services.mozilla.com/D72563
2020-04-30 18:18:12 +00:00
Tom Schuster
f1e35cb3f7
Bug 1633145 - Add JS::PropertyKey::toGCCellPtr. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D72540
2020-04-26 17:02:30 +00:00
Tom Schuster
f420e22143
Bug 1633145 - Replace JSID_IS_GCTHING. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D72538
2020-04-26 17:03:01 +00:00
Tom Schuster
037471de0d
Bug 1633145 - Add PropertyKey::isWellKnownSymbol. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D72537
2020-04-26 17:01:57 +00:00
Tom Schuster
d30d4f7476
Bug 1633145 - Add more methods to JS::PropertyKey. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D72536
2020-04-26 17:01:39 +00:00
André Bargull
18f27b4376
Bug 1622326: Remove no longer needed 'id' redefine. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D66794
--HG--
extra : moz-landing-system : lando
2020-03-13 18:27:09 +00:00
Matthew Gaudet
a1ba26166a
Bug 1596603 - Add [SMDOC] to jsid comment r=tcampbell DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D53106
--HG--
extra : moz-landing-system : lando
2019-11-15 16:49:08 +00:00
Jon Coppeard
f88eca81a5
Bug 1585921 - Use root marking functions to trace unbarriered pointers in GCPolicy traits since this is only safe when we're marking roots r=sfink
...
The root marking functions have assertions that will catch this being used outside of heap marking.
Differential Revision: https://phabricator.services.mozilla.com/D48534
--HG--
extra : moz-landing-system : lando
2019-10-09 10:30:02 +00:00
Jon Coppeard
ad4df9ae33
Bug 1581574 - Remove Heap<T> write barrier and rely on existing read barrier to make incremental marking work r=sfink
...
Differential Revision: https://phabricator.services.mozilla.com/D46133
--HG--
extra : moz-landing-system : lando
2019-09-20 10:09:19 +00:00
Jon Coppeard
b425876903
Bug 1306008 - Give JS::Heap<T> pointer wrappers a pre-barrier r=sfink
...
This adds a pre write barrier to Heap<T> so that these can be uses as non-roots in the heap without breaking our snapshot at the beginning invariant if they are written to during an incremental GC. This makes it harder to misuse and allows us to take out manual barriers in at least one place.
Differential Revision: https://phabricator.services.mozilla.com/D25083
2019-03-27 16:26:09 +00:00
Sylvestre Ledru
41d1d79094
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D19663
--HG--
extra : moz-landing-system : lando
2019-02-15 08:15:57 +00:00
Jon Coppeard
1aa258e905
Bug 1526375 - Replace DispatchTyped with MapGCThingTyped and use generic lambdas rather than separate functor classes r=sfink
2019-02-09 08:26:27 +00:00
Jon Coppeard
6e15e4b1f3
Bug 1525663
- Use return type deduction to remove complex decltype expressions r=sfink
2019-02-08 10:34:02 +00:00
Sylvestre Ledru
cccdda3c2a
Bug 1516555 - Reformat everything to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D15426
--HG--
extra : moz-landing-system : lando
2018-12-28 15:48:06 +00:00
inspiro
b8d53fc5d2
Bug 1320105 : Convert JSID_IS_INT to PropertyKey::isInt() r=jandem
...
Convert JSID_IS_INT to PropertyKey::isInt()
Differential Revision: https://phabricator.services.mozilla.com/D14011
--HG--
extra : moz-landing-system : lando
2018-12-22 14:17:44 +00:00
Jon Coppeard
6f81506124
Bug 1463462 - Make gray marking assertions call a JSAPI function r=sfink
2018-12-06 16:28:10 -05:00
Tooru Fujisawa
7983faeb5d
Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp
2018-12-01 04:52:05 +09:00
Benjamin Bouvier
a7f1d173a0
Bug 1511383: Update vim modelines after clang-format; r=sylvestre
...
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)
--HG--
extra : rebase_source : 7eedce0311b340c9a5a1265dc42d3121cc0f32a0
extra : amend_source : 9cb4ffdd5005f5c4c14172390dd00b04b2066cd7
2018-11-30 16:39:55 +01:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
inspiro
9bd2a49d9a
Bug 1320105 : Renamed jsid to PropertyKey and included in JS namespace. r=jandem
...
Renamed jsid to PropertyKey and included in JS namespace
Differential Revision: https://phabricator.services.mozilla.com/D11017
--HG--
extra : moz-landing-system : lando
2018-11-20 12:01:42 +00:00
Jan de Mooij
bccfe7c569
Bug 1508065 - Change JS_PUBLIC_{API,DATA} and JS_FRIEND_{API,DATA} to be more like similar macros to avoid confusing clang-format. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D12256
--HG--
extra : moz-landing-system : lando
2018-11-19 17:02:47 +00:00
Jan de Mooij
ab644b087f
Bug 1488698 - Always use braces for if/for/while statements in js/public. r=jandem
...
--HG--
extra : rebase_source : 075f0747c9256fee67925853b501b7a3549cebba
2018-09-06 12:11:07 +02:00
Emilio Cobos Álvarez
1e9c395548
Bug 1466168: Remove mozilla::Forward in favor of std::forward. r=froydnj
...
Same approach as the other bug, mostly replacing automatically by removing
'using mozilla::Forward;' and then:
s/mozilla::Forward/std::forward/
s/Forward</std::forward</
The only file that required manual fixup was TestTreeTraversal.cpp, which had
a class called TestNodeForward with template parameters :)
MozReview-Commit-ID: A88qFG5AccP
2018-06-02 09:33:26 +02:00
Jan de Mooij
31c08cb474
Bug 1464036 part 2 - Give JSID_EMPTY its own jsid tag and clean up jsid code a bit. r=jonco
2018-05-30 13:51:58 +02:00
Jan de Mooij
7148cd7d35
Bug 1464036 - Remove PropertyInfo constructor to keep MSVC from generating static initializers. r=bz
...
--HG--
extra : rebase_source : c59d1878615029c7c8b075f4ec288daef77414c6
2018-05-26 14:14:10 +02:00
Jon Coppeard
d3bd086af9
Bug 1460341 - Replace GCPolicy<T>::initial() with SafelyInitialized<T>() r=Waldo
2018-05-25 10:01:25 +01:00
Jan de Mooij
d660ad143b
Bug 1460341 - Give jsid a constructor that initializes it to a void id. r=jonco,bz
2018-05-11 12:01:32 +02:00
Boris Zbarsky
f406b29197
Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 1a: Make PinnedStringId constructor constexpr. r=Waldo/froydnj.
...
--HG--
extra : rebase_source : 0ed87197f6740b74648fc5107bd6fb4e7409cdfa
2018-03-07 21:50:24 +01:00
Jon Coppeard
9abec85212
Bug 1440739 - Improve gray marking assertions to cover more types of pointer r=sfink
2018-02-27 13:01:49 +00:00
Jon Coppeard
ae251056d7
Bug 1399944 - Check for valid GC cell pointers in various places r=sfink
2017-09-19 12:31:31 +01:00
Jon Coppeard
73aaca8f5b
Bug 1378717 - Allow inlining of TraceEdge API's null check r=sfink
2017-07-11 16:51:37 +01:00
Ms2ger
b4ff4ad7ea
Bug 1319831 - Clarify some code with explicit casts; r=Waldo
2016-12-01 09:23:21 +01:00
Jan de Mooij
bee8fe969f
Bug 1317936 part 2 - Use atom hash code for jsid hashing. r=jonco
2016-11-24 13:39:06 +01:00
Terrence Cole
0edc10380c
Bug 1297558 - Use a read barrier on Heap to ExposeToActiveJS r=sfink r=mccr8
2016-02-07 09:08:55 -08:00
Tooru Fujisawa
c72eb75470
Bug 1290337 - Part 7: Replace Value parameter to const Value& in GC. r=terrence
2016-09-11 18:15:22 +09:00
ajay
d220ab5953
Bug 1303708 - Remove unused JSID_IS_ZERO(jsid id) function. r=arai
...
MozReview-Commit-ID: 49WIEl6MCsF
--HG--
extra : rebase_source : 751611cb27d134f3f768bb43a579b489b458be18
2016-09-22 04:27:52 +05:30
Jon Coppeard
17af524d85
Bug 1260785 - Make hashcode generation fallible for cell pointers that can be moved by GC r=terrence
2016-07-13 10:20:00 +01:00
Terrence Cole
8e2294b2b6
Bug 1267699 - Move some public types to the right namespace; r=sfink
...
--HG--
extra : rebase_source : f79f7d86aab708b86a65e6f2426baeb8488f47e5
2016-04-26 09:18:48 -07:00
Jeff Walden
1a0903f98c
Bug 1257979 - Use a GCHashSet for a hash in the JSON stringifying algorithm. r=sfink
...
--HG--
extra : rebase_source : c6e2b22de7467ac4c99fa6e010a88c2f2ca1d981
2016-03-18 16:43:53 -07:00
Steve Fink
517605b022
Bug 1246804 - Switch to using in-source annotations. Use C++ inheritance information when describing GC types. Add a test suite., r=terrence
...
MozReview-Commit-ID: HCcG2k8Wyb9
--HG--
extra : rebase_source : 732ef6ecc52f0e528d38b8c42e442919eba9b5ae
extra : source : 901b1c651c982ccbf42604231c723d168e1cde69
2015-09-29 13:39:33 -07:00
Steve Fink
57bca06b15
Backed out changeset 901b1c651c98 (bug 1246804)
...
--HG--
extra : rebase_source : d80a34f467275bf74672b87fd09a254b39ee20a1
2016-03-14 21:58:31 -07:00
Steve Fink
2dada4b1a0
Bug 1246804 - Switch to using in-source annotations. Use C++ inheritance information when describing GC types. Add a test suite., r=terrence
...
MozReview-Commit-ID: HCcG2k8Wyb9
--HG--
extra : rebase_source : 4b048fdcb150662c82e1b623e455551cc7281251
2015-09-29 13:39:33 -07:00