Commit Graph

2394 Commits

Author SHA1 Message Date
arthur.iakab
f1762a3667 Merge mozilla-central to mozilla-inbound 2018-12-18 07:36:08 +02:00
Jim Blandy
689eea27da Bug 1510768: Move SpiderMonkey promise interface into its own header. r=arai
Move js/src/jsapi.h declarations related to promises and job queues into their
own public header file, js/public/Promise.h. Change the compilation units that
need these declarations to #include the new header.

There should be no changes to the actual functionality here, simply moving the
code to a new file, and removing the "JS" prefix from some typedefs which are
now in the JS namespace.

Differential Revision: https://phabricator.services.mozilla.com/D13345

--HG--
extra : moz-landing-system : lando
2018-12-17 23:21:04 +00:00
Paul Bone
6299b00e1f Bug 1507377 - Add tunables for pretenure thresholds r=jonco
--HG--
extra : rebase_source : 68ce83adde9f0387de89ce09eea167f37ee5820d
2018-12-14 11:25:10 +11:00
Steve Fink
10953d54c2 Bug 1513108 - Remove the separate class extension hook for getting a weakmap key delegate, r=jonco
Replace with just unwrapping the key, since there are no users that return anything else for a delegate.

--HG--
extra : rebase_source : e72b825121ca3493364c9347f65e5dddd1ef53e0
2018-12-07 14:38:01 -08:00
Razvan Maries
a8f2202396 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-12-14 18:35:20 +02:00
Razvan Maries
87aca70b7f Merge mozilla-inbound to mozilla-central a=merge 2018-12-14 18:22:09 +02:00
Jan de Mooij
5a4109cbb9 Bug 1469082 - Always allocate CCWs in the compartment's first realm. r=jonco
CCWs are not really associated with a single realm and we assert code doesn't
enter/request the realm or global of a CCW. However they currently still have an
ObjectGroup that's associated with a single realm. Using the same realm avoids
some potential memory usage issues.

Differential Revision: https://phabricator.services.mozilla.com/D14531

--HG--
extra : moz-landing-system : lando
2018-12-14 11:00:48 +00:00
André Bargull
564dc6c495 Bug 1435829 - Part 1: Implement String.prototype.matchAll proposal. r=jorendorff 2018-12-13 08:04:00 -08:00
Jon Coppeard
e56208cb40 Bug 1463462 - Delay gray marking assertions when we are doing incremental gray marking r=sfink 2018-12-06 16:28:14 -05:00
Jon Coppeard
6f81506124 Bug 1463462 - Make gray marking assertions call a JSAPI function r=sfink 2018-12-06 16:28:10 -05:00
Jon Coppeard
5967a9aebd Bug 1463462 - Change Zone marking states to MarkBlackOnly and MarkBlackAndGray r=sfink 2018-12-06 16:27:21 -05:00
Margareta Eliza Balazs
502c1c64cb Backout 2c48655b33ca (Bug 1510607) for causing regression in Bug 1513471, requested by allstars.chh 2018-12-12 18:24:47 +02:00
Jeff Walden
e5132ffa4b Bug 1492932 - Load JS components and modules as UTF-8, not as Latin-1. r=kmag
--HG--
extra : rebase_source : d09627655e9c72e674356e996f936ec65a80b6f0
2018-12-04 17:01:06 -05:00
Brindusan Cristian
989d78f3d0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-11 00:10:08 +02:00
Boris Zbarsky
c734e83c48 Bug 1511401 part 4. Use CallArgs::requireAtLeast in the DOM. r=nbp,qdot 2018-12-10 14:13:06 -05:00
Boris Zbarsky
d28b50be98 Bug 1511401 part 3. Inline the fast (no error) path of requireAtLeast. r=nbp
We don't want to pay the cost of a function call here in DOM bindings.
2018-12-10 14:13:05 -05:00
Yoshi Huang
4495599540 Bug 1510607 - Implement JS::IsCCTraceKind using the JS_FOR_EACH_TRACEKIND data. r=jonco
To use the data inside JS_FOR_EACH_TRACEKIND, so we could have a unified source
of data to decide whether CC should care about this Trackind.
2018-12-06 10:04:03 -05:00
Sylvestre Ledru
ad75e912fb Bug 1512961 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D14060

--HG--
extra : moz-landing-system : lando
2018-12-10 19:23:16 +00:00
Denis Palmeiro
1d2e62c07a Bug 1497016 - Add an API to extract tracelogger data and use this within the gecko profiler r=mstange,djvj
Add a new class to extract tracelogger data using chunked buffers and use this to write the data out to the profiler JSON output.  Copying the data in chunks lets us minimize our memory overhead when writing out to the profiler so a large array of millions of elements does not need to be allocated ahead of time.

Differential Revision: https://phabricator.services.mozilla.com/D11791

--HG--
extra : moz-landing-system : lando
2018-12-04 21:43:38 +00:00
Matthew Gaudet
a2c6c03a73 Bug 1511168: Mark low-level memory management comment with SMDOC r=tcampbell DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D13733

--HG--
extra : moz-landing-system : lando
2018-12-04 18:19:51 +00:00
Rob Wu
7d113fddff Bug 1504660 - Implement Xrays for instanceof r=bholley
Ensure that "a instanceof b" has Xray semantics, i.e. that when b is a
XrayWrapper, that the wrapped object's getters, `Symbol.hasInstance`
hook and proxy traps are not triggered.

The toolkit/components/mozintl/test/test_mozintlhelper.js test was
updated to explicitly waive Xrays, instead of relying on the previous
behavior where Xrays were automatically waived.

Depends on D11591

Depends on D11591

Differential Revision: https://phabricator.services.mozilla.com/D11592

--HG--
extra : moz-landing-system : lando
2018-12-02 22:21:51 +00: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
Jason Orendorff
172aa066bc Bug 1507248 - Use virtual methods for external readable stream callbacks. r=baku,jwalden
Differential Revision: https://phabricator.services.mozilla.com/D11926

--HG--
extra : moz-landing-system : lando
2018-11-29 22:33:43 +00:00
Jason Orendorff
a942af532c Bug 1506200 - Remove ReadableStream EmbeddingFlags. r=baku,jwalden
Differential Revision: https://phabricator.services.mozilla.com/D11903

--HG--
extra : moz-landing-system : lando
2018-11-28 22:20:55 +00:00
Tooru Fujisawa
6ca00b0b03 Bug 1501155 - Part 1: Add AtomizeWTF8Chars. r=jwalden 2018-11-28 14:16:29 +09:00
Jeff Walden
3093d025b8 Bug 1510012 - Move Symbol-related APIs out of jsapi.h into js/public/Symbol.h. r=sfink, r=mccr8 for the bindings change
--HG--
extra : rebase_source : 3a8d2d694052435fbc47b9131a521e31e9b0ea6f
2018-11-24 12:21:40 -08:00
Jeff Walden
af9a670e28 Bug 1510007 - Move JSFreeOp's definition to js/public/MemoryFunctions.h, and make jsapi.h not #include that header. r=sfink
--HG--
extra : rebase_source : 4d6debefd66b89647df53c104b8560ba2de68abd
2018-11-21 18:11:15 -08:00
Jeff Walden
5499a179ff Bug 1508725 - Adjust mozilla::FloatingPoint<T>'s definition so only the barest details are specified for floating-point encodings, with every other number, bit mask, &c. mathematically derived. Also add a bunch of documentation comments. r=froydnj
--HG--
extra : rebase_source : fe3e97b77945bcffd5f4415351541fcd5875bdbb
2018-06-07 13:25:12 -07:00
Razvan Maries
a6f88b57a1 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-11-27 19:38:10 +02:00
Tom Schuster
2838fc8779 Bug 1496475 - Object.defineProperty needs to be able to return false when trying to define a non-configurable property on a WindowProxy. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D12948

--HG--
extra : moz-landing-system : lando
2018-11-27 11:38:28 +00:00
Steve Fink
da6839f947 Bug 1509985: Backout diagnostic bug 1366083 - slight slowdown, and it has not found any errors, r=jonco
--HG--
extra : topic : hazard
extra : rebase_source : 5cbcd285bfb0fde14225a84b9107178fb70d5470
extra : amend_source : 0ed3afa45b1e1a9777d0a6e05e1cec46e447eb89
2018-11-26 11:58:03 -08:00
Jason Orendorff
dfbf2f8e7b Bug 1507247 - jsapi.h should not #include "js/Stream.h". r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D11929

--HG--
extra : moz-landing-system : lando
2018-11-22 17:34:39 +00:00
Jan de Mooij
e39a94637e Bug 1509010 - Fix some clang-format comment issues in js/public. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D12535

--HG--
extra : moz-landing-system : lando
2018-11-21 18:12:57 +00:00
Jeff Walden
530998417e Bug 1504893 - Implement JS::CompileDontInflate that takes JS::SourceText<Utf8Unit>& paralleling JS::Compile that takes JS::SourceText<char16_t>&. r=arai
--HG--
extra : rebase_source : e0e0566c1d3ff535ca6a657527fbe45dbfa105f7
2018-11-05 18:55:56 -08:00
arthur.iakab
75ec5b5525 Merge inbound to mozilla-central a=merge 2018-11-20 18:47:30 +02:00
Tooru Fujisawa
9008ca14c2 Bug 1505511 - Part 2: Use ClassSpec in WeakSetObject. r=evilpie 2018-11-20 20:21:32 +09:00
Tooru Fujisawa
b16b06c87d Bug 1505511 - Part 1: Use ClassSpec in WeakMapObject. r=evilpie 2018-11-20 20:21:32 +09: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
Razvan Maries
208d16134b Merge mozilla-inbound to mozilla-central a=merge 2018-11-20 07:03:17 +02:00
Jason Orendorff
daac4d31de Bug 1503324 - Implement ReadableStreamCreateReadResult. r=arai
This prevents author code from using Object.prototype.then to observe or tamper
with a stream that is locked by another consumer.

Differential Revision: https://phabricator.services.mozilla.com/D12081

--HG--
extra : moz-landing-system : lando
2018-11-20 00:18:07 +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
Ted Campbell
2b703c59e4 Bug 1508064 - Simplify JS_FOR_PROTOTYPES. r=jandem
Add JS_FOR_PROTOTYPES_ macro that takes REAL_IF_SAB, etc helpers to
handle conditional proto keys. This is easier to read and avoids macro
expansion issues confusing clang-format.

Differential Revision: https://phabricator.services.mozilla.com/D12238

--HG--
extra : moz-landing-system : lando
2018-11-19 13:54:02 +00:00
Ted Campbell
49eabf2337 Bug 1508180 - Use uppercase names for high-order macros in js/ r=jandem
This pleases clang-format and makes many of these behave better when
auto formatted. Special cases may still be marked |clang-format off| in
later commits.

Differential Revision: https://phabricator.services.mozilla.com/D12231

--HG--
extra : moz-landing-system : lando
2018-11-19 13:05:09 +00:00
Jan de Mooij
efb754cb0c Bug 1507721 - Simplify AutoEnterOOMUnsafeRegion by adding an explicit inUnsafeRegion_ flag to the OOM simulator. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D12103

--HG--
extra : amend_source : cd42864f6a7053f2b599d6e17e5ba799beed7d90
2018-11-16 11:23:11 +01:00
Cosmin Sabou
2ea797e651 Backed out changeset 1d50d21da50d (bug 1507721) for spidermonkey bustages on dynamic-import-oom.js. 2018-11-16 22:53:36 +02:00
Tom Schuster
0d00659591 Bug 1317422 - Implement JavaScript globalThis proposal. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D11322

--HG--
extra : moz-landing-system : lando
2018-11-14 15:57:03 +00:00
Gurzau Raul
6d17917258 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-16 19:54:35 +02:00
Jan de Mooij
7efc1db5ba Bug 1507721 - Simplify AutoEnterOOMUnsafeRegion by adding an explicit inUnsafeRegion_ flag to the OOM simulator. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D12103

--HG--
extra : moz-landing-system : lando
2018-11-16 17:12:44 +00:00