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

65484 Коммитов

Автор SHA1 Сообщение Дата
Dorel Luca b53fbe3617 Merge mozilla-central to autoland 2018-06-15 05:43:31 +03:00
Jan de Mooij 2235a048fc Bug 1468252 part 8 - Rename JSObject::global to deprecatedGlobal. r=luke
--HG--
extra : rebase_source : 230e8c880bdb141619242e3f20cd40feecd3158e
2018-06-14 09:07:32 -07:00
Jan de Mooij cb5b0d0e99 Bug 1468252 part 7 - Replace more environment->global() calls. r=luke
--HG--
extra : rebase_source : 90a6aeace6926949cd8ee880c868d7c4d1136592
2018-06-14 09:07:31 -07:00
Jan de Mooij 2e6744ab46 Bug 1468252 part 6 - Use isSelfHostingZone instead of isSelfHostingGlobal in getNonWrapperObjectForCurrentCompartment. r=evilpie
--HG--
extra : rebase_source : ea560b94280bace1b08ad5489a50b38e9db6b481
2018-06-14 09:07:31 -07:00
Jan de Mooij c4cad349fe Bug 1468252 part 5 - Check for native objects in GetInitialShapeProtoKey. r=jwalden
--HG--
extra : rebase_source : a9c49f4495c6c3bcf90728dd121d3bcded699048
2018-06-14 09:07:31 -07:00
Jan de Mooij d4eded1ef6 Bug 1468252 part 4 - Add JSObject::nonCCWGlobal() and use it in a few places. r=luke
--HG--
extra : rebase_source : 095b86326a1911cf68956e4a4133bec4a8b1bdb9
2018-06-14 09:07:31 -07:00
Jan de Mooij 3d7ffdc55b Bug 1468252 part 3 - Remove some environment->global() calls. r=luke
--HG--
extra : rebase_source : f584d4fc99f587e17482f6269ac91c29713b9773
2018-06-14 09:07:31 -07:00
Jan de Mooij a2548dc268 Bug 1468252 part 2 - Rename GetOriginalEval to GetRealmOriginalEval, remove scope argument. r=evilpie
--HG--
extra : rebase_source : f1aa3fc12fc775bf64318d16246555badbe83e78
2018-06-14 09:07:30 -07:00
Jan de Mooij 3246a76bb0 Bug 1468252 part 1 - Define NativeObject::global(). r=luke
--HG--
extra : rebase_source : de74a367922c808c54e06a6ad54b48936f33334c
2018-06-14 09:07:30 -07:00
Benjamin Bouvier f2c79a238c Bug 1465081 - Preserve bytecode if there's a module name subsection. r=luke
--HG--
extra : rebase_source : 8da5fe381aa040c2bfe7db45d17f4cfdfa92af18
2018-06-14 22:53:11 +02:00
Jeff Walden e682b9e409 Bug 1468449 - Use std::uninitialized_copy_n to copy over BindingNames in a parser-lifetime Data to a long-lived Scope. r=jonco
--HG--
extra : rebase_source : d03c80687a10868005456e447c1c8e218dd70b56
2018-06-12 22:12:42 -07:00
Jeff Walden 9ba61ac02f Bug 1468449 - Use std::uninitialized_copy to implement FreshlyInitializeBindings. r=jonco
--HG--
extra : rebase_source : 3ebd1dd6bc1f410a1dd238a62af3791e9d744794
2018-06-11 13:56:24 -07:00
Jeff Walden abad7cab16 Bug 1467336 - Move a couple small functions to be defined inline in TokenStream class bodies, not out-of-line in TokenStream.cpp, for readability. r=arai
--HG--
extra : rebase_source : d7472467f62cf7874798f286678164f8ee7b29ce
2018-06-09 19:49:31 -07:00
Jeff Walden af8e5d79a2 Bug 1467336 - Make TokenStreamSpecific::getTokenInternal itself deal only in code units. r=arai
--HG--
extra : rebase_source : 049b90ec48149d2a11b1326e467b35456558f8cb
2018-06-09 03:59:01 -07:00
Jeff Walden 8a1f6e7c70 Bug 1467336 - Make TokenStreamSpecific::putIdentInTokenbuf read identifier characters a code unit at a time. r=arai
--HG--
extra : rebase_source : a296bf2193a3a4e0df569c8a86e6aa107f48a4b1
2018-06-09 19:49:31 -07:00
Jeff Walden 8d7acedc28 Bug 1467336 - Make TokenStreamSpecific::identifierName consume in terms of code units. r=arai
--HG--
extra : rebase_source : 4e2fc624228480bdb94fe0ed6319409af964fa5f
2018-06-09 03:36:32 -07:00
Jeff Walden 46e965f277 Bug 1467336 - Refactor Unicode-escape identifier matching to work in terms of code units. This also eliminates ungets-then-skips that cancel out when a valid escape is matched. r=arai
--HG--
extra : rebase_source : 155cdfd94c163dc8111650d04fc59bc97b79bd36
2018-06-09 03:36:32 -07:00
Jeff Walden b50e6175db Bug 1467336 - Move Unicode escape processing from TokenStreamSpecific to GeneralTokenStreamChars. r=arai
--HG--
extra : rebase_source : 17851ff38db7952c6fb58e8935fdd9062345937a
2018-06-09 03:36:32 -07:00
Jeff Walden 3646b58cae Bug 1467336 - Make TokenStreamSpecific::decimalNumber work by consuming code units. r=arai
--HG--
extra : rebase_source : 3f600fbaf2d279966582519097bd53f2887ed758
2018-06-09 03:36:32 -07:00
Jeff Walden 89b1c4ada7 Bug 1467336 - Convert TokenStreamSpecific::getDirective act on code units, and remove TokenStreamSpecific::peekChar. r=arai
--HG--
extra : rebase_source : d553724fa06e0a9e0810140f46ae3b88f7270143
2018-06-09 03:36:10 -07:00
Jeff Walden bb4f66751d Bug 1467336 - Move skipChars to SourceUnits::skipCodeUnits, and make it efficient in the obvious way. r=arai
--HG--
extra : rebase_source : bb4830751b4d239555d4b50e07ebd291206bb554
2018-06-08 11:48:38 -07:00
Jeff Walden 2911be1089 Bug 1467336 - Change SourceUnits::atStart to indicate being at the start of the source units of code, not at the start of the *containing* source. r=arai
--HG--
extra : rebase_source : 8ae40e030fc61d464c52d64bc262ea920cb19b19
2018-06-08 11:47:59 -07:00
Jeff Walden 03213ec008 Bug 1467336 - Invert SourceUnits::hasRawChars's meaning and rename it to SourceUnits::atEnd. r=arai
--HG--
extra : rebase_source : 628083795ebee89dd2cb1fc697a247647294542b
2018-06-08 11:46:17 -07:00
Jeff Walden 9680c3accb Bug 1467336 - Rename TokenStreamSpecific::peekChars to SourceUnits::peekCodeUnits and optimize its code in now-obvious ways. r=arai
--HG--
extra : rebase_source : 2d8b023a7dec1ede5ec207ca5aca63300c4620f5
2018-06-08 11:35:52 -07:00
Jeff Walden f70be76b16 Bug 1467336 - Make much of TokenStreamSpecific::getStringOrTemplateToken process by code unit, not by code-unit-generally-assumed-to-be-code-point. r=arai
--HG--
extra : rebase_source : dc07292dff8a211c68343228794172d415134cf0
2018-06-07 22:48:32 -07:00
Jeff Walden 0ff51a9b4c Bug 1467336 - Rename the |c| variables in TokenStreamSpecific::getStringOrTemplateToken to |unit|. They aren't all used as code units yet, but an alpha-rename hopefully simplifies future changes to make that so. r=arai
--HG--
extra : rebase_source : dce6d285ea33b6e72bf6f933751b961de2ff5cbc
2018-06-07 22:48:32 -07:00
Tom Schuster 9c5f1a1c75 Bug 1308735 - Use soft-fail mechansim for out-of-bounds typed array indexes. r=jorendorff
--HG--
extra : rebase_source : 57d54ef2746562fe68488b251fef5a392afd0d66
2018-05-16 22:12:10 +02:00
Tom Schuster 9aeac2c930 Bug 1329321 - Add a soft-fail mechanism for JS ObjectOpResult. r=jorendorff
--HG--
extra : rebase_source : 168a0a678d62879dce0075ecedb8fb0703ceb8c1
2018-05-16 22:11:25 +02:00
Tom Schuster f7c7d0f881 Bug 1435813 - Enable Array.prototype.flat and Array.prototype.flatMap in release builds. r=till
--HG--
extra : rebase_source : adc7e839e4d241857a89df6c6669c241a14466da
2018-06-05 14:41:41 +02:00
Jan de Mooij 2b3ff5c90a Bug 1468219 - Rename JS_InitStandardClasses to JS::InitRealmStandardClasses, remove obj argument. r=anba
--HG--
extra : rebase_source : 5c092c37298e89096b85524e92d143ff2447f31f
2018-06-13 12:47:47 -07:00
Jan de Mooij de211d96a6 Bug 1468137 - Remove JS_Get*Prototype APIs; use JS::GetRealm*Prototype instead. r=evilpie
--HG--
extra : rebase_source : 9d5e815b83b3a71ab3e74fc2c0e2feb1009f2af9
2018-06-13 12:47:40 -07:00
Joel Maher 1ef32bf5c6 Bug 1405428 - skip-if = verify on xpcshell tests which do not pass test-verify. r=gbrown 2018-06-13 11:34:40 -04:00
Cosmin Sabou 40577076a6 Merge inbound to mozilla-central. a=merge 2018-06-13 12:22:15 +03:00
Robin Templeton d875414c13 bug 1466893 - Part 2: Convert BigInt arguments to the Number constructor. r=jandem 2018-06-12 13:58:20 -04:00
Robin Templeton 01d8866628 bug 1466893 - Part 1: Implement ToNumeric operation. r=jandem
ToNumeric is a generalized version of ToNumber that converts its
argument to a numeric primitive value (either a Number or a BigInt).
2018-06-12 13:57:06 -04:00
Csoregi Natalia 0300566d26 Backed out changeset 1fc7ea54cf4c (bug 1467249) for jstests check failures. CLOSED TREE 2018-06-12 07:46:24 +03:00
Steve Fink e03c23fa51 Bug 1467249 - Upload JS shell test failure output, r=nbp
--HG--
extra : rebase_source : c1a16fd13a9ec26efe5f12aa7d87a401232fc1ef
extra : intermediate-source : 383b08391cb8044547e34378371e0fe4fd97eeaa
extra : source : 4ede0210acdbfeeaf7ec13e445618f94540eccf1
2018-06-05 21:08:54 -07:00
Steve Fink c65f234612 Backed out changesets 9fb5a7ee3f35 and 383b08391cb8 (bug 1467249)
--HG--
extra : rebase_source : 9ce5441bc6bca1827a6e5fff044df84a3b7bd316
2018-06-11 11:20:45 -07:00
Steve Fink 80bc7711d5 Bug 1467249 followup - syntax error on a CLOSED TREE
--HG--
extra : amend_source : f09a87317dda9494b43c65f1cf85b054b89073cb
2018-06-11 11:00:08 -07:00
Steve Fink a5f822bfe7 Bug 1466387 - Set up the gray root tracer on worker thread, r=jonco
--HG--
extra : rebase_source : 594cd9be589c1fbed2e2a65ff8a8085f72c26f67
extra : source : bdf9bd1db757904ed0323367fdee278ff94567f8
2018-06-05 16:03:36 -07:00
Steve Fink beec73e990 Bug 1467249 - Upload JS shell test failure output, r=nbp
--HG--
extra : rebase_source : bddcf17d619442b723110e80e1d087f73ff7f1c3
extra : source : 4ede0210acdbfeeaf7ec13e445618f94540eccf1
2018-06-05 21:08:54 -07:00
Jan de Mooij 677cf4e568 Bug 1467496 - Simplify JSOP_LOOPENTRY handling in IonBuilder. r=bhackett 2018-06-11 10:17:58 -07:00
Tooru Fujisawa de2a9d4928 Bug 1467403 - Remove the source notes handling for prologue bytecode. r=jandem 2018-06-11 15:09:28 +09:00
Mike Conley bf614c6737 Bug 1458375 - Make ScriptPreloader wait until browser-idle-startup-tasks-finished before writing cache. r=kmag
Originally, the ScriptPreloader stopped recording and wrote its cache when the
browser-delayed-startup-finished notification fired for the first window, but there
are other scripts (both in the content and WebExtension processes) that might run
soon after that we also want to cache.

This patch still makes the parent process stop recording scripts after
browser-delayed-startup-finished, but only prepares and writes the cache
once browser-idle-startup-tasks-finished fires, when it is much more likely
that the content and WebExtension caches are ready to go.

MozReview-Commit-ID: KiBEVvuqQkA

--HG--
extra : rebase_source : 6f0fde65cdafdecf72242a06416fef10304637b8
2018-06-11 12:19:02 -07:00
Steve Fink 5ed1fd1a2f Bug 1466633 - GCManagedDeletePolicy: do not clear edges during GC, r=jonco
--HG--
extra : source : 17bb0a45975b93c4003e4436706e3caf7c44d9fd
extra : histedit_source : d267abd514731d4664de12e6b4c2bd6666732dd9
2018-06-05 17:41:12 -07:00
shindli 0596b8022c Backed out changeset 4ede0210acdb (bug 1467249) for linting failures in /builds/worker/checkouts/gecko/js/src/devtools/automation/autospider.py on a CLOSED TREE 2018-06-09 03:52:29 +03:00
shindli 3392deb647 Backed out 3 changesets (bug 1466633, bug 1467248, bug 1466387) for spidermonkey bustages in non262/regress/regress-1466387-worker-grayroot.js on a CLOSED TREE
Backed out changeset 1e833c6a3ba2 (bug 1467248)
Backed out changeset 17bb0a45975b (bug 1466633)
Backed out changeset bdf9bd1db757 (bug 1466387)
2018-06-09 03:51:02 +03:00
Steve Fink aabbbbcfa1 Bug 1467249 - Upload JS shell test failure output, r=nbp
--HG--
extra : topic : nursery.strings
extra : rebase_source : 8054e1f1fe488c6aac08cf94eba79b69cf254f5b
2018-06-05 21:08:54 -07:00
Steve Fink bc2be79d2a Bug 1405374 - Register JS threads with the profiler, r=jonco
--HG--
extra : rebase_source : c29dffb341bff5e3f020ad0be6d48c045e178a5c
2018-06-07 15:37:08 -07:00
Steve Fink 8cc9bc5b4a Bug 1466633 - GCManagedDeletePolicy: do not clear edges during GC, r=jonco
--HG--
extra : topic : nursery.strings
extra : rebase_source : 5da31d8711492d766fc73e2986054e917601ffe7
2018-06-05 17:41:12 -07:00
Steve Fink 83b024c942 Bug 1466387 - Set up the gray root tracer on worker thread, r=jonco
--HG--
extra : topic : nursery.strings
extra : rebase_source : c3394cf4fe856a6811ed5733dc3e358f3e76f30f
2018-06-05 16:03:36 -07:00
Simon Brand 256ed0bb7a Bug 1461375 - Deduplicate emitMegamorphicStoreSlotResult between Ion and Baseline. r=mgaudet 2018-06-08 20:39:29 +01:00
Julian Seward e8c96808ab Bug 1467071 - Wasm: import embedding_limits "limits.js" test and fix any resulting failures. r=lth.
The WebAssembly Specification, branch [1] (see also, more generally,
comments in [2]), contains a new test, limits.js, to check whether the
generally agreed embedding limits (numbers of functions, imports, etc) are
observed.  This bug is to import the test and fix any resulting breakage
detected with it.

[1] https://github.com/WebAssembly/spec/tree/embedding_limits
[2] https://github.com/WebAssembly/spec/issues/607

* js/src/wasm/WasmBinaryConstants.h:
  - Added MaxTableMaximumLength as a counterpart to MaxTableInitialLength.
  - Split the constant group into two parts: spec-required, and those
    pertaining only to our own implementation.

* js/src/wasm/WasmJS.cpp  WasmTableObject::construct():
  - Update GetLimits call with correct max size bound

* js/src/wasm/WasmValidate.cpp  DecodeTableLimits():
  - Implement missing check for a Table's maximum size.

* js/src/jit-test/tests/wasm/import-export.js:
  js/src/jit-test/tests/wasm/spec/jsapi.js:
  testing/web-platform/mozilla/tests/wasm/js/jsapi.js:
  - Update Table maximum size tests.  All tests trying to make a Table
    with more than 10,000,000 entries now throw instead of succeeding.

* js/src/jit-test/tests/wasm/spec/harness/wasm-module-builder.js:
  - Import minimal updates and bug fixes from [1], needed to make the
    new tests work.

* js/src/jit-test/tests/wasm/spec/limits.js
  - New file.  Derived from [1], with comments added to each test to show
    SM's compliance situation, and with two tests disabled.

--HG--
extra : rebase_source : 489c97dd2420508ad9768a2aa4714aa8dfbfe2c6
2018-06-08 18:37:42 +02:00
Jan de Mooij ce132119dd Bug 1466121 part 7 - Split Compartment-inl.h from Realm-inl.h. r=luke
--HG--
rename : js/src/vm/Realm-inl.h => js/src/vm/Compartment-inl.h
2018-06-08 16:16:21 +02:00
Jan de Mooij 04a3651fe2 Bug 1466121 part 6 - Split Compartment.cpp from Realm.cpp. r=luke
--HG--
rename : js/src/vm/Realm.cpp => js/src/vm/Compartment.cpp
2018-06-08 16:16:20 +02:00
Jan de Mooij b41618f3b1 Bug 1466121 part 5 - Split Compartment.h from Realm.h. r=luke
--HG--
rename : js/src/vm/Realm.h => js/src/vm/Compartment.h
2018-06-08 16:16:19 +02:00
Jan de Mooij 9c6c88908e Bug 1466121 part 4 - Rename vm/JSCompartment* to vm/Realm*. r=luke
--HG--
rename : js/src/vm/JSCompartment-inl.h => js/src/vm/Realm-inl.h
rename : js/src/vm/JSCompartment.cpp => js/src/vm/Realm.cpp
rename : js/src/vm/JSCompartment.h => js/src/vm/Realm.h
2018-06-08 16:16:19 +02:00
Jan de Mooij be7b2f64ad Bug 1466121 part 3 - Merge Realm.cpp into JSCompartment.cpp to simplify later patches. r=luke 2018-06-08 16:16:18 +02:00
arthur.iakab edbf2c0099 Merge inbound to mozilla-central a=merge 2018-06-08 12:55:49 +03:00
Jeff Walden d3152e159d Bug 1467336 - Move regular expression literal tokenizing into its own function. r=arai
--HG--
extra : rebase_source : 341584683b866dd4dcd7c217d378a4211e30e239
2018-06-07 22:47:28 -07:00
Jeff Walden 06c657eee3 Bug 1467336 - Process the code units comprising regular expression literals in a manner that optimizes the pure-ASCII case. r=arai
--HG--
extra : rebase_source : 2a44776b1e5d2bc7bd66a6f773964636aca48276
2018-06-07 03:24:04 -07:00
Jeff Walden f7961e0fe2 Bug 1467336 - Introduce code to bifurcate handling of arbitrary-code-point getting in the tokenizer to distinctly and separately handle ASCII and non-ASCII code points. r=arai
--HG--
extra : rebase_source : 455de737b65fd2c0c42da8e1fe2619f25599d344
2018-06-07 03:01:38 -07:00
Jeff Walden 24d6bcee93 Bug 1467336 - Rename TokenStreamSpecific::matchChar to TokenStreamCharsBase::matchCodeUnit to clarify its unit-matching nature. r=arai
--HG--
extra : rebase_source : b3859a50b46f96f356edbb254a27b8416261f1c9
2018-06-07 02:16:57 -07:00
Jeff Walden e9e010d389 Bug 1467336 - Add TokenStreamChars::getCodePoint and use it in one trivial place. r=arai
--HG--
extra : rebase_source : c0f97e9f740be3ee4bbdb9623c893067e7c1aa03
2018-06-07 02:16:32 -07:00
Jeff Walden 1a12745c61 Bug 1467336 - Rename ungetCharIgnoreEOL to ungetCodeUnit. r=arai
--HG--
extra : rebase_source : fa0464982bd463838f9c6b8d1eb388b55f2e583e
2018-06-07 02:16:07 -07:00
Jeff Walden b1a37599da Bug 1467336 - Rename getCharIgnoreEOL to getCodeUnit to better indicate that's all it does. r=arai
--HG--
extra : rebase_source : d34c4019170e78a0d5170e346fbe920884442cb9
2018-06-07 02:15:41 -07:00
Jeff Walden 800f6db11a Bug 1467335 - Add an assertion to ungetCharIgnoreEOL that the EOF-flag has been set if EOF is being returned. r=arai
--HG--
extra : rebase_source : 233d673d307bb42d6e5b73f1cc246af4c740fe82
2018-06-07 02:13:49 -07:00
Jeff Walden fbabc3fea0 Bug 1467334 - Make TokenStreamAnyChars::isExprEnding a well-documented array of bool, zero-initialize it using a member initializer, then overwrite its few true elements in the constructor body. r=arai
--HG--
extra : rebase_source : 68db8c022f6a89b2db14bb2e2cdda08d757445ac
2018-06-07 02:13:11 -07:00
Rick Waldron 5aaabbfc99 Bug 1457560 - Expose $262.agent.monotonicNow() for Test262 use in testing Atomic operation timeouts. r=jwalden
--HG--
extra : rebase_source : 6387145a06988112cadde2855bc69d2982f1e33a
2018-06-06 22:21:34 -07:00
Andreea Pavel 6efbfd2a22 Backed out changeset 88c929206539 (bug 1467071) for failing wpt at /_mozilla/wasm/jsapi.js.html on a CLOSED TREE 2018-06-08 07:03:17 +03:00
Julian Seward a8cfabf7b6 Bug 1467071 - Wasm: import embedding_limits "limits.js" test and fix any resulting failures. r=lth.
The WebAssembly Specification, branch [1] (see also, more generally,
comments in [2]), contains a new test, limits.js, to check whether the
generally agreed embedding limits (numbers of functions, imports, etc) are
observed.  This bug is to import the test and fix any resulting breakage
detected with it.

[1] https://github.com/WebAssembly/spec/tree/embedding_limits
[2] https://github.com/WebAssembly/spec/issues/607

* js/src/wasm/WasmBinaryConstants.h:
  - Added MaxTableMaximumLength as a counterpart to MaxTableInitialLength.
  - Split the constant group into two parts: spec-required, and those
    pertaining only to our own implementation.

* js/src/wasm/WasmJS.cpp  WasmTableObject::construct():
  - Update GetLimits call with correct max size bound

* js/src/wasm/WasmValidate.cpp  DecodeTableLimits():
  - Implement missing check for a Table's maximum size.

* js/src/jit-test/tests/wasm/import-export.js:
  js/src/jit-test/tests/wasm/spec/jsapi.js:
  - Update Table maximum size tests.  All tests trying to make a Table
    with more than 10,000,000 entries now throw instead of succeeding.

* js/src/jit-test/tests/wasm/spec/harness/wasm-module-builder.js:
  - Import minimal updates and bug fixes from [1], needed to make the
    new tests work.

* js/src/jit-test/tests/wasm/spec/limits.js
  - New file.  Derived from [1], with comments added to each test to show
    SM's compliance situation, and with two tests disabled.

--HG--
extra : rebase_source : a1f1ec730ecae22f2aa0f510c15ebc934489a1b3
2018-06-07 09:36:09 +02:00
Tooru Fujisawa fc618ed15a Bug 1467052 - Use BindingName tag to distinguish between var and top-level function, instead of offset range. r=shu 2018-06-08 10:06:13 +09:00
Ciure Andrei 25ae31a366 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-08 00:54:06 +03:00
Matthew Gaudet 9d8092fba3 Bug 1466189: followup patch to make discard stack unconditional r=jandem
--HG--
extra : rebase_source : bf19d39abb1ee0857ea73f72f1aa26f24ef1cf38
2018-06-07 11:25:02 -04:00
Kris Maglione a4973ad0d6 Bug 1464548: Part 1b - Don't delete properties before redefining them, because deleting properties kills JIT performance. r=mccr8
MozReview-Commit-ID: IUMg59xRoIu

--HG--
extra : rebase_source : 6be1c84601ff868835cad53116ab920d2f2db317
2018-05-25 19:17:58 -07:00
Kris Maglione bbbb42012f Bug 1464548: Part 1a - Add defineLazyGlobalGetters helper. r=mccr8
This allows us to lazily import global properties using
Cu.importGlobalProperties. Aside from making it easier to avoid lazily
importing these properties, it also defines them all in the shared JSM global
so that we don't risk re-creating them in Sandboxes or frameloader globals.

MozReview-Commit-ID: GV6shguUlIG

--HG--
extra : rebase_source : 6b9269f3b33fe085c5ed63ee16e5b4ce9e5343a4
2018-05-25 22:28:27 -07:00
Karl Tomlinson 4b7ee0c98d bug 1467024 remove Rooted/PersistentRooted special cases already covered by JS_HAZ_ROOTED r=sfink
MozReview-Commit-ID: 4jjzqNJmW0L

--HG--
extra : rebase_source : 584d3de00f9c7e048f6957ed716e7214d02c9fd5
2018-06-06 12:52:37 +12:00
Tom Schuster 731eb0bfab Bug 1451017 - Remove Xray resolveNativeProperty. r=bz
--HG--
extra : rebase_source : 3fca06866110b912478448b06f12dc2158f560c7
2018-05-08 22:09:05 +02:00
Cosmin Sabou 0f45148664 Backed out changeset 531593bacc4e (bug 1448040) for Android build bustages on HangAnnotations.h. CLOSED TREE
--HG--
extra : rebase_source : ea3618023c548a8ca6ca14749633c194606af52f
2018-06-07 19:22:31 +03:00
Jan de Mooij 6d0be5a5cf Bug 1466121 part 2 - Make Compartment and Zone classes instead of structs. r=luke
--HG--
extra : rebase_source : 1394dc86b035340f99c241f3ee1af5dd407bdb67
2018-06-07 16:45:04 +02:00
Jan de Mooij f7fb3be6ec Bug 1466121 part 1 - Rename JSCompartment to JS::Compartment. r=luke
--HG--
extra : rebase_source : cd7140ecda54f0caa02a96f562167b3c9a107450
2018-06-07 16:44:40 +02:00
Matthew Gaudet 4ec5d0f516 Bug 1466189: Handle equal length strings in Compare IC r=tcampbell
--HG--
extra : rebase_source : d5748a5839bf256adadae5c14d5d53d3ba949cce
2018-06-05 18:02:19 -04:00
Peter Van der Beken b986ba77dd Bug 1053271 - Remove some unused XRayWrapper code. r=bz.
--HG--
extra : rebase_source : 62e659d4b70872997b62185b2f634d87e9242d9d
2018-06-04 16:37:04 +02:00
Peter Van der Beken f4270dc255 Bug 1053271 - Move Sandbox proxy handlers out of XrayWrapper.h. r=bz.
--HG--
extra : rebase_source : 6172fcbc5782ec3e800b034ca5fdba354f0797e2
2018-06-06 11:42:12 +02:00
Peter Van der Beken a47cb53336 Bug 1053271 - Remove XrayTraits' HasPrototype. r=bz.
XPCWN Xrays were the only Xrays that set HasPrototype to 0.

--HG--
extra : rebase_source : c10654e4eb6eb39b3cfe8884009cd1a47dcad807
2018-06-04 14:26:37 +02:00
Peter Van der Beken c02d68395d Bug 1053271 - Remove XPCWN Xrays. r=bz.
--HG--
extra : rebase_source : 4da59c56ffc6eab4af0bf59d3d3861bbc18a33ba
2018-06-04 12:56:38 +02:00
Jan de Mooij 8bc57c3d29 Bug 1465472 followup - Remove (now always-false) check for atoms compartment. r=jonco 2018-06-07 12:18:56 +02:00
Jan de Mooij 65d353413b Bug 1466458 part 2 - Refactor Realm::enterRealmDepth_ to account for Realms entered from JIT code. r=luke 2018-06-07 12:18:43 +02:00
Jan de Mooij a0f210fb97 Bug 1466458 part 1 - Remove JSContext::enterRealmDepth_. r=luke 2018-06-07 12:17:08 +02:00
Jan de Mooij 418cdb8d25 Bug 1466501 part 3 - Add an objectGlobal(obj) testing function. r=luke 2018-06-07 10:02:10 +02:00
Jan de Mooij 3c1a7769ea Bug 1466501 part 2 - Add a scriptedCallerGlobal() testing function for JS::GetScriptedCallerGlobal. r=luke 2018-06-07 10:02:10 +02:00
Jan de Mooij 56ca3c9524 Bug 1466501 part 1 - Refactor ZoneSpecifier and add a sameCompartmentAs option to newGlobal in the shell. r=luke 2018-06-07 10:02:10 +02:00
Tooru Fujisawa aa391e1e8b Bug 1460154 - Part 2: Handle TDZCheckCache in IfEmitter. r=jwalden 2018-06-07 15:59:01 +09:00
Tooru Fujisawa 587d9259cd Bug 1460154 - Part 1: Rename IfThenElseEmitter to IfEmitter. r=Yoric 2018-06-07 15:59:00 +09:00
Ted Campbell 2391661c6a Bug 1459754 - Fix missing property IC for uncacheable proto case. r=mgaudet 2018-06-06 18:12:43 -04:00
Narcis Beleuzu ca7840b070 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-06 20:05:19 +03:00
Narcis Beleuzu cf464eabfe Merge inbound to mozilla-central. a=merge 2018-06-06 20:00:09 +03:00
Jan de Mooij 156284156a Bug 1363214 - Remove JS::Realm/JSCompartment inheritance. r=jonco
--HG--
extra : rebase_source : ad63de7c6676532640659d1fccced7f83798e06d
2018-06-06 14:30:52 +02:00
Lars T Hansen 0e01cdcfdf Bug 1466931 - Correctly identify the first invalid wasm opcode. r=jseward
Previously, the new wasm sign extension ops were part of the threads
proposal and so our test cases would guard on those ops using
wasmThreadsSupported().

But now that the extension ops have landed independently of the
threads proposal that guard is incorrect.  So just remove the guard;
we don't need it.

--HG--
extra : rebase_source : de854748195f40978837217acbb1ed62fd977ed4
extra : histedit_source : 136233feee89f79ec514701a22fba85ac03d1a5f
2018-06-06 13:13:44 +02:00
Lars T Hansen ced6f798d6 Bug 1461948 - Abstract the inline/outline TypedObject decision. r=till
--HG--
extra : rebase_source : e19970e44e4831a7f6d3000c059e6e54439cfec5
extra : source : 7b682822e9e17a98606a3b4e498838cad1126f56
2018-05-16 11:42:31 +02:00
Sylvestre Ledru 288239cebe Bug 1464869 - Fix flake8/pep8 issue by hand in js/ r=jorendorff
MozReview-Commit-ID: 7cbfMkdykXn

--HG--
extra : rebase_source : f6234b127e0660278bbe7cffe075d8c893730652
2018-06-06 13:04:14 +02:00
Sylvestre Ledru 3acf6dcb98 Bug 1464869 - Run autopep8 on js/ r=jorendorff
MozReview-Commit-ID: GtOMQZ0K2bv

--HG--
extra : rebase_source : ea56cadc77173d64c72b6786de173d40a2cfca82
2018-05-26 05:29:06 -07:00
Narcis Beleuzu 68ae436133 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-06 12:50:03 +03:00
arthur.iakab fade8462cb Merge mozilla-central to inbound on a CLOSED TREE 2018-06-06 01:10:33 +03:00
arthur.iakab fd0ee7c9b8 Merge inbound to mozilla-central a=merge 2018-06-06 00:58:30 +03:00
Tom Schuster 1f364490d6 Bug 1443086 - Update FlattenIntoArray to call IsArray only if depth > 0. r=anba
--HG--
extra : rebase_source : 9478a4cdf91b44685bf0025f06547ededc24fc7d
2018-06-05 14:36:04 +02:00
Karl Tomlinson 9e0c1c7c2b bug 1442776 make CycleCollectedJSContext accessible from JSContext private r=peterv
Inheriting PerThreadAtomCache on CycleCollectedJSContext permits use of
static_cast, avoiding one level of indirection compared to adding a
CycleCollectedJSContext* to PerThreadAtomCache.

PerThreadAtomCache is over 18kB, and so WorkerJSContext and WorkletJSContext
are moved from the stack to the heap.

MozReview-Commit-ID: 6jdJeZcviK4

--HG--
extra : rebase_source : 3c2accb71faf3f017a44c405ae0484e57aaf039c
2018-05-10 17:04:12 +12:00
André Bargull 272b9eeecd Bug 1464845 - Remove js_strdup and JS_strdup. r=Waldo 2018-06-04 13:34:06 -07:00
André Bargull 5c10d3a3fc Bug 1466693: Use system malloc in SetOutputFile because jemalloc isn't yet initialized. r=sfink 2018-06-04 14:56:33 -07:00
Jon Coppeard 82942e8802 Bug 1459860 - Make incremental marking validation wait for off-thread parsing to finish r=sfink 2018-06-05 11:03:47 +01:00
Dorel Luca 535f1df913 Merge mozilla-central to mozilla-inbound 2018-06-04 21:48:29 +03:00
Dorel Luca 746fbfe0a7 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-04 21:11:34 +03:00
Dorel Luca 8a5e435163 Backed out changeset 2426ac9d78fe (bug 1464845) for Merge conflicts with bug 1465060 2018-06-04 21:10:36 +03:00
Jon Coppeard ab10a24893 Bug 1466171 - Allow collection of atoms while the main thread is parsing r=sfink 2018-06-04 15:25:45 +01:00
André Bargull 350c65991b Bug 1464845 - Remove js_strdup and JS_strdup. r=Waldo 2018-06-04 01:30:51 -07:00
Jon Coppeard 7309d3041a Bug 1461619 - Don't update atoms marking bitmaps in parallel due to potential races r=sfink 2018-06-04 11:19:06 +01:00
Jon Coppeard ab5bff083b Bug 1461619 - Rename some atom marking methods to make their purpose cleare r=sfink 2018-06-04 11:18:27 +01:00
Jon Coppeard 977f50a7e7 Bug 1462693 - Update JSScript and LazyScript in separate phases in compacting GC r=sfink 2018-06-04 11:18:04 +01:00
Miko Mynttinen 4c85ef17cc Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 1e7eea4f2d4ec16ec0c559a8afb26976ddbf4d07
2018-06-01 17:59:07 +02:00
shindli 936dd8d764 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-04 01:07:15 +03:00
arthur.iakab 7e765f798b Backed out 2 changesets (bug 1465060) for build bustages on security/sandbox/linux/reporter/SandboxReporter.cpp
Backed out changeset 7c8905b6b226 (bug 1465060)
Backed out changeset 10446073eca8 (bug 1465060)
2018-06-03 19:25:41 +03:00
Miko Mynttinen 8d9dc85cd4 Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 619d0e0ff63a2453c80f0c4d9beb906d43fa9b01
2018-06-01 17:59:07 +02:00
Cosmin Sabou cff08774d6 Merge mozilla-central to autoland. a=merge 2018-06-03 13:10:57 +03:00
Andreea Pavel 4ced6e8b2d Merge mozilla-central to autoland. a=merge 2018-06-03 07:27:01 +03:00
Jan de Mooij 403ba762c8 Bug 1466083 part 6 - Add xpc::GetRealmPrincipal and use it in a few places. r=bz
Not strictly necessary, but this lets us remove some JS::GetCompartmentForRealm and JS_GetCompartmentPrincipals calls.
2018-06-02 11:58:29 +02:00
Jan de Mooij 85dfb1be7c Bug 1466083 part 5 - Assume we have a single compartment/realm in Zone::deleteEmptyCompartment. r=jonco 2018-06-02 11:58:28 +02:00
Jan de Mooij 907e63b5d1 Bug 1466083 part 4 - Use UniquePtr instead of ScopedJSDeletePtr when allocating Zones and Realms. r=jwalden 2018-06-02 11:58:28 +02:00
Jan de Mooij c72c47d1f1 Bug 1466083 part 3 - Some minor Zone::sweepCompartments cleanup. r=jonco 2018-06-02 11:58:28 +02:00
Jan de Mooij 030c2bbfd2 Bug 1466083 part 2 - Replace JSRuntime::numCompartments with JSRuntime::numRealms. r=luke 2018-06-02 11:58:28 +02:00
Jan de Mooij e1029c5394 Bug 1466083 part 1 - Make IterateScripts take a realm instead of a compartment. r=luke 2018-06-02 11:58:27 +02:00
Robin Templeton 72c12f5784 bug 1461050 - Implement string-to-BigInt conversion. r=jandem 2018-05-31 13:32:00 +03:00
André Bargull 74d05c67bd Bug 1464794 - Remove 'using mozilla::*' from header files in js/src. r=Waldo 2018-06-04 01:31:05 -07:00
Jan de Mooij 4fee2e7ee8 Bug 1464772 part 4 - Use cx->realm()->creationOptions() instead of RealmCreationOptionsRef in NowAsMillis. r=luke 2018-06-03 12:22:29 +02:00
Jan de Mooij 626c393650 Bug 1464772 part 3 - Remove unused RealmCreationOptionsRef(obj). r=luke 2018-06-03 12:22:29 +02:00
Jan de Mooij 14752d0042 Bug 1464772 part 2 - Remove RealmBehaviorsRef(obj), change RealmBehaviorsRef(compartment) to take a realm. r=luke
At some point I'll audit the obj->realm() calls for CCWs; removing RealmBehaviorsRef(obj) prepares for that.

Also, RealmBehaviorsRef(realm) could be removed and we could use RealmBehaviorsRef(cx) everywhere, but it seems reasonable to keep it.
2018-06-03 12:22:28 +02:00
Jan de Mooij 6ac025d047 Bug 1464772 part 1 - Make JS_GetIsSecureContext take a realm instead of compartment and move to JS namespace. r=bz 2018-06-03 12:22:28 +02:00
Lars T Hansen 3aa0e2726a Bug 1461948 - Remove redundant length parameter for TypedObject constructor. r=till
Nobody uses this value.  Also removing the functions that compute it.

--HG--
extra : rebase_source : 38ed654435f3ec8b1dc951486ee717da14816c55
extra : source : 65b243db82a3d6e5b00f12d8cfef53eee3010e02
2018-05-09 15:23:40 +02:00
Jan de Mooij 4ded85aeda Bug 1466083 part 9 - Introduce JS::IterateRealmsInCompartment and use it in NukeAllWrappersForCompartment. r=jonco 2018-06-06 12:55:50 +02:00
Jan de Mooij 615ecff147 Bug 1466083 part 8 - Various minor API changes. r=luke
* GetScriptCompartment => GetScriptRealm
* Adds IsSystemRealm in addition to IsSystemCompartment and uses it where we can.
* JS_GetCompartmentPrincipals and IsSystemCompartment now release-assert they have a single realm. This is temporary until we know what Gecko will do/need exactly.
2018-06-06 12:55:50 +02:00
Jan de Mooij 9389383f2c Bug 1466083 part 7 - Replace GetCompartmentZone with GetRealmZone. r=luke 2018-06-06 12:55:50 +02:00
Jon Coppeard 369cd3f640 Bug 1466487 - Throw if module metadata hook is not set in the shell r=anba 2018-06-06 10:54:59 +01:00
Jon Coppeard 4d20a29316 Bug 1466792 - Update out-of-date memory allocation comments r=sfink 2018-06-06 10:54:59 +01:00
Jan de Mooij bcadbf2ad9 Bug 1464772 part 5 - Use GetIsSecureContext instead of RealmCreationOptionsRef in IsSecureContextOrObjectIsFromSecureContext. r=bz
Also changes RealmCreationOptionsRef to take a realm instead of compartment (this function is now unused but still potentially useful).
2018-06-06 11:44:17 +02:00
Jan de Mooij 7f38cbf185 Bug 1465728 part 3 - Rename Cu.getCompartmentLocation to Cu.getRealmLocation. r=bz 2018-06-06 11:44:17 +02:00
Jan de Mooij 3d013f2eef Bug 1465728 part 2 - Remove the compartment name callback. r=luke 2018-06-06 11:44:17 +02:00
Jan de Mooij 71d86bded9 Bug 1465728 part 1 - Move location and locationURI fields from CompartmentPrivate to RealmPrivate. r=bz
The xpcprivate.h changes are just code motion, except I changed the order of the GetLocationURI methods to get a much more readable diff.
2018-06-06 11:44:17 +02:00
Emilio Cobos Álvarez 1e9c395548 Bug 1466168: Remove mozilla::Forward in favor of std::forward. r=froydnj
Same approach as the other bug, mostly replacing automatically by removing
'using mozilla::Forward;' and then:

  s/mozilla::Forward/std::forward/
  s/Forward</std::forward</

The only file that required manual fixup was TestTreeTraversal.cpp, which had
a class called TestNodeForward with template parameters :)

MozReview-Commit-ID: A88qFG5AccP
2018-06-02 09:33:26 +02:00
qiaopengcheng 7d63d1ce7d Bug 1465770 - mips32: convertDoubleToInt32 cp1_fcsr error. r=dragan.mladjenovic 2018-06-01 02:58:00 -04:00
qiaopengcheng ee8f3a1498 Bug 1465770 - mips64: convertDoubleToInt32 cp1_fcsr error. r=dragan.mladjenovic 2018-05-31 18:33:00 -04:00
André Bargull 3c98fb69ab Bug 1466050 - Skip a call to strlen in Number.prototype.toString when length was already computed. r=jandem
--HG--
extra : rebase_source : 646bed23c8f23224abf401cca7d161b20a417672
2018-06-01 01:10:11 -07:00
Jon Coppeard 5f56932b65 Bug 1466166 - Fix test code for bug 1464872 to work with GC zeal. r=sfink 2018-06-01 09:31:00 -04:00
Jan de Mooij 12cafc4a7d Bug 1465002 part 2 - Don't skip wasm frames in GetScriptedCallerActivationRealmFast. r=luke 2018-06-01 19:23:14 +02:00
Jan de Mooij 112114fba6 Bug 1465163 - Some UbiNode changes for same-compartment realms. r=fitzgen 2018-06-01 19:23:06 +02:00
Jon Coppeard 3fbdd0da31 Bug 1465695 - Don't release helper thread lock while cancelling off-thread parses r=jandem 2018-06-01 11:35:57 +01:00
Emilio Cobos Álvarez fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Brindusan Cristian b7990441d5 Backed out changeset 30c5d06e47f0 (bug 1465895) for spidermonkey bustages. CLOSED TREE 2018-06-01 10:08:51 +03:00
Steve Fink 0a1094e53b Bug 1465895 - Default to mach-installed clang directory for sanitizer tools, r=nbp
--HG--
extra : rebase_source : 69aec6347eeccdd89a42c239e85d2c4a27b7ee27
2018-05-31 11:08:01 -07:00
Paul Bone a05872f75b Bug 1464986 (Part 2) - Add some debug logging to the GC r=jonco
--HG--
extra : rebase_source : fe65d58434aaae63ae2b1d42520a8b1a57247073
extra : histedit_source : b0ad0e6ed49eaca269066599df859d831e7f5dfa
2018-05-30 22:50:46 +10:00
Paul Bone 8355917e56 Bug 1464986 (Part 1) - Rename Statistics::fp r=jonco
--HG--
extra : rebase_source : 4fafe076359db119a74887e2d8b09f81da36142a
2018-05-29 16:37:48 +10:00
Paul Bone 9b364c2724 Bug 1465062 - Rename AutoGCSlice to AutoDisableBarriers r=jonco
--HG--
extra : rebase_source : 00762ae0f66bb3486270ed57ca9644d4c81957ba
2018-05-31 00:07:03 +10:00
Julian Seward 2ba720102c Bug 1465011 - Improve WebAssembly BulkMem.{Copy,Fill} validation tests. r=lth.
Bug 1464477 exposes the fact that the current test cases in
js/src/jit-test/tests/wasm/memory-bulk.js fail to verify that the following
are rejected by validation:

* use of BulkMem.{Copy,Fill} in a module that doesn't have a memory
* use of BulkMem.{Copy,Fill} with the wrong number of arguments
* use of BulkMem.{Copy,Fill} with wrong typed arguments

This patch adds those missing tests.  It also takes the opportunity to
rename |new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary(|
to |wasmEvalText| in this file for more conciseness and better error checking.

--HG--
extra : rebase_source : e960ab86b95eef4b6304c1d7747963eb6b154734
2018-05-31 17:34:33 +02:00
Nicolas B. Pierron 24df128873 Bug 1464829 - Ensure the recover instruction vector has the expected size. r=jandem
--HG--
extra : amend_source : ea2625d7cbf7aef4bad3257f81093b208954434e
2018-05-31 14:22:14 +02:00
Margareta Eliza Balazs c6ae447c6a Backed out changeset d09813f5a6a5 (bug 1464829) for bustage in /builds/worker/workspace/build/src/js/src/jit/JitFrames.cpp on a CLOSED TREE 2018-05-31 15:22:04 +03:00
Nicolas B. Pierron 301a80ca2a Bug 1464829 - Ensure the recover instruction vector has the expected size. r=jandem
--HG--
extra : rebase_source : 2abd8976d4b6a3c8bc0c982c592891c6340507d2
2018-05-31 14:05:01 +02:00
Jan de Mooij 9c36fb8e7a Bug 1467142 - Fix MacroAssembler::branchTestObjCompartment to guard on realm->compartment instead of realm. r=tcampbell 2018-06-06 17:09:17 +02:00
Lars T Hansen 5341ca2688 Bug 1429818 - Make wasm sign extension feature unconditional. r=luke
Remove the feature define and all the ifdefs that use it.

Remove the TestingFunctions predicate that reveals the value of the
define.

Update the test cases that used the predicate.

--HG--
extra : rebase_source : 161aff058c5d596ab0bee94b03b2b1819e71e9ad
extra : amend_source : 2bf2d2b34051a5f99e85e54d8ac480b73fb8fc54
2018-03-22 09:06:20 +01:00
Bogdan Tara 3737701cfa Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-05 12:33:18 +03:00
Dorel Luca 4ded9f31ea Merge mozilla-central to autoland 2018-06-04 21:14:46 +03:00
Alex Gaynor 3dc2139816 Bug 1465860 - Don't crash in JS IPC on invalid object id. r=evilpie
Instead, return an error up to the caller, who can return an IPC error, which
will kill the child. This is significantly friendlier to fuzzing.

MozReview-Commit-ID: C67xSqUeN1i
2018-05-31 16:29:03 -04:00
Doug Thayer 87bf13e093 Bug 1448040 - Remove HangMonitor/ChromeHangs r=Nika
Fairly straightforward, just a blanket removal. Haven't heard
anything on dev-platform or fx-data-dev regarding this removal,
so I think it's likely safe to remove on Nightly, and we can
revert if anyone makes a fuss.

As part of removing the HangMonitor, I renamed a few things and
reorganized the namespaces to not depend on a HangMonitor
namespace. Hopefully this doesn't produce too much noise in the
diff, it just seemed appropriate to move everything around
rather than keep dangling vestiges of the old system.

MozReview-Commit-ID: 8C8NFnOP5GU

--HG--
extra : rebase_source : 59e4a6ced7d14d2a01c0b79e944078ea84cae523
2018-04-29 18:21:20 -07:00
Jan de Mooij f3fe2d13d4 Bug 1465472 - Remove the atoms realm/compartment. r=jonco
Some of the less trivial changes:

* When we allocated a symbol, we used the atom realm's RNG to create a hash code [0]. Instead of this I added a RNG for this to the runtime.

* IsCompilingWasm returned true if the JitContext's realm is nullptr, but that's now also true when we initialize the trampolines stored in the atoms zone. To fix that I added a CompileZone* to JitContext, in addition to the CompileRuntime and CompileRealm, and we now check the zone instead of the realm in IsCompilingWasm.

* JSContext::hasEnteredRealm is only called in DEBUG builds so I made hasEnteredRealm and enterRealmDepth_ #ifdef DEBUG.
2018-05-31 12:53:26 +02:00
Jan de Mooij 3721ae615a Bug 1464374 part 9 - Turn JS_SetCompartmentPrincipals into JS::SetRealmPrincipals. r=bz 2018-05-31 11:28:50 +02:00
Jan de Mooij 37e765587c Bug 1464374 part 7 - Use GetRealmPrincipals in GetCompartmentName. r=luke
This will become GetRealmName at some point.
2018-05-31 11:28:49 +02:00
Jan de Mooij 1edb6a4c17 Bug 1464374 part 6 - Use GetRealmPrincipals in Scriptability constructor. r=bz 2018-05-31 11:28:49 +02:00
Jan de Mooij ce3eb7d5c0 Bug 1464374 part 2 - Pass JS::Realm* instead of JSCompartment* to CallSetup. r=bz,luke
The principals are on the realm so we need a realm instead of a compartment. Also adds js::GetNonCCWObjectRealm to get the realm of a non-CCW object.
2018-05-31 11:28:48 +02:00
Jan de Mooij 09c4068fa0 Bug 1464134 part 1 - Fix various places to use Realm instead of JSCompartment. r=luke 2018-05-31 11:28:48 +02:00
Jon Coppeard a20465acbc Bug 1464872 - Add forward zone edge for debugger object when calculating sweep groups r=sfink 2018-05-31 09:27:29 +01:00
Tooru Fujisawa 9fe0ec4d4c Bug 1459845 - followup: Properly enclose debug-only variable. r=bustage CLOSED TREE 2018-05-31 15:37:12 +09:00
Tooru Fujisawa f7b825beb5 Bug 1460126 - Part 4: Add MOZ_MUST_USE to TryEmitter methods. r=jwalden 2018-05-31 15:15:51 +09:00
Tooru Fujisawa 1c966f2c11 Bug 1460126 - Part 3: Make TryEmitter::State debug only. r=jwalden 2018-05-31 15:15:51 +09:00
Tooru Fujisawa dabf454e17 Bug 1460126 - Part 2: Merge TryEmitter::{ShouldUseRetVal,ShouldUseControl} into TryEmitter::ControlKind. r=jwalden 2018-05-31 15:15:50 +09:00
Tooru Fujisawa 855b95adc1 Bug 1460126 - Part 1: Make TryEmitter::Kind and TryEmitter::State enum classes. r=jwalden 2018-05-31 15:15:50 +09:00
Tooru Fujisawa 312bbfc472 Bug 1459845 - Part 6: Make IfThenElseEmitter::State debug only. r=Yoric 2018-05-31 15:15:50 +09:00
Tooru Fujisawa e62b8319d5 Bug 1459845 - Part 5: Rename IfThenElseEmitter::{emitIf,emitIfElse} to IfThenElseEmitter::{emitThen,emitThenElse}. r=Yoric 2018-05-31 15:15:50 +09:00
Tooru Fujisawa 0617559950 Bug 1459845 - Part 4: Add IfThenElseEmitter::emitElseIf to clarify cascading else-if blocks. r=Yoric 2018-05-31 15:15:49 +09:00
Tooru Fujisawa 66fe72b011 Bug 1459845 - Part 3: Add MOZ_MUST_USE to IfThenElseEmitter methods. r=Yoric 2018-05-31 15:15:49 +09:00
Tooru Fujisawa deffa12c12 Bug 1459845 - Part 2: Make IfThenElseEmitter::State an enum class. r=Yoric 2018-05-31 15:15:49 +09:00
Tooru Fujisawa 766c2a0669 Bug 1459845 - Part 1: Fix the comment for IfThenElseEmitter with cascading if-else. r=Yoric 2018-05-31 15:15:48 +09:00
Jan de Mooij 6302682c36 Bug 1465037 - Fix FrameIter principals check to work with same-compartment realms. r=luke
The principals are now on the realm and an activation will contain cross-realm calls, so the principals need to be checked for each frame instead of each activation.
2018-05-31 07:19:08 +02:00
Jan de Mooij c5f8610e4f Bug 1465002 - Make GetScriptedCallerGlobal work with same-compartment realms. r=luke 2018-05-31 07:18:52 +02:00
Steve Fink b254a63736 Bug 1465173 - Set the pid correctly in the automation output, r=nbp
--HG--
extra : topic : GCForReason
extra : rebase_source : 31ff929d6df67715fea4e76843f7a5ecbd7294ed
extra : histedit_source : 43cecd8dbcedbe6a26b92703b7734d4d3f8b1c0b
2018-05-24 21:45:57 -07:00
Steve Fink 0680fed494 Bug 1464266 - Rename GCForReason to NonIncrementalGC, r=jonco
--HG--
extra : topic : GCForReason
extra : rebase_source : e81bf7bb8ca0824f8b63f25a46ccbe26c4002325
2018-05-24 16:19:18 -07:00
arthur.iakab f1046ac67f Merge mozilla-central to inbound 2018-05-31 01:08:35 +03:00
arthur.iakab fb18cb09bd Merge mozilla inbound to central a=merge 2018-05-31 01:05:10 +03:00
Tom Schuster 764a126da1 Bug 1465396 - Skip Array.prototype.flat tests when disabled. r=anba
--HG--
extra : rebase_source : 4692ec539cee3323e2daeb4b2b1fa74fd89cfd2e
extra : histedit_source : 84271b61eb458b40fe93f81de22c1df21982e1ee
2018-05-30 17:19:18 +02:00
Jan de Mooij 45e968b1dd Bug 1464134 part 8 - Make IterateHeapUnbarriered and related code use realms instead of compartments. r=jonco 2018-05-30 20:14:19 +02:00
Jan de Mooij 732a7c63d6 Bug 1464134 part 7 - Replace GetAnyCompartmentInZone with GetAnyRealmInZone. r=luke 2018-05-30 20:14:19 +02:00
Jan de Mooij 7ff3b9af6c Bug 1464134 part 6 - Replace AbstractFramePtr::compartment with AbstractFramePtr::realm. r=anba 2018-05-30 20:14:18 +02:00
Jan de Mooij 2eebe87aa6 Bug 1464134 part 5 - Combine CompartmentsIterT and RealmsIterT in a single template class. r=jonco 2018-05-30 20:14:18 +02:00
Christian Holler 570031d38c Bug 1464202 - Improve and centralize libFuzzer flag management. r=froydnj
MozReview-Commit-ID: HFrQDAZWtpo

--HG--
extra : rebase_source : ab1da001d7e9280fbfb37858505f1d0d0caf7d54
2018-05-24 21:11:46 +02:00