1. 28 Aug, 2015 1 commit
    • bmeurer's avatar
      [es6] Implement spec compliant ToPrimitive in the runtime. · f6c6d713
      bmeurer authored
      This is the first step towards a spec compliant ToPrimitive
      implementation (and therefore spec compliant ToNumber, ToString,
      ToName, and friends).  It adds support for the @@toPrimitive
      symbol that was introduced with ES2015, and also adds the new
      Symbol.prototype[@@toPrimitive] and Date.prototype[@@toPrimitive]
      initial properties.
      
      There are now runtime functions for %ToPrimitive, %ToNumber and
      %ToString, which do the right thing and should be used as fallbacks
      instead of the hairy runtime.js implementations.  I will do the
      same for the other conversion operations mentioned by the spec in
      follow up CLs.  Once everything is in place we can look into
      optimizing things further, so that we don't always call into the
      runtime.
      
      Also fixed Date.prototype.toJSON to be spec compliant.
      
      R=mstarzinger@chromium.org, yangguo@chromium.org
      BUG=v8:4307
      LOG=y
      
      Review URL: https://codereview.chromium.org/1306303003
      
      Cr-Commit-Position: refs/heads/master@{#30434}
      f6c6d713
  2. 27 Aug, 2015 2 commits
  3. 26 Aug, 2015 2 commits
  4. 25 Aug, 2015 1 commit
    • bmeurer's avatar
      Correctify instanceof and make it optimizable. · 5d875a57
      bmeurer authored
      The previous hack with HInstanceOfKnownGlobal was not only slower,
      but also very brittle and required a lot of weird hacks to support it. And
      what's even more important it wasn't even correct (because a map check
      on the lhs is never enough for instanceof).
      
      The new implementation provides a sane runtime implementation
      for InstanceOf plus a fast case in the InstanceOfStub, combined with
      a proper specialization in the case of a known global in CrankShaft,
      which does only the prototype chain walk (coupled with a code
      dependency on the known global).
      
      As a drive-by-fix: Also fix the incorrect Object.prototype.isPrototypeOf
      implementation.
      
      BUG=v8:4376
      LOG=y
      
      Review URL: https://codereview.chromium.org/1304633002
      
      Cr-Commit-Position: refs/heads/master@{#30342}
      5d875a57
  5. 21 Aug, 2015 2 commits
  6. 19 Aug, 2015 1 commit
  7. 13 Aug, 2015 3 commits
  8. 12 Aug, 2015 4 commits
  9. 11 Aug, 2015 1 commit
  10. 07 Aug, 2015 1 commit
  11. 05 Aug, 2015 1 commit
  12. 04 Aug, 2015 1 commit
  13. 03 Aug, 2015 2 commits
    • yangguo's avatar
      Remove JSFunctionResultCache. · 4a2e4420
      yangguo authored
      There is only one use case for it: String.prototype.search converts a
      string argument into a RegExp. The cache is used to avoid repeating that
      conversion. However, this does not make the added complexity worthwhile.
      
      Review URL: https://codereview.chromium.org/1267493006
      
      Cr-Commit-Position: refs/heads/master@{#29985}
      4a2e4420
    • bbudge's avatar
      SIMD.js Add the other SIMD Phase 1 types. · 7b9670b6
      bbudge authored
      Adds Int32x4, Bool32x4, Int16x8, Bool16x8, Int8x16, Bool8x16.
      Adds Simd128Value base heap object class.
      Changes heap/factory construction pattern to use arrays.
      Adds replaceLane functions to facilitate testing.
      
      NOPRESUBMIT=true
      (presubmit checks erroneously interpret array declaration in macro definition as variable size array.)
      
      LOG=Y
      BUG=v8:4124
      
      Review URL: https://codereview.chromium.org/1250733005
      
      Cr-Commit-Position: refs/heads/master@{#29974}
      7b9670b6
  14. 31 Jul, 2015 2 commits
    • bmeurer's avatar
      [stubs] Unify (and optimize) implementation of ToObject. · 4fc6f547
      bmeurer authored
      This is the initial (big) step towards a more uniform implementation of
      the ToObject abstract operation (ES6 7.1.13), where we have a fallback
      implementation in JSReceiver::ToObject() and a fast (hydrogen) CodeStub
      to deal with the fast case (we should be able to do more cleanup on this
      in a followup CL).  For natives we expose the abstract operation via a
      %_ToObject intrinsic, also exposed via a macro TO_OBJECT, that unifies
      the previous confusion with TO_OBJECT_INLINE, ToObject, TO_OBJECT,
      $toObject and %$toObject.  Now the whole implementation of the abstract
      operation is context independent, meaning we don't need any magic in the
      builtins object nor the native context.
      
      R=mvstanton@chromium.org,yangguo@chromium.org
      
      Review URL: https://codereview.chromium.org/1266013006
      
      Cr-Commit-Position: refs/heads/master@{#29953}
      4fc6f547
    • yangguo's avatar
      Debugger: move implementation to a separate folder. · 1667c15e
      yangguo authored
      R=cbruni@chromium.org
      
      Review URL: https://codereview.chromium.org/1265923002
      
      Cr-Commit-Position: refs/heads/master@{#29951}
      1667c15e
  15. 30 Jul, 2015 4 commits
  16. 28 Jul, 2015 2 commits
  17. 24 Jul, 2015 2 commits