Commit Graph

60459 Commits

Author SHA1 Message Date
Nicholas Nethercote
a062b9be51 Bug 1366650 (part 2) - In GeckoProfiler, do all pseudo-stack accesses via the PseudoStack class, instead of via raw array manipulation. r=mstange,shu.
- The profiler gives the JS engine a reference to the pseudo-stack via
  SetContextProfiilngStack(). That function now takes a |PseudoStack*| instead
  of a |ProfileEntry*| and pointer to the stack pointer.

- PseudoStack now has a |kMaxEntries| field, which is easier to work with than
  |mozilla::ArrayLength(entries)|.

- AddressOfStackPointer() is no longer needed.

- The patch also neatens up the push operations significantly. PseudoStack now
  has pushCppFrame() and pushJsFrame(), which nicely encapsulate the two main
  cases. These delegate to the updated initCppFrame() and initJsFrame()
  functions in ProfileEntry.

- Renames max_stck in testProfileStrings.cpp as peakStackPointer, which is a
  clearer name.

- Removes a couple of checks from testProfileStrings.cpp. These checks made
  sense when the pseudo-stack was accessed via raw manipulation, but are not
  applicable now because we can't artificially limit the maximum stack size so
  easily.
2017-05-26 09:51:31 +10:00
Nicholas Nethercote
0840bb61c6 Bug 1366650 (part 1) - Move PseudoStack into SpiderMonkey. r=mstange,shu.
This includes renaming its fields to match SpiderMonkey naming conventions
instead of Gecko naming conventions.

This patch is just about moving the code. The next patch will change
SpiderMonkey to actually use PseudoStack directly.

--HG--
extra : rebase_source : 27e77ddf950201eb6bdba60003218056442cf7ab
2017-05-26 09:37:28 +10:00
Ryan VanderMeulen
d3f265330e Merge m-c to autoland. a=merge 2017-05-25 16:44:01 -04:00
Jon Coppeard
18e5503795 Bug 1365539 - Refactor GC statistics phase stack to use a vector r=sfink
--HG--
extra : rebase_source : 4145be8b618e3331b078ade4e2a4f89fb5231535
2017-05-25 10:54:45 -04:00
Jon Coppeard
e105bc74f0 Bug 1309651 - Record time taken by GC parallel tasks r=sfink data-r=bsmedberg 2017-05-25 10:35:54 -04:00
Jon Coppeard
4e7a503b65 Bug 1357022 - Ensure nuked CCWs are removed from the wrapper map r=sfink 2017-05-25 09:02:06 -04:00
Xidorn Quan
46dd59904a Bug 1366735 part 2 - Use the new struct in stylo. r=heycam
MozReview-Commit-ID: trgd0lKLP1

--HG--
extra : rebase_source : 8216769c7ee2a323d2af2080dd97cac3489af82d
2017-05-23 00:32:05 +10:00
Ryan VanderMeulen
c5b2958154 Merge inbound to m-c. a=merge 2017-05-24 20:45:23 -04:00
Jim Blandy
495a9fc5b2 Bug 1297466 - Doc fixes and tests for Debugger.Script.prototype.url, Debugger.Source.prototype.url. r=shu
--HG--
extra : rebase_source : 1eed084501992ced4bf038c6efda0b9058214f59
2017-05-15 13:45:05 -07:00
Nicolas B. Pierron
fbd397af34 Bug 1366773 - Add explicit keyword in front of XDRIncrementalEncoder constructor. r=me on a CLOSED TREE 2017-05-24 15:04:21 -04:00
Nicolas B. Pierron
9812c67569 Bug 1366773 - Move buffer argument from JS::StartIncrementalEncoding to JS::FinishIncrementalEncoding. r=mrbkap,shu 2017-05-24 18:28:19 +00:00
Nicolas B. Pierron
0727a6547f Bug 1364120 - Remove FINISH_LARGE_EVALUATE gc. r=jonco 2017-05-24 18:14:31 +00:00
Luke Wagner
c84a9714d9 Bug 1366382 - Baldr: change 'exports' property of Instance to accessor on prototype (r=bbouvier)
MozReview-Commit-ID: GjUpTHB8TjP
2017-05-24 10:25:55 -05:00
Luke Wagner
d94140b08e Bug 1366322 - Baldr: remove dependency of TlsData on specific JSContext (r=bbouvier)
MozReview-Commit-ID: 2Z77q3YJsyO
2017-05-24 10:24:17 -05:00
Ryan VanderMeulen
f796502c05 Backed out changeset 8401a2705903 (bug 1355046) for bug-1355046.js failures. 2017-05-24 11:01:07 -04:00
Lars T Hansen
6bf199a614 Bug 1277562 - Enforce tier-specific lookup on Code, Metadata, and LinkData, in most cases. r=luke
--HG--
extra : source : 2bfe8f8971c2f8c694f57fac3cc59dd003753827
extra : intermediate-source : 91768124fd597556acdb7e4a2e3faa71b9422d68
2017-05-23 10:12:30 +02:00
Shu-yu Guo
c1c5106d82 Bug 1355046 - Don't reset column and line info when emitting useless statements in BCE. (r=jorendorff) 2017-05-24 07:22:56 -07:00
Jon Coppeard
c633686d5e Bug 1365564 - Don't try and get target object from non-wrapper proxies r=sfink 2017-05-24 09:48:05 -04:00
Ted Campbell
c510d01b27 Bug 1343723 - ResumePoint not needed for MNewLexicalEnvironmentObject. r=jandem
MozReview-Commit-ID: KNEhTjtKRiJ
2017-05-24 09:23:49 -04:00
Ryan VanderMeulen
0c23ece0f2 Backed out changeset 9108c50863b3 (bug 1343723) for SM test failures. 2017-05-23 21:38:13 -04:00
Ted Campbell
7fe93c1f53 Bug 1343723 - ResumePoint not needed for MNewLexicalEnvironmentObject. r=jandem
MozReview-Commit-ID: KNEhTjtKRiJ
2017-05-23 21:00:56 -04:00
André Bargull
ad1f84faa3 Bug 1366696 - Part 4: Remove unnecessary rooting in SelfHosting.cpp for return values. r=till
--HG--
extra : rebase_source : abac86ca111bd389713952109542253398dc0820
2017-05-23 11:17:20 -07:00
André Bargull
77419c9581 Bug 1366696 - Part 3: Improve performance of RegExp.prototype.@@replace with global regexp. r=till
--HG--
extra : rebase_source : f7ae02af0fff906230ed49c0db007d78654c700f
2017-05-23 11:17:17 -07:00
André Bargull
10fd3521db Bug 1366696 - Part 2: Improve performance of RegExp.prototype.@@replace with non-global regexp. r=till
--HG--
extra : rebase_source : 6c587a63cc7777e61883616cbdd4b9c267c13894
2017-05-23 11:17:14 -07:00
André Bargull
1dea94a09b Bug 1366696 - Part 1: Only create new splitter if sticky flag is present in input regexp. r=till
--HG--
extra : rebase_source : 1a1080672ac85da632c95a940b40b128ecad64be
2017-05-23 11:16:45 -07:00
Paul Bone
abd19c97cc Bug 1341752 - Assert that thing has correct runtime in js::TraceChildren. r=jonco 2017-05-23 01:25:11 +10:00
Ryan VanderMeulen
0bd37c1ea1 Merge inbound to m-c. a=merge 2017-05-23 18:12:57 -04:00
Ryan VanderMeulen
27fd4cc7e2 Merge inbound to m-c. a=merge 2017-05-23 18:11:35 -04:00
Olli Pettay
0d4ccffc95 Bug 1367164 - Use IdleDispatch for async snow white killer on main thread, r=mccr8 2017-05-23 17:04:18 -04:00
André Bargull
2034861f3e Bug 1365650 - Improve ResolveLocale performance when initializing the default Intl objects. r=shu 2017-05-23 07:07:44 -07:00
Ryan VanderMeulen
e096678430 Merge m-c to autoland. a=merge UPGRADE_NSS_RELEASE
--HG--
rename : dom/security/test/sri/iframe_style_crossdomain.html => dom/security/test/sri/iframe_style_crossdomain_legacy.html
rename : mobile/android/themes/core/content.css => mobile/android/themes/geckoview/content.css
rename : mobile/android/themes/core/images/accessiblecaret-normal-hdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-normal-hdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-normal-xhdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-normal-xhdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-normal-xxhdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-normal-xxhdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-tilt-left-hdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-tilt-left-hdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-tilt-left-xhdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-tilt-left-xhdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-tilt-left-xxhdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-tilt-left-xxhdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-tilt-right-hdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-tilt-right-hdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-tilt-right-xhdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-tilt-right-xhdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-tilt-right-xxhdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-tilt-right-xxhdpi.png
rename : mobile/android/themes/core/images/dropmarker-right.svg => mobile/android/themes/geckoview/images/dropmarker-right.svg
rename : mobile/android/themes/core/images/dropmarker.svg => mobile/android/themes/geckoview/images/dropmarker.svg
rename : mobile/android/themes/core/images/cast-active.svg => mobile/android/themes/geckoview/images/videocontrols-cast-active.svg
rename : mobile/android/themes/core/images/cast-ready.svg => mobile/android/themes/geckoview/images/videocontrols-cast-ready.svg
rename : mobile/android/themes/core/images/exitfullscreen.svg => mobile/android/themes/geckoview/images/videocontrols-exitfullscreen.svg
rename : mobile/android/themes/core/images/fullscreen.svg => mobile/android/themes/geckoview/images/videocontrols-fullscreen.svg
rename : mobile/android/themes/core/images/mute.svg => mobile/android/themes/geckoview/images/videocontrols-mute.svg
rename : mobile/android/themes/core/images/pause.svg => mobile/android/themes/geckoview/images/videocontrols-pause.svg
rename : mobile/android/themes/core/images/play.svg => mobile/android/themes/geckoview/images/videocontrols-play.svg
rename : mobile/android/themes/core/images/scrubber.svg => mobile/android/themes/geckoview/images/videocontrols-scrubber.svg
rename : mobile/android/themes/core/images/unmute.svg => mobile/android/themes/geckoview/images/videocontrols-unmute.svg
rename : mobile/android/themes/core/scrollbar-apz.css => mobile/android/themes/geckoview/scrollbar-apz.css
rename : mobile/android/themes/core/touchcontrols.css => mobile/android/themes/geckoview/videocontrols.css
extra : rebase_source : a5b4c2c75991990af25c4686ff96c199834ff317
2017-05-23 13:41:47 -04:00
Ryan VanderMeulen
22d214ae4b Merge autoland to m-c. a=merge 2017-05-23 10:32:42 -04:00
Ted Campbell
e45c6a6768 Bug 1365782 - Bailout from MConcat instead of throwing r=jandem
MozReview-Commit-ID: BdjMzfJjez

--HG--
extra : rebase_source : 3dba45abb6ce6f1e5d046c38eaf6f34eed473012
2017-05-18 21:55:05 -04:00
Wes Kocher
9a8d52f7af Merge m-c to autoland, a=merge
MozReview-Commit-ID: AVwPRGa5re9
2017-05-22 16:38:46 -07:00
Wes Kocher
2933592c4a Merge inbound to central, a=merge
MozReview-Commit-ID: 7NiWtCjPk84
2017-05-22 16:26:12 -07:00
Manish Goregaokar
822131e89c Bug 1365937 - Mark Servo_DeclarationBlock_GetCssText as threadsafe; r=froydnj
MozReview-Commit-ID: 899nIoyc8OD

--HG--
extra : rebase_source : ddfb15158549fc7679a1a9669f26a7217a858fa6
2017-05-22 13:32:13 -07:00
Jon Coppeard
acf1ca5525 Bug 1358073 - Handle destruction of scope data correctly r=shu a=abillings 2017-05-22 14:01:19 -04:00
Sebastian Hengst
a7aee158a9 Backed out changeset 357a1c414efa (bug 1365650) for rooting hazard. r=backout 2017-05-22 19:53:57 +02:00
Sebastian Hengst
89e33081c6 Backed out changeset 50bf4c923818 (bug 1339105) for Windows bustage: calling protected constructor of class 'nsAString' at sandboxBroker.cpp(208,11). r=backout on a CLOSED TREE 2017-05-22 16:16:16 +02:00
André Bargull
a4cd19ed21 Bug 1365650 - Improve ResolveLocale performance when initializing the default Intl objects. r=shu
--HG--
extra : rebase_source : fb6dfbabcc3e16b53fa9be98338396ba2e792cb6
extra : amend_source : 64d06adc23e6bb768512ea9adbc3fe0ded9469c9
2017-05-20 06:16:14 -07:00
Jan Keromnes
2ec454fd41 Bug 1365699 - Fix unreachable code in Disassembler-x86-shared.cpp. r=bbouvier 2017-05-20 08:21:00 -04:00
Jan Keromnes
155f3394cb Bug 1366021 - Do not use 'else' after 'return' in /js/src/frontend/Parser.cpp. r=bbouvier 2017-05-20 08:23:00 -04:00
Petr Sumbera
4924c09590 Bug 963983 - posix_madvise() should be used instead of madvise() on Solaris. r=jandem 2017-05-22 04:16:12 -07:00
Bob Owen
f24abd4ac3 Bug 1339105 Part 1: Implement Windows Level 3 content process sandbox policy. r=jimm
MozReview-Commit-ID: L8wcVhdLvFe
2017-05-22 14:29:06 +01:00
Jan de Mooij
d7c81386bd Bug 1350864 - Fix SetIntegrityLevel to set non-writable length correctly when freezing arrays. r=Waldo 2017-05-22 13:14:35 +02:00
Jan de Mooij
a158ec2d26 Bug 1364345 - Optimize splice to shift the elements header when deleting from the start of the array. r=anba 2017-05-22 12:52:10 +02:00
Lars T Hansen
94e67b4cdd Bug 1359027 - Make CodeSegment, MetadataTier, and LinkDataTier self-identifying. r=luke
--HG--
extra : rebase_source : a306daf50c5516c50af6f59f048354a1d57145ab
2017-05-18 15:44:04 +02:00
Lars T Hansen
e679e51185 Bug 1359027 - Split tier-invariant and tier-variant parts of wasm LinkData apart. r=luke
--HG--
extra : rebase_source : 2b1bae9957aa3c68ba68b3daecf4e38c0cfd9970
2017-05-19 10:37:06 +02:00
Lars T Hansen
df282c591f Bug 1359027 - Split tier-invariant and tier-variant parts of wasm Code apart. r=luke
--HG--
extra : rebase_source : 6fdde6d852d130388d6b62eb9ab523360e82a9d1
extra : source : 013d91205b4765ea88690750c2c41dc77e7157ce
2017-05-18 09:27:54 +02:00
Lars T Hansen
de8a12c214 Bug 1359027 - Move funcExports and funcImports to tiered Metadata. r=luke
--HG--
extra : rebase_source : 75483a9da84829ace1026421312bc3e32da19ce2
2017-05-19 10:19:09 +02:00