Граф коммитов

2381 Коммитов

Автор SHA1 Сообщение Дата
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
arthur.iakab c0b26c4076 Merge inbound to mozilla-central a=merge 2018-11-15 11:54:15 +02:00
Markus Stange 4945a7b3d2 Bug 1500467 - Add RELEVANT_FOR_JS flag and update profile format with an extra relevantForJS column in the stack table. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D9300

--HG--
extra : moz-landing-system : lando
2018-11-14 18:52:29 +00:00
Yoshi Huang f2e1d9efb3 Bug 1478533 - Add a static_assert for WeakMap. r=jonco, mccr8
If an object is used as a WeakMap key, its TraceKind should be added
into CC graph, so adding a static_assert to make sure this.
2018-11-16 10:58:34 +01:00
Razvan Maries 3b217cc771 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-11-20 00:36:35 +02:00
Luke Wagner 388dc403ad Bug 1504288 - Baldr: remove shared memory and wasm thread ops #ifdefs (keeping default-off pref) (r=lth) 2018-11-19 13:10:36 -06:00
Jeff Walden 6dd8e254b3 Bug 1504463 - Implement JS::CompileUtf8DontDeflate that accepts const char*/size_t and compiles it as UTF-8 of uncertain validity without first inflating to UTF-16. r=arai
--HG--
extra : rebase_source : c561fd9d4ce6468d54312313b96dcf1266633142
2018-11-05 18:55:55 -08:00
Jeff Walden 16ac0a965f Bug 1503105 - Implement JS::CompileUtf8FileDontInflate that performs compilation as UTF-8 without inflating, for opt-in experimental use until code is stable/proven enough that JS::CompileUtf8 can compile directly from UTF-8. r=tcampbell
--HG--
extra : rebase_source : 1afb8010be731e3f16934a6223703a101b36369c
2018-10-26 22:51:46 -07:00
Jeff Walden 3452c23147 Bug 1498320 - Implement ScriptSource::appendSubstring for UTF-8 source text, using a newly-implemented StringBuffer::append(const Utf8Unit* units, size_t len). r=tcampbell
--HG--
extra : rebase_source : 8fbb71a4ca8c424c33af470fc0ff77760f33542e
2018-11-01 17:34:56 -07:00
Jeff Walden 7dd0d06d8c Bug 1485800 - Rename SourceBufferHolder to SourceText, and add a <typename Unit> template parameter to it so it can hold putative UTF-8 or UTF-16 source text. r=tcampbell, r=fitzgen
--HG--
rename : js/public/SourceBufferHolder.h => js/public/SourceText.h
extra : rebase_source : 34df669c2481eaccd6845f53c5ecf656b636f895
2018-11-08 18:42:48 -08:00
Jeff Walden f2196f8c8f Bug 1503086 - Initialize all SourceBufferHolders with a fallible function that in all cases assumes ownership of given-ownership data. r=tcampbell, r=bz, r=mrbkap on some finicky worker code lightly touched here
--HG--
extra : rebase_source : 94b1a13dc03a7f1a5d07a2c665fdc0cde162d411
2018-10-23 12:27:16 -07:00
Jeff Walden 3eb2127bfe Bug 1498320 - Remove obsolete "|options.utf8| must be set" comments from UTF-8 compilation function docs. r=tcampbell
--HG--
extra : rebase_source : 4e376939ea0f910b728216c3cadd6cd1df45bd67
2018-11-01 17:34:53 -07:00
Jason Orendorff c7526e1fa0 Bug 1506152 - Revisions to the comment at the top of Stream.h. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D11484

--HG--
extra : moz-landing-system : lando
2018-11-09 22:22:42 +00:00
Jason Orendorff 31f4a64309 Bug 1504492 - Ensure arguments to readableStreamWriteIntoReadRequestCallback are same-compartment. r=tcampbell,baku
Differential Revision: https://phabricator.services.mozilla.com/D11403

--HG--
extra : moz-landing-system : lando
2018-11-09 22:18:41 +00:00