Commit Graph

69763 Commits

Author SHA1 Message Date
Ted Campbell
f80d62d852 Bug 1533003 - Add SharedScriptData::InitFromEmitter r=jandem
Depends on D22321

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

--HG--
extra : moz-landing-system : lando
2019-03-06 18:09:27 +00:00
Ted Campbell
c5c0086ee2 Bug 1533003 - Add PrivateScriptData::InitFromEmitter r=jandem
Depends on D22320

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

--HG--
extra : moz-landing-system : lando
2019-03-06 18:06:35 +00:00
Ted Campbell
228743c20b Bug 1533003 - Split out inner-function scope linking in script compile r=jandem
When compiling a script with lazy inner functions, we now know the
scopes that those inner functions belong too and need to save this
information on the inner function itself (as enclosingScope). This patch
makes that process more explicit in JSScript initialization so we can
better reason about error / OOM paths.

Depends on D22319

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

--HG--
extra : moz-landing-system : lando
2019-03-06 18:04:10 +00:00
Ted Campbell
d380864cd7 Bug 1533003 - JSScript::fullyInitFromEmitter group flag init r=jandem
Depends on D22318

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

--HG--
extra : moz-landing-system : lando
2019-03-06 18:03:12 +00:00
Ted Campbell
085f166748 Bug 1533003 - JSScript::fullyInitFromEmitter group POD fields r=jandem
Depends on D22317

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

--HG--
extra : moz-landing-system : lando
2019-03-06 18:01:34 +00:00
Ted Campbell
8a693c6d8d Bug 1533003 - Cleanup JSScript::fullyInitFromEmitter error handling r=jandem
Use an ExitScope similar to to XDRScript for more consistency.

Depends on D22316

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

--HG--
extra : moz-landing-system : lando
2019-03-06 17:59:06 +00:00
Ted Campbell
10940b7d27 Bug 1533003 - Compute JSScript::NeedsFunctionEnvironmentObjects directly from BCE r=jandem
Depends on D22315

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

--HG--
extra : moz-landing-system : lando
2019-03-06 17:55:38 +00:00
Ted Campbell
327f2137b8 Bug 1533003 - Compute JSScript::FunHasAnyAliasedFormal directly from BCE r=jandem
Compute this flag directly from BytecodeEmitter data structures instead
of needing to access the partially initialized script while setting its
own flags.

Depends on D22313

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

--HG--
extra : moz-landing-system : lando
2019-03-06 17:42:18 +00:00
Ted Campbell
e0eaf32604 Bug 1533003 - Remove JSScript::initFromModuleContext r=jandem
This removes the redundant set of TreatAsRunOnce which is instead set by
CompileOptions before we start compiling. The IsModule flag is now set
directly similar to IsForEval.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 17:34:39 +00:00
Brian Hackett
5ce011d7de Bug 1532366 - Don't record changes to ScriptSource atomic counter, r=loganfsmyth.
Differential Revision: https://phabricator.services.mozilla.com/D22309

--HG--
extra : moz-landing-system : lando
2019-03-06 19:59:34 +00:00
André Bargull
bc7119be42 Bug 1532265 - Part 2: Handle closed generators in async function resume. r=arai
Debugger or OOM errors can close the generator after JSOP_ASYNCAWAIT enqueued
a promise job for AsyncFunctionResume. Change AsyncFunctionResume to handle
this case and also try to reject the result promise with the pending OOM error
if possible.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 16:24:35 +00:00
André Bargull
fea797f99e Bug 1532265 - Part 1: Skip over InterpretGeneratorResume in IsTopMostAsyncFunctionCall. r=arai
- Remove nullptr checks for `calleeTemplate` because it can't be null for
  function frames.
- Always skip over `InterpretGeneratorResume` to ensure baseline sees the same
  number of debugger enter-frame events as interpreter.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 16:29:24 +00:00
Dorel Luca
ac34e1d973 Backed out 16 changesets (bug 1525245) for Android failures. CLOSED TREE
Backed out changeset 9f8a1b410320 (bug 1525245)
Backed out changeset 0ef284a9a1d5 (bug 1525245)
Backed out changeset 835e5f642a03 (bug 1525245)
Backed out changeset 362f5a8d033c (bug 1525245)
Backed out changeset 9da3ab33cf67 (bug 1525245)
Backed out changeset 6aacd2d6e835 (bug 1525245)
Backed out changeset 8ff9e8f45e02 (bug 1525245)
Backed out changeset 2020227181cc (bug 1525245)
Backed out changeset fc3c64c330b9 (bug 1525245)
Backed out changeset 2762bf88e050 (bug 1525245)
Backed out changeset ffc10fdc50a6 (bug 1525245)
Backed out changeset bb6ade1207d7 (bug 1525245)
Backed out changeset 1875eb5085e4 (bug 1525245)
Backed out changeset 7e4f67a6d6f1 (bug 1525245)
Backed out changeset e671fc9581eb (bug 1525245)
Backed out changeset b89f5def8d0d (bug 1525245)
2019-03-06 21:07:49 +02:00
Jan Henning
50c69a3713 Bug 1529863 - Remove remnants of unused browser.firstrun and browser.snippets prefs. r=geckoview-reviewers,whimboo,esawin
"browser.firstrun.*" seems to have been unused since the end of XUL-based
Fennec, whereas the code referencing the "browser.snippets.*" prefs was removed
in bug 1482836.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 14:59:46 +00:00
Jan de Mooij
446dc0db91 Bug 1533070 - Get rid of static initializers in GC.cpp by marking some functions/statics constexpr. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D22335

--HG--
extra : moz-landing-system : lando
2019-03-06 17:38:11 +00:00
Andrea Marchesini
4fabb4a2a8 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21538

--HG--
extra : moz-landing-system : lando
2019-03-06 17:04:06 +00:00
Jan de Mooij
9efa0b1b31 Bug 1530937 part 9 - Convert callVMs for Ion IC fallback functions. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D22284

--HG--
extra : moz-landing-system : lando
2019-03-06 17:03:15 +00:00
Jan de Mooij
7d039c5756 Bug 1530937 part 8 - Convert some Ion callVMs that already exist in VMFunctionList-inl.h. r=nbp
Depends on D22278

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

--HG--
extra : moz-landing-system : lando
2019-03-06 15:56:21 +00:00
Jan de Mooij
b2669a46f1 Bug 1530937 part 7 - Move callVM and oolCallVM methods from CodeGeneratorShared to CodeGenerator. r=nbp
They're only used in CodeGenerator.cpp so we can now move some of the helper
classes and templates from the header file to the cpp file.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 15:56:21 +00:00
Csoregi Natalia
5916c8397a Merge inbound to mozilla-central. a=merge 2019-03-06 18:11:32 +02:00
Jan Beich
d2616d9647 Bug 1532851 - Unbreak BSDs build on powerpc64 after bug 1462566. r=bbouvier
Define R32_sig, R01_sig based on:
https://github.com/openbsd/src/blob/master/sys/arch/powerpc/include/signal.h
https://github.com/netbsd/src/blob/trunk/sys/arch/powerpc/include/mcontext.h
https://github.com/freebsd/freebsd/blob/master/sys/powerpc/include/ucontext.h
2019-03-06 02:35:04 +00:00
Csoregi Natalia
56c430aac5 Merge mozilla-central to autoland. CLOSED TREE
--HG--
extra : rebase_source : 10555d94c948e45e86188feff6153ac981879fcc
2019-03-06 12:39:05 +02:00
Benjamin Bouvier
56ceba9d51 Bug 1532714: Add a wasmUsesCranelift() function to check usage of Cranelift; r=lth
Bulk memory operations can be enabled at the same time Cranelift is, in which
case partial initialization of elements/segments/etc. implementation is
statically implemented, but dynamically controlled by wasmBulkMemoryOps().

Cranelift doesn't implement bulk memory operations yet, so wasmBulkMemoryOps()
returns false, while the static behavior is there. Thus, we have to temporarily
disable partial initialization tests when running with Cranelift. This will go
away when Cranelift supports bulk memory operations.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 09:56:08 +00:00
Gurzau Raul
c0b13b1cae Backed out changeset b2fb7cd41c79 (bug 1528869) for failing at /waiterlist-order-of-operations-is-fifo.js on a CLOSED TREE. 2019-03-06 09:44:58 +02:00
Sean Stangl
c2742fbea5 Bug 1528869 - Enable IonMonkey in the ARM64 shell, but keep it disabled in the browser. r=nbp
Enable IonMonkey in the ARM64 shell, but keep it disabled in the browser.

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

--HG--
extra : moz-landing-system : lando
2019-03-06 04:40:51 +00:00
Brian Hackett
67fc2c3079 Bug 1530958 - Fix an issue with native groups for unboxed objects. r=jandem
--HG--
extra : amend_source : 3d3dc1b7604345304db269b8289aa6a610aa7d80
2019-03-06 08:29:26 +01:00
shindli
d03156f6a3 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-05 23:46:24 +02:00
shindli
1be0a5d3ce Merge inbound to mozilla-central. a=merge 2019-03-05 23:41:05 +02:00
Brindusan Cristian
1bc862ffca Backed out changeset 19047d153c2f (bug 1532289) for build bustages at bug1532289.js. CLOSED TREE 2019-03-05 23:24:31 +02:00
Andy Wingo
c6a1e051a4 Bug 1532289 - Fix missing pre-write barrier for BigInt values in Ion r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D21941

--HG--
extra : moz-landing-system : lando
2019-03-05 15:02:57 +00:00
Doug Thayer
55db157391 Bug 1364235 - Collect telemetry stats on startup cache hits and misses r=kmag
In bug 1264235 we have some indication that observed bugs with the
startup cache might have been resolved, but we don't really know
until we collect data. Collecting these stats will give us the
ability to have more certainty that the startup cache is functioning
correctly in the wild.

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

--HG--
extra : moz-landing-system : lando
2019-03-05 16:52:57 +00:00
Lars T Hansen
ed93709a02 Bug 1532306 - Simplify a test case. r=jseward
The tab_test() would compile and link the module for every element of
the result array, but the module should be invariant for the result
array, so this is not necessary.

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

--HG--
extra : rebase_source : f17933261df6f2c36100a77dee1b9d7d735cd9d9
extra : histedit_source : 962b579d49b386130beccb7096da286c8c811d48
2019-03-04 16:06:29 +01:00
Lars T Hansen
25c36b4644 Bug 1532285 - Handle zero-length operations at the edge of memory/table properly. r=jseward
Our bounds checking is a little too stringent - we disallow
zero-length operations at the edge of the memory, table, or segment,
but the spec allows that, a behavior inherited (from active segments)
from the MVP.  It's also a natural consequence of how we handle bounds
checks for non-zero length operations.

So loosen the tests slightly and adapt the test cases, testing both at
the edge of the table/memory/segment and one past that.  In the former
case we allow the operation, in the latter not.

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

--HG--
extra : rebase_source : 0e236edf655c6a35b5dfbf2f535b197a283a7c20
extra : histedit_source : 221e3ca5d35056f02182fcc34a45df53114ddebf
2019-03-04 15:59:06 +01:00
Ciure Andrei
698d0759ec Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-03-05 06:24:16 +02:00
Jeff Walden
3f385ffa33 Bug 1532005 - Implement a new js/public/ArrayBuffer.h header to centralize functionality for creating and interacting with ArrayBuffers. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D21827

--HG--
extra : rebase_source : 833bbfce12d90bcb92f7cd88ec65247e48c024c0
2019-03-04 15:19:16 -08:00
Razvan Maries
02d5932d51 Backed out changeset 9a345448aaa1 (bug 1532005) for causing perma fails and Spidermonkey fails. CLOSED TREE 2019-03-05 01:08:44 +02:00
Razvan Maries
65e4948ca0 Backed out 4 changesets (bug 1532005, bug 1531638) for causing perma fails and Spidermonkey fail. CLOSED TREE
Backed out changeset 4913d941de92 (bug 1532005)
Backed out changeset 9635abe5bf24 (bug 1532005)
Backed out changeset 738cf4b1126a (bug 1532005)
Backed out changeset e5d9f2ee7ac7 (bug 1531638)
2019-03-05 01:07:28 +02:00
Jeff Walden
c2cbf926cb Bug 1532005 - Adjust the names of two other functions somehow inexplicably missed in prior renaming. r=i-was-saying-boo-urns 2019-03-04 14:41:24 -08:00
Jeff Walden
3b2f22a772 Bug 1532005 - Don't prefix GetArrayBufferLengthAndData with JS:: in typedarray.rs, because the macro it's passed to wants ident, not expr. r=boo-urns
--HG--
extra : rebase_source : 58feb5561de0f941028de35262eb341d1927eae7
2019-03-04 14:08:24 -08:00
Ciure Andrei
5ebab45abd Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-03-04 23:54:12 +02:00
Jeff Walden
b7ac200b5d Bug 1532005 - Update the SpiderMonkey Rust bindings for the new ArrayBuffer.h header. r=bustage 2019-03-04 13:41:03 -08:00
Steve Fink
220bd79b56 Bug 1528794 - Check clone buffer contents at runtime r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D21817

--HG--
extra : moz-landing-system : lando
2019-03-04 18:28:20 +00:00
Jan de Mooij
4d43e22cec Bug 1527148 part 1 - Fix an Ion polymorphic inlining issue. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D21540

--HG--
extra : moz-landing-system : lando
2019-03-01 22:17:41 +00:00
Tom Schuster
87e0946053 Bug 1531788 - Use Value::type in js::GetProperty. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D21708

--HG--
extra : moz-landing-system : lando
2019-03-04 09:28:00 +00:00
Sean Stangl
1a695b31cd Bug 1529034 - Just punt on auto-regress/bug1263857.js. r=nbp
Disable auto-regress/bug1263857.js, leaving it for follow-up work.

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

--HG--
extra : moz-landing-system : lando
2019-03-05 14:41:40 +00:00
Ashley Hauck
6efac32ac8 Bug 1530832 - Refactor classDefinition and replace Maybe::reset() with a block. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D21270

--HG--
extra : moz-landing-system : lando
2019-03-05 13:42:29 +00:00
Jan de Mooij
fb76b1c7da Bug 1530937 part 6 - Convert remaining callVMs in BaselineCompiler.cpp. r=nbp
Also removes the old callVM overload so new code in BaselineCompiler must use
the new mechanism.

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

--HG--
extra : moz-landing-system : lando
2019-03-05 13:47:36 +00:00
Jan de Mooij
41f87a9067 Bug 1530937 part 5 - Convert more callVMs in BaselineCompiler. r=nbp
We had multiple overloads for js::Throw so I renamed the one we call here
for JSOP_THROW to js::ThrowOperation.

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

--HG--
extra : moz-landing-system : lando
2019-03-05 11:22:46 +00:00
arthur.iakab
28ec31dd6f Backed out changeset f5a2a974495b (bug 1530832) by request of khyperia CLOSED TREE 2019-03-05 16:12:48 +02:00
Ashley Hauck
ced38572c6 Bug 1530832 - Refactor classDefinition and replace Maybe::reset() with a block. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D21270

--HG--
extra : moz-landing-system : lando
2019-03-05 13:23:21 +00:00