Steve Fink
853747dc43
Bug 1736737 - Implement Heap<ArrayBufferOrView> (for all subtypes) r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D129328
2021-10-25 21:18:57 +00:00
Steve Fink
9395a305fa
Bug 1736737 - Augment the WrappedPtrOperations for ArrayBufferOrView subclasses. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D129346
2021-10-25 21:18:56 +00:00
Steve Fink
b82d87038f
Bug 1736737 - Use template magic to specialize WrappedPtrOperations for ArrayBufferOrView subtypes r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D128963
2021-10-25 21:18:55 +00:00
Iulian Moraru
ccabf7cce9
Backed out 5 changesets (bug 1736737) for causing spidermonkey and bp-hybrid build bustages.
...
Backed out changeset 4ac615dbeb56 (bug 1736737)
Backed out changeset aa3037448983 (bug 1736737)
Backed out changeset 0c286f5836f6 (bug 1736737)
Backed out changeset 61da0b175b0b (bug 1736737)
Backed out changeset 43a22e362156 (bug 1736737)
2021-10-25 22:16:23 +03:00
Steve Fink
da2659f024
Bug 1736737 - Implement Heap<ArrayBufferOrView> (for all subtypes) r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D129328
2021-10-25 17:35:21 +00:00
Steve Fink
b846e08e9f
Bug 1736737 - Augment the WrappedPtrOperations for ArrayBufferOrView subclasses. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D129346
2021-10-25 17:35:21 +00:00
Steve Fink
0f0867e3e9
Bug 1736737 - Use template magic to specialize WrappedPtrOperations for ArrayBufferOrView subtypes r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D128963
2021-10-25 17:35:19 +00:00
Tooru Fujisawa
c30ad11d7f
Bug 1726498 - Add JS::DecodeOptions. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D128345
2021-10-21 21:48:48 +00:00
Steve Fink
a287274111
Bug 1731039 - ArrayBufferOrView subclasses should null-check in unwrap() r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D129092
2021-10-21 17:55:30 +00:00
Tooru Fujisawa
342914cc80
Bug 1732923 - Part 1: Remove options parameter from JS::EncodeStencil. r=tcampbell
...
Depends on D120201
Differential Revision: https://phabricator.services.mozilla.com/D128342
2021-10-21 00:14:21 +00:00
Jan de Mooij
ee052141ae
Bug 1736338 - Stop using Heap<> in ArrayBufferOrView. r=sfink
...
This was triggering post-barriers. This is unnecessary because this type is currently
only used on the stack.
Differential Revision: https://phabricator.services.mozilla.com/D128880
2021-10-20 08:56:40 +00:00
Tooru Fujisawa
0792d1689a
Bug 1720619 - Part 2: Add JS::InstantiateOptions. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D120201
2021-10-18 17:08:06 +00:00
Tooru Fujisawa
787e3e0e8c
Bug 1718194 - Use stencil in nsMessageManagerScriptExecutor. r=tcampbell,kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D118832
2021-09-21 03:18:01 +00:00
Butkovits Atila
8957144a0f
Backed out 3 changesets (bug 1718194, bug 1718623, bug 1718481) for causing leaks. CLOSED TREE
...
Backed out changeset 1cd8bdf1fc92 (bug 1718481)
Backed out changeset aa56fe2c069d (bug 1718194)
Backed out changeset f7cb7313d1c7 (bug 1718623)
2021-09-18 15:47:45 +03:00
Tooru Fujisawa
b21571e21f
Bug 1718194 - Use stencil in nsMessageManagerScriptExecutor. r=tcampbell,kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D118832
2021-09-18 11:16:46 +00:00
Matthew Gaudet
595314253e
Bug 1688788 - Convert ScriptPreloader to manage Stencils, not Scripts. r=kmag,tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D113013
2021-09-18 01:29:45 +00:00
Tooru Fujisawa
f1be6c68b4
Bug 1729859 - Use raw pointer or already_AddRefed in stencil API. r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D125036
2021-09-14 13:26:44 +00:00
Steve Fink
79a06d19d8
Bug 1720422 - Support Rooted<...view type...> operations. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D120652
2021-09-08 23:47:01 +00:00
Steve Fink
e0df89a627
Bug 1720422 - Switch DOM bindings typed arrays to using JSAPI templates r=jonco,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D119858
2021-09-08 23:47:00 +00:00
Steve Fink
a988b5d349
Bug 1720422 - Move js::Scalar -> JS::Scalar for public API, but alias it as js::Scalar r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D120292
2021-09-08 23:47:00 +00:00
Steve Fink
19c956b5d3
Bug 1720422 - Convert the JS_Is(type)Array APIs r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D119860
2021-09-08 23:46:59 +00:00
Steve Fink
5e39f0a58b
Bug 1720422 - Convert the JS_GetObjectAs(type)Array APIs r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D119859
2021-09-08 23:46:59 +00:00
Steve Fink
dbfaf2345a
Bug 1720422 - Add (type)Array aliases, eg JS::Int8Array r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D120651
2021-09-08 23:46:59 +00:00
Steve Fink
077b9ced97
Bug 1720422 - Fill in the rest of the ArrayBuffer+ArrayBufferView hierarchy, and base more ArrayBufferViewObject public APIs off of new API r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D119857
2021-09-08 23:46:58 +00:00
Steve Fink
76d3df6bbc
Bug 1720422 - Move typed array unwrap API to templatized version r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D119856
2021-09-08 23:46:58 +00:00
Steve Fink
b96f464d3e
Bug 1720422 - Make eg GetInt8ArrayData call TypedArray<Int8>::getData rather than the other way around (replace macros with function templates) r=jonco
...
isDetached() (FIXME)
Differential Revision: https://phabricator.services.mozilla.com/D119855
2021-09-08 23:46:57 +00:00
Steve Fink
8abe6693d0
Bug 1720422 - Expose a templatized TypedArray<T> class in JSAPI r=jonco,nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D119853
2021-09-08 23:46:56 +00:00
Narcis Beleuzu
e61a054602
Backed out 13 changesets (bug 1720422) for hazards bustages on Cache.cpp
...
Backed out changeset 94293ba5a5a5 (bug 1720422)
Backed out changeset ccb7a164fe32 (bug 1720422)
Backed out changeset 44c3e9e78d0a (bug 1720422)
Backed out changeset 6880cf8c51bc (bug 1720422)
Backed out changeset 23cc649c6e14 (bug 1720422)
Backed out changeset 16695064a637 (bug 1720422)
Backed out changeset b5bafd6f08d3 (bug 1720422)
Backed out changeset f212ab757312 (bug 1720422)
Backed out changeset 180daaed9cc8 (bug 1720422)
Backed out changeset 410e13fdf4e5 (bug 1720422)
Backed out changeset 677e4aa42b4d (bug 1720422)
Backed out changeset ae5f6b9ecf4a (bug 1720422)
Backed out changeset 77ff4529ea3e (bug 1720422)
2021-08-13 07:02:45 +03:00
Steve Fink
7df5bd8648
Bug 1720422 - Support Rooted<...view type...> operations. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D120652
2021-08-12 20:44:18 +00:00
Steve Fink
bf7140eaa9
Bug 1720422 - Switch DOM bindings typed arrays to using JSAPI templates r=jonco,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D119858
2021-08-12 20:44:18 +00:00
Steve Fink
424d5156ed
Bug 1720422 - Move js::Scalar -> JS::Scalar for public API, but alias it as js::Scalar r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D120292
2021-08-12 20:44:18 +00:00
Steve Fink
df50b89bfe
Bug 1720422 - Convert the JS_Is(type)Array APIs r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D119860
2021-08-12 20:44:17 +00:00
Steve Fink
42286d6cfa
Bug 1720422 - Convert the JS_GetObjectAs(type)Array APIs r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D119859
2021-08-12 20:44:17 +00:00
Steve Fink
90667251ad
Bug 1720422 - Add (type)Array aliases, eg JS::Int8Array r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D120651
2021-08-12 20:44:16 +00:00
Steve Fink
01847b4d58
Bug 1720422 - Fill in the rest of the ArrayBuffer+ArrayBufferView hierarchy, and base more ArrayBufferViewObject public APIs off of new API r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D119857
2021-08-12 20:44:16 +00:00
Steve Fink
2269775a19
Bug 1720422 - Move typed array unwrap API to templatized version r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D119856
2021-08-12 20:44:15 +00:00
Steve Fink
947dfede08
Bug 1720422 - Make eg GetInt8ArrayData call TypedArray<Int8>::getData rather than the other way around (replace macros with function templates) r=jonco
...
isDetached() (FIXME)
Differential Revision: https://phabricator.services.mozilla.com/D119855
2021-08-12 20:44:15 +00:00
Steve Fink
2342b6c825
Bug 1720422 - Expose a templatized TypedArray<T> class in JSAPI r=jonco,nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D119853
2021-08-12 20:44:14 +00:00
Jan de Mooij
25c3d08eef
Bug 1722674 - Use a reserved slot instead of a private slot for TypedArray and DataView objects. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D121068
2021-07-29 08:10:43 +00:00
Jeff Walden
182ac2bfc5
Bug 1663365
- Move PCCount profiling functions out of jsfriendapi.h to a standalone header. r=jandem
...
Differential Revision: https://phabricator.services.mozilla.com/D118558
2021-06-23 19:07:30 +00:00
Tooru Fujisawa
1add96aab2
Bug 1717002 - Part 5: Add offThreadCompileToStencil and finishOffThreadCompileToStencil. r=nbp
...
Differential Revision: https://phabricator.services.mozilla.com/D118316
2021-06-23 05:15:13 +00:00
Ted Campbell
b172dd415c
Bug 1716250 - Remove JS_FRIEND_API. r=jandem,sfink
...
Convert all JS_FRIEND_API to JS_PUBLIC_API. At this point, the JS_PUBLIC_API has
no formal curation process and in practice we add a lot of new features to
JS_FRIEND_API without giving much thought to if they should be public. The
result is that all embedders need to use the friend API in some form and the
distinction has lost meaning.
Going forward, we should continue to use the js/public/experimental directory as
a place to expose new APIs, and in general should strive for high quality of the
APIs that are exposed. If a particular API is tricky or discouraged, comments
explaining that will be more helpful that a losely applied FRIEND_API marker.
Differential Revision: https://phabricator.services.mozilla.com/D117607
2021-06-16 19:38:10 +00:00
Ted Campbell
c31c204d6c
Bug 1701305 - Add off-thread compile API for JS::Stencil. r=arai
...
Note that starting the off-thread compile simply uses the existing
mechanisms. We only need a special "finish" function to avoid automatic
instantiation.
Differential Revision: https://phabricator.services.mozilla.com/D109958
2021-03-29 16:04:03 +00:00
Ted Campbell
df57c04148
Bug 1701305 - Add ES-module support to JS::Stencil API. r=arai
...
While this API also parses to a Stencil, care must be taken by callers since
parsing JavaScript text as a module vs global script as different semantics
(as defined in ECMAScript spec).
Differential Revision: https://phabricator.services.mozilla.com/D109974
2021-03-29 16:04:03 +00:00
Ted Campbell
ad4995ae80
Bug 1701305 - Add char16_t overload for JS::Stencil API. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D109956
2021-03-29 16:04:02 +00:00
Ted Campbell
537c2f8aa6
Bug 1691612 - Add public API for JS::Stencil. r=arai
...
Introduce an opaque JS::Stencil type for working with CompilationStencil via
the public API (such as in Gecko). This is an preliminary API and subject to
change.
Also add a `refCount` field to the `CompilationStencil` to allow sharing
stencils between different subsystems. Care must be taken to avoid cycles
right now.
Differential Revision: https://phabricator.services.mozilla.com/D104745
2021-02-13 22:36:17 +00:00
Jan de Mooij
7ee51c367f
Bug 1674777 part 11 - Change JS_GetTypedArrayLength return type from uint32_t to size_t. r=sfink
...
The callers in AudioWorkletNode.cpp are just comparing the length to the expected length
to guard against detachment.
Differential Revision: https://phabricator.services.mozilla.com/D103903
2021-02-10 11:23:00 +00:00
Jan de Mooij
c7c11c1992
Bug 1674777 part 5 - Change GetObjectAs* APIs to use size_t for outparam instead of uint32_t. r=sfink,sg
...
Note that in the IndexedDB code we pass a Span to Key::EncodeAsString where we check
for large lengths.
Differential Revision: https://phabricator.services.mozilla.com/D103679
2021-02-01 17:15:00 +00:00
Jan de Mooij
72b0edc3ed
Bug 1674777 part 4 - Change some JSAPI byteLength and byteOffset accessors to return size_t instead of uint32_t. r=sfink
...
Of these four, only JS_GetTypedArrayByteLength is used outside jsapi-tests.
Differential Revision: https://phabricator.services.mozilla.com/D103277
2021-01-28 16:11:52 +00:00
Jan de Mooij
41621582c6
Bug 1674777 part 3 - Change Get*LengthAndData outparam from uint32_t to size_t. r=sfink,aosmond
...
Differential Revision: https://phabricator.services.mozilla.com/D103275
2021-01-31 08:35:40 +00:00