Commit Graph

68775 Commits

Author SHA1 Message Date
Jan de Mooij
88fc8a5784 Bug 1284719 part 2 - Fold EmitSection into BytecodeEmitter, remove prologue/main split. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D16948

--HG--
extra : moz-landing-system : lando
2019-01-18 13:15:27 +00:00
Jan de Mooij
84699eccac Bug 1284719 part 1 - Emit hoisted top-level functions directly in the prologue, remove switchToPrologue. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D16947

--HG--
extra : moz-landing-system : lando
2019-01-18 13:14:58 +00:00
Margareta Eliza Balazs
07ff0e85e0 Backed out 4 changesets (bug 1495611) for spidermonkey bustages in js/src/jit-test/tests/binast/lazy/bug1323854-2.binjs CLOSED TREE
Backed out changeset 69d19e1214f7 (bug 1495611)
Backed out changeset a5e61a18508d (bug 1495611)
Backed out changeset 0baeacb1800b (bug 1495611)
Backed out changeset da5caa27480c (bug 1495611)
2019-01-18 14:21:00 +02:00
Margareta Eliza Balazs
0ba2ee586d Backed out changeset 92c56dcf69b8 (bug 1512949) for mochitest failures setup | Login to delete is defined: login0 - false == true - got false, expected true (operator ==) CLOSED TREE 2019-01-18 14:19:05 +02:00
Tooru Fujisawa
d4fcf84025 Bug 1495611 - Part 4: Do not run binast/lazy and binast/nonlazy on windows. r=Yoric
Depends on D16810

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

--HG--
extra : moz-landing-system : lando
2019-01-18 10:27:42 +00:00
Tooru Fujisawa
f4183591ee Bug 1495611 - Part 3: Add jit-tests in BinAST format. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D16810

--HG--
extra : moz-landing-system : lando
2019-01-18 10:30:39 +00:00
Tooru Fujisawa
6f05744ee5 Bug 1495611 - Part 2: Apply cgc-jittest-timeouts.txt to binast directory. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D16809

--HG--
extra : moz-landing-system : lando
2019-01-18 04:55:05 +00:00
Tooru Fujisawa
2343d8ceeb Bug 1495611 - Part 1: Add script to encode jit-tests into BinAST files. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D16808

--HG--
extra : moz-landing-system : lando
2019-01-18 10:30:06 +00:00
vinoth
5d09ad138e Bug 1512949 - Remove eval from tests and flip assertion flag r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D14054

--HG--
extra : moz-landing-system : lando
2019-01-15 13:11:19 +00:00
Margareta Eliza Balazs
ec14417cc3 Merge inbound to mozilla-central. a=merge 2019-01-18 11:40:07 +02:00
Paul Bone
7cace07078 Bug 1517409 - (part 4) Add a postCapacity measurement r=jonco
Alternative version of part 4 which does not add new telemetry.

--HG--
extra : rebase_source : fa733a8d1394e1eca4c9f43e0c8ee1c250e736a3
extra : histedit_source : fa838e0cdbaf9c287a9997a2d85f2aa773920987%2Ccbc0208c43057dc5f8424281d90a08d9265d9fbe
2019-01-17 16:29:10 +11:00
Jim Blandy
1c20a968ad Bug 1516514: Clear the hasCachedSavedFrame bit on frames on compartment mismatch. r=jorendorff
The code that manages the LiveSavedFrameCache would very much like to assert
that, if a frame has its hasCachedSavedFrame bit set, then it actually does have
an entry in the LiveSavedFrameCache. However, in the presence of compartment
mismatches, this becomes temporarily untrue, and OOMs can make 'temporarily'
longer than expected.

This patch more aggressively clears frames' hasCachedSavedFrame bits, so that
when we do purge the cache for a compartment mismatch, all frames get their bits
cleared before we start repopulating the cache.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 21:09:04 +00:00
Paul Bone
01b779d015 Bug 1517409 - (part 3) Rename Statustics::preBytes to preHeapSize r=jonco
--HG--
extra : rebase_source : 5d6c7afe2da4d10b34ed4198e3ac6d7c5149a7ff
2019-01-15 11:44:48 +11:00
Jan de Mooij
3f26f36af5 Bug 1518440 - Use CheckedInt in JSON Quote function. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D16534

--HG--
extra : moz-landing-system : lando
2019-01-17 18:24:49 +00:00
Robin Templeton
cd03c62743 bug 1508521 - Introduce new increment and decrement operations. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D12378

--HG--
extra : moz-landing-system : lando
2019-01-17 08:09:57 +00:00
Robin Templeton
3e22061d0b Bug 1520370 - Fix BigInt literal matching in Reflect.parse tests. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D16641

--HG--
extra : moz-landing-system : lando
2019-01-17 08:08:00 +00:00
Mike Hommey
1aeaa7d4ef Bug 1520730 - Normalize the config log path before writing it in old-configure. r=froydnj
Add a dummy change to old-configure.in so that old-configure is
force-refreshed.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 13:54:41 +00:00
Jan de Mooij
ed23e847c7 Bug 1519880 part 2 - Split Baseline's FrameInfo class in CompilerFrameInfo and InterpreterFrameInfo. r=djvj
InterpreterFrameInfo is just a very simple interface on top of masm.
CompilerFrameInfo maintains the virtual stack based on the script it's
compiling.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 12:19:06 +00:00
Jan de Mooij
4d6a88776b Bug 1519880 part 1 - Stop exposing StackValue* to BaselineCodeGen. r=djvj
The interpreter won't use the virtual stack and StackValue, so we need to
refactor things a bit so we don't call frame.peek(x) outside the FrameInfo class.

StackValue will be just an implementation detail of CompilerFrameInfo in the
next patch.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 12:18:35 +00:00
Tooru Fujisawa
da5a4f2d3d Bug 1520353 - Detect lexical variable earlier in BinAST. r=Yoric
We're not handling lexical variable in BinAST parser for now, and
it results in unhelpful error at the first reference.
Detecting the lexical variable at declaration and throw more helpful error.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 11:47:36 +00:00
Tooru Fujisawa
09c57019ae Bug 1520392 - Part 5: Skip slow jit-test which depends on helper threads if helper threads are not available. r=jandem
Depends on D16814

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

--HG--
extra : moz-landing-system : lando
2019-01-17 11:46:24 +00:00
Tooru Fujisawa
c729faf00a Bug 1520392 - Part 4: Pass {newCompartment: true} to newGlobal in slow jit-test. r=jandem
Depends on D16813

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

--HG--
extra : moz-landing-system : lando
2019-01-17 11:44:28 +00:00
Tooru Fujisawa
b8be3eed2f Bug 1520392 - Part 3: Add missing error cookie to slow jit-test. r=jandem
Depends on D16812

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

--HG--
extra : moz-landing-system : lando
2019-01-17 11:43:19 +00:00
Tooru Fujisawa
2700d1c995 Bug 1520392 - Part 2: Fix cookie in slow jit-test. r=jandem
Depends on D16811

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

--HG--
extra : moz-landing-system : lando
2019-01-17 11:41:35 +00:00
Tooru Fujisawa
82fa216965 Bug 1520392 - Part 1: Remove expression closures from slow jit-tests. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D16811

--HG--
extra : moz-landing-system : lando
2019-01-17 11:41:12 +00:00
Jan de Mooij
34899a1658 Bug 1520536 - Handle same-compartment wrappers in TypedArrayObjectTemplate<T>::fromTypedArray. r=anba
Differential Revision: https://phabricator.services.mozilla.com/D16796

--HG--
extra : moz-landing-system : lando
2019-01-17 09:13:25 +00:00
Jan de Mooij
ace318a02f Bug 1519792 part 2 - Move pc field from BaselineCodeGen to BaselineCompilerHandler. r=djvj
JSOPs like JSOP_INT8 that depend on the pc need to be specialized now for the
interpreter. I added MOZ_CRASH versions of these that we can implement later.

This split is a bit pessimistic: we should actually (partially) share codegen
for some of these ops like JSOP_RESUME. However it's easier to revisit this
later when we need to implement these ops for the interpreter.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 09:20:15 +00:00
Jan de Mooij
aaf948fa2d Bug 1519792 part 1 - Move some BaselineCompiler methods to the end of the file. r=djvj
The next patch will template-specialize some of the emit_JSOP_FOO methods, but
the C++ compiler wants that to happen before we call these methods in emitBody.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 09:19:50 +00:00
Jan de Mooij
e987ef13a0 Bug 1519779 - Add some helper methods for pushing script/pc or script name/object/scope for VM calls in BaselineCodeGen. r=djvj
Interpreter and compiler will implement these differently, but this allows
sharing codegen for a large number of JSOps.

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

--HG--
extra : moz-landing-system : lando
2019-01-16 21:05:31 +00:00
arthur.iakab
48fa943d27 Merge inbound to mozilla-central a=merge 2019-01-17 06:21:08 +02:00
Mike Hommey
889bc79f27 Bug 1520394 - Don't invoke js subconfigure as a separate process. r=nalexander
Since js configure is also python configure, we can actually create
a ConfigureSandbox directly, with the right environment and arguments.

Depends on D16668

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

--HG--
extra : moz-landing-system : lando
2019-01-16 23:42:12 +00:00
Mike Hommey
a8676d74e4 Bug 1520377 - Inline subconfigure.prepare and simplify. r=nalexander
Depends on D16644

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

--HG--
extra : moz-landing-system : lando
2019-01-16 23:29:19 +00:00
Mike Hommey
4e2dcc2671 Bug 1520377 - Replace/Inline subconfigure.{prefix_lines,execute_and_prefix}. r=nalexander
Use an I/O wrapper on the configure output handler to add the "js/src>"
prefix.

Depends on D16643

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

--HG--
extra : moz-landing-system : lando
2019-01-16 21:44:54 +00:00
Mike Hommey
1384b22d3a Bug 1520377 - Inline subconfigure.run in js/sub.configure. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D16643

--HG--
extra : moz-landing-system : lando
2019-01-16 23:18:29 +00:00
Mike Hommey
9a8ac178e9 Bug 1520340 - Don't execute subconfigure as a separate process. r=froydnj
Instead, include the module and inline its main function.

Depends on D16622

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

--HG--
extra : moz-landing-system : lando
2019-01-16 15:21:27 +00:00
Mike Hommey
b5e5928355 Bug 1520340 - Move subconfigure invocation from old-configure to python configure. r=froydnj
This happens to remove the last use of perl from configure.

Depends on D16621

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

--HG--
extra : moz-landing-system : lando
2019-01-16 23:12:20 +00:00
Steve Fink
73f45b9504 Bug 1507322 - test deeply recursive weakmaps
Differential Revision: https://phabricator.services.mozilla.com/D16738

--HG--
extra : moz-landing-system : lando
2019-01-16 21:16:48 +00:00
Iain Ireland
d21cee0f2d Bug 1519700: Add testcase to jit-tests r=djvj
Differential Revision: https://phabricator.services.mozilla.com/D16512

--HG--
extra : moz-landing-system : lando
2019-01-16 19:02:05 +00:00
Steve Fink
88a5681d61 Bug 1519263 - Skip tsan tests that consume too much memory r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D16513

--HG--
extra : moz-landing-system : lando
2019-01-16 10:55:33 +00:00
Brian Hackett
491c3a9d73 Bug 1520343 - Pass through events when choosing random addresses for memory allocation, r=ehoogeveen.
--HG--
extra : rebase_source : f6a4610184c54a6cd1d1d6de4fb5057d58799976
2019-01-15 13:18:32 -10:00
Razvan Maries
3a732b5669 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-01-16 19:09:08 +02:00
Razvan Maries
4c67bec411 Merge mozilla-inbound to mozilla-central a=merge 2019-01-16 19:00:15 +02:00
Oana Pop Rus
bd4d528ac8 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-16 11:40:36 +02:00
Ciure Andrei
3e41a8bb1a Backed out changeset 1e7a80d93de5 (bug 1507322) for causing build bustages deep-weakmap.js CLOSED TREE 2019-01-16 17:41:31 +02:00
Nicolas B. Pierron
56a92557d7 Bug 1518565 - Flush the instruction cache when patching OSIPoints. r=sstangl 2019-01-16 16:27:06 +01:00
Steve Fink
31d7c7bb62 Bug 1507322 - Test deeply recursive weakmaps. r=jonco
--HG--
extra : rebase_source : 2ae763ae454a5138ae0cc0e11f42f6f2baa92731
2019-01-15 14:21:33 -08:00
Jan de Mooij
fb6b8ae778 Bug 1520129 - Remove redundant isSelfHostedBuiltin checks in GetFunctionThis / JSOP_FUNCTIONTHIS. r=anba
Differential Revision: https://phabricator.services.mozilla.com/D16536

--HG--
extra : moz-landing-system : lando
2019-01-16 09:14:38 +00:00
Sylvestre Ledru
47a5dd1fb8 Bug 1519636 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-01-16 08:50:07 +00:00
Jan de Mooij
7471918d94 Bug 1520189 - Remove the ToWindowProxyIfWindow call in LexicalEnvironmentObject::thisValue; handle this in js::SetWindowProxy instead. r=luke
This simplifies LexicalEnvironmentObject::thisValue so it's easier to inline in JIT code.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 20:33:13 +00:00
Jan de Mooij
bd0805832f Bug 1520093 - Make evalcx work with same-compartment realms. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D16530

--HG--
extra : moz-landing-system : lando
2019-01-15 20:03:43 +00:00