1. 06 Jul, 2016 27 commits
  2. 05 Jul, 2016 13 commits
    • bjaideep's avatar
      PPC/s390: [builtins] Unify most of the remaining Math builtins. · 305d42c0
      bjaideep authored
      Port 0a0fe8fb
      
      Original commit message:
      
      Import fdlibm versions of acos, acosh, asin and asinh, which are more
          precise and produce the same result across platforms (we were using
          libm versions for asin and acos so far, where both speed and precision
          depended on the operating system so far). Introduce appropriate TurboFan
          operators for these functions and use them both for inlining and for the
          generic builtin.
      
          Also migrate the Math.imul and Math.fround builtins to TurboFan builtins
          to ensure that their behavior is always exactly the same as the inlined
          TurboFan version (i.e. C++ truncation semantics for double to float
          don't necessarily meet the JavaScript semantics).
      
          For completeness, also migrate Math.sign, which can even get some nice
          love in TurboFan.
      
          Drive-by-fix: Some alpha-sorting on the Math related functions, and
          cleanup the list of Math intrinsics that we have to export via the
          native context currently.
      
      R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, mbrandy@us.ibm.com
      
      BUG=v8:3266,v8:3496,v8:3509,v8:3952,v8:5169,v8:5170,v8:5171,v8:5172
      LOG=N
      
      Review-Url: https://codereview.chromium.org/2125723002
      Cr-Commit-Position: refs/heads/master@{#37539}
      305d42c0
    • mlippautz's avatar
      [heap] Clear slots for map space when writing zap values · 9a4132aa
      mlippautz authored
      Pointer updating requires the all slots to be valid. If we write zap values in
      the sweeper we need to filter out invalid slots before.
      
      BUG=chromium:625748
      LOG=N
      R=ulan@chromium.org
      
      Review-Url: https://codereview.chromium.org/2122963002
      Cr-Commit-Position: refs/heads/master@{#37538}
      9a4132aa
    • mlippautz's avatar
      Reland "[heap] Track length for array buffers to avoid free-ing dependency" · da3745d8
      mlippautz authored
      The dependency would only happen if we have a smi overflow for the length and
      have create a heap number. In this case the heap number would've to survive
      until the array buffer is collected.
      
      To avoid this dependency we track the length (as we previously used to).
      
      BUG=chromium:625752
      LOG=N
      TEST=test/mjsunit/regress/regress-625752.js
      R=hpayer@chromium.org
      
      This reverts commit 1791d7bb.
      
      Review-Url: https://codereview.chromium.org/2127643002
      Cr-Commit-Position: refs/heads/master@{#37537}
      da3745d8
    • verwaest's avatar
      Cleanup array constructor inlining in crankshaft · 71eabf5c
      verwaest authored
      This CL removes unnecessary complexity from crankshaft, possible due to the
      move of ArrayConstructor to code-stub-assembler. Making the code easier
      hopefully helps us find bugs.
      
      BUG=
      
      Review-Url: https://codereview.chromium.org/2117383002
      Cr-Commit-Position: refs/heads/master@{#37536}
      71eabf5c
    • verwaest's avatar
      Abort if we ever allocate a non-0-sized packed array · c2eb0750
      verwaest authored
      BUG=chromium:621147
      
      Review-Url: https://codereview.chromium.org/2122943002
      Cr-Commit-Position: refs/heads/master@{#37535}
      c2eb0750
    • jochen's avatar
      Remove obsolete patching step from runtime callstats.html · 9d66b3f3
      jochen authored
      BUG=
      R=cbruni@chromium.org
      
      Review-Url: https://codereview.chromium.org/2119823002
      Cr-Commit-Position: refs/heads/master@{#37534}
      9d66b3f3
    • machenbach's avatar
      Revert of [heap] Track length for array buffers to avoid free-ing dependency... · 1791d7bb
      machenbach authored
      Revert of [heap] Track length for array buffers to avoid free-ing dependency (patchset #2 id:20001 of https://codereview.chromium.org/2122603004/ )
      
      Reason for revert:
      [Sheriff] This makes mjsunit/regress/regress-625752 extremely slow on all gc stress bots and leads to timeouts with custom snapshot:
      https://build.chromium.org/p/client.v8/builders/V8%20Linux64%20GC%20Stress%20-%20custom%20snapshot/builds/6602
      
      Original issue's description:
      > [heap] Track length for array buffers to avoid free-ing dependency
      >
      > The dependency would only happen if we have a smi overflow for the length and
      > have create a heap number. In this case the heap number would've to survive
      > until the array buffer is collected.
      >
      > To avoid this dependency we track the length (as we previously used to).
      >
      > BUG=chromium:625748,chromium:625752
      > LOG=N
      > TEST=test/mjsunit/regress/regress-625752.js
      > R=hpayer@chromium.org
      >
      > Committed: https://crrev.com/ddc75cc1356a58b6cfd63f9da0586e1150496b3d
      > Cr-Commit-Position: refs/heads/master@{#37530}
      
      TBR=hpayer@chromium.org,mlippautz@chromium.org
      # Skipping CQ checks because original CL landed less than 1 days ago.
      NOPRESUBMIT=true
      NOTREECHECKS=true
      NOTRY=true
      BUG=chromium:625748,chromium:625752
      
      Review-Url: https://codereview.chromium.org/2127483003
      Cr-Commit-Position: refs/heads/master@{#37533}
      1791d7bb
    • honggyu.kp's avatar
      Strictly disable instantiation of AllStatic class · 446232f1
      honggyu.kp authored
      Since the intention of using AllStatic class is to provide classes that
      only contain static method functions without member variables so it
      doesn't have to be instantiated at all.
      
      However, current implementation only disables dynamic instantiation, and
      it can be detected at runtime by reaching UNREACHABLE().  And it can
      still have instances allocated inside stack.
      
      This blocks all those cases by deleting default constructor of AllStatic
      class to prevent undesirable usage of it.
      
      BUG=
      R=jochen@chromium.org
      
      Review-Url: https://codereview.chromium.org/2108273003
      Cr-Commit-Position: refs/heads/master@{#37532}
      446232f1
    • oth's avatar
      [interpreter] Introduce binary op bytecodes for Smi operand. · 40511877
      oth authored
      Introduces fused bytecodes for fusing LdaSmi followed by a binary op bytecode.
      The chosen bytecodes are used frequently in Octane: AddSmi, SubSmi,
      BitwiseOrSmi, BitwiseAndSmi, ShiftLeftSmi, ShiftRightSmi.
      
      There are additional code stubs for these operations that are biased towards
      both the left hand and right hand operands being Smis.
      
      BUG=v8:4280
      LOG=N
      
      Review-Url: https://codereview.chromium.org/2111923002
      Cr-Commit-Position: refs/heads/master@{#37531}
      40511877
    • mlippautz's avatar
      [heap] Track length for array buffers to avoid free-ing dependency · ddc75cc1
      mlippautz authored
      The dependency would only happen if we have a smi overflow for the length and
      have create a heap number. In this case the heap number would've to survive
      until the array buffer is collected.
      
      To avoid this dependency we track the length (as we previously used to).
      
      BUG=chromium:625748,chromium:625752
      LOG=N
      TEST=test/mjsunit/regress/regress-625752.js
      R=hpayer@chromium.org
      
      Review-Url: https://codereview.chromium.org/2122603004
      Cr-Commit-Position: refs/heads/master@{#37530}
      ddc75cc1
    • mstarzinger's avatar
      [turbofan] Remove obsolete frame-state from count op. · e0dd3119
      mstarzinger authored
      This removes the usage of {FrameStateBeforeAndAfter} from the graph
      building for count operations. The {JSAdd} or {JSSubtract} node in
      question no longer needs the frame-state attached.
      
      R=bmeurer@chromium.org
      
      Review-Url: https://codereview.chromium.org/2127523002
      Cr-Commit-Position: refs/heads/master@{#37529}
      e0dd3119
    • bmeurer's avatar
      [turbofan] Initial version of the new LoadElimination. · d70dc1ac
      bmeurer authored
      This adds a new optimization phase to the TurboFan pipeline, which walks
      over the effect chain and tries to eliminate redundant loads (and even
      some stores) of object fields. We currently ignore element access, but
      that will probably need to be handled as well at some point. We also
      don't have any special treatment to properly track object maps, which is
      also on the list of things that will happen afterwards.
      
      The implementation is pretty simple currently, and probably way to
      inefficient. It's meant to be a proof-of-concept to iterate on.
      
      R=jarin@chromium.org
      BUG=v8:4930,v8:5141
      
      Review-Url: https://codereview.chromium.org/2120253002
      Cr-Commit-Position: refs/heads/master@{#37528}
      d70dc1ac
    • ahaas's avatar
      [wasm] Copy the signature when compiling an imported function. · 65415ca7
      ahaas authored
      The signature of an imported function is needed to compile a wrapper in
      wasm to call the imported function. The signature is stored in a heap
      object which is created when the wasm module is compiled. With this CL
      we do not use a pointer to the signature in the heap object but instead
      copy the signature and then use a pointer to the copy. A pointer into
      a heap object causes problems when a GC is happening.
      
      R=titzer@chromium.org, mtrofin@chromium.org
      
      Review-Url: https://codereview.chromium.org/2124743002
      Cr-Commit-Position: refs/heads/master@{#37527}
      65415ca7