Commit Graph

67630 Commits

Author SHA1 Message Date
Margareta Eliza Balazs
86f56d08a0 Merge inbound to mozilla-central. a=merge 2018-11-01 11:12:55 +02:00
Ted Campbell
19dbe58e02 Bug 1485347 - Part 5: Use js::PrivateScriptData for JSScript. r=jandem
- This makes JSScript::data arrays read-only. Initialization code
 directly uses PrivateScriptData to mutate.

MozReview-Commit-ID: LJFc8QazLfq
2018-10-31 22:29:59 -04:00
Ted Campbell
1b0db8ce6d Bug 1485347 - Part 4: Add js::PrivateScriptData type. r=waldo
This will later be used to store variable length data that hangs off of
each JSScript. This primarily is a refactor of existing JSScript code to
put in its own data structure.

- ScopeArray and friends now store offsets instead of pointers. This
  saves memory on 64-bit platforms and simplifies cloning.
- GCPtr constructors are used instead of relying on pod_calloc. This
  fixes C++ object-model violations.
- A packed bitfield is used to locate optional array headers instead of
  previous daisy-chain approach. This also lets js::PrivateScriptData
  understand array layout without coupling to JSScript.
2018-10-31 22:29:59 -04:00
Ted Campbell
bb40dcbfc7 Bug 1489698 - Add moz.build for js/src/frontend. r=waldo,froydnj 2018-10-31 18:14:23 -04:00
Brindusan Cristian
3d5e6205ca Merge inbound to mozilla-central. a=merge 2018-10-31 23:41:40 +02:00
Jonathan Kingston
873b26107e Bug 1490257 - Add asserts into loadURI where we imply SystemPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10221

--HG--
extra : moz-landing-system : lando
2018-10-31 18:00:40 +00:00
Ashley Hauck
0262b6528c Bug 1487022 - Fix repeated bailouts when constant-folding a never-ran 1/0. r=tcampbell
Depends on D8446

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

--HG--
extra : moz-landing-system : lando
2018-10-31 17:31:03 +00:00
Ashley Hauck
cc606364e6 Bug 1487022 - Use MOZ_RELEASE_ASSERT for builtins that take int32 values. r=tcampbell
The arguments to the intrinsics here are not guaranteed to be int32s,
however, if a double enters the intrinsic, that's probably a bug in our
builtin javascript. Values should be converted to int32 before being
passed in, with `|0`.

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

--HG--
extra : moz-landing-system : lando
2018-10-31 17:28:41 +00:00
arthur.iakab
46a62df41a Merge mozilla-central to autoland 2018-10-31 18:35:03 +02:00
arthur.iakab
02a09260c5 Merge inbound to mozilla-central a=merge 2018-10-31 18:33:39 +02:00
Jason Orendorff
d507cb8c1f Bug 1499813 - Part 10: Change SetNewList return type to bool. r=tcampbell
Depends on D10086

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

--HG--
extra : moz-landing-system : lando
2018-10-31 14:50:48 +00:00
Jason Orendorff
bd8a0975dd Bug 1499813 - Part 9: Apply the unwrapped naming convention to algorithms in Streams spec section 3.8. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D10086

--HG--
extra : moz-landing-system : lando
2018-10-31 14:45:03 +00:00
Jon Coppeard
05fb548b6a Bug 1502946 - Tighten up some gray marking checks r=sfink 2018-10-31 13:32:37 +00:00
Jan de Mooij
b1689f020c Bug 1409441 part 1 - Inline ActivationEntryMonitor constructor/destructor. r=fitzgen 2018-10-31 10:31:14 +01:00
Jon Coppeard
89772807f3 Bug 1503009 - If dynamic module import is not supported its use should be rejected at parse time r=jorendorff 2018-10-31 12:45:24 +00:00
Jason Orendorff
c1358535c7 Bug 1499813 - Part 8: Change StreamFromReader to use UnwrapSlot. r=tcampbell
Depends on D9841

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

--HG--
extra : moz-landing-system : lando
2018-10-30 22:01:09 +00:00
Jason Orendorff
b714e51e15 Bug 1499813 - Part 7: Change ReaderFromStream to use UnwrapSlot. r=tcampbell
Depends on D9840

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

--HG--
extra : moz-landing-system : lando
2018-10-30 22:00:56 +00:00
Jason Orendorff
6d0c89a3b4 Bug 1499813 - Part 6: New template UnwrapSlot<T>() for reading a "statically typed" slot. Remove TeeState::stream() in favor of UnwrapSlot. r=tcampbell
Depends on D9839

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

--HG--
extra : moz-landing-system : lando
2018-10-30 22:00:52 +00:00
Jason Orendorff
5139577761 Bug 1499813 - Part 5: Update Streams spec section numbers in comments. r=tcampbell
Depends on D9837

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

--HG--
extra : moz-landing-system : lando
2018-10-30 22:00:48 +00:00
Jason Orendorff
934edc710b Bug 1499813 - Part 4: Remove _impl methods, replace with unwrapping. r=tcampbell
Depends on D9836

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

--HG--
extra : moz-landing-system : lando
2018-10-30 21:59:16 +00:00
Jason Orendorff
fd98b1b180 Bug 1499813 - Part 3: Replace some ToUnwrapped signatures with new js::UnwrapThis<T>() template. r=tcampbell
Depends on D9835

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

--HG--
extra : moz-landing-system : lando
2018-10-30 21:58:44 +00:00
Jason Orendorff
cc2589c333 Bug 1499813 - Part 2: JSObject::unwrapAs<T>() and canUnwrapAs<T>() methods. r=tcampbell
Depends on D9834

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

--HG--
extra : moz-landing-system : lando
2018-10-30 21:58:21 +00:00
Jason Orendorff
6ff7b405ea Bug 1499813 - Part 1: Remove an unused variable. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D9834

--HG--
extra : moz-landing-system : lando
2018-10-30 21:57:46 +00:00
Ciure Andrei
fdf5f2cda7 Merge inbound to mozilla-central. a=merge 2018-10-31 07:08:22 +02:00
Ciure Andrei
608de3193c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-31 00:14:49 +02:00
Ciure Andrei
499182b91a Merge inbound to mozilla-central. a=merge 2018-10-31 00:06:53 +02:00
Ciure Andrei
a2c4dad0d5 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-10-31 00:16:17 +02:00
David Major
274ff66356 Bug 1501269: Make EnsureIAndDCacheCoherency work on aarch64-windows. r=sstangl
Differential Revision: https://phabricator.services.mozilla.com/D9724

--HG--
rename : js/src/jit/arm64/vixl/Cpu-vixl.cpp => js/src/jit/arm64/vixl/MozCpu-vixl.cpp
extra : rebase_source : a95368cac4a995f7a47feb26d805d32bd010eae9
2018-10-30 17:29:40 -04:00
Ciure Andrei
60ea98ca60 Backed out 10 changesets (bug 1501044, bug 1472212) for fetch-destination.https.html perma failure CLOSED TREE
Backed out changeset aa35078cabaa (bug 1472212)
Backed out changeset bf02793f802d (bug 1472212)
Backed out changeset 95a7ef6102a6 (bug 1472212)
Backed out changeset 7b7fa6ab2229 (bug 1472212)
Backed out changeset 4fe4ec18f2f3 (bug 1472212)
Backed out changeset 18f824674b76 (bug 1472212)
Backed out changeset 1978a7837502 (bug 1472212)
Backed out changeset 21a6f1a83c73 (bug 1472212)
Backed out changeset 48242d39d532 (bug 1472212)
Backed out changeset 0b5cf2f4305a (bug 1501044)
2018-10-30 23:31:10 +02:00
Daniel Varga
6739963364 Backed out changeset 6a379f71dac8 (bug 1499125) for spidermonkey bustage at /builds/worker/workspace/build/src/js/src/builtin/Promise.cpp
--HG--
extra : rebase_source : 42eafff7bcb9e64d21d50ff3a89d7090df4abc5c
2018-10-30 17:29:51 +02:00
Ehsan Akhgari
11d5b2d27f Bug 1499125 - Remove the bogus assertion r=arai
Differential Revision: https://phabricator.services.mozilla.com/D10094

--HG--
extra : moz-landing-system : lando
2018-10-30 00:58:56 +00:00
Iain Ireland
9f7680409f Bug 1499607: Add OOM unsafe region while replenishing ballast after fallible allocation r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D10123

--HG--
extra : moz-landing-system : lando
2018-10-30 12:17:24 +00:00
Andrea Marchesini
d33f864af8 Bug 1503551 - Remove window.sidebar, r=smaug 2018-10-31 18:30:18 +01:00
shindli
ea6441668e Backed out 2 changesets (bug 1487022) for causing spidermonkey bustages in /builds/worker/workspace/build/src/js/src/jit-test/tests/wasm/memory.js CLOSED TREE
Backed out changeset 860712299944 (bug 1487022)
Backed out changeset 1cf53a430311 (bug 1487022)
2018-11-01 01:13:04 +02:00
Brindusan Cristian
41900a475a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-31 23:44:15 +02:00
Gabriele Svelto
266ef73c96 Bug 1503207 - Remove nsWeakPtr.h and cleanup all files including weak reference-related headers r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D10251

--HG--
extra : moz-landing-system : lando
2018-10-31 20:39:03 +00:00
Paul Bone
9125c90de6 Bug 1502819 - Fix formatting of Zeal mode enum r=jonco
--HG--
extra : rebase_source : 2897e0805e547dc9357e3305945dad4e0ca7b54e
2018-10-29 21:40:19 +11:00
Paul Bone
76d5dc3142 Bug 1502819 - Number the GC Reason and AbortReason enum items r=jonco
--HG--
extra : rebase_source : 78cc2806fb8abcaef15cb15e616280b6329bc01d
2018-10-29 21:23:57 +11:00
Csoregi Natalia
b48139f5dc Backed out changeset 916db80793cb (bug 1497784) for web platform tests failures on /_mozilla/binast/large.https.html. CLOSED TREE 2018-10-30 04:19:45 +02:00
Tooru Fujisawa
d499c4a6ad Bug 1497784 - Drop support for lexical declaration in BinAST for now. r=Yoric 2018-10-30 09:49:41 +09:00
Tooru Fujisawa
b5cfef2126 Bug 1501537 - Name function in variable declaration initializer in BinAST. r=Yoric 2018-10-30 09:49:40 +09:00
Tooru Fujisawa
3cec62da42 Bug 1497788 - Allow duplicate AssertedPositionalParameterName. r=efaust 2018-10-30 09:49:40 +09:00
Csoregi Natalia
cc313f779c Backed out 9 changesets (bug 1472212) for browser-chrome tests run issues on Linux x64 asan and failures on browser_ext_windows_create_tabId.js. CLOSED TREE
Backed out changeset 18e46df44cd1 (bug 1472212)
Backed out changeset 2e5de66c1f60 (bug 1472212)
Backed out changeset b94f9883aef0 (bug 1472212)
Backed out changeset ebdca743668c (bug 1472212)
Backed out changeset f8a06d01437e (bug 1472212)
Backed out changeset b6996abc7d90 (bug 1472212)
Backed out changeset 24c257cd18c3 (bug 1472212)
Backed out changeset 176f3ee14e67 (bug 1472212)
Backed out changeset b4baa63e5b1b (bug 1472212)
2018-10-30 01:58:21 +02:00
Yu Yin
15192e483d Bug 1503077 - Disable spectre mitigations by default on mips(64). r=jandem
--HG--
extra : rebase_source : 36de146a39304ad998020f068432cf4e7d9b909c
2018-10-30 02:45:00 +02:00
Jon Coppeard
929387ffd3 Bug 1502940 - Tidy up sweep actions that implement GC zeal modes r=sfink 2018-10-30 10:32:10 +00:00
Jon Coppeard
5a4892c5e0 Bug 1502669 - Check whether an exception is pending if dynamic module import hook fails r=jandem 2018-10-30 10:29:57 +00:00
Tom Schuster
3e3d914c39 Bug 1502966 - Print column number in FormatStackDump. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D10092

--HG--
extra : moz-landing-system : lando
2018-10-30 21:53:03 +00:00
Tom Schuster
0353466874 Bug 1502889 - Revert TypedArray [[Set]] to previous behavior if not receiver. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D10116

--HG--
extra : moz-landing-system : lando
2018-10-30 22:01:52 +00:00
Jason Orendorff
6a9ea162e6 Bug 1502963 - Quote jit_test.py --show-failed-cmd output. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D10091

--HG--
extra : moz-landing-system : lando
2018-10-30 21:49:29 +00:00
Ted Campbell
7deaf7bc04 Bug 1447372 - Cleanup LifoAlloc usage for BytecodeCompiler r=jorendorff
Make off-thread and main-thread parsing more consistent by using the
JSContext tempLifoAlloc always. This also makes BytecodeCompiler APIs
more consistent.

Remove BytecodeCompiler::alloc which was obscuring lifetimes and
conflicts of allocator.

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

--HG--
extra : moz-landing-system : lando
2018-10-30 19:23:25 +00:00