Commit Graph

70984 Commits

Author SHA1 Message Date
Tooru Fujisawa
d981862102 Bug 1551489 - Part 3: Support { format: "context" } in parseBin shell built-in. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D31059

--HG--
extra : moz-landing-system : lando
2019-05-20 10:41:00 +00:00
Tooru Fujisawa
c51601c9c0 Bug 1551489 - Part 2: Instantiate BinASTParser<BinASTTokenReaderContext>. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D31058

--HG--
extra : moz-landing-system : lando
2019-05-20 10:40:42 +00:00
Tooru Fujisawa
e3b85ebbb9 Bug 1551489 - Part 1: Fix BinAST build script to invoke mach clang-format properly. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D31057

--HG--
extra : moz-landing-system : lando
2019-05-20 10:40:21 +00:00
Tooru Fujisawa
7a073706d3 Bug 1551509 - Make BinASTTokenReaderBase::{readConst,matchConst} accept char>=0x80. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D31055

--HG--
extra : moz-landing-system : lando
2019-05-20 10:40:03 +00:00
Tooru Fujisawa
eb742449ca Bug 1551501 - Fix BinASTTokenReaderContext::readVarU32 to match encoder. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D31054

--HG--
extra : moz-landing-system : lando
2019-05-20 10:39:45 +00:00
Tooru Fujisawa
e5a6a8ae9a Bug 1551470 - Add Context parameter to BinASTTokenReaderContext methods. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D31053

--HG--
extra : moz-landing-system : lando
2019-05-20 10:39:33 +00:00
Edgar Chen
e336502f67 Bug 1549351 - Promise rejection event should not be sent for cross-origin scripts; r=smaug,till
Differential Revision: https://phabricator.services.mozilla.com/D31565

--HG--
extra : moz-landing-system : lando
2019-05-19 01:18:04 +00:00
Dorel Luca
0ad8df273d Backed out 2 changesets (bug 1552229, bug 1547467) for causing build bustages. CLOSED TREE
Backed out changeset a8f5dec91d72 (bug 1552229)
Backed out changeset 6004e7f60bb6 (bug 1547467)

--HG--
extra : amend_source : 45537a3eef627d29fa248d1dcd164576bae1d85f
2019-05-21 00:32:14 +03:00
Ashley Hauck
75dc4381a5 Bug 1551454 - Don't name field initializer lambdas. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D31500

--HG--
extra : moz-landing-system : lando
2019-05-20 18:35:21 +00:00
Ashley Hauck
5b2a4e74f3 Bug 1552229 - Emit field keys in correct order. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D31495

--HG--
extra : moz-landing-system : lando
2019-05-20 18:36:33 +00:00
Ashley Hauck
1910d07e93 Bug 1547467 - Introduce another scope for .initializers, and remove .localInitializers. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D29907

--HG--
extra : moz-landing-system : lando
2019-05-20 18:38:03 +00:00
Brian Hackett
f828f39c0f Bug 1518308 - Include unaliased module scope variables in debug environments, r=jonco.
--HG--
extra : rebase_source : 56628c29b91f95b729e330999b28303fccce77f8
extra : histedit_source : b989d867dab8ef7909c98a8aa1f24372399db876
2019-05-15 07:14:28 -10:00
Brendan Dahl
543c10a1d2 Bug 1551320 - Replace all CreateElement calls in XUL documents with CreateXULElement. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D31295

--HG--
extra : moz-landing-system : lando
2019-05-20 16:50:28 +00:00
Gurzau Raul
e0cadccc1d Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-05-20 16:49:58 +03:00
Jon Coppeard
b485ece003 Bug 1552180 - Poison Arena's zone pointer on free r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D31494
2019-05-16 17:26:20 +01:00
Jon Coppeard
c4cef85c43 Bug 1552118 - Don't release foreground finalized arenas until the end of sweeping the zone group r=sfink
This releases all foreground finalized arenas at the end of sweeping the sweep group rather than at the end of sweeping the zone (for objects) or immediately (for everything else) as happens currently.  This simplifies the code in a couple of places and I don't think it will have any noticeable effects.

Differential Revision: https://phabricator.services.mozilla.com/D31415
2019-05-16 12:26:02 +01:00
Jon Coppeard
29b9b0dcd4 Bug 1551907 - Fix interaction between gray unmarking and weakmap marking r=sfink
We shouldn't allow a weak map to become gray after it has already been marked black.

Differential Revision: https://phabricator.services.mozilla.com/D31412
2019-05-16 11:40:09 +01:00
Jon Coppeard
6832b3f753 Bug 1551275 - Refactor jsapi weak map tests r=sfink
This removes a bunch of repeated code and hopefully makes it easier to see what we're testing.  When marking two things the same color this now checks both orders (e.g. key before map, map before key).  I removed individual test cases and generate all possiblities with for loops.  The expected marking state is determined by functions factored out from the verifier.

The tests for JS WeakMap and internal weakmaps are slightly different because I wanted to cover all existing test cases without making things too complicated.  This means we don't test marking the key and delegate different colors for the former.

Differential Revision: https://phabricator.services.mozilla.com/D30948
2019-05-13 19:08:10 +01:00
Jeff Walden
8b511ad882 Bug 1552977 - Use non-inflating UTF-8 compilation in various C++ testing contexts. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31882

--HG--
extra : moz-landing-system : lando
2019-05-21 01:32:02 +00:00
Jeff Walden
38ead4474b Bug 1552977 - Add JS::EvaluateUtf8PathDontInflate that doesn't inflate UTF-8 file contents to UTF-16 before evaluating them. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31881

--HG--
extra : moz-landing-system : lando
2019-05-21 01:31:53 +00:00
Jeff Walden
bf9676ac23 Bug 1552977 - Add JS::CompileUtf8PathDontInflate with clear non-inflating nature and make existing JS::CompileUtf8Path callers inflate again. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31880

--HG--
extra : moz-landing-system : lando
2019-05-21 01:31:33 +00:00
Sylvestre Ledru
fb63889274 Bug 1552430 - Fix some typos using codespell trunk r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D31589

--HG--
extra : moz-landing-system : lando
2019-05-17 15:56:50 +00:00
thomasmo
5436d3561e Bug 1550757 - Create new DLL for sharing VR code r=kip
This change introduces a new dll, vrhost, to make it easier to share
VR code across multiple process.
An executable, vrtesthost, is also added for testing purposes to
validate the DLL loads in a minimal environment.

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

--HG--
extra : moz-landing-system : lando
2019-05-17 04:53:16 +00:00
Kagami Sascha Rosylight
1cf88b074c Bug 1551893: Require strict zero-pad for time element if T exists r=arai
Make T as a strictness marker for ISO8601 time element, as it already does for the date element.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 18:02:58 +00:00
Jeff Walden
9c0ef78bad Bug 1551916 - Add a boolean to every chunk for a long-line vector indicating whether that chunk contains any multiple-unit code points, so that column computations inside wholly-single-unit chunks can do a constant-time pointer-range computation... r=arai
...and avoid iterating at all.  r=arai

Depends on D31302

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

--HG--
extra : moz-landing-system : lando
2019-05-17 03:21:06 +00:00
Jeff Walden
d18c7116eb Bug 1551916 - Optimize column-number computations for offsets more than |ColumnChunkLength = 128| code units into a line by saving column information at 128-unit increments (rounded down to the nearest code point start) so that at most (length of... r=arai
...longest code point encoding - 1) + ColumnChunkLength - 1 units must be observed when computing a column number.  r=arai

Depends on D31301

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

--HG--
extra : moz-landing-system : lando
2019-05-17 03:21:04 +00:00
Jeff Walden
069de399d8 Bug 1551916 - Make JS_COLUMN_DIMENSION_IS_CODE_POINTS a no-argument macro function so that calling it before its definition is an error, and move it upward in TokenStream.h so it's defined in places where subsequent changes will need it. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31301

--HG--
extra : moz-landing-system : lando
2019-05-17 03:21:02 +00:00
Jeff Walden
39cf0106b2 Bug 1551916 - Remove |TokenStreamAnyChars::undoInternalUpdateLineInfoForEOL| as unused. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31300

--HG--
extra : moz-landing-system : lando
2019-05-17 03:20:58 +00:00
Ashley Hauck
52555469e6 Bug 1552022 - Pass through arguments in synthesized constructors for derived classes. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D31507

--HG--
extra : moz-landing-system : lando
2019-05-16 20:54:39 +00:00
Csoregi Natalia
60874606d0 Merge mozilla-central to autoland. CLOSED TREE 2019-05-17 00:58:59 +03:00
Csoregi Natalia
8ef3142853 Merge inbound to mozilla-central. a=merge 2019-05-17 00:55:45 +03:00
Jonas Allmann
50275c5d2b Bug 1549326 - Remove simpletest.js from eval()-whitelist, r=ckerschb
Amend several test files for triggering eval() assertion through simpletest.js

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

--HG--
extra : moz-landing-system : lando
2019-05-16 13:44:36 +00:00
Steve Fink
a1d296ed9f Bug 1549565 - Avoid firing unmark gray read barriers during iterations where no Cell pointers escape. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D30103

--HG--
extra : moz-landing-system : lando
2019-05-16 17:19:33 +00:00
Tom Schuster
987553489a Bug 1548759 - Always clear exception after PrintError. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D31083

--HG--
extra : moz-landing-system : lando
2019-05-14 17:58:21 +00:00
Brian Hackett
a231842bb7 Bug 1547084 Part 1 - Remove recordReplayDirective interface and uses, r=mccr8.
--HG--
extra : rebase_source : 9fcddba95a4759fe6eb1222199ad8eeaaba2e146
2019-05-12 13:09:55 -10:00
Jan de Mooij
3542b77c41 Bug 1541404 part 34 - Fix BaselineDebugModeOSR to also recompile interpreter frames. r=tcampbell
This matches what we do for C++-interpreter frames in CollectInterpreterStackScripts and
SkipInterpreterFrameEntries. It's necessary for Interpreter => JIT OSR to work correctly.

This fixes remaining jit-test failures with --blinterp-eager

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

--HG--
extra : moz-landing-system : lando
2019-05-16 08:56:53 +00:00
Andy Wingo
fe1a14680c Bug 1551128 - Limit result bit length in BigInt.asUintN on negative values r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D30874

--HG--
extra : moz-landing-system : lando
2019-05-16 07:39:14 +00:00
Jan de Mooij
eec808b0b7 Bug 1541404 part 33 - Implement emitArgumentTypeChecks. r=djvj
Differential Revision: https://phabricator.services.mozilla.com/D31039

--HG--
extra : moz-landing-system : lando
2019-05-15 14:25:19 +00:00
Jan de Mooij
0232d57d94 Bug 1541404 part 31 - Fix record/replay instrumentation. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D31036

--HG--
extra : moz-landing-system : lando
2019-05-15 14:25:19 +00:00
Jan de Mooij
9827d7d5c7 Bug 1541404 part 30 - Fix some debugger issues. r=tcampbell
With this we pass all debugger jit-tests.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 14:24:26 +00:00
Kagami Sascha Rosylight
d0af199f76 Bug 1550949: Disallow time-only version of ISO8601 r=arai
ES5.1 removed time-only format T00:00:00 and no other browsers support it. So this diff removes the support from gecko.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 14:03:54 +00:00
Jan de Mooij
d411f2814c Bug 1551140 - Add code coverage instrumentation to Baseline Interpreter. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D30877

--HG--
extra : moz-landing-system : lando
2019-05-15 06:50:13 +00:00
Jan de Mooij
9bc56c26d2 Bug 1541404 part 29 - Perform arguments analysis when creating the TypeScript. r=tcampbell
The code in NewArgumentsObject was wrong because the interpreter code calling it
also relies on the analysis having been performed.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 06:36:39 +00:00
Jan de Mooij
e21ab3369d Bug 1541404 part 28 - Fix ARM issues. r=tcampbell
1. We can't use loadValue for JSOP_DOUBLE because on ARM that might use LDRD or
   LDM and these are not guaranteed to support unaligned loads. Fix is to add
   loadUnalignedValue that always uses plain 32-bit loads.

2. DebugTrapHandler's fast path for the interpreter used "lr" as second scratch
   register, clobbering the return address. The setSecondScratchRegister mechanism
   prevents this.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 07:42:50 +00:00
Jan de Mooij
dc3e91574f Bug 1541404 part 27 - Implement emitInterpreterLoop. r=djvj
This is a basic threaded interpreter design. Performance is pretty good but we
can optimize it more in the future when everything else is in place.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 07:42:50 +00:00
Bogdan Tara
11cfa0462a Backed out changeset af0fd51dc41a (bug 1550757) for vrhost related mingw bustages CLOSED TREE 2019-05-15 08:28:00 +03:00
thomasmo
67eb9799f5 Bug 1550757 - Create new DLL for sharing VR code r=kip
This change introduces a new dll, vrhost, to make it easier to share
VR code across multiple process.
An executable, vrtesthost, is also added for testing purposes to
validate the DLL loads in a minimal environment.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 18:07:26 +00:00
Ryan VanderMeulen
8f5477d25e Bug 1313741 - Use AppConstants in DOM and XPConnect tests instead of manual detection. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D30973

--HG--
extra : moz-landing-system : lando
2019-05-14 21:01:05 +00:00
Narcis Beleuzu
3e08d898d0 Backed out changeset bfa4ce8a0ef6 (bug 1551339) for bustages on vixl/MozAssembler-vixl.cpp . CLOSED TREE 2019-05-14 23:58:26 +03:00
Sean Stangl
a59e6c161c Bug 1551339 - Update VIXL to recent Utils and Globals files. r=nbp
This is preliminary work to allowing encoding of JSCVTFP, the instruction that exists on new AArch64 devices that greatly speeds up websites that use floating-point math.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 16:16:20 +00:00
Mihai Alexandru Michis
d3fb62a0c3 Backed out 2 changesets (bug 1541404) for causing leaks at AnalyzeArgumentsUsage
Backed out changeset c4b0bd61050b (bug 1541404)
Backed out changeset 760cc10c63b0 (bug 1541404)

--HG--
extra : rebase_source : 3091181fa6591dc2e6706d0bd0358e67490088d2
2019-05-14 16:00:32 +03:00
Jan de Mooij
9abd541255 Bug 1541404 part 29 - Perform arguments analysis when creating the TypeScript. r=tcampbell
The code in NewArgumentsObject was wrong because the interpreter code calling it
also relies on the analysis having been performed.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 10:36:17 +00:00
Jan de Mooij
cae8345750 Bug 1541404 part 28 - Fix ARM issues. r=tcampbell
1. We can't use loadValue for JSOP_DOUBLE because on ARM that might use LDRD or
   LDM and these are not guaranteed to support unaligned loads. Fix is to add
   loadUnalignedValue that always uses plain 32-bit loads.

2. DebugTrapHandler's fast path for the interpreter used "lr" as second scratch
   register, clobbering the return address. The setSecondScratchRegister mechanism
   prevents this.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 10:36:17 +00:00
Andreea Pavel
ce824f4a16 Merge mozilla-central to autoland on a CLOSED TREE 2019-05-14 07:17:06 +03:00
Andreea Pavel
4bf5812d4c Merge mozilla-inbound to mozilla-central. a=merge 2019-05-14 07:10:36 +03:00
Jim Blandy
21848cbbd2 Bug 1546727: Remove extraneous 'inline' keywords, and add where missing. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D29113

--HG--
extra : moz-landing-system : lando
2019-05-14 02:55:56 +00:00
Jim Blandy
88a0ac1f0e Bug 1546727: Make DebuggerFrame_getScript a static method of DebuggerFrame. r=jorendorff
This function probably predates the existence of the DebuggerFrame class, and
was never moved in.

Depends on D28785

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

--HG--
extra : moz-landing-system : lando
2019-05-14 02:55:22 +00:00
Denis Palmeiro
df482afef9 Bug 1550807 - Load the baselinescript into scratch1 before calling emitTraceLoggerResume r=jandem
Tracelogger is no longer functioning properly because of bad script event ids.  The baselinescript load into scratch1 was accidentally removed leading garbage script ids to be passed into emitTraceLoggerResume. This fix aims to simply reload the correct value back into scratch1 before calling tracelogger.

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

--HG--
extra : moz-landing-system : lando
2019-05-13 16:20:20 +00:00
Geoff Brown
167de4a58d Bug 1551226 - Run Android x86_64 7.0/debug mochitests; r=snorp
We can run /debug mochitests against geckoview for the cost of another dozen
or so test annotations. Both /opt and /debug mochitests are nearly worthy of
tier 1, but still waiting for bug 1534732.

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

--HG--
extra : moz-landing-system : lando
2019-05-13 20:52:36 +00:00
Boris Zbarsky
76cffb4a86 Bug 1551124. Add support for optional Array arguments in xpconnect. r=nika
The semantics are that you get an empty array if the argument is not supplied,
and if [optional_argc] is used it's set accordingly so you can tell whether you
were passed explicit [] or not passed anything.

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

--HG--
extra : moz-landing-system : lando
2019-05-13 19:51:57 +00:00
Jon Coppeard
6ff9c5c08a Bug 1464621 - Ensure we finish any ongoing incremental GC before collecting stats for memory reporting r=sfink?
Differential Revision: https://phabricator.services.mozilla.com/D30880

--HG--
extra : moz-landing-system : lando
2019-05-13 17:13:17 +00:00
Jon Coppeard
b18d3a806e Bug 1550924 - Fix race condition in memory tracking assertion r=sfink?
Fix possible race condition where an atomic field that may be concurrently modified is referenced twice in an assertion expression.

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

--HG--
extra : moz-landing-system : lando
2019-05-13 17:10:19 +00:00
Iain Ireland
fa6db29146 Bug 1548611: Update RNewArray::recover to match CodeGenerator::visitNewArrayCallVM r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D30393

--HG--
extra : moz-landing-system : lando
2019-05-10 09:59:50 +00:00
Jim Blandy
fdab7786dc Bug 1546727: Make DebuggerFrame_requireLive and DebuggerFrame_checkThis member functions of DebuggerFrame. r=jorendorff
These function probably predate the existence of the DebuggerFrame class, and
were never moved in.

Depends on D28784

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

--HG--
extra : moz-landing-system : lando
2019-05-08 07:06:42 +00:00
Jim Blandy
31d57a4335 Bug 1546727: Make DebuggerFrame_maybeDecrementFrameScriptStepModeCount a method of DebuggerFrame. r=jorendorff
This function probably predates the existence of the DebuggerFrame class, and
was never moved in.

Depends on D28783

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

--HG--
extra : moz-landing-system : lando
2019-05-08 07:06:40 +00:00
Jim Blandy
30f53b9648 Bug 1546727: Make DebuggerFrame_trace and finalize static member functions of DebuggerFrame. r=jorendorff
SpiderMonkey standard practice for classes derived from JSObject defines
ClassOps hooks as static member functions.

Depends on D28782

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

--HG--
extra : moz-landing-system : lando
2019-05-08 07:06:38 +00:00
Tooru Fujisawa
e21d6f4a03 Bug 1549953 - Add BinASTTokenReaderContext without implementation. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D30342

--HG--
extra : moz-landing-system : lando
2019-05-13 13:28:38 +00:00
Tooru Fujisawa
66e25f6243 Bug 1549340 - Part 2: Use union instead of reinterpret_cast to initialize const char* with symbol for JSPropertySpec.name. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D30493

--HG--
extra : moz-landing-system : lando
2019-05-13 10:26:48 +00:00
Jon Coppeard
dd05bccccd Bug 1542184 - Use PersistentRooted for rooting vectors of GC things from rust code r=fitzgen?
This replaces the use of heap-alloced Rooted with PersistentRooted which is safe wrt destruction order.

I had to add PersistentRooted and StackGCVector to OPAQUE_TYPES to make this work... I'm not really sure what this does.

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

--HG--
extra : moz-landing-system : lando
2019-05-10 17:36:34 +00:00
Coroiu Cristina
c139f7f6fe Backed out 5 changesets (bug 1546138) for bustage at js/src/jit-test/tests/wasm/funcref.js for upcoming beta
Backed out changeset 13e26dbd7cc7 (bug 1546138)
Backed out changeset edf39b4a6ec1 (bug 1546138)
Backed out changeset b60f1ed65b1a (bug 1546138)
Backed out changeset da9544b976b1 (bug 1546138)
Backed out changeset 77be2a536573 (bug 1546138)

--HG--
extra : rebase_source : 7469677612ed4684d340da11776e8e412dd4995b
2019-05-13 08:38:11 +03:00
Jeff Walden
cf27ea3740 Bug 1550616 - Don't #include EitherParser.h in BytecodeCompilation.h when a simple forward-declaration will do. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D30579

--HG--
extra : moz-landing-system : lando
2019-05-12 22:15:51 +00:00
Jeff Walden
8196e85e16 Bug 1550616 - Move ModuleBuilder into its own header so that module object-related data structures don't depend on EitherParser.h (and therefore all of parsing and tokenizing). r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D30578

--HG--
rename : js/src/builtin/ModuleObject.h => js/src/vm/ModuleBuilder.h
extra : moz-landing-system : lando
2019-05-12 22:15:49 +00:00
Jeff Walden
bc6017efb3 Bug 1550616 - Move Token-related types to a new frontend/Token.h header so needing something like TokenPos doesn't demand a dependency on TokenStream.h. (ParseNode.h is a notable instance of this.) r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D30577

--HG--
rename : js/src/frontend/TokenStream.h => js/src/frontend/Token.h
extra : moz-landing-system : lando
2019-05-12 22:15:47 +00:00
Jeff Walden
1fd3b365cb Bug 1550616 - Make SharedContext.h not #include TokenStream.h now that it doesn't depend on it. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D30576

--HG--
extra : moz-landing-system : lando
2019-05-12 22:14:29 +00:00
Jeff Walden
44a17d854c Bug 1550616 - Make FunctionBox::setEnd take the actual uint32_t end, not TokenStreamAnyChars&, and add ParserBase::setFunctionEndFromCurrentToken that calls it passing the correct value, to eliminate another SharedContext.h dependency on... r=tcampbell
...TokenStream.h.  r=tcampbell

Depends on D30574

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

--HG--
extra : moz-landing-system : lando
2019-05-12 22:14:11 +00:00
Jeff Walden
655d6e356a Bug 1550616 - Move GeneralTokenStreamChars::setFunctionStart to GeneralParser::setFunctionStartAtCurrentToken in Parser.cpp, eliminating one reason SharedContext.h depends on TokenStream.h. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D30574

--HG--
extra : moz-landing-system : lando
2019-05-12 22:13:53 +00:00
Kagami Sascha Rosylight
47625af531 Bug 1500748 - Require standard compliance when a time part exists r=arai
Differential Revision: https://phabricator.services.mozilla.com/D30761

--HG--
extra : moz-landing-system : lando
2019-05-12 10:23:14 +00:00
Noemi Erli
900e1d1a0e Backed out 6 changesets (bug 1550616) for causing build bustages in MacroAssembler-arm64.h
Backed out changeset f1a3220fc10b (bug 1550616)
Backed out changeset b435e9bb58cc (bug 1550616)
Backed out changeset 1b35028d64e4 (bug 1550616)
Backed out changeset 5fd47cd91b82 (bug 1550616)
Backed out changeset 59f2744f50c5 (bug 1550616)
Backed out changeset dc57399bbbe3 (bug 1550616)
2019-05-12 05:09:23 +03:00
Jeff Walden
a1ec048c2b Bug 1550616 - Don't #include EitherParser.h in BytecodeCompilation.h when a simple forward-declaration will do. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D30579

--HG--
extra : moz-landing-system : lando
2019-05-12 01:39:24 +00:00
Jeff Walden
646492945b Bug 1550616 - Move ModuleBuilder into its own header so that module object-related data structures don't depend on EitherParser.h (and therefore all of parsing and tokenizing). r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D30578

--HG--
rename : js/src/builtin/ModuleObject.h => js/src/vm/ModuleBuilder.h
extra : moz-landing-system : lando
2019-05-12 01:39:15 +00:00
Jeff Walden
255be22c2a Bug 1550616 - Move Token-related types to a new frontend/Token.h header so needing something like TokenPos doesn't demand a dependency on TokenStream.h. (ParseNode.h is a notable instance of this.) r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D30577

--HG--
rename : js/src/frontend/TokenStream.h => js/src/frontend/Token.h
extra : moz-landing-system : lando
2019-05-12 01:38:54 +00:00
Jeff Walden
c162440a04 Bug 1550616 - Make SharedContext.h not #include TokenStream.h now that it doesn't depend on it. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D30576

--HG--
extra : moz-landing-system : lando
2019-05-12 01:38:40 +00:00
Jeff Walden
8c3bcd64f2 Bug 1550616 - Make FunctionBox::setEnd take the actual uint32_t end, not TokenStreamAnyChars&, and add ParserBase::setFunctionEndFromCurrentToken that calls it passing the correct value, to eliminate another SharedContext.h dependency on... r=tcampbell
...TokenStream.h.  r=tcampbell

Depends on D30574

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

--HG--
extra : moz-landing-system : lando
2019-05-12 01:38:24 +00:00
Jeff Walden
04812304af Bug 1550616 - Move GeneralTokenStreamChars::setFunctionStart to GeneralParser::setFunctionStartAtCurrentToken in Parser.cpp, eliminating one reason SharedContext.h depends on TokenStream.h. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D30574

--HG--
extra : moz-landing-system : lando
2019-05-12 01:38:06 +00:00
Razvan Maries
6d2cd4ea8b Merge mozilla-inbound to mozilla-central a=merge 2019-05-11 12:28:35 +03:00
Jim Blandy
e22c732ca4 Bug 1451268: RematerializedFrames may not be cached, even when younger frames are. r=jorendorff
If the Debugger API tries to inspect or modify an IonMonkey frame, much of
the information it expects to find in a frame is missing: function calls
may have been inlined, variables may have been optimized out, and so on. So
when this happens, SpiderMonkey builds one or more Rematerialized frames
from the IonMonkey frame, using metadata built by Ion to reconstruct the
missing parts. The Rematerialized frames are now the authority on the state
of those frames, and the Ion frame is ignored: stack iterators ignore the
Ion frame, producing the Rematerialized frames in their stead; and when
control returns to the Ion frame, we pop it, rebuild Baseline frames from
the Rematerialized frames, and resume execution in Baseline.

Thus, Rematerialized frames are always created with their
hasCachedSavedFrame bits clear: although there may be extant SavedFrames
built from the original IonMonkey frame, the Rematerialized frames will not
have cache entries for them until they are traversed in a capture themselves.

This means that, oddly, it is not always true that, once we reach a frame
with its hasCachedSavedFrame bit set, all its parents will have the bit set
as well. However, clear bits under younger set bits will only occur on
Rematerialized frames.

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

--HG--
extra : moz-landing-system : lando
2019-05-11 02:17:04 +00:00
Jeff Walden
353b248b45 Bug 1548729 - Move SourceHook-related functionality into its own public header for reduced dependencies. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D29781

--HG--
rename : js/src/jsfriendapi.h => js/public/experimental/SourceHook.h
rename : js/src/jsfriendapi.cpp => js/src/vm/SourceHook.cpp
extra : moz-landing-system : lando
2019-05-10 23:38:56 +00:00
Coroiu Cristina
d2d1ba5805 Backed out changeset 45ff6c2d30e5 (bug 1548729) for SpiderMonkey failure at build/src/js/src/vm/SourceHook.cpp 2019-05-11 02:15:15 +03:00
Jeff Walden
684ce81117 Bug 1548729 - Move SourceHook-related functionality into its own public header for reduced dependencies. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D29781

--HG--
rename : js/src/jsfriendapi.h => js/public/experimental/SourceHook.h
rename : js/src/jsfriendapi.cpp => js/src/vm/SourceHook.cpp
extra : moz-landing-system : lando
2019-05-10 22:42:27 +00:00
Daniel Varga
84647fc525 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-05-11 00:53:46 +03:00
Daniel Varga
bfc993c71e Merge mozilla-inbound to mozilla-central. a=merge 2019-05-11 00:48:13 +03:00
Jeff Walden
d33e37d1c6 Bug 1549758 - Revert column-number counts to counts of code units for release-or-beta, pending perf considerations in column-number counting being fixed. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D30717

--HG--
extra : moz-landing-system : lando
2019-05-10 21:32:31 +00:00
Daniel Varga
860854d157 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-05-11 00:51:51 +03:00
Jon Coppeard
b5c54bbc69 Bug 1550734 - Clarify the purpose and implementation of FreeOp::freeLater r=sfink DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D30667
2019-05-10 17:47:39 +01:00
Jon Coppeard
34abf9ea7c Bug 1395509 - Track malloc memory associated with strings r=jandem
This adds memory tracking for string contents while leaving the current scheme in place for the time being.

Differential Revision: https://phabricator.services.mozilla.com/D30517
2019-05-09 16:23:52 +01:00
Jon Coppeard
615ae8a035 Bug 1395509 - Track malloc memory associated with array buffers r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D30516
2019-05-09 16:15:28 +01:00
Jon Coppeard
0a4878d01f Bug 1395509 - Add FreeOp methods free memory and update memory accounting r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D30515
2019-05-09 13:19:35 +01:00
Jon Coppeard
c88dcc846e Bug 1395509 - Add APIs to track internal memory assocated with GC things r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D30514
2019-05-09 13:13:09 +01:00
Ashley Hauck
881711d67c Bug 1550628 - Correctly handle OOM. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D30597

--HG--
extra : moz-landing-system : lando
2019-05-10 01:08:35 +00:00
Brindusan Cristian
7f7d7f6a70 Backed out changeset e925cef1cadf (bug 1549326) for mochitest assertion failures at nsContentSecurityManager.cpp:205. CLOSED TREE 2019-05-09 21:05:40 +03:00