1. 22 Jul, 2019 1 commit
  2. 19 Jul, 2019 1 commit
  3. 17 Jul, 2019 3 commits
  4. 16 Jul, 2019 3 commits
  5. 15 Jul, 2019 1 commit
    • Seth Brenith's avatar
      [torque] Use @generateCppClass in some simple cases · 14274bb1
      Seth Brenith authored
      This change is mostly mechanical, but it's worth mentioning a few
      slightly interesting cases:
      - A couple of field definitions didn't match the signedness of their
        corresponding accessors.
      - The generated accessors for Smi data use Smi values directly, but
        usually we want C++ accessors to use ints instead. I added a macro
        that hides the generated Smi accessors and exposes int accessors,
        but we might consider generating int accessors directly.
      - The data held in some fields is described in comments next to the
        accessor definition for those fields. With automatically generated
        accessors, those comments need a new home. In this change I put them
        in the Torque object definition, but I'm open to other suggestions.
      - gen-postmortem-metadata couldn't find updated class definitions after
        they got split across multiple lines, so I changed its matching
        logic. (Ideally debug-support.cc should be a Torque compiler output
        rather than something that involves parsing C++ with regexes, but
        this makes it correctly report subclass relationships for now.)
      - The end offsets generated by Torque were off by one from the values
        that would be generated by DEFINE_FIELD_OFFSET_CONSTANTS.
      
      Change-Id: I3df4fcd27997b46c41ca879065b9d97f6c939f07
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1692192Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
      Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
      Commit-Queue: Seth Brenith <seth.brenith@microsoft.com>
      Cr-Commit-Position: refs/heads/master@{#62719}
      14274bb1
  6. 12 Jul, 2019 3 commits
  7. 11 Jul, 2019 4 commits
  8. 09 Jul, 2019 2 commits
  9. 08 Jul, 2019 2 commits
  10. 05 Jul, 2019 1 commit
  11. 03 Jul, 2019 1 commit
  12. 02 Jul, 2019 2 commits
    • Andreas Haas's avatar
      [wasm] Introduce WasmIndirectFunctionTable · 2fe2a08b
      Andreas Haas authored
      This is the first of three CLs which refactors indirect function calls
      through tables with index > 0 to work without runtime calls.
      
      The first CL introduces the WasmIndirectFunctionTable heap object. For
      a table of type anyfunc within a WebAssembly instance,
      WasmIndirectFunctionTable stores the size, the signature id's, the
      call targets, and the reference parameters for that table. I used the
      names that are already used for the matching fields of the
      WasmInstanceObject.
      
      The second CL expands the IndirectFunctionTableEntry to work also on
      WasmIndirectFunctionTable objects. All changes to a function table go
      through this class.
      
      The third CL introduces uses of the WasmIndirectFunctionTable. In this
      CL I change the code generation in TurboFan to replace runime calls with
      direct accesses to the new WasmIndirectFunctionTable. Additionally I
      extended the initialization of WasmIndirectFunctionTable, and also
      implement Table.grow.
      
      R=jkummerow@chromium.org
      
      Bug: v8:7581
      Change-Id: I0ecfcb9565e992ddba087d46c1f0e952abfa5822
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1681134Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
      Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
      Commit-Queue: Andreas Haas <ahaas@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#62492}
      2fe2a08b
    • Yang Guo's avatar
      Use COMMON_OWNERS for tools/ · 971b9306
      Yang Guo authored
      R=machenbach@chromium.org
      
      Change-Id: I1e85df85e8eb588a0ae97320eba6e72163d9ff18
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1684175Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
      Commit-Queue: Yang Guo <yangguo@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#62484}
      971b9306
  13. 30 Jun, 2019 1 commit
  14. 28 Jun, 2019 4 commits
  15. 27 Jun, 2019 3 commits
  16. 26 Jun, 2019 1 commit
  17. 25 Jun, 2019 4 commits
  18. 24 Jun, 2019 1 commit
    • Mathias Bynens's avatar
      [objects] Rename JSValue to JSPrimitiveWrapper · e428dfd7
      Mathias Bynens authored
      We currently use the class name “JSValue” for JSObjects that wrap
      primitive values. This name is a common source of confusion. This patch
      switches to a name that’s more clear.
      
      In addition to manual tweaks, the patch applies the following mechanical
      global replacements:
      
      before                          | after
      --------------------------------|--------------------------------------
      if_valueisnotvalue              | if_valueisnotwrapper
      if_valueisvalue                 | if_valueiswrapper
      js_value                        | js_primitive_wrapper
      JS_VALUE_TYPE                   | JS_PRIMITIVE_WRAPPER_TYPE
      JSPrimitiveWrapperType          | JSPrimitiveWrapper type
      jsvalue                         | js_primitive_wrapper
      JSValue                         | JSPrimitiveWrapper
      _GENERATED_JSVALUE_FIELDS       | _GENERATED_JSPRIMITIVE_WRAPPER_FIELDS
      
      Change-Id: I9d9edea784eab6067b013e1f781e4db2070f807c
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1672942Reviewed-by: 's avatarTamer Tas <tmrts@chromium.org>
      Reviewed-by: 's avatarMichael Stanton <mvstanton@chromium.org>
      Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
      Commit-Queue: Mathias Bynens <mathias@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#62337}
      e428dfd7
  19. 21 Jun, 2019 2 commits
    • Sigurd Schneider's avatar
      [torque] Support 'real' internal classes · 76c1e829
      Sigurd Schneider authored
      Rework the implementation of non-external Torque classes to use
      Struct machinery rather than FixedArray machinery. This allows
      Torque-only defined 'internal' classes to the automatically generate
      class verifiers and printers.
      
      As part of this change, generate C++ boilerplate accessors for
      internal Torque classes, since this is a pre-requisite for the
      verifiers, printers and other Struct-based functionality.
      
      Moreover, augment the header-generating functionality in Torque
      to create separate header files for field offset definitions,
      internal class C++ definitions and instance types.
      
      Bug: v8:7793
      Change-Id: I47d5f1570040c2b44d378f23b6cf95d3d132dacc
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1607645
      Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
      Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#62317}
      76c1e829
    • Irina Yatsenko's avatar
      Added !mem and !where extensions to windbg.js · 4965a34e
      Irina Yatsenko authored
      The extensions require isolate address to be set but don't rely on calling
      any runtime functions, which makes them viable for post-mortem debugging,
      if the corresponding memory is included into the dump
      
      !set_iso(isolate_address)
          call this function before using !mem or other heap routines
      
      !mem or !mem(\"space1[ space2 ...]\")
          prints memory chunks from the 'space' owned by the heap in the
          isolate set by !set_iso; valid values for 'space' are:
          new, old, map, code, lo [large], nlo [newlarge], ro [readonly]
          if no 'space' specified prints memory chunks for all spaces,
          e.g. !mem(\"code\"), !mem(\"ro new old\")
      
      !where(address)
          prints name of the space and address of the MemoryChunk the
          'address' is from, e.g. !where(0x235cb869f9)
      
      
      Output from !mem would look something like this:
      
      0:000> !mem("old")
      Heap at 0x210652b8838
      Im   address:	 object area start - end (size)
      OldSpace (allocating at: 0x1703dae7a20):
      *    0x33d9a8c0000:	 0x33d9a8c0138 - 0x33d9a8f1000 (0x31000)
           0x1703dac0000:	 0x1703dac0138 - 0x1703db00000 (0x40000)
      
      Change-Id: Iae1a217bbc5c5a88e2cf742db88ead9bb6fc904c
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1669744
      Commit-Queue: Irina Yatsenko <irinayat@microsoft.com>
      Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
      Reviewed-by: 's avatarSergiy Belozorov <sergiyb@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#62316}
      4965a34e