Commit Graph

70495 Commits

Author SHA1 Message Date
Brian Grinstead
911776d674 Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the case where the script src is on the line below the script tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 3` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 03:59:25 +00:00
Brian Grinstead
ede8c44ef2 Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky
This excludes dom/, otherwise the file size is too large for phabricator to handle.

This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 2` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 03:50:44 +00:00
Brian Grinstead
6515f97bcb Bug 1544322 - Part 1 - Remove the [type] attribute for one-liner <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 1` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 20:56:58 +00:00
Coroiu Cristina
a9338f145b Merge inbound to mozilla-central a=merge 2019-04-16 07:05:54 +03:00
Coroiu Cristina
c862999ac0 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2019-04-16 00:39:47 +03:00
Jason Orendorff
61aee40722 Bug 1529772 - Part 4: Implement ASI for fields that don't have initializers. r=jwalden
The only reason this wasn't already working is that propertyOrMethodName()
relied on a Semi token to help it recognize a FieldDeclaration without an
Initializer. This obviously can't work if the semicolon isn't there, so this
patch makes Field the default case.

That means the caller, classMember(), must be prepared for
propertyOrMethodName() to succeed with PropertyType::Field when in fact maybe
there's nothing but gibberish coming up; but we already handle that.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 20:55:25 +00:00
Jason Orendorff
241459d345 Bug 1529772 - Part 3: Implement ASI for fields that have initializers. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D26037

--HG--
extra : moz-landing-system : lando
2019-04-15 20:55:05 +00:00
Jason Orendorff
d2cf2ed9f7 Bug 1529772 - Part 2: Factor out PropertyName parsing from Parser::propertyName(). r=khyperia
The existing propertyName() method parses a little more than just
PropertyNames; this patch renames it, to clarify that, but the behavior is
unchanged.

There was a lot of redundancy in the implementation of getters and setters, so
this deletes a bunch of code.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 20:54:48 +00:00
Jason Orendorff
313561d029 Bug 1529772 - Part 1: Document current state of play in GeneralParser::propertyName. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D26035

--HG--
extra : moz-landing-system : lando
2019-04-15 20:54:28 +00:00
Ashley Hauck
3863fe059b Bug 1540798 - Add testcase for fuzzbug. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D27557

--HG--
extra : moz-landing-system : lando
2019-04-15 19:16:29 +00:00
Bogdan Tara
cae7a0db3f Backed out changeset 9573e2163ca4 (bug 1544041) for causing streams/*.any.js related bustages CLOSED TREE 2019-04-15 18:44:06 +03:00
Jim Blandy
cceb221080 No bug: Doc fix in js::jit::CanEnterBaselineAtBranch. DONTBUILD rs=jorendorff
--HG--
extra : amend_source : 2fe1ee2482d690a567ad0f19a0642a9acac7a877
2019-04-15 11:29:25 -07:00
Csoregi Natalia
7edfe87021 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-04-15 18:28:30 +03:00
Benjamin Bouvier
da79779db2 Bug 1539406: Bump Cranelift to revision 542d799dd7a3b2cc; r=lth
This is the first time we pin a specific Cranelift commit hash to use in Gecko.
The target-lexicon hack is removed and instead we introduce a vendor patch for
cranelift-codegen/cranelift-wasm themselves.

Notable changes happen in top-level Cargo.toml, .cargo/config.in and
js/src/wasm/cranelift/Cargo.toml; the rest has been generated by `mach vendor
rust`.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 10:39:28 +00:00
Csoregi Natalia
e478deffdb Merge mozilla-central to autoland. CLOSED TREE 2019-04-15 12:47:30 +03:00
Yoshi Cheng-Hao Huang
1f64fc3823 Bug 1522061 - Part 2: implement isCCTraceKind with JS_FOR_EACH_TRACEKIND. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D27068
2019-04-15 10:22:38 +08:00
Yoshi Cheng-Hao Huang
714d7e04c5 Bug 1522061 - Part 1: rename to TraceKindCanBeGray. r=jonco
TypeParticipatesInCC is confusing, as this function is used to tell if a
TraceKind can be marked gray.

Differential Revision: https://phabricator.services.mozilla.com/D27067
2019-04-15 10:22:30 +08:00
Jan de Mooij
fba2d34e37 Bug 1541404 part 1 - Move initEnvironmentChain from BaselineCompiler to BaselineCodeGen. r=djvj
Also has some other minor prologue-related changes. The interpreter code here
is slightly less optimal than it could be, but that will be easier to address
in follow-up changes.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 14:08:03 +00:00
Chris Martin
7f9d62dd87 Bug 1052579 - Add new JSAPI calls for allocating string buffers r=sfink
Currently, JSAPI malloc calls can only allocate in MallocArena. Now there
are calls for when the user intends to allocate a buffer that will be
"stolen" by one of the NewString calls.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 17:09:26 +00:00
Bogdan Tara
94a095057e Backed out 4 changesets (bug 1529772) for Parser.cpp related bustages CLOSED TREE
Backed out changeset 9d97f970cbeb (bug 1529772)
Backed out changeset 12f5ca654613 (bug 1529772)
Backed out changeset 067e3a99b027 (bug 1529772)
Backed out changeset b75b904ed0ab (bug 1529772)
2019-04-13 03:01:24 +03:00
Jason Orendorff
9b455ee776 Bug 1534392 - Part 2: Fix error handling in %AsyncFromSyncIteratorPrototype% methods. r=anba
This makes %AsyncFromSyncIteratorPrototype%.next/return/throw return a rejected
promise, not throw, when PromiseResolve throws, following the usual convention
for methods that return promises. This follows proposed spec change
<https://github.com/tc39/ecma262/pull/1470>, which I expect will land with
little controversy.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 23:37:03 +00:00
Jason Orendorff
cc69c02b55 Bug 1529772 - Part 4: Implement ASI for fields that don't have initializers. r=jwalden
The only reason this wasn't already working is that propertyOrMethodName()
relied on a Semi token to help it recognize a FieldDeclaration without an
Initializer. This obviously can't work if the semicolon isn't there, so this
patch makes Field the default case.

That means the caller, classMember(), must be prepared for
propertyOrMethodName() to succeed with PropertyType::Field when in fact maybe
there's nothing but gibberish coming up; but we already handle that.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 23:33:57 +00:00
Jason Orendorff
5de7d5eb28 Bug 1529772 - Part 3: Implement ASI for fields that have initializers. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D26037

--HG--
extra : moz-landing-system : lando
2019-04-12 22:23:22 +00:00
Jason Orendorff
84bfe319af Bug 1529772 - Part 2: Factor out PropertyName parsing from Parser::propertyName(). r=khyperia
The existing propertyName() method parses a little more than just
PropertyNames; this patch renames it, to clarify that, but the behavior is
unchanged.

There was a lot of redundancy in the implementation of getters and setters, so
this deletes a bunch of code.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 22:23:15 +00:00
Jason Orendorff
bc910a5e5a Bug 1529772 - Part 1: Document current state of play in GeneralParser::propertyName. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D26035

--HG--
extra : moz-landing-system : lando
2019-04-12 22:23:11 +00:00
Vincent Lequertier
b0f1f0a624 Bug 1483340 - Add CacheIR test case for HTMLDDA object;r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D27167

--HG--
extra : moz-landing-system : lando
2019-04-12 20:01:42 +00:00
Christian Holler
8e514a52b7 Bug 1514346 - Add --enable-gczeal to fuzzing/asan jsshell builds. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D27318

--HG--
extra : moz-landing-system : lando
2019-04-12 16:05:25 +00:00
shindli
5c5840dbdd Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-12 19:16:38 +03:00
shindli
266dff621d Merge inbound to mozilla-central. a=merge 2019-04-12 18:48:02 +03:00
Jon Coppeard
b068fc3d17 Bug 1543950 - Fix build errors in gc/Verifier.cpp in --disable-debug --enable-gczeal builds r=allstars.chh
Differential Revision: https://phabricator.services.mozilla.com/D27256
2019-04-12 12:32:10 +01:00
Cosmin Sabou
3e6ef756b6 Merge mozilla-central to autoland. 2019-04-12 06:48:11 +03:00
Cosmin Sabou
90efd04259 Merge mozilla-inbound to mozilla-central. a=merge 2019-04-12 06:45:27 +03:00
Jim Porter
cb257eff1c Bug 1479970 - Enable building Tracelogger by default; r=tcampbell
This patch enables compilation of the tracelogger by default on nightly builds
as well as providing an environment variable (JS_TRACE_LOGGING) to enable or
disable tracelogger instrumentation when compiling Javascript. This helps to
reduce the performance impact of the Tracelogger code when not in use. In the
future, this could be improved to recompile the JS with/without Tracelogger
instrumentation when toggling Tracelogger support.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 23:52:41 +00:00
Ted Campbell
bcdfc94959 Bug 1479970 - Use early exits in AutoFrontendTraceLog. r=jandem
Avoid any risk of running non-trivial line-number or error reporting
code.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 09:24:12 +00:00
Ted Campbell
3ff33b2a83 Bug 1479970 - Remove IonBuilder::traceLogger(). r=jandem
This only had one use is inconsistent with other tracelogger users.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 09:23:21 +00:00
Luke Wagner
18b2180748 Bug 1542292 - Bump 64-bit executable quota to ~2gb (r=jandem)
Differential Revision: https://phabricator.services.mozilla.com/D26329

--HG--
extra : moz-landing-system : lando
2019-04-11 23:40:57 +00:00
Ashley Hauck
5fb0f5f2b8 Bug 1542448 - Copy .initializers to .localInitializers for derived classes. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D26967

--HG--
extra : moz-landing-system : lando
2019-04-11 23:07:06 +00:00
Ashley Hauck
2aed7a94de Bug 1542448 - Always emit scopes for classes. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D26966

--HG--
extra : moz-landing-system : lando
2019-04-11 23:07:04 +00:00
Sylvestre Ledru
7f60810d86 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-12 13:14:25 +00:00
Jan de Mooij
959b87ac8f Bug 1543055 - Fix AllocationSiteKey hashing to not have quadratic behavior when many scripts share bytecode. r=jonco
This also uses HashGeneric/AddToHash instead of manual XOR'ing.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 08:54:08 +00:00
Jan de Mooij
71fdc104a8 Bug 1541404 part 10 - Fix TypeMonitorResult to check for TypeScript instead of BaselineScript. r=tcampbell
The BaselineScript used to contain the bytecode type map but that's now stored
in TypeScript.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 13:22:10 +00:00
Jan de Mooij
c4b528b6f1 Bug 1541404 part 9 - Implement JSOP_DOUBLE in BaselineInterpreterCodeGen. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D27034

--HG--
extra : moz-landing-system : lando
2019-04-11 13:22:08 +00:00
Jan de Mooij
fa6b2a70f8 Bug 1543592 part 2 - Make JSOP_AFTERYIELD a jump target op. r=tcampbell
This will help the Baseline interpreter restore its interpreterICEntry field
without calling into C++.

Depends on D27032

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

--HG--
extra : moz-landing-system : lando
2019-04-11 16:50:47 +00:00
Jan de Mooij
f0e1533406 Bug 1543592 part 1 - Rename JSOP_DEBUGAFTERYIELD to JSOP_AFTERYIELD. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D27032

--HG--
extra : moz-landing-system : lando
2019-04-12 10:20:12 +00:00
Yoshi Cheng-Hao Huang
f9091c5b4b Bug 1542980 - fixed js shell compilation error. r=jonco
This is from Bug 1534967, and the code is wrapped with compiler option
`JS_MORE_DETERMINISTIC`, which is only enabled through
'--enable-more-deterministic' in shell configure.

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

--HG--
extra : moz-landing-system : lando
2019-04-12 08:58:42 +00:00
Andrea Marchesini
a438b12ebd Bug 1536411 - StoragePrincipal - part 1 - Implementation, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24025

--HG--
extra : moz-landing-system : lando
2019-04-12 05:31:32 +00:00
Sean Stangl
18214ad3bf Bug 1538083 - Fix -0 handling in ARM64 visitTrunc(). r=nbp
The existing truncation code did not correctly handle the case of negative zero.
The fix is to avoid using FCMP floating-point comparisons, and check
the sign bit explicitly in a GPR.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 22:34:46 +00:00
Adam Holm
f46e894a59 Bug 1542355 - Fixes CACHEIR_LOGS=1 crashing nightly build. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D26987

--HG--
extra : moz-landing-system : lando
2019-04-11 20:04:37 +00:00
André Bargull
16ab6e389e Bug 1539694 - Part 3: Update xray tests for Promise. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D26144

--HG--
extra : moz-landing-system : lando
2019-04-11 21:07:00 +00:00
André Bargull
64d8a565e1 Bug 1539694 - Part 2: Implement Promise.allSettled stage 3 proposal. r=jorendorff
Nightly-only for now because the proposal only just reached stage 3.

Promise.allSettled is similar to Promise.all, except that each element also has
an own reject handler. Apart from that most code from Promise.all can be reused
for Promise.allSettled, including calling the `CommonPerformPromiseAllRace`
helper function.

Because each element has an own reject handler and we need to track if either
function of the resolve/reject handler pair was already called, it's not
possible to reuse the same trick as in `PromiseAllResolveElementFunction` where
the data-holder slot is used to track if the handler was already called. Instead
`PromiseAllSettledElementFunction` uses the values array to check if the
current index position is still set to `undefined` as a mean to verify that the
resolving functions for each element weren't already called.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 21:06:40 +00:00