1. 12 Jan, 2016 6 commits
    • littledan's avatar
      Add @@species/better subclassing support to Promises · 56914501
      littledan authored
      This patch makes Promise.prototype.then use @@species as specified
      in ES2015. The fix is hoped for by certain users, such as legacy
      core.js versions which encounter an unhandled Promise reject (complete
      with an ugly console message) when Promise subclassing is supported
      in a mostly correct way, and we do error checking on Promise
      constructors, but @@species is not supported.
      
      BUG=chromium:575314,v8:4633
      LOG=Y
      R=adamk
      
      Review URL: https://codereview.chromium.org/1577223002
      
      Cr-Commit-Position: refs/heads/master@{#33225}
      56914501
    • hajimehoshi's avatar
      Add Add ExternalStringResourceBase::IsCompressible · 150887a1
      hajimehoshi authored
      This CL introduces ExternalStringResourceBase::IsCompressible.
      
      This CL is a preparation for CompressibleString, which can
      be compressed for memory reduction in Blink. We've found that
      JavaScript strings account for a relatively large part of Blink
      memory usage, and we are now trying to replace JavaScript String/
      AtomicString with CompressibleString.
      
      When a string is compressed, the original char data is deleted
      and V8 pointer cache becomes invalid. This CL introduces
      isCompressible  property and if an external string's isCompressble
      return true, this is stored short_external_*_map instead of
      external_*_map so that V8 always requires the char pointer whenever
      V8 needs the string data.
      
      BUG=chromium:574317
      LOG=n
      
      Review URL: https://codereview.chromium.org/1490193002
      
      Cr-Commit-Position: refs/heads/master@{#33224}
      150887a1
    • littledan's avatar
      TypedArray and ArrayBuffer support for @@species · 2bd9bdbe
      littledan authored
      This patch improves ArrayBuffer and TypedArray subclassing by adding
      support for @@species and constructing outputs to certain methods
      by creating an instance of the constructor determined by the
      SpeciesConstructor algorithm, rather than fixed to a superclass or
      naively the constructor. The new behavior is enabled by the
      --harmony-species flag. Care is taken to not significantly change the
      observable behavior when the flag is off. Previously, TypedArrays
      already supported subclassing by reading the constructor of the
      receiver, but ArrayBuffers did not, and this old behavior is
      preserved and tested for, to avoid a multi-stage upgrade path and keep
      things simple for users.
      
      R=adamk
      BUG=v8:4093
      LOG=Y
      
      Review URL: https://codereview.chromium.org/1574903004
      
      Cr-Commit-Position: refs/heads/master@{#33223}
      2bd9bdbe
    • jarin's avatar
      [turbofan] Replace MachineSemantic with Type in simplified lowering. · b37e7861
      jarin authored
      Review URL: https://codereview.chromium.org/1571263004
      
      Cr-Commit-Position: refs/heads/master@{#33222}
      b37e7861
    • bradnelson's avatar
      Enforce asm restrictions on switch more precisely. · b369fefc
      bradnelson authored
      Enforce cases have no duplicates.
      Enforce cases have a maximum range of 2^31.
      Enforce default case comes last.
      
      BUG= https://code.google.com/p/v8/issues/detail?id=4203
      TEST=test-asm-validator
      R=aseemgarg@chromium.org,titzer@chromium.org
      LOG=N
      
      Review URL: https://codereview.chromium.org/1578963003
      
      Cr-Commit-Position: refs/heads/master@{#33221}
      b369fefc
    • aseemgarg's avatar
      Add switch to asm to wasm · 210e65ed
      aseemgarg authored
      TEST=asm-wasm.js
      R=titzer@chromium.org,bradnelson@google.com
      BUG=
      
      Review URL: https://codereview.chromium.org/1573413002
      
      Cr-Commit-Position: refs/heads/master@{#33220}
      210e65ed
  2. 11 Jan, 2016 24 commits
  3. 09 Jan, 2016 1 commit
  4. 08 Jan, 2016 9 commits