Commit Graph

70958 Commits

Author SHA1 Message Date
Ashley Hauck
6a02746c8b Bug 1553543 - Don't touch file if there are no changes. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D32168

--HG--
extra : moz-landing-system : lando
2019-05-22 16:32:20 +00:00
Denis Palmeiro
a559bca492 Bug 1553362 - Add empty spew inline functions for when tracelogger is disabled r=iain
The new trace logger spew routines do not have a corresponding empty inline version for when --disable-trace-logging is used.

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

--HG--
extra : moz-landing-system : lando
2019-05-22 15:59:05 +00:00
Steve Fink
dcfb7afeb3 Bug 1553039 - default MOZ_GCTIMER output dir to MOZ_UPLOAD_DIR r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D31962

--HG--
extra : moz-landing-system : lando
2019-05-21 21:26:09 +00:00
Boris Zbarsky
47341d0933 Bug 1553276. Don't enter the content compartment when calling a Web IDL legacycaller over Xrays. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D32047

--HG--
extra : moz-landing-system : lando
2019-05-21 19:49:18 +00:00
Ashley Hauck
25e8d18679 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-21 17:55:34 +00:00
Ashley Hauck
1b7568fdba 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-21 17:55:31 +00:00
Cosmin Sabou
7637a9982a Backed out changeset da42fc59d4fb (bug 1553039) for causing windows build bustages. 2019-05-21 20:28:34 +03:00
Steve Fink
2f66727254 Bug 1553039 - default MOZ_GCTIMER output dir to MOZ_UPLOAD_DIR r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D31962

--HG--
extra : moz-landing-system : lando
2019-05-21 16:53:05 +00:00
Denis Palmeiro
49502b1ffa Bug 1545091 - Spew tracelogger statistics with IONFLAGS=tracelogger r=iain,mstange
Add Jitspewing control for tracelogger data.  This can be enabled from the profiler or from the JS shell.  Usage is as follows:

From browser (ION_SPEW_FILENAME is recommended here so stdout doesn't get clobbered by each process):
  1.  JS_TRACE_LOGGING=1 IONFLAGS=tracelogger ION_SPEW_FILENAME=tracelogger ./mach run
  2.  Enable JSTracer feature in profiler addon
  3.  Start profiling and ctrl+shift+2 to view profile, and the data will be automatically spewed during profile collection.

From shell:
  1.  JS_TRACE_LOGGING=1 IONFLAGS=tracelogger dist/bin/js test.js
  2.  Data is automatically spewed to stdout when the shell exits, or use ION_SPEW_FILENAME.

There is an optional environment variable JS_TRACELOGGER_SPEW that can be used to emit specific events, for example JS_TRACELOGGER_SPEW="Interpreter,Baseline,GC" will emit only those specific events along with the script and self time of each script.

The structured spewer is also supported with SPEW=tracelogger, and this will emit the tracelogger data for every recorded event.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 15:25:32 +00:00
Jeff Walden
c08dac3312 Bug 1551916 - Flip column numbers back to being counts of code points and not code units. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31304

--HG--
extra : moz-landing-system : lando
2019-05-21 16:31:51 +00:00
Razvan Maries
9f162e29d0 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-05-21 19:36:25 +03:00
Andreea Pavel
a4546667a5 Backed out 2 changesets (bug 1551473, bug 1549954) win 2012 SM bustages on a CLOSED TREE
Backed out changeset aac842bf7f7b (bug 1551473)
Backed out changeset 2a4a5afa1ff2 (bug 1549954)
2019-05-21 19:30:36 +03:00
Razvan Maries
366383f783 Merge mozilla-inbound to mozilla-central a=merge 2019-05-21 19:29:01 +03:00
Jon Coppeard
0bbd4dc9f0 Bug 1549950 - Remove TraceWeakEdge and associated machinery and sweep weak pointers in lazy scripts explicitly r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D31804
2019-05-20 17:24:38 +01:00
Razvan Maries
fa4ff6f653 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-05-21 12:37:53 +03:00
Daniel Varga
f7e7132f8f Merge mozilla-central to mozilla-inbound 2019-05-21 07:22:34 +03:00
Daniel Varga
9c4661a44f Merge mozilla-central to mozilla-inbound. a=merge 2019-05-21 01:00:21 +03:00
Tooru Fujisawa
b41725bb4f Bug 1551473 - Provide utility methods to read brotli stream in BinASTTokenReaderContext. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D31212

--HG--
extra : moz-landing-system : lando
2019-05-21 15:34:30 +00:00
Tooru Fujisawa
706c8c7b08 Bug 1549954 - Link in-tree brotli library if BinAST is enabled. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D30476

--HG--
extra : moz-landing-system : lando
2019-05-21 15:09:03 +00:00
Andrew McCreight
d1648e5525 Bug 1552597, part 2 - Handlify RemapAllWrappersForObject. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D31689

--HG--
extra : moz-landing-system : lando
2019-05-20 08:40:01 +00:00
Andrew McCreight
2184a00342 Bug 1552597, part 1 - Fix comments in RemapWrapper to say rewrap instead of wrap. r=jonco
These calls were changed from wrap() to rewrap() in bug 1291001.

Also, fix a minor typo in xpcprivate.h, because I didn't feel like
filing a separate bug for it.

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

--HG--
extra : moz-landing-system : lando
2019-05-20 08:37:49 +00:00
Nicolas B. Pierron
d9f43206ff Bug 1550751 - Skip rounding the dividend of non-truncated integer division, as already handled by a bailout. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D30672

--HG--
extra : moz-landing-system : lando
2019-05-20 13:02:43 +00:00
Matthew Gaudet
44540b2a3a Bug 1552316 - Disconnect initWithEnclosingScope from functionbox r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D31537

--HG--
extra : moz-landing-system : lando
2019-05-21 13:47:50 +00:00
Matthew Gaudet
32b04894a8 Bug 1552316 - Don't rely on functionbox for initFromLazyFunction r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D31536

--HG--
extra : moz-landing-system : lando
2019-05-21 13:47:44 +00:00
Matthew Gaudet
4fc4833da6 Bug 1552316 - Don't rely on functionbox in initWithEnclosingParseContext and initFiledInitializer r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D31535

--HG--
extra : moz-landing-system : lando
2019-05-21 13:47:40 +00:00
Matthew Gaudet
e7bb4702b1 Bug 1552316 - Use functionbox directly in ASMJS r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D31534

--HG--
extra : moz-landing-system : lando
2019-05-21 13:47:36 +00:00
Matthew Gaudet
f587c27271 Bug 1552316 - Use FunctionBox in ASTSerializer::function r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D31533

--HG--
extra : moz-landing-system : lando
2019-05-21 13:47:31 +00:00
Matthew Gaudet
14adfcb8f2 Bug 1552316 - Use FunctionBox in ModuleBuilder r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D31532

--HG--
extra : moz-landing-system : lando
2019-05-21 13:45:36 +00:00
Matthew Gaudet
35b6b4f5f2 Bug 1552316 - Hoist some queries from function into FunctionBox r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D31530

--HG--
extra : moz-landing-system : lando
2019-05-21 13:45:21 +00:00
Matthew Gaudet
def2eac5e3 Bug 1552316 - Remove unused FunctionScope::Data::zone() r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D31529

--HG--
extra : moz-landing-system : lando
2019-05-21 13:45:01 +00:00
Jon Coppeard
22445824ad Bug 1537909 - Optimise external read barriers r=sfink?
Add a special path for the external read barrier API where we inline most of the checks and then always perform the barrier if we call into the engine.  This also skips dispatching on trace kind since we know the barrier tracer is always a GCMarker.

This is kind of hacky and I'm not sure how much it gains us (it's difficult to tell in profiles where GC may occur at different times).  What do you think?

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

--HG--
extra : moz-landing-system : lando
2019-05-20 17:58:16 +00:00
Jon Coppeard
ea2ed53caf Bug 1395509 - Remove existing malloc accounting for externally allocated memory r=sfink?
Since we now have precise memory accounting for externally allocated memory associated with GC things we should be able to remove use of the existing malloc counter here.  This should help with cases where we trigger too many GCs because we think there is more memory associated than there really is.

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

--HG--
extra : moz-landing-system : lando
2019-05-20 17:27:02 +00:00
Jeff Walden
1e8a4f44fd Bug 1553001 - Move module APIs out of jsapi.{cpp,h} into js/public/Modules.h and js/src/vm/Modules.cpp for better isolation of module-related APIs. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31917

--HG--
rename : js/src/jsapi.h => js/public/Modules.h
rename : js/src/jsapi.cpp => js/src/vm/Modules.cpp
extra : moz-landing-system : lando
2019-05-21 00:57:38 +00:00
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