Commit Graph

61294 Commits

Author SHA1 Message Date
Jim Blandy
297b58dc95 Bug 1365346 - Make Debugger.Source.prototype.sourceMapURL setter check its argc. r=shu 2017-05-16 10:57:49 -07:00
Lars T Hansen
b0a78cb977 Bug 1388756 - Move helper thread types out of the OOM namespace. r=jonco
--HG--
extra : rebase_source : 2ec28160c41db48b2fa043f3d36e75d32832b26f
extra : histedit_source : d93bebede5edd065bb0cbcdebc509bbe3ab26d1c
2017-08-11 10:11:35 +02:00
Lars T Hansen
38b8fb111d Bug 1379814 - Clean up task selection logic, implement master task concept (take 2). r=luke
--HG--
extra : rebase_source : 2e865028e8921e5043dabab0acce2bb915b1256c
extra : histedit_source : f093356241f3fd5e2681e517e1c66f660f715503
2017-08-11 10:56:54 +02:00
Benjamin Bouvier
42a62554ab Bug 1384683: Rename wasm::FrameIterator into wasm::WasmFrameIter; r=luke
MozReview-Commit-ID: HOpqIlAVHcA

--HG--
rename : js/src/wasm/WasmFrameIterator.cpp => js/src/wasm/WasmFrameIter.cpp
rename : js/src/wasm/WasmFrameIterator.h => js/src/wasm/WasmFrameIter.h
extra : rebase_source : 7f980723e6d75cf4b3b762fbb4dd0cc751ff4b17
2017-08-11 18:53:01 +02:00
Sebastian Hengst
49882abddb merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CExKztwYFsz
2017-08-14 11:57:21 +02:00
Nicholas Nethercote
57c26c9834 Bug 1387956 - Overhaul ComputedValues measurement, and add style structs measurement. r=bholley.
This patch moves measurement of ComputedValues objects from Rust to C++.
Measurement now happens (a) via DOM elements and (b) remaining elements via
the frame tree. Likewise for the style structs hanging off ComputedValues
objects.

Here is an example of the output.

> ├──27,600,448 B (26.49%) -- active/window(https://en.wikipedia.org/wiki/Barack_Obama)
> │  ├──12,772,544 B (12.26%) -- layout
> │  │  ├───4,483,744 B (04.30%) -- frames
> │  │  │   ├──1,653,552 B (01.59%) ── nsInlineFrame
> │  │  │   ├──1,415,760 B (01.36%) ── nsTextFrame
> │  │  │   ├────431,376 B (00.41%) ── nsBlockFrame
> │  │  │   ├────340,560 B (00.33%) ── nsHTMLScrollFrame
> │  │  │   ├────302,544 B (00.29%) ── nsContinuingTextFrame
> │  │  │   ├────156,408 B (00.15%) ── nsBulletFrame
> │  │  │   ├─────73,024 B (00.07%) ── nsPlaceholderFrame
> │  │  │   ├─────27,656 B (00.03%) ── sundries
> │  │  │   ├─────23,520 B (00.02%) ── nsTableCellFrame
> │  │  │   ├─────16,704 B (00.02%) ── nsImageFrame
> │  │  │   ├─────15,488 B (00.01%) ── nsTableRowFrame
> │  │  │   ├─────13,776 B (00.01%) ── nsTableColFrame
> │  │  │   └─────13,376 B (00.01%) ── nsTableFrame
> │  │  ├───3,412,192 B (03.28%) -- servo-style-structs
> │  │  │   ├──1,288,224 B (01.24%) ── Display
> │  │  │   ├────742,400 B (00.71%) ── Position
> │  │  │   ├────308,736 B (00.30%) ── Font
> │  │  │   ├────226,512 B (00.22%) ── Background
> │  │  │   ├────218,304 B (00.21%) ── TextReset
> │  │  │   ├────214,896 B (00.21%) ── Text
> │  │  │   ├────130,560 B (00.13%) ── Border
> │  │  │   ├─────81,408 B (00.08%) ── UIReset
> │  │  │   ├─────61,440 B (00.06%) ── Padding
> │  │  │   ├─────38,176 B (00.04%) ── UserInterface
> │  │  │   ├─────29,232 B (00.03%) ── Margin
> │  │  │   ├─────21,824 B (00.02%) ── sundries
> │  │  │   ├─────20,080 B (00.02%) ── Color
> │  │  │   ├─────20,080 B (00.02%) ── Column
> │  │  │   └─────10,320 B (00.01%) ── Effects
> │  │  ├───2,227,680 B (02.14%) -- computed-values
> │  │  │   ├──1,182,928 B (01.14%) ── non-dom
> │  │  │   └──1,044,752 B (01.00%) ── dom
> │  │  ├───1,500,016 B (01.44%) ── text-runs
> │  │  ├─────492,640 B (00.47%) ── line-boxes
> │  │  ├─────326,688 B (00.31%) ── frame-properties
> │  │  ├─────301,760 B (00.29%) ── pres-shell
> │  │  ├──────27,648 B (00.03%) ── pres-contexts
> │  │  └─────────176 B (00.00%) ── style-sets

The 'servo-style-structs' and 'computed-values' sub-trees are new. (Prior to
this patch, ComputedValues under DOM elements were tallied under the the
'dom/element-nodes' sub-tree, and ComputedValues not under DOM element were
ignored.) 'servo-style-structs/sundries' aggregates all the style structs that
are smaller than 8 KiB.

Other notable things done by the patch are as follows.

- It significantly changes the signatures of the methods measuring nsINode and
  its subclasses, in order to handle the tallying of style structs separately
  from element-nodes. Likewise for nsIFrame.

- It renames the 'layout/style-structs' sub-tree as
  'layout/gecko-style-structs', to clearly distinguish it from the new
  'layout/servo-style-structs' sub-tree.

- It adds some FFI functions to access various Rust-side data structures from
  C++ code.

- There is a nasty hack used twice to measure Arcs, by stepping backwards from
  an interior pointer to a base pointer. It works, but I want to replace it
  with something better eventually. The "XXX WARNING" comments have details.

- It makes DMD print a line to the console if it sees a pointer it doesn't
  recognise. This is useful for detecting when we are measuring an interior
  pointer instead of a base pointer, which is bad but easy to do when Arcs are
  involved.

- It removes the Rust code for measuring CVs, because it's now all done on the
  C++ side.

MozReview-Commit-ID: BKebACLKtCi

--HG--
extra : rebase_source : 4d9a8c6b198a0ff025b811759a6bfa9f33a260ba
2017-08-11 16:37:33 +10:00
Wes Kocher
a5fc391fdf Merge m-c to autoland a=merge
MozReview-Commit-ID: LsPv9Mdodvf
2017-08-11 13:39:17 -07:00
Wes Kocher
5a4357c768 Merge inbound to central, a=merge
MozReview-Commit-ID: GArkKmOFIVH
2017-08-11 13:15:33 -07:00
Mike Hommey
6cef087e60 Bug 1389281 - Add GETRANDOM_NR definition for powerpc and mips. r=luke
At the same time, simplify the definitions, as:
- per python/mozbuild/mozbuild/configure/constants.py, supported
  compilers all support lowercase forms.
- all variants of powerpc, little endian or not, 32-bits or 64-bits,
  define __powerpc__.
- s390x also defines __s390__.

--HG--
extra : rebase_source : 38e2ff85dc035296ea3bebe90739244eeb6eaddd
2017-08-11 07:03:05 +09:00
Nicolas B. Pierron
6782cedebf Bug 1388014 part 2 - IonMonkey: Simplify RValueAllocation hash function. r=jandem 2017-08-11 12:26:05 +00:00
Nicolas B. Pierron
b046293a88 Bug 1388014 part 1 - IonMonkey: Devirtualize MResumePoint::getOperand function calls. r=jandem 2017-08-11 12:26:05 +00:00
Sebastian Hengst
b18e1ac009 Backed out changeset 806a941c8580 (bug 1379814) for asserting at HelperThreads.cpp:997, e.g. in chrome tests on OS X. r=backout on a CLOSED TREE 2017-08-11 10:34:36 +02:00
Xidorn Quan
b97e3aed9b Bug 1388255 - Make nsStylePosition::mGridTemplate{Columns,Rows} a UniquePtr. r=canaltinova,dholbert
MozReview-Commit-ID: 8SOE6sAavCX

--HG--
extra : rebase_source : 666c95221e059da9b1a729eea3584e2060968582
2017-08-09 11:30:25 +10:00
Lars T Hansen
aa1bc47d4a Bug 1379814 - Clean up task selection logic, implement master task concept. r=luke
--HG--
extra : rebase_source : 0ed1638c14679b380aff1424e0102e9bf044573f
extra : intermediate-source : fea60a862a2eadf95cb3117fe78d811c5a8bcefd
extra : source : 721abd3b8224e2974464d5de4279f5088f283886
2017-07-12 14:33:17 -07:00
Wes Kocher
cff9e9b197 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2YvHbITn9w3
2017-08-10 18:25:34 -07:00
Sebastian Hengst
054e33ee24 Backed out changeset 79aa5930dbf1 (bug 1374239) for asserting in wpt's html/semantics/scripting-1/the-script-element/module/instantiation-error-2.html on Windows x64 debug. r=backout 2017-08-10 16:39:18 +02:00
Ehsan Akhgari
38bfadf1a9 Bug 1385953 - Remove MemProfiler; r=jandem
This feature isn't currently used or being planned to be used in the near
future and has some overhead that makes it hard to justify to keep around,
so it's better to remove it and revive it from VCS history if we need it
later.
2017-08-10 08:28:50 -04:00
Jan de Mooij
0cbf2d7387 Bug 1388388 - Add a megamorphic SetElement stub. r=evilpie 2017-08-10 11:12:51 +02:00
Jan de Mooij
9f891645fa Bug 1388354 - Optimize ToPropertyKey a bit. r=anba 2017-08-10 11:11:42 +02:00
Tooru Fujisawa
62b297a9cc Bug 1385310 - Set bufStart and toStringStart for generator expression functions. r=nbp 2017-08-10 09:43:35 +09:00
Kannan Vijayan
fb3ee9fa6a Bug 1382837 - Optimize Array.join in ion for empty and single-item arrays. r=tcampbell 2017-08-09 17:06:40 -04:00
Kannan Vijayan
acf9c429c4 Bug 1382837 - Optimize Array.join in baseline for empty and single-item arrays. r=tcampbell 2017-08-09 16:27:58 -04:00
Kris Maglione
de735e278f Bug 1388631: Don't call generateQI for every defineLazyPreferenceGetter call. r=mixedpuppy
MozReview-Commit-ID: 9n8VyXFM7bc

--HG--
extra : rebase_source : 30241e57a35d731a46ce8d5e69f876bb32340011
2017-08-08 23:19:06 -07:00
Kris Maglione
947fb7cb28 Bug 1388215: Part 1 - Add defineLazyModuleGetters and defineLazyServiceGetters methods. r=florian
MozReview-Commit-ID: 8sAjBlRzoYS

--HG--
extra : rebase_source : 32c7dde0feda5c21fd016b240966314bd0241fa5
2017-08-09 13:06:43 -07:00
Jon Coppeard
a634315ceb Bug 1374239 - Store and re-throw module instantiation and evaluation errors r=shu 2017-08-09 18:05:15 +01:00
André Bargull
419b26dee6 Bug 1377349 - Remove support for nested destructuring in object rest properties. r=shu 2017-07-10 07:53:10 -07:00
André Bargull
0865d1a536 Bug 1382209 - Part 2: Use correct YieldHandling for module contexts. r=shu 2017-08-09 11:37:23 +02:00
André Bargull
c838e0d0aa Bug 1382209 - Part 1: Add new restrictions for "yield" and "await" as binding identifiers per ES2018 draft spec. r=shu 2017-08-09 11:37:01 +02:00
André Bargull
a1ebd80a83 Bug 1387400 - Part 2: Pass the original regexp flags to the specializer replacer functions. r=till 2017-08-09 11:36:34 +02:00
André Bargull
e80a99ac14 Bug 1387400 - Part 1: Only call GetElemBaseForLambda for large strings. r=till 2017-08-09 11:32:31 +02:00
André Bargull
532414f472 Bug 1387968 - Part 3: Remove unnecessary or duplicate rooting in RegExp code. r=till
--HG--
extra : rebase_source : c1a38b5cd8184ac75075c8c062c52466644eaeb6
2017-08-09 11:31:47 +02:00
André Bargull
c70f65a1f9 Bug 1387968 - Part 2: Optimize array accesses and allocations in RegExpGetSubstitution. r=till
--HG--
extra : rebase_source : 06bba8286960b5f805b152aeaceb52c62b275913
2017-08-09 11:31:29 +02:00
André Bargull
1618ce2e73 Bug 1387968 - Part 1: Reduce array copies for RegExpGetSubstitution with captures. r=till
--HG--
extra : rebase_source : d7af86e7dae8453c7bd8446934544653bce52481
2017-08-09 11:31:04 +02:00
Emilio Cobos Álvarez
82eac4bff7 Bug 1362338: Manually whitelist nsIAtom::Release in the root analysis. r=froydnj,sfink
This is the only approach that I managed to make work.

MozReview-Commit-ID: CUnkDoYN3di

--HG--
extra : rebase_source : 469912d015a403ef481685c617010613ea36b0b3
2017-08-10 12:20:10 +02:00
Sebastian Hengst
b287601ebc Backed out changeset 61cf451831f5 (bug 1320656) for bustage in RegExp.o. r=backout on a CLOSED TREE 2017-08-10 10:21:56 +02:00
Sylvestre Ledru
db963af2af bug 1320656 - Disable the failure on -Wnoexcept-type until we have a proper fix r=glandium
MozReview-Commit-ID: HeDMTxopx9V

--HG--
extra : rebase_source : 8df61de8f024bab38909826ca714e554c4b0bb49
2017-08-04 14:27:14 +02:00
Andrea Marchesini
351d938b86 Bug 1128959 - Implement the WHATWG Streams spec - part 1 - WebIDL Bindings, r=bz 2017-08-10 18:04:54 -07:00
Benjamin Bouvier
aabbbd3f55 Bug 1388338: Add ContextToLR on Darwin ARM to wasm signal handling; r=luke
And also fixes unused-warning error in none-codegen mode.

MozReview-Commit-ID: HPbm7n34gaS

--HG--
extra : rebase_source : d7011a08a3439794b65a676366ba53e89e28e5b7
extra : amend_source : 90a689781c1081cc73945321b322e7fb10555e3f
2017-08-10 12:51:09 +02:00
Igor Denys
e467f6da39 Bug 1388338: fixed undeclared identifier R14_sig and _fp on MacOS X cross compiling to ARM/ARM64. r=bbouvier
MozReview-Commit-ID: 2oewwNgj7fX
2017-08-10 16:20:25 +03:00
loongson
635cc5b655 Bug 1389401 - MIPS: Fix label use. r=luke
see Bug 1387535.
2017-08-11 00:53:00 -04:00
loongson
fd63bd3cb4 Bug 1389401 - MIPS: Fix register use. r=luke
SIMD/uconvert.js
2017-08-11 00:52:00 -04:00
loongson
72f49afcde Bug 1389401 - MIPS: Some fix about wasm. r=luke 2017-08-11 00:52:00 -04:00
loongson
9adeeeee39 Bug 1389401 - MIPS: Add missing function. r=luke
Convert Baseline setslot IC stub to CacheIR
2017-08-11 00:51:00 -04:00
loongson
bec970037c Bug 1389401 - MIPS: Small syntax fix. r=luke 2017-08-11 00:51:00 -04:00
loongson
3d29776d2a Bug 1389401 - MIPS: Structure reorganization for multithreaded runtimes. r=luke
see  Bug 1325050
2017-08-11 00:50:00 -04:00
loongson
765e5d359a Bug 1389401 - MIPS: Add MacroAssembler::storeRegsInMask. r=luke
see Bug 1322093
2017-08-11 00:49:00 -04:00
loongson
13b3220ca3 Bug 1389401 - MIPS: Add miss function. r=luke
Bug 1364908 - IonMonkey: Add LoadElementFromSate to support argument[x] in inlined functions.

TODO: performance optimize.
2017-08-11 00:49:00 -04:00
loongson
93e4ee0b2a Bug 1389401 - MIPS: Fix boxDouble. r=luke 2017-08-11 00:48:00 -04:00
loongson
34a9305e12 Bug 1389401 - MIPS: Add missing function. r=luke
Wasm, stop patching generated code.

TODO: WASM function check/fix.
2017-08-11 00:47:00 -04:00
loongson
9f389d7c74 Bug 1389401 - MIPS: Add missing function fix. r=luke
See Bug 1340219: Give a builtin stub for all the builtin calls;

TODO: WASM function check/fix.
2017-08-11 00:47:00 -04:00