Jim Blandy
7edf88de7f
Bug 1564170: Clean up some DebuggerScript referent matchers. r=jorendorff
...
As suggested in patch review, some of the mozilla::Variant matcher classes in
Script.cpp could be written more clearly using lambda-based matching. This patch
applies that technique in the implementations of DebuggerScript's create,
getStartLine, and getFormat methods.
Differential Revision: https://phabricator.services.mozilla.com/D38559
--HG--
extra : moz-landing-system : lando
2019-10-15 19:29:29 +00:00
Anny Gakhokidze
509b178241
Bug 1530413 - Inconsistent error reporting for non-function object RHS to instanceof, r=bzbarsky,tcampbell
...
Additionally, this fixes test dom/tests/mochitest/bugs/test_bug1530292.html
which fails if fission is enabled.
Differential Revision: https://phabricator.services.mozilla.com/D47779
--HG--
extra : moz-landing-system : lando
2019-10-15 19:55:17 +00:00
Jon Coppeard
2a9b7ef7bf
Bug 1587034 - Remove some uses of TraceManuallyBarrieredEdge r=sfink
...
Differential Revision: https://phabricator.services.mozilla.com/D48716
--HG--
extra : moz-landing-system : lando
2019-10-15 17:04:50 +00:00
Narcis Beleuzu
62eebc2776
Backed out changeset 67b51087d673 (bug 1399866) for assertion failures on GC.cpp . CLOSED TREE
2019-10-15 21:19:25 +03:00
Jon Coppeard
2d84958b5d
Bug 1399866 - Add assertions that we don't create black to gray edges from ObjectGroups to global objects r=sfink
...
Not a fix. This patch adds some assertions that we don't ever set the realm of an ObjectGroup such that it points to a gray global object. We have these asserts already for other types of edge but this one is indirect because we store a pointer to the Realm, and get the global from that.
Differential Revision: https://phabricator.services.mozilla.com/D49302
--HG--
extra : moz-landing-system : lando
2019-10-15 16:28:13 +00:00
Jeff Walden
61c972b498
Bug 1582348 - Implement |WritableStreamFinishInFlightClose|. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D46415
--HG--
extra : moz-landing-system : lando
2019-10-15 16:53:00 +00:00
Jeff Walden
78081f62cb
Bug 1582348 - Implement |WritableStreamDefaultWriterClose|. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D46414
--HG--
extra : moz-landing-system : lando
2019-10-15 16:52:48 +00:00
Jeff Walden
a44aad662c
Bug 1582348 - Implement |WritableStreamFinishInFlightWriteWithError|. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D46413
--HG--
extra : moz-landing-system : lando
2019-10-15 16:52:41 +00:00
Jeff Walden
12abb3f0bd
Bug 1582348 - Implement |WritableStreamFinishInFlightWrite|, |WritableStreamCloseQueuedOrInFlight|, and |WritableStreamMarkCloseRequestInFlight|. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D46412
--HG--
extra : moz-landing-system : lando
2019-10-15 16:52:26 +00:00
Jeff Walden
e2170e55f1
Bug 1582348 - Implement |WritableStreamDefaultWriter.prototype.get ready| (although it won't actually work til we properly compute/store the [[readyPromise]] internal property). r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D46411
--HG--
extra : moz-landing-system : lando
2019-10-15 16:52:14 +00:00
Jeff Walden
07fe6e9a7d
Bug 1582348 - Implement |WritableStreamDefaultWriter.prototype.get desiredSize| (although it probably won't actually work properly just yet). r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D46410
--HG--
extra : moz-landing-system : lando
2019-10-15 16:52:01 +00:00
Jeff Walden
344b0219d6
Bug 1582348 - Implement |WritableStreamDefaultWriter.prototype.get closed| (although it won't actually work til we properly compute/store the [[closedPromise]] internal property). r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D46409
--HG--
extra : moz-landing-system : lando
2019-10-15 16:51:52 +00:00
Ted Campbell
819e7b6941
Bug 1587955 - Cleanups in DelazifyCanonicalScriptedFunction. r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D48908
--HG--
extra : moz-landing-system : lando
2019-10-15 15:38:19 +00:00
Ted Campbell
f8804c34b8
Bug 1587955 - Factor out DelazifyCanonicalScriptedFunction. r=mgaudet
...
Factor out the compilation of LazyScript -> JSScript from the rest of
the cases that JSFunction::getOrCreate must handle. Semantics should be
unchanged.
Differential Revision: https://phabricator.services.mozilla.com/D48907
--HG--
extra : moz-landing-system : lando
2019-10-15 15:31:18 +00:00
Ted Campbell
1653dfe027
Bug 1587955 - Move canRelazify check to LazyScript. r=mgaudet
...
Differential Revision: https://phabricator.services.mozilla.com/D49019
--HG--
extra : moz-landing-system : lando
2019-10-15 15:31:18 +00:00
Matthew Gaudet
b9f049ea43
Bug 1585718 - Defer BigInt allocation to JSScript construction, after bytecode emission r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D47834
--HG--
extra : moz-landing-system : lando
2019-10-11 21:10:27 +00:00
Matthew Gaudet
2609204be6
Bug 1585718 - Minimize external consumption of BigIntBox r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D47970
--HG--
extra : moz-landing-system : lando
2019-10-11 21:10:20 +00:00
Matthew Gaudet
fddb6cc97f
Bug 1585718 - Store variants inside of GCThings array to support deferred allocation of objects r=tcampbell
...
Differential Revision: https://phabricator.services.mozilla.com/D47969
--HG--
extra : moz-landing-system : lando
2019-10-11 21:10:06 +00:00
Andy Wingo
b736935a6c
Bug 1577508 - Allow WebAssembly blocks to return multiple values r=luke
...
Differential Revision: https://phabricator.services.mozilla.com/D43977
--HG--
extra : moz-landing-system : lando
2019-10-15 08:46:29 +00:00
Dorel Luca
c7518beb08
Backed out 2 changesets (bug 1587738, bug 1588051) for build bustage on js/src/jsapi-tests/testBinASTReader.cpp. CLOSED TREE
...
Backed out changeset 0c6326559079 (bug 1588051)
Backed out changeset ded00ff91429 (bug 1587738)
2019-10-15 16:41:59 +03:00
David Teller
f70d27d622
Bug 1588051 - Tests with many strings;r=arai
...
Depends on D48968
Differential Revision: https://phabricator.services.mozilla.com/D49115
--HG--
extra : moz-landing-system : lando
2019-10-15 07:26:36 +00:00
David Teller
737bcba516
Bug 1587738 - Adding a fastpath for the most common prefixes of a MultiLookupHuffmanTable
;r=arai
...
By definition of Huffman encoding, the shortest keys are reserved for the most common values.
This patch changes how we store these shortest keys in a `MultiLookupHuffmanTable` to
improve lookup speed: instead of storing short keys in a subtable by extending them,
we store them in a `SingleLookupHuffmanTable`.
Differential Revision: https://phabricator.services.mozilla.com/D48968
--HG--
extra : moz-landing-system : lando
2019-10-15 12:41:37 +00:00
Tooru Fujisawa
41dc875023
Bug 1588711 - Remove branch for invalid BinASTKind/BinASTVariant. r=Yoric
...
Differential Revision: https://phabricator.services.mozilla.com/D49259
--HG--
extra : moz-landing-system : lando
2019-10-15 10:08:19 +00:00
Jon Coppeard
6a18c0d7f6
Bug 1588453 - Remove unnecessary rooting from Zone::notifyObservingDebuggers which is only called from within a GC r=sfink
...
Depends on D49119
Differential Revision: https://phabricator.services.mozilla.com/D49120
--HG--
extra : moz-landing-system : lando
2019-10-15 09:57:52 +00:00
Jon Coppeard
0fb6143107
Bug 1588302 - Make AutoHeapSession use a GCRuntime pointer r=sfink
...
Depends on D49118
Differential Revision: https://phabricator.services.mozilla.com/D49119
--HG--
extra : moz-landing-system : lando
2019-10-14 16:46:25 +00:00
Jon Coppeard
f4ea48e3d0
Bug 1588302 - Move heap state to GCRuntime r=sfink
...
The heap state is GC data; it should live in GCRuntime.
Depends on D49117
Differential Revision: https://phabricator.services.mozilla.com/D49118
--HG--
extra : moz-landing-system : lando
2019-10-14 16:45:43 +00:00
Jon Coppeard
a399d6ba14
Bug 1588302 - Move heap state accessors to public/HeapAPI.h r=sfink
...
jspubtd.h is for type definitions so this moves the heap state functions to somewhere more suitable.
Depends on D49116
Differential Revision: https://phabricator.services.mozilla.com/D49117
--HG--
extra : moz-landing-system : lando
2019-10-14 16:45:18 +00:00
Jon Coppeard
2f6638a21a
Bug 1588124 - Mark atom kinds as not compactable in AllocKinds.h for consistency, since we don't compact the atoms zone r=sfink
...
Differential Revision: https://phabricator.services.mozilla.com/D49116
--HG--
extra : moz-landing-system : lando
2019-10-14 16:43:37 +00:00
André Bargull
6c3533a89b
Bug 1373089 - Part 7: Remove separate sets for DateFormat and NumberFormat available locales. r=jwalden
...
Because:
- udat_countAvailable and unum_countAvailable directly return the result of uloc_countAvailable,
- and udat_getAvailable and unum_getAvailable directly return the result of uloc_getAvailable,
we don't need to keep the list of DateFormat and NumberFormat available locales in separate
hash-sets, but instead can reuse the set used for ULocale.
Differential Revision: https://phabricator.services.mozilla.com/D49171
--HG--
extra : moz-landing-system : lando
2019-10-15 08:46:48 +00:00
André Bargull
454e539f2b
Bug 1373089 - Part 6: Move default locale computation to C++. r=jwalden
...
When we move the default locale computation to C++, we don't have to worry
about keeping the last-ditch locale and old-style locale mappings synchronised
between JS and C++ code.
Differential Revision: https://phabricator.services.mozilla.com/D40385
--HG--
extra : moz-landing-system : lando
2019-10-15 08:46:22 +00:00
André Bargull
9ee08cd4f5
Bug 1373089 - Part 5: Remove no longer used functions. r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D40384
--HG--
extra : moz-landing-system : lando
2019-10-15 08:45:59 +00:00
André Bargull
a1ee612a5e
Bug 1373089 - Part 4: Move BestAvailableLocale function to C++. r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D40383
--HG--
extra : moz-landing-system : lando
2019-10-15 08:45:52 +00:00
André Bargull
d7f53ce94e
Bug 1373089 - Part 3: Add available-locales set to SharedIntlData. r=jwalden
...
This will allow to share these hash-sets across multiple globals.
Differential Revision: https://phabricator.services.mozilla.com/D40382
--HG--
extra : moz-landing-system : lando
2019-10-15 08:45:50 +00:00
André Bargull
d4b85d672a
Bug 1373089 - Part 2: Add LanguageTag::toString function. r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D40381
--HG--
extra : moz-landing-system : lando
2019-10-15 08:45:48 +00:00
André Bargull
f2e7a319dd
Bug 1373089 - Part 1: Inline DefaultLocaleIgnoringAvailableLocales into its sole caller. r=jwalden
...
Both caches (localeCandidateCache and localeCache) are keyed on the same value, so when there's a
cache miss, it always happens in both caches at the same time. That means the caching in
DefaultLocaleIgnoringAvailableLocales can be removed and instead we can directly inline the code
into its sole caller.
Differential Revision: https://phabricator.services.mozilla.com/D40380
--HG--
extra : moz-landing-system : lando
2019-10-15 08:44:34 +00:00
André Bargull
fda6569a09
Bug 1586706: Use QuoteString for JSString to char* conversion to ensure NUL characters don't cut off the result string. r=jwalden
...
QuoteString always returns an ASCII string, so we can also change JS_ReportErrorNumberUTF8
to JS_ReportErrorNumberASCII in a few places.
Differential Revision: https://phabricator.services.mozilla.com/D48527
--HG--
extra : moz-landing-system : lando
2019-10-15 08:52:49 +00:00
Yoshi Cheng-Hao Huang
3eb8980f70
Bug 1573809 - Part 7 : realm->tracekWeakVarNames. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D47814
--HG--
extra : moz-landing-system : lando
2019-10-14 09:22:05 +00:00
Yoshi Cheng-Hao Huang
12589797cc
Bug 1573809 - Part 6 : GCHashmap/GCHashTable traceWeak. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D46614
--HG--
extra : moz-landing-system : lando
2019-10-14 09:21:58 +00:00
Yoshi Cheng-Hao Huang
db56fd095e
Bug 1573809 - Part 5 : traceWeak JitRuntime JitcodeGlobalTable. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D46613
--HG--
extra : moz-landing-system : lando
2019-10-14 09:21:56 +00:00
Yoshi Cheng-Hao Huang
65cf56201c
Bug 1573809 - Part 4 : traceWeak in object realm. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D46612
--HG--
extra : moz-landing-system : lando
2019-10-14 09:21:54 +00:00
Yoshi Cheng-Hao Huang
6d417f29e4
Bug 1573809 - Part 3 : traceWeak in realm. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D46611
--HG--
extra : moz-landing-system : lando
2019-10-14 09:21:52 +00:00
Yoshi Cheng-Hao Huang
67d65784d7
Bug 1573809 - Part 2 : trace jit realm. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D46610
--HG--
extra : moz-landing-system : lando
2019-10-14 09:21:45 +00:00
Yoshi Cheng-Hao Huang
948ada3dfb
Bug 1573809 - Part 1 : rename to TraceManuallyBarrieredWeakEdge. r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D46609
--HG--
extra : moz-landing-system : lando
2019-10-15 08:02:22 +00:00
Jan de Mooij
8aa1c9d942
Bug 1586991 part 16 - Use JS_CopyStringCharsZ for the warning's stack trace in HandleInterrupt. r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D49145
--HG--
extra : moz-landing-system : lando
2019-10-14 20:39:49 +00:00
Jan de Mooij
c48226b39e
Bug 1586991 part 15 - Use JS_CopyStringCharsZ in a number of places that need null-terminated strings. r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D49142
--HG--
extra : moz-landing-system : lando
2019-10-14 20:38:30 +00:00
Jan de Mooij
f2cd276110
Bug 1586991 part 14 - Remove unnecessary null chars from stack-allocated buffers in StaticStrings::init. r=jwalden
...
Depends on D48498
Differential Revision: https://phabricator.services.mozilla.com/D48499
--HG--
extra : moz-landing-system : lando
2019-10-14 12:55:31 +00:00
Jan de Mooij
69aba16b07
Bug 1586991 part 13 - Stop (unnecessarily) flattening strings in some JS shell functions. r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D48498
--HG--
extra : moz-landing-system : lando
2019-10-14 11:24:49 +00:00
Jan de Mooij
e753ade71e
Bug 1586991 part 12 - Use JSLinearString instead of JSFlatString in some more places. r=jwalden
...
Depends on D48496
Differential Revision: https://phabricator.services.mozilla.com/D48497
--HG--
extra : moz-landing-system : lando
2019-10-11 00:39:03 +00:00
Jan de Mooij
fc1e78317c
Bug 1588473 - Move |length > UINT32_CHAR_BUFFER_LENGTH| check from isIndexSlow slow path to the fast path. r=jwalden
...
We also have to handle |length == 0| there so by checking the upper bound too we
make it possible for C++ compilers to combine them into a single branch.
Differential Revision: https://phabricator.services.mozilla.com/D49135
--HG--
extra : moz-landing-system : lando
2019-10-15 06:08:15 +00:00
Jan de Mooij
4e95542441
Bug 1586991 part 11 - Return JSLinearString instead of JSFlatString from jit::StringFromCharCode. r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D48496
--HG--
extra : moz-landing-system : lando
2019-10-15 06:08:15 +00:00