1. 10 Dec, 2018 2 commits
  2. 02 Dec, 2018 1 commit
  3. 01 Dec, 2018 10 commits
  4. 14 Nov, 2018 2 commits
  5. 13 Nov, 2018 4 commits
  6. 12 Nov, 2018 4 commits
  7. 09 Nov, 2018 1 commit
  8. 08 Nov, 2018 11 commits
  9. 06 Nov, 2018 5 commits
    • Philip Chimento's avatar
      js: Compare jsid in some resolve hooks instead of strings · 74693dfc
      Philip Chimento authored
      It's faster to compare jsids because they can compare directly by value.
      Now that we atomize common strings, we can do this in the resolve hooks
      of Ns, Repo, and Importer.
    • Philip Chimento's avatar
      importer: Remove special case for __iterator__ · ac94032f
      Philip Chimento authored
      This was part of the old Mozilla-specific iteration protocol, and is not
      needed anymore.
    • Philip Chimento's avatar
      atoms: Allow "symbol atoms" for keys not exposed to JS · 5c1a24ad
      Philip Chimento authored
      There are a few places where we want to have property keys that are
      well-known internally, but not available to JS code. We create "symbol
      atoms" for these, where you can get a jsid from the GjsAtoms object, but
      it refers to a JS::Symbol instead of a string.
      Previously we had two instances of this, and both were implemented in a
      different way. For "__gjsPrivateNS" we just used a string and hoped that
      nobody used that string in client code. For "__GObject__hook_up_vfunc" we
      did create a JS::Symbol and had some complicated static member in
      ObjectInstance to expose it to imports._gi. Both of these implementations
      are simplified with this patch.
    • Philip Chimento's avatar
      atoms: Use more atoms to avoid converting strings · 5d5f82df
      Philip Chimento authored
      There are a number of places where we used JS_{Get,Set,Define}Property()
      or JS_DefineFunction() with a string literal. In these cases it would be
      better to use an atom so that the string doesn't have to be converted from
      UTF-8 internally each time.
      In some cases there was already an atom defined, and in others we add a
      new atom.
    • Philip Chimento's avatar
      context: Move atoms to a separate class · 8e707747
      Philip Chimento authored
      This moves the atoms (interned strings) from GjsContextPrivate to a
      separate class, so that we can decouple them from GjsContext, since in
      some cases we will want to use them only with the SpiderMonkey API.