gecko-dev/dom/bindings
Markus Stange df441c491f Bug 1726480 - Add IOUtils::OpenFileForSyncReading. r=dom-worker-reviewers,asuth
This exposes synchronous file reading to workers. It's intended to be used
by profiler symbolication.
The API only supports reading into an existing Uint8Array. This avoids
creating garbage, and minimizes copies.
It also keeps the file open so that it doesn't need to be reopened for
each read.

The implementation uses nsFileStream.

I first tried an implementation which used mmap + memcpy rather than read,
but it didn't work for files larger than 2GiB due to limitations in NSPR's
mmap support, and the profiler needs to read >2GiB files.
Specifically, the profiler sometimes needs to read
/System/Library/dyld/dyld_shared_cache_arm64e , which is 2.2GiB big on
macOS 11.5.

Differential Revision: https://phabricator.services.mozilla.com/D124207
2021-11-04 19:47:29 +00:00
..
crashtests
docs
mozwebidlcodegen Bug 1734523 - Remove the use of MozbuildObject.mozconfig in mozwebidlcodegen. r=firefox-build-system-reviewers,mhentges 2021-10-07 15:19:03 +00:00
parser Bug 1737000 - Make [UseCounter] work on WebIDL constructors. r=peterv 2021-10-21 16:02:01 +00:00
test Bug 1724296 - Remove many skip-if(verify) test annotations (mochitest); r=jmaher 2021-08-18 21:33:32 +00:00
AtomList.h Bug 1726123 - Part 5: Add missing "js/" includes outside of SM. r=arai 2021-08-17 15:45:39 +00:00
BindingCallContext.h
BindingDeclarations.h Bug 1673931 - Avoid including ErrorResult.h in generated bindings when not needed. r=nika 2021-03-11 19:28:02 +00:00
BindingIPCUtils.h Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
BindingUtils.cpp Bug 1726595 - WebIDL code generation for Promise returning callbacks doesn't handle abrupt completions correctly. r=edgar 2021-09-28 15:20:58 +00:00
BindingUtils.h Bug 1726595 - WebIDL code generation for Promise returning callbacks doesn't handle abrupt completions correctly. r=edgar 2021-09-28 15:20:58 +00:00
Bindings.conf Bug 1726480 - Add IOUtils::OpenFileForSyncReading. r=dom-worker-reviewers,asuth 2021-11-04 19:47:29 +00:00
CallbackFunction.h
CallbackInterface.cpp Bug 1708450 - Move call and construct functions into js/public/CallAndConstruct.h. r=nbp 2021-07-13 11:52:43 +00:00
CallbackInterface.h
CallbackObject.cpp
CallbackObject.h Bug 1726123 - Part 5: Add missing "js/" includes outside of SM. r=arai 2021-08-17 15:45:39 +00:00
Codegen.py Bug 1737000 - fix lint failure in dom/bindings/Codegen.py. a=lint-fix CLOSED TREE 2021-10-21 19:32:45 +03:00
Configuration.py Bug 1631581 - Part 4: Rename Unforgeable to LegacyUnforgeable r=edgar 2021-04-11 03:13:32 +00:00
DOMExceptionNames.h
DOMJSClass.h Bug 1709695 - Only init PropertyInfos and sort IDs for resolving Xray properties once needed. r=nika 2021-05-07 13:57:24 +00:00
DOMJSProxyHandler.cpp Bug 1708448 - Move property and element functions into js/public/PropertyAndElement.h. r=nbp 2021-07-13 11:52:42 +00:00
DOMJSProxyHandler.h Bug 1705195 - Remove JSID_TO_ATOM. r=mgaudet 2021-06-23 21:16:52 +00:00
DOMString.h
ErrorIPCUtils.h Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8 2020-12-10 11:09:21 +00:00
ErrorResult.h Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
Errors.msg Bug 1736564 - Create a common error message for conversion error; r=peterv 2021-10-20 08:27:55 +00:00
Exceptions.cpp
Exceptions.h
FakeString.h Bug 1717526 - String's implicit conversion operator causes COW relocations, r=xpcom-reviewers,mccr8 2021-06-23 01:57:00 +00:00
GenerateCSS2PropertiesWebIDL.py Bug 1738663 - Remove unneeded special-case for backdrop-filter in GenerateCSS2PropertiesWebIDL. r=layout-reviewers,mats 2021-11-02 14:22:08 +00:00
IterableIterator.cpp
IterableIterator.h Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
JSSlots.h
Makefile.in
NonRefcountedDOMObject.h
Nullable.h
PinnedStringId.h Bug 1726123 - Part 5: Add missing "js/" includes outside of SM. r=arai 2021-08-17 15:45:39 +00:00
PrimitiveConversions.h Bug 1678374 - Avoid including jsapi.h from header files. r=jandem 2020-11-23 16:12:34 +00:00
ReadableStream.h Bug 1730589 - Initial Implementation of ReadableStreams using WebIDL and DOM technologies r=smaug 2021-10-06 18:43:01 +00:00
Record.h
RemoteObjectProxy.cpp Bug 1719998 - Don't use lookupForAdd in GetOrCreateProxyObject. r=peterv,jonco 2021-07-20 23:42:00 +00:00
RemoteObjectProxy.h Bug 1704293 - Use Maybe<PropertyDescriptor> for BaseProxyHandler::getOwnPropertyDescriptor in DOM and XPConnect. r=jandem,smaug 2021-04-19 19:51:59 +00:00
RootedDictionary.h
RootedOwningNonNull.h Bug 1678374 - Avoid including js/RootingAPI.h from header files. r=jandem 2020-11-23 16:12:12 +00:00
RootedRefPtr.h Bug 1678374 - Avoid including js/RootingAPI.h from header files. r=jandem 2020-11-23 16:12:12 +00:00
SimpleGlobalObject.cpp Bug 1719795 part 5 - Change JSCLASS_PRIVATE_IS_NSISUPPORTS JSClasses to use a reserved slot instead. r=mccr8,jonco 2021-07-13 09:31:34 +00:00
SimpleGlobalObject.h
SpiderMonkeyInterface.h Bug 1678374 - Reduce dependencies on js, in particular on jsfriendapi.h. r=jandem 2020-11-23 16:12:19 +00:00
ToJSValue.cpp Bug 1682121 - Add a ToJSValue overload for nsACString. r=hsivonen 2020-12-14 11:12:11 +00:00
ToJSValue.h Bug 1613705 - [localization] part2: Switch Localization class to use localization-ffi. r=emilio,nika 2021-08-03 16:25:10 +00:00
TypedArray.h Bug 1720422 - Switch DOM bindings typed arrays to using JSAPI templates r=jonco,smaug 2021-09-08 23:47:00 +00:00
UnionMember.h Bug 1582895 - Annotate UnionMember with MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS r=jonco 2021-10-18 20:34:39 +00:00
WebIDLGlobalNameHash.cpp Bug 1710064 - Remove FillPropertyDescriptor. r=peterv 2021-05-11 09:23:18 +00:00
WebIDLGlobalNameHash.h Bug 1723050 - Part 3: Replace typedef by using in dom/bindings/ r=edgar 2021-08-02 14:12:00 +00:00
XrayExpandoClass.h
mach_commands.py Bug 1734523 - Remove the use of MozbuildObject.mozconfig in mozwebidlcodegen. r=firefox-build-system-reviewers,mhentges 2021-10-07 15:19:03 +00:00
moz.build Bug 1654112 - Add include dirs for abseil-cpp. r=ng 2020-10-26 15:19:21 -04:00
nsIScriptError.idl Bug 1696856 - [devtools] Move isForwardedFromContentProcess to nsConsoleMessage. r=baku. 2021-03-10 12:44:22 +00:00
nsScriptError.cpp
nsScriptError.h
nsScriptErrorWithStack.cpp