Skip to content
Snippets Groups Projects
  1. Sep 14, 2017
  2. Sep 12, 2017
  3. Sep 11, 2017
  4. Sep 13, 2017
  5. Sep 08, 2017
  6. Sep 07, 2017
    • David Teller's avatar
      Bug 1397717 - Using GenericPrinter for DEBUG-only C++ dump() APIs;r=nbp · 44b7cab2
      David Teller authored
      We have a host of DEBUG-only dump()-style APIs that output either to
      stderr or to a FILE*. Unfortunately, this means that we cannot use
      these dumps e.g. for unit tests. This patch ports most of the dump()
      APIs to use GenericPrinter, which is more flexible.
      
      Some parts of the code have not been ported, in particular
      TypeInference, which still uses stderr.
      
      MozReview-Commit-ID: A5WGOPyIPTa
      
      --HG--
      extra : rebase_source : 2c092256569d7f0d5656acea9c6d7dbaf32667be
      44b7cab2
    • Nicholas Nethercote's avatar
      Bug 1397628 - Don't auto-atomize strings passed from script. r=kmag. · 50c7852f
      Nicholas Nethercote authored
      If you pass a string from script to an IDL method that takes an nsIAtom,
      XPConnect will automagically atomize the string for you.
      
      But nsIAtom is no longer scriptable (see the blockers for bug 1392883,
      especially bug 1396694). So the code to convert can be removed.
      
      --HG--
      extra : rebase_source : af85fa48c1988348d3a9a81b05ed43403d3b730a
      50c7852f
  7. Sep 10, 2017
    • Kris Maglione's avatar
      Bug 1398499: Part 3 - Add Marionette tests for global sharing. r=mccr8 · 8c91f298
      Kris Maglione authored
      This tests both that the settings have the desired effect and that switching
      between sharing enabled and sharing disabled without a startup cache flush
      does not cause any issues.
      
      Tests for user pref changes are currently non-fatal, since they're known not
      to work reliably.
      
      MozReview-Commit-ID: 1ZFwyiNf3da
      
      --HG--
      extra : rebase_source : c38bd92d2137c90f8c4d202b7009612b45ff4be9
      8c91f298
  8. Sep 09, 2017
    • Kris Maglione's avatar
      Bug 1398499: Part 2 - Add MOZ_LOADER_SHARE_GLOBAL env var to toggle global sharing. r=mccr8 · 60e49ffd
      Kris Maglione authored
      User preference changes currently don't reliably take effect before component
      loader initialization, which means they can't be used to write reliable tests.
      Environment variables don't have this problem, so adding an environment
      variable override makes testing much easier. It's also fairly convenient
      during development, when we need to switch between different configurations
      for testing.
      
      MozReview-Commit-ID: 8PufRQNRnoU
      
      --HG--
      extra : rebase_source : c5ca2f3cb18a8398c95bbbf86e2cd27430f5161a
      60e49ffd
    • Kris Maglione's avatar
      Bug 1398499: Part 1 - Use separate cache paths for shared/unshared scripts. r=mccr8 · 8b676de4
      Kris Maglione authored
      Scripts for use in shared globals need to be compiled for non-syntactic
      scopes, while scripts for standalone globals should be compiled as global
      scripts for better performance.
      
      Since the startup cache and script preloader store scripts as they were
      compiled in the last session, when global sharing settings may have been
      different, it can lead to a mismatch, and a crash, due to loading the wrong
      type of script.
      
      Using a separate cache path for each type of script fixes this problem, since
      it ensures that the cached script will always be of the type we expect.
      
      MozReview-Commit-ID: DnNb2Xi6KeL
      
      --HG--
      extra : rebase_source : d2474d1da3f8e1066c21a7c65693ea09ec5b8074
      8b676de4
    • Sylvestre Ledru's avatar
      Bug 1398513 - IsTokenSane: Remove an useless comparison: < 0 with an unsigned... · 1f29c084
      Sylvestre Ledru authored
      Bug 1398513 - IsTokenSane: Remove an useless comparison: < 0 with an unsigned is always false r=arai
      
      MozReview-Commit-ID: 42pjZIGID4L
      
      --HG--
      extra : rebase_source : ffe64dab7afdd1a63c4d0997097e7c8db0a71aea
      1f29c084
  9. Sep 08, 2017
  10. Sep 13, 2017
  11. Sep 14, 2017
  12. Sep 12, 2017
    • Mike Hommey's avatar
      Bug 1398965 - Fold memory/mozjemalloc into memory/build. r=njn · 8cdad036
      Mike Hommey authored
      The files relevant to the memory allocator are currently spread between
      memory/mozjemalloc and memory/build, and the distinction was
      historically from sharing some Mozilla-specific things between
      mozjemalloc and jemalloc3. That distinction is not useful anymore, so
      we fold everything together.
      
      As we will likely rename the allocator at some point in the future, it
      is preferable to move away from the mozjemalloc directory rather than in
      its direction.
      
      --HG--
      rename : memory/mozjemalloc/Makefile.in => memory/build/Makefile.in
      rename : memory/mozjemalloc/mozjemalloc.cpp => memory/build/mozjemalloc.cpp
      rename : memory/mozjemalloc/mozjemalloc.h => memory/build/mozjemalloc.h
      rename : memory/mozjemalloc/mozjemalloc_types.h => memory/build/mozjemalloc_types.h
      rename : memory/mozjemalloc/rb.h => memory/build/rb.h
      8cdad036
  13. Sep 13, 2017
  14. Sep 10, 2017
  15. Sep 12, 2017
    • Ted Campbell's avatar
      Bug 1398601 - Add global/non-syntactic prefix to subscript loader cache r=kmag · eb7051b3
      Ted Campbell authored
      We want to be able to store scripts compiled with or without
      non-syntactic support in cache when we toggle JSM global sharing. In
      current code this script is cloned on execution, but with JSM global
      sharing we have would hit assertions.
      
      MozReview-Commit-ID: 2pVTTxLpx6S
      
      --HG--
      extra : rebase_source : 5913a43a2dfddf74187f08ab9c53babe377bd706
      eb7051b3
  16. Sep 10, 2017
    • Ted Campbell's avatar
      Bug 1398601 - Support target objects in js::ExecuteInJSMEnvironment r=jorendorff · 1a1154fa
      Ted Campbell authored
      This allows js::ExecuteInJSMEnvironment to take a target object argument
      as used by the subscript loader. This adds WithEnvironments with a
      corresponding lexical on top of the ordinary NonSyntacticVariablesObject
      environment chain.
      
      MozReview-Commit-ID: JhHEfV92Zpv
      
      --HG--
      extra : rebase_source : d1ef9564d30a25fd9e1cf1ca7e95bf40c780dcdf
      1a1154fa
  17. Sep 08, 2017
  18. Sep 06, 2017
  19. Sep 02, 2017
  20. Sep 08, 2017
Loading