1. 10 Sep, 2015 1 commit
    • bmeurer's avatar
      [runtime] Move binary operator fallbacks into the runtime. · a1b2ec60
      bmeurer authored
      Replace the ADD, SUB, etc. builtins with proper runtime implementations,
      and expose them as runtime calls that can be used by the code stubs and
      the interpreter (for now).
      
      Also remove all the support runtime functions for ADD, SUB and friends,
      namely %NumberAdd, %NumberSub, and so on.
      
      R=mstarzinger@chromium.org
      CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_layout_dbg,v8_linux_nosnap_dbg
      
      Review URL: https://codereview.chromium.org/1333843002
      
      Cr-Commit-Position: refs/heads/master@{#30680}
      a1b2ec60
  2. 01 Sep, 2015 1 commit
  3. 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
  4. 18 Aug, 2015 1 commit
  5. 11 Aug, 2015 1 commit
    • saper's avatar
      Use static_cast<> for NULL (clang 3.7) · 75e43a66
      saper authored
      The following errors come up when compiling v8
       with clang 3.7 on FreeBSD/amd64:
      
      src/runtime/runtime-i18n.cc:629:37: error: reinterpret_cast from
      'nullptr_t' to 'v8::internal::Smi *' is not allowed
        local_object->SetInternalField(1, reinterpret_cast<Smi*>(NULL));
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      test/cctest/test-heap.cc:131:20: error: reinterpret_cast from
            'nullptr_t' to 'v8::internal::Object *' is not allowed
        Handle<Object> n(reinterpret_cast<Object*>(NULL), isolate);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      test/cctest/test-heap.cc:1989:18: error: reinterpret_cast from
            'nullptr_t' to 'Address' (aka 'unsigned char *') is not
            allowed
        Address base = reinterpret_cast<Address>(NULL);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      +add myself to the AUTHORS file.
      
      BUG=
      
      Review URL: https://codereview.chromium.org/1277353002
      
      Cr-Commit-Position: refs/heads/master@{#30103}
      75e43a66
  6. 20 May, 2015 1 commit
  7. 12 May, 2015 3 commits
  8. 04 Feb, 2015 1 commit
  9. 20 Oct, 2014 1 commit
  10. 01 Oct, 2014 3 commits
  11. 25 Sep, 2014 1 commit