1. 02 Apr, 2016 3 commits
    • machenbach's avatar
      Revert of Turbofan: Add MachineOperators for SIMD. (patchset #1 id:1 of... · 8625c489
      machenbach authored
      Revert of Turbofan: Add MachineOperators for SIMD. (patchset #1 id:1 of https://codereview.chromium.org/1850383002/ )
      
      Reason for revert:
      The first revert did help after all. See comments on:
      https://codereview.chromium.org/1848433003/
      
      Original issue's description:
      > Reland of Turbofan: Add MachineOperators for SIMD. (patchset #1 id:1 of https://codereview.chromium.org/1850373002/ )
      >
      > Reason for revert:
      > Revert didn't help. Still we need to figure out what bothers the msan build.
      >
      > Original issue's description:
      > > Revert of Turbofan: Add MachineOperators for SIMD. (patchset #5 id:70001 of https://codereview.chromium.org/1848433003/ )
      > >
      > > Reason for revert:
      > > [Sheriff] Speculative revert. Compile now times out on msan:
      > > https://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20arm64%20-%20sim%20-%20MSAN/builds/7705
      > >
      > > Original issue's description:
      > > > Turbofan: Add MachineOperators for SIMD.
      > > >
      > > > Takes the SIMD runtime intrinsics as a starting point for defining TF machine operators. The rationale for omitting functions is:
      > > >
      > > >  - UInt constructors. int and uint aren't distinguished in wasm.
      > > >  - Check functions.
      > > >  - 'FromXxxBits' functions. These are essentially casts.
      > > >  - Simple Load / Store functions. Existing load / store with SIMD type should work.
      > > >  - Uint functions, except where their behavior is bitwise different from the Int function.
      > > >
      > > > Skipped fns:
      > > >
      > > > Float32x4Check
      > > > Float32x4FromInt32x4Bits
      > > > Float32x4FromUint32x4Bits
      > > > Float32x4FromInt16x8Bits
      > > > Float32x4FromUint16x8Bits
      > > > Float32x4FromInt8x16Bits
      > > > Float32x4FromUint8x16Bits
      > > > Float32x4Load
      > > > Float32x4Store
      > > >
      > > > Int32x4Check
      > > > Int32x4FromUint32x4
      > > > Int32x4FromFloat32x4Bits
      > > > Int32x4FromUint32x4Bits
      > > > Int32x4FromInt16x8Bits
      > > > Int32x4FromUint16x8Bits
      > > > Int32x4FromInt8x16Bits
      > > > Int32x4FromUint8x16Bits
      > > > Int32x4Load
      > > > Int32x4Store
      > > >
      > > > CreateUint32x4
      > > > Uint32x4Check
      > > > Uint32x4ExtractLane
      > > > Uint32x4ReplaceLane
      > > > Uint32x4Add
      > > > Uint32x4Sub
      > > > Uint32x4Mul
      > > > Uint32x4And
      > > > Uint32x4Or
      > > > Uint32x4Xor
      > > > Uint32x4Not
      > > > Uint32x4Equal
      > > > Uint32x4NotEqual
      > > > Uint32x4Select
      > > > Uint32x4Swizzle
      > > > Uint32x4Shuffle
      > > > Uint32x4FromInt32x4
      > > > Uint32x4FromFloat32x4Bits
      > > > Uint32x4FromInt32x4Bits
      > > > Uint32x4FromInt16x8Bits
      > > > Uint32x4FromUint16x8Bits
      > > > Uint32x4FromInt8x16Bits
      > > > Uint32x4FromUint8x16Bits
      > > > Uint32x4Load
      > > > Uint32x4Load1
      > > > Uint32x4Load2
      > > > Uint32x4Load3
      > > > Uint32x4Store
      > > > Uint32x4Store1
      > > > Uint32x4Store2
      > > > Uint32x4Store3
      > > >
      > > > Bool32x4Check
      > > >
      > > > Int16x8Check
      > > > Int16x8FromUint16x8
      > > > Int16x8FromFloat32x4Bits
      > > > Int16x8FromInt32x4Bits
      > > > Int16x8FromUint32x4Bits
      > > > Int16x8FromUint16x8Bits
      > > > Int16x8FromInt8x16Bits
      > > > Int16x8FromUint8x16Bits
      > > > Int16x8Load
      > > > Int16x8Store
      > > >
      > > > CreateUint16x8
      > > > Uint16x8Check
      > > > Uint16x8ExtractLane
      > > > Uint16x8ReplaceLane
      > > > Uint16x8Add
      > > > Uint16x8Sub
      > > > Uint16x8Mul
      > > > Uint16x8And
      > > > Uint16x8Or
      > > > Uint16x8Xor
      > > > Uint16x8Not
      > > > Uint16x8Equal
      > > > Uint16x8NotEqual
      > > > Uint16x8Select
      > > > Uint16x8Swizzle
      > > > Uint16x8Shuffle
      > > > Uint16x8FromInt16x8
      > > > Uint16x8FromFloat32x4Bits
      > > > Uint16x8FromInt32x4Bits
      > > > Uint16x8FromUint32x4Bits
      > > > Uint16x8FromInt16x8Bits
      > > > Uint16x8FromInt8x16Bits
      > > > Uint16x8FromUint8x16Bits
      > > > Uint16x8Load
      > > > Uint16x8Store
      > > >
      > > > Bool16x8Check
      > > >
      > > > Int8x16Check
      > > > Int8x16FromUint8x16
      > > > Int8x16FromFloat32x4Bits
      > > > Int8x16FromInt32x4Bits
      > > > Int8x16FromUint32x4Bits
      > > > Int8x16FromInt16x8Bits
      > > > Int8x16FromUint16x8Bits
      > > > Int8x16FromUint8x16Bits
      > > > Int8x16Load
      > > > Int8x16Store
      > > >
      > > > CreateUint8x16
      > > > Uint8x16Check
      > > > Uint8x16ExtractLane
      > > > Uint8x16ReplaceLane
      > > > Uint8x16Add
      > > > Uint8x16Sub
      > > > Uint8x16Mul
      > > > Uint8x16And
      > > > Uint8x16Or
      > > > Uint8x16Xor
      > > > Uint8x16Not
      > > > Uint8x16Equal
      > > > Uint8x16NotEqual
      > > > Uint8x16Select
      > > > Uint8x16Swizzle
      > > > Uint8x16Shuffle
      > > > Uint8x16FromInt8x16
      > > > Uint8x16FromFloat32x4Bits
      > > > Uint8x16FromInt32x4Bits
      > > > Uint8x16FromUint32x4Bits
      > > > Uint8x16FromInt16x8Bits
      > > > Uint8x16FromUint16x8Bits
      > > > Uint8x16FromInt8x16Bits
      > > > Uint8x16Load
      > > > Uint8x16Store
      > > >
      > > > Bool8x16Check
      > > >
      > > > LOG=N
      > > > BUG=v8:4124
      > > >
      > > > Committed: https://crrev.com/3831d41e4ce7b162775732cb6ac1f8139e60aa30
      > > > Cr-Commit-Position: refs/heads/master@{#35213}
      > >
      > > TBR=bradnelson@chromium.org,gdeepti@chromium.org,titzer@chromium.org,mtrofin@chromium.org,bradnelson@google.com,bmeurer@chromium.org,bbudge@chromium.org
      > > # Skipping CQ checks because original CL landed less than 1 days ago.
      > > NOPRESUBMIT=true
      > > NOTREECHECKS=true
      > > NOTRY=true
      > > BUG=v8:4124
      > >
      > > Committed: https://crrev.com/8481ec6016992e0b9ffb70137e9ff8fcd4135bba
      > > Cr-Commit-Position: refs/heads/master@{#35220}
      >
      > TBR=bradnelson@chromium.org,gdeepti@chromium.org,titzer@chromium.org,mtrofin@chromium.org,bradnelson@google.com,bmeurer@chromium.org,bbudge@chromium.org
      > # Skipping CQ checks because original CL landed less than 1 days ago.
      > NOPRESUBMIT=true
      > NOTREECHECKS=true
      > NOTRY=true
      > BUG=v8:4124
      >
      > Committed: https://crrev.com/1f46e3ee8cec6b06b30b569e5688de095c4661ff
      > Cr-Commit-Position: refs/heads/master@{#35221}
      
      TBR=bradnelson@chromium.org,gdeepti@chromium.org,titzer@chromium.org,mtrofin@chromium.org,bradnelson@google.com,bmeurer@chromium.org,bbudge@chromium.org
      # Skipping CQ checks because original CL landed less than 1 days ago.
      NOPRESUBMIT=true
      NOTREECHECKS=true
      NOTRY=true
      BUG=v8:4124
      
      Review URL: https://codereview.chromium.org/1846413002
      
      Cr-Commit-Position: refs/heads/master@{#35222}
      8625c489
    • machenbach's avatar
      Reland of Turbofan: Add MachineOperators for SIMD. (patchset #1 id:1 of... · 1f46e3ee
      machenbach authored
      Reland of Turbofan: Add MachineOperators for SIMD. (patchset #1 id:1 of https://codereview.chromium.org/1850373002/ )
      
      Reason for revert:
      Revert didn't help. Still we need to figure out what bothers the msan build.
      
      Original issue's description:
      > Revert of Turbofan: Add MachineOperators for SIMD. (patchset #5 id:70001 of https://codereview.chromium.org/1848433003/ )
      >
      > Reason for revert:
      > [Sheriff] Speculative revert. Compile now times out on msan:
      > https://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20arm64%20-%20sim%20-%20MSAN/builds/7705
      >
      > Original issue's description:
      > > Turbofan: Add MachineOperators for SIMD.
      > >
      > > Takes the SIMD runtime intrinsics as a starting point for defining TF machine operators. The rationale for omitting functions is:
      > >
      > >  - UInt constructors. int and uint aren't distinguished in wasm.
      > >  - Check functions.
      > >  - 'FromXxxBits' functions. These are essentially casts.
      > >  - Simple Load / Store functions. Existing load / store with SIMD type should work.
      > >  - Uint functions, except where their behavior is bitwise different from the Int function.
      > >
      > > Skipped fns:
      > >
      > > Float32x4Check
      > > Float32x4FromInt32x4Bits
      > > Float32x4FromUint32x4Bits
      > > Float32x4FromInt16x8Bits
      > > Float32x4FromUint16x8Bits
      > > Float32x4FromInt8x16Bits
      > > Float32x4FromUint8x16Bits
      > > Float32x4Load
      > > Float32x4Store
      > >
      > > Int32x4Check
      > > Int32x4FromUint32x4
      > > Int32x4FromFloat32x4Bits
      > > Int32x4FromUint32x4Bits
      > > Int32x4FromInt16x8Bits
      > > Int32x4FromUint16x8Bits
      > > Int32x4FromInt8x16Bits
      > > Int32x4FromUint8x16Bits
      > > Int32x4Load
      > > Int32x4Store
      > >
      > > CreateUint32x4
      > > Uint32x4Check
      > > Uint32x4ExtractLane
      > > Uint32x4ReplaceLane
      > > Uint32x4Add
      > > Uint32x4Sub
      > > Uint32x4Mul
      > > Uint32x4And
      > > Uint32x4Or
      > > Uint32x4Xor
      > > Uint32x4Not
      > > Uint32x4Equal
      > > Uint32x4NotEqual
      > > Uint32x4Select
      > > Uint32x4Swizzle
      > > Uint32x4Shuffle
      > > Uint32x4FromInt32x4
      > > Uint32x4FromFloat32x4Bits
      > > Uint32x4FromInt32x4Bits
      > > Uint32x4FromInt16x8Bits
      > > Uint32x4FromUint16x8Bits
      > > Uint32x4FromInt8x16Bits
      > > Uint32x4FromUint8x16Bits
      > > Uint32x4Load
      > > Uint32x4Load1
      > > Uint32x4Load2
      > > Uint32x4Load3
      > > Uint32x4Store
      > > Uint32x4Store1
      > > Uint32x4Store2
      > > Uint32x4Store3
      > >
      > > Bool32x4Check
      > >
      > > Int16x8Check
      > > Int16x8FromUint16x8
      > > Int16x8FromFloat32x4Bits
      > > Int16x8FromInt32x4Bits
      > > Int16x8FromUint32x4Bits
      > > Int16x8FromUint16x8Bits
      > > Int16x8FromInt8x16Bits
      > > Int16x8FromUint8x16Bits
      > > Int16x8Load
      > > Int16x8Store
      > >
      > > CreateUint16x8
      > > Uint16x8Check
      > > Uint16x8ExtractLane
      > > Uint16x8ReplaceLane
      > > Uint16x8Add
      > > Uint16x8Sub
      > > Uint16x8Mul
      > > Uint16x8And
      > > Uint16x8Or
      > > Uint16x8Xor
      > > Uint16x8Not
      > > Uint16x8Equal
      > > Uint16x8NotEqual
      > > Uint16x8Select
      > > Uint16x8Swizzle
      > > Uint16x8Shuffle
      > > Uint16x8FromInt16x8
      > > Uint16x8FromFloat32x4Bits
      > > Uint16x8FromInt32x4Bits
      > > Uint16x8FromUint32x4Bits
      > > Uint16x8FromInt16x8Bits
      > > Uint16x8FromInt8x16Bits
      > > Uint16x8FromUint8x16Bits
      > > Uint16x8Load
      > > Uint16x8Store
      > >
      > > Bool16x8Check
      > >
      > > Int8x16Check
      > > Int8x16FromUint8x16
      > > Int8x16FromFloat32x4Bits
      > > Int8x16FromInt32x4Bits
      > > Int8x16FromUint32x4Bits
      > > Int8x16FromInt16x8Bits
      > > Int8x16FromUint16x8Bits
      > > Int8x16FromUint8x16Bits
      > > Int8x16Load
      > > Int8x16Store
      > >
      > > CreateUint8x16
      > > Uint8x16Check
      > > Uint8x16ExtractLane
      > > Uint8x16ReplaceLane
      > > Uint8x16Add
      > > Uint8x16Sub
      > > Uint8x16Mul
      > > Uint8x16And
      > > Uint8x16Or
      > > Uint8x16Xor
      > > Uint8x16Not
      > > Uint8x16Equal
      > > Uint8x16NotEqual
      > > Uint8x16Select
      > > Uint8x16Swizzle
      > > Uint8x16Shuffle
      > > Uint8x16FromInt8x16
      > > Uint8x16FromFloat32x4Bits
      > > Uint8x16FromInt32x4Bits
      > > Uint8x16FromUint32x4Bits
      > > Uint8x16FromInt16x8Bits
      > > Uint8x16FromUint16x8Bits
      > > Uint8x16FromInt8x16Bits
      > > Uint8x16Load
      > > Uint8x16Store
      > >
      > > Bool8x16Check
      > >
      > > LOG=N
      > > BUG=v8:4124
      > >
      > > Committed: https://crrev.com/3831d41e4ce7b162775732cb6ac1f8139e60aa30
      > > Cr-Commit-Position: refs/heads/master@{#35213}
      >
      > TBR=bradnelson@chromium.org,gdeepti@chromium.org,titzer@chromium.org,mtrofin@chromium.org,bradnelson@google.com,bmeurer@chromium.org,bbudge@chromium.org
      > # Skipping CQ checks because original CL landed less than 1 days ago.
      > NOPRESUBMIT=true
      > NOTREECHECKS=true
      > NOTRY=true
      > BUG=v8:4124
      >
      > Committed: https://crrev.com/8481ec6016992e0b9ffb70137e9ff8fcd4135bba
      > Cr-Commit-Position: refs/heads/master@{#35220}
      
      TBR=bradnelson@chromium.org,gdeepti@chromium.org,titzer@chromium.org,mtrofin@chromium.org,bradnelson@google.com,bmeurer@chromium.org,bbudge@chromium.org
      # Skipping CQ checks because original CL landed less than 1 days ago.
      NOPRESUBMIT=true
      NOTREECHECKS=true
      NOTRY=true
      BUG=v8:4124
      
      Review URL: https://codereview.chromium.org/1850383002
      
      Cr-Commit-Position: refs/heads/master@{#35221}
      1f46e3ee
    • machenbach's avatar
      Revert of Turbofan: Add MachineOperators for SIMD. (patchset #5 id:70001 of... · 8481ec60
      machenbach authored
      Revert of Turbofan: Add MachineOperators for SIMD. (patchset #5 id:70001 of https://codereview.chromium.org/1848433003/ )
      
      Reason for revert:
      [Sheriff] Speculative revert. Compile now times out on msan:
      https://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20arm64%20-%20sim%20-%20MSAN/builds/7705
      
      Original issue's description:
      > Turbofan: Add MachineOperators for SIMD.
      >
      > Takes the SIMD runtime intrinsics as a starting point for defining TF machine operators. The rationale for omitting functions is:
      >
      >  - UInt constructors. int and uint aren't distinguished in wasm.
      >  - Check functions.
      >  - 'FromXxxBits' functions. These are essentially casts.
      >  - Simple Load / Store functions. Existing load / store with SIMD type should work.
      >  - Uint functions, except where their behavior is bitwise different from the Int function.
      >
      > Skipped fns:
      >
      > Float32x4Check
      > Float32x4FromInt32x4Bits
      > Float32x4FromUint32x4Bits
      > Float32x4FromInt16x8Bits
      > Float32x4FromUint16x8Bits
      > Float32x4FromInt8x16Bits
      > Float32x4FromUint8x16Bits
      > Float32x4Load
      > Float32x4Store
      >
      > Int32x4Check
      > Int32x4FromUint32x4
      > Int32x4FromFloat32x4Bits
      > Int32x4FromUint32x4Bits
      > Int32x4FromInt16x8Bits
      > Int32x4FromUint16x8Bits
      > Int32x4FromInt8x16Bits
      > Int32x4FromUint8x16Bits
      > Int32x4Load
      > Int32x4Store
      >
      > CreateUint32x4
      > Uint32x4Check
      > Uint32x4ExtractLane
      > Uint32x4ReplaceLane
      > Uint32x4Add
      > Uint32x4Sub
      > Uint32x4Mul
      > Uint32x4And
      > Uint32x4Or
      > Uint32x4Xor
      > Uint32x4Not
      > Uint32x4Equal
      > Uint32x4NotEqual
      > Uint32x4Select
      > Uint32x4Swizzle
      > Uint32x4Shuffle
      > Uint32x4FromInt32x4
      > Uint32x4FromFloat32x4Bits
      > Uint32x4FromInt32x4Bits
      > Uint32x4FromInt16x8Bits
      > Uint32x4FromUint16x8Bits
      > Uint32x4FromInt8x16Bits
      > Uint32x4FromUint8x16Bits
      > Uint32x4Load
      > Uint32x4Load1
      > Uint32x4Load2
      > Uint32x4Load3
      > Uint32x4Store
      > Uint32x4Store1
      > Uint32x4Store2
      > Uint32x4Store3
      >
      > Bool32x4Check
      >
      > Int16x8Check
      > Int16x8FromUint16x8
      > Int16x8FromFloat32x4Bits
      > Int16x8FromInt32x4Bits
      > Int16x8FromUint32x4Bits
      > Int16x8FromUint16x8Bits
      > Int16x8FromInt8x16Bits
      > Int16x8FromUint8x16Bits
      > Int16x8Load
      > Int16x8Store
      >
      > CreateUint16x8
      > Uint16x8Check
      > Uint16x8ExtractLane
      > Uint16x8ReplaceLane
      > Uint16x8Add
      > Uint16x8Sub
      > Uint16x8Mul
      > Uint16x8And
      > Uint16x8Or
      > Uint16x8Xor
      > Uint16x8Not
      > Uint16x8Equal
      > Uint16x8NotEqual
      > Uint16x8Select
      > Uint16x8Swizzle
      > Uint16x8Shuffle
      > Uint16x8FromInt16x8
      > Uint16x8FromFloat32x4Bits
      > Uint16x8FromInt32x4Bits
      > Uint16x8FromUint32x4Bits
      > Uint16x8FromInt16x8Bits
      > Uint16x8FromInt8x16Bits
      > Uint16x8FromUint8x16Bits
      > Uint16x8Load
      > Uint16x8Store
      >
      > Bool16x8Check
      >
      > Int8x16Check
      > Int8x16FromUint8x16
      > Int8x16FromFloat32x4Bits
      > Int8x16FromInt32x4Bits
      > Int8x16FromUint32x4Bits
      > Int8x16FromInt16x8Bits
      > Int8x16FromUint16x8Bits
      > Int8x16FromUint8x16Bits
      > Int8x16Load
      > Int8x16Store
      >
      > CreateUint8x16
      > Uint8x16Check
      > Uint8x16ExtractLane
      > Uint8x16ReplaceLane
      > Uint8x16Add
      > Uint8x16Sub
      > Uint8x16Mul
      > Uint8x16And
      > Uint8x16Or
      > Uint8x16Xor
      > Uint8x16Not
      > Uint8x16Equal
      > Uint8x16NotEqual
      > Uint8x16Select
      > Uint8x16Swizzle
      > Uint8x16Shuffle
      > Uint8x16FromInt8x16
      > Uint8x16FromFloat32x4Bits
      > Uint8x16FromInt32x4Bits
      > Uint8x16FromUint32x4Bits
      > Uint8x16FromInt16x8Bits
      > Uint8x16FromUint16x8Bits
      > Uint8x16FromInt8x16Bits
      > Uint8x16Load
      > Uint8x16Store
      >
      > Bool8x16Check
      >
      > LOG=N
      > BUG=v8:4124
      >
      > Committed: https://crrev.com/3831d41e4ce7b162775732cb6ac1f8139e60aa30
      > Cr-Commit-Position: refs/heads/master@{#35213}
      
      TBR=bradnelson@chromium.org,gdeepti@chromium.org,titzer@chromium.org,mtrofin@chromium.org,bradnelson@google.com,bmeurer@chromium.org,bbudge@chromium.org
      # Skipping CQ checks because original CL landed less than 1 days ago.
      NOPRESUBMIT=true
      NOTREECHECKS=true
      NOTRY=true
      BUG=v8:4124
      
      Review URL: https://codereview.chromium.org/1850373002
      
      Cr-Commit-Position: refs/heads/master@{#35220}
      8481ec60
  2. 01 Apr, 2016 5 commits
    • bbudge's avatar
      Turbofan: Add MachineOperators for SIMD. · 3831d41e
      bbudge authored
      IMPORTANT NOTE: This will likely be macroized to reduce boilerplate. Publishing now to start discussion about approach, which ops are needed, etc. Omitted functions are commented out in machine-operator.h so start there.
      
      Takes the SIMD runtime intrinsics as a starting point for defining TF machine operators. The rationale for omitting functions is:
      
       - UInt constructors. int and uint aren't distinguished in wasm.
       - Check functions.
       - 'FromXxxBits' functions. These are essentially casts.
       - Simple Load / Store functions. Existing load / store with SIMD type should work.
       - Uint functions, except where their behavior is bitwise different from the Int function.
      
      Skipped fns:
      
      Float32x4Check
      Float32x4FromInt32x4Bits
      Float32x4FromUint32x4Bits
      Float32x4FromInt16x8Bits
      Float32x4FromUint16x8Bits
      Float32x4FromInt8x16Bits
      Float32x4FromUint8x16Bits
      Float32x4Load
      Float32x4Store
      
      Int32x4Check
      Int32x4FromUint32x4
      Int32x4FromFloat32x4Bits
      Int32x4FromUint32x4Bits
      Int32x4FromInt16x8Bits
      Int32x4FromUint16x8Bits
      Int32x4FromInt8x16Bits
      Int32x4FromUint8x16Bits
      Int32x4Load
      Int32x4Store
      
      CreateUint32x4
      Uint32x4Check
      Uint32x4ExtractLane
      Uint32x4ReplaceLane
      Uint32x4Add
      Uint32x4Sub
      Uint32x4Mul
      Uint32x4And
      Uint32x4Or
      Uint32x4Xor
      Uint32x4Not
      Uint32x4Equal
      Uint32x4NotEqual
      Uint32x4Select
      Uint32x4Swizzle
      Uint32x4Shuffle
      Uint32x4FromInt32x4
      Uint32x4FromFloat32x4Bits
      Uint32x4FromInt32x4Bits
      Uint32x4FromInt16x8Bits
      Uint32x4FromUint16x8Bits
      Uint32x4FromInt8x16Bits
      Uint32x4FromUint8x16Bits
      Uint32x4Load
      Uint32x4Load1
      Uint32x4Load2
      Uint32x4Load3
      Uint32x4Store
      Uint32x4Store1
      Uint32x4Store2
      Uint32x4Store3
      
      Bool32x4Check
      
      Int16x8Check
      Int16x8FromUint16x8
      Int16x8FromFloat32x4Bits
      Int16x8FromInt32x4Bits
      Int16x8FromUint32x4Bits
      Int16x8FromUint16x8Bits
      Int16x8FromInt8x16Bits
      Int16x8FromUint8x16Bits
      Int16x8Load
      Int16x8Store
      
      CreateUint16x8
      Uint16x8Check
      Uint16x8ExtractLane
      Uint16x8ReplaceLane
      Uint16x8Add
      Uint16x8Sub
      Uint16x8Mul
      Uint16x8And
      Uint16x8Or
      Uint16x8Xor
      Uint16x8Not
      Uint16x8Equal
      Uint16x8NotEqual
      Uint16x8Select
      Uint16x8Swizzle
      Uint16x8Shuffle
      Uint16x8FromInt16x8
      Uint16x8FromFloat32x4Bits
      Uint16x8FromInt32x4Bits
      Uint16x8FromUint32x4Bits
      Uint16x8FromInt16x8Bits
      Uint16x8FromInt8x16Bits
      Uint16x8FromUint8x16Bits
      Uint16x8Load
      Uint16x8Store
      
      Bool16x8Check
      
      Int8x16Check
      Int8x16FromUint8x16
      Int8x16FromFloat32x4Bits
      Int8x16FromInt32x4Bits
      Int8x16FromUint32x4Bits
      Int8x16FromInt16x8Bits
      Int8x16FromUint16x8Bits
      Int8x16FromUint8x16Bits
      Int8x16Load
      Int8x16Store
      
      CreateUint8x16
      Uint8x16Check
      Uint8x16ExtractLane
      Uint8x16ReplaceLane
      Uint8x16Add
      Uint8x16Sub
      Uint8x16Mul
      Uint8x16And
      Uint8x16Or
      Uint8x16Xor
      Uint8x16Not
      Uint8x16Equal
      Uint8x16NotEqual
      Uint8x16Select
      Uint8x16Swizzle
      Uint8x16Shuffle
      Uint8x16FromInt8x16
      Uint8x16FromFloat32x4Bits
      Uint8x16FromInt32x4Bits
      Uint8x16FromUint32x4Bits
      Uint8x16FromInt16x8Bits
      Uint8x16FromUint16x8Bits
      Uint8x16FromInt8x16Bits
      Uint8x16Load
      Uint8x16Store
      
      Bool8x16Check
      
      LOG=N
      BUG=v8:4124
      
      Review URL: https://codereview.chromium.org/1848433003
      
      Cr-Commit-Position: refs/heads/master@{#35213}
      3831d41e
    • bmeurer's avatar
      [builtins] Migrate Math.clz32 to a TurboFan builtin. · eaa92feb
      bmeurer authored
      This allows us to remove the troublesome %_MathClz32 intrinsic and also
      allows us to utilize the functionality that is already available in
      TurboFan. Also introduce a proper NumberClz32 operator so we don't need
      to introduce a machine operator at the JS level.
      
      R=epertoso@chromium.org
      
      Review URL: https://codereview.chromium.org/1852553003
      
      Cr-Commit-Position: refs/heads/master@{#35208}
      eaa92feb
    • bmeurer's avatar
      [turbofan] Introduce JSToInteger and JSToLength operators. · 10b365ab
      bmeurer authored
      These operators will be easier to optimize, and we can remove some
      unnecessary clutter from the intrinsic lowering.
      
      Drive-by-cleanup: Some alpha sorting of the type conversion operator
      business.
      
      R=mstarzinger@chromium.org
      
      Review URL: https://codereview.chromium.org/1848243002
      
      Cr-Commit-Position: refs/heads/master@{#35197}
      10b365ab
    • yangguo's avatar
      Revert of [compiler] Add relocatable pointer constants for wasm memory... · 2069ab22
      yangguo authored
      Revert of [compiler] Add relocatable pointer constants for wasm memory references. (patchset #14 id:300001 of https://codereview.chromium.org/1759383003/ )
      
      Reason for revert:
      Test failures: https://build.chromium.org/p/client.v8/builders/V8%20Mac64/builds/8046
      
      Original issue's description:
      > [compiler] Add relocatable pointer constants for wasm memory references.
      >
      > Add relocatable pointers for wasm memory references that need to be updated when wasm GrowMemory is used. Code generator changes to accept relocatable constants as immediates.
      >
      > R=titzer@chromium.org, yangguo@chromium.org, bradnelson@chromium.org
      >
      > Committed: https://crrev.com/eb5fe0df64ec0add423b2a1f6fb62d5a33dce2a5
      > Cr-Commit-Position: refs/heads/master@{#35182}
      
      TBR=bradnelson@chromium.org,titzer@chromium.org,gdeepti@google.com
      # Skipping CQ checks because original CL landed less than 1 days ago.
      NOPRESUBMIT=true
      NOTREECHECKS=true
      NOTRY=true
      
      Review URL: https://codereview.chromium.org/1846083005
      
      Cr-Commit-Position: refs/heads/master@{#35185}
      2069ab22
    • gdeepti's avatar
      [compiler] Add relocatable pointer constants for wasm memory references. · eb5fe0df
      gdeepti authored
      Add relocatable pointers for wasm memory references that need to be updated when wasm GrowMemory is used. Code generator changes to accept relocatable constants as immediates.
      
      R=titzer@chromium.org, yangguo@chromium.org, bradnelson@chromium.org
      
      Review URL: https://codereview.chromium.org/1759383003
      
      Cr-Commit-Position: refs/heads/master@{#35182}
      eb5fe0df
  3. 31 Mar, 2016 1 commit
    • ahaas's avatar
      [wasm] Fixed float-to-int conversion tests. · ac7f0e2b
      ahaas authored
      *) For all tests the input validation was incorrect, i.e. some values
      were considered invalid although they were valid. The problem was that
      values which are outside int range can get in range through truncation.
      
      *) Removed an assertion in the x64 code generation of
      TruncateFloat64ToUint32 which trapped on negative inputs.
      
      *) Introduced a new TF operator TruncateFloat32ToUint32 which does
      the same as ChangeFloat32ToUint32 but does not trap on negative inputs.
      
      R=titzer@chromium.org
      
      Review URL: https://codereview.chromium.org/1843983002
      
      Cr-Commit-Position: refs/heads/master@{#35176}
      ac7f0e2b
  4. 30 Mar, 2016 2 commits
    • bmeurer's avatar
      [builtins] Make Math.ceil, Math.trunc and Math.round optimizable. · 8d20f2fe
      bmeurer authored
      Migrate Math.ceil, Math.round and Math.trunc to TurboFan code stubs,
      similar to what we did with Math.floor, and make these builtins properly
      optimizable in TurboFan via appropriate simplified operators NumberCeil,
      NumberRound and NumberTrunc, which are intended to be reusable for
      ToInteger and ToLength optimizations that will be done in a followup CL.
      
      Also allows us to kill the funky %RoundNumber runtime function, which
      was quite heavy.
      
      Improve test coverage for Math.ceil and Math.trunc a lot, especially
      making sure that we also properly trigger the TurboFan builtin reducer
      case.
      
      R=jarin@chromium.org
      BUG=v8:4059
      LOG=n
      
      Review URL: https://codereview.chromium.org/1841993002
      
      Cr-Commit-Position: refs/heads/master@{#35135}
      8d20f2fe
    • ahaas's avatar
      [wasm] Int64Lowering of Int64Mul on ia32 and arm. · 40bdbef9
      ahaas authored
      Int64Mul is lowered to a new turbofan operator, Int32MulPair. The new
      operator takes 4 inputs an generates 2 outputs. The inputs are the low
      word of the left input, high word of the left input, the low word of the
      right input, and high word of the right input. The ouputs are the low
      and high word of the result of the multiplication.
      
      R=titzer@chromium.org, v8-arm-ports@googlegroups.com
      
      Review URL: https://codereview.chromium.org/1807273002
      
      Cr-Commit-Position: refs/heads/master@{#35131}
      40bdbef9
  5. 29 Mar, 2016 1 commit
    • bmeurer's avatar
      [turbofan] Introduce NumberFloor simplified operator. · 43216574
      bmeurer authored
      The NumberFloor operator matches exactly the semantics of the Math.floor
      builtin on Numbers. It uses hardware rounding instructions if available,
      but provides a full fallback solution that is compatible with Math.floor.
      The lowering is optimizable based on types if needed later, i.e. we
      already optimize it for the case that the input is already an Integer
      (in the EcmaScript sense, including NaN and -0), but we could add more
      optimizations, like combining NumberFloor and NumberDivide in the
      future, if necessary.
      
      R=jarin@chromium.org
      BUG=v8:2890,v8:4059
      LOG=n
      
      Review URL: https://codereview.chromium.org/1843533003
      
      Cr-Commit-Position: refs/heads/master@{#35090}
      43216574
  6. 28 Mar, 2016 1 commit
    • bmeurer's avatar
      [builtins] Provide Math.floor as TurboFan builtin. · 36ead519
      bmeurer authored
      This way we avoid the second deoptimization for the Math.floor and
      Math.ceil builtins when -0 is involved. We still deoptimize the inlined
      Crankshaft version in various cases, that's a separate issue.
      
      The algorithm used for implement CodeStubAssembler::Float64Floor is
      vaguely based on the fast math version used in the libm of various BSDs,
      but had to be reengineered to match the EcmaScript specification.
      
      R=epertoso@chromium.org
      BUG=v8:2890, v8:4059
      LOG=n
      
      Review URL: https://codereview.chromium.org/1828253002
      
      Cr-Commit-Position: refs/heads/master@{#35083}
      36ead519
  7. 22 Mar, 2016 1 commit
    • bmeurer's avatar
      [builtins] Add support for JS builtins written in TurboFan. · 43fe7d68
      bmeurer authored
      This CL adds support for builtins with JavaScript linkage written using
      the TurboFan CodeStubAssembler, but with a JSCall descriptor (which was
      already supported thanks to a previous patch by Ben Smith). As a first
      example, we convert the Math.sqrt builtin and thereby get rid of the
      %_MathSqrt intrinsic, which causes trouble for the representation
      selection pass in the JavaScript pipeline.
      
      R=mstarzinger@chromium.org
      
      Review URL: https://codereview.chromium.org/1824993002
      
      Cr-Commit-Position: refs/heads/master@{#34989}
      43fe7d68
  8. 21 Mar, 2016 1 commit
    • bmeurer's avatar
      [stubs] Split ToNumberStub into reusable subparts. · b7aa4c3a
      bmeurer authored
      Split ToNumberStub into the entry ToNumberStub, and two new stubs,
      StringToNumberStub and NonNumberToNumberStub, which can be used when we
      already know something about the input (i.e. in various branches of the
      code stubs, or in TurboFan graphs).
      
      Also introduce an appropriate StringToNumber simplified operator for
      TurboFan, that is pure and is lowered to an invocation of the newly
      added StringToNumberStub.
      
      R=jarin@chromium.org
      
      Review URL: https://codereview.chromium.org/1818923002
      
      Cr-Commit-Position: refs/heads/master@{#34922}
      b7aa4c3a
  9. 16 Mar, 2016 1 commit
    • ahaas's avatar
      [wasm] Int64Lowering of Int64Sub on ia32 and arm. · 33c08596
      ahaas authored
      Int64Sub is lowered to a new turbofan operator, Int32SubPair. The new
      operator takes 4 inputs an generates 2 outputs. The inputs are the low
      word of the left input, high word of the left input, the low word of the
      right input, and high word of the right input. The ouputs are the low
      and high word of the result of the subtraction.
      
      The implementation is very similar to the implementation of Int64Add.
      
      @v8-arm-ports: please take a careful look at the implementation of sbc
      in the simulator.
      
      R=titzer@chromium.org, v8-arm-ports@googlegroups.com
      
      Review URL: https://codereview.chromium.org/1778893005
      
      Cr-Commit-Position: refs/heads/master@{#34808}
      33c08596
  10. 14 Mar, 2016 1 commit
    • ahaas's avatar
      [wasm] Int64Lowering of Int64Add on ia32 and arm. · 1b230799
      ahaas authored
      Int64Add is lowered to a new turbofan operator, Int32AddPair. The new
      operator takes 4 inputs an generates 2 outputs. The inputs are the low
      word of the left input, high word of the left input, the low word of the
      right input, and high word of the right input. The ouputs are the low
      and high word of the result of the addition.
      
      R=titzer@chromium.org, v8-arm-ports@googlegroups.com
      
      Review URL: https://codereview.chromium.org/1778493004
      
      Cr-Commit-Position: refs/heads/master@{#34747}
      1b230799
  11. 09 Mar, 2016 1 commit
  12. 07 Mar, 2016 1 commit
    • ahaas's avatar
      [wasm] Int64Lowering of I64Shl on ia32. · ddc626e1
      ahaas authored
      I64Shl is lowered to a new turbofan operator, WasmWord64Shl. The new
      operator takes 3 inputs, the low-word input, the high-word input, and
      the shift, and produces 2 output, the low-word output and the high-word
      output.
      
      At the moment I implemented the lowering only for ia32, but I think the
      CL is already big enough. I will add the other platforms in separate
      CLs.
      
      R=titzer@chromium.org
      
      Review URL: https://codereview.chromium.org/1756863002
      
      Cr-Commit-Position: refs/heads/master@{#34546}
      ddc626e1
  13. 27 Feb, 2016 1 commit
  14. 26 Feb, 2016 1 commit
  15. 25 Feb, 2016 1 commit
  16. 24 Feb, 2016 2 commits
    • bmeurer's avatar
      [turbofan] Introduce DeoptimizeIf And DeoptimizeUnless common operators. · c129aa4d
      bmeurer authored
      These macro operators represent a conditional eager deoptimization exit
      without explicit branching, which greatly reduces overhead of both
      scheduling and register allocation, and thereby greatly reduces overall
      compilation time, esp. when there are a lot of eager deoptimization
      exits.
      
      R=jarin@chromium.org
      
      Review URL: https://codereview.chromium.org/1721103003
      
      Cr-Commit-Position: refs/heads/master@{#34239}
      c129aa4d
    • bmeurer's avatar
      [compiler] Drop the CompareNilIC. · 666aec03
      bmeurer authored
      Since both null and undefined are also marked as undetectable now, we
      can just test that bit instead of having the CompareNilIC try to collect
      feedback to speed up the general case (without the undetectable bit
      being used).
      
      Drive-by-fix: Update the type system to match the new handling of
      undetectable in the runtime.
      
      R=danno@chromium.org
      
      Review URL: https://codereview.chromium.org/1722193002
      
      Cr-Commit-Position: refs/heads/master@{#34237}
      666aec03
  17. 16 Feb, 2016 2 commits
  18. 15 Feb, 2016 1 commit
  19. 11 Feb, 2016 1 commit
    • bmeurer's avatar
      [compiler] Sanitize entry points to LookupSlot access. · 4ff159bd
      bmeurer authored
      Add dedicated %LoadLookupSlot, %LoadLookupSlotInsideTypeof,
      %LoadLookupSlotForCall, %StoreLookupSlot_Sloppy and
      %StoreLookupSlot_Strict runtime entry points and use them
      appropriately in the various compilers. This way we can
      finally drop the machine operators from the JS graph level
      completely in TurboFan.
      
      Also drop the funky JSLoadDynamic operator from TurboFan,
      which was by now just a small wrapper around the runtime
      call to %LoadLookupSlot.
      
      R=mstarzinger@chromium.org
      
      Review URL: https://codereview.chromium.org/1683103002
      
      Cr-Commit-Position: refs/heads/master@{#33880}
      4ff159bd
  20. 09 Feb, 2016 1 commit
    • bmeurer's avatar
      [intrinsics] Kill the %_IsMinusZero intrinsic. · 00f7d1f5
      bmeurer authored
      By now only the default %TypedArray%.prototype.sort compare function
      and the JS implementation of SameValueZero were still using the odd
      %_IsMinusZero intrinsic, whose semantics both included a number check
      (actually HeapNumber test) plus testing if the heap number stores the
      special -0 value. In both cases we already know that we deal with
      number so we can reduce it to a simple number test for -0, which can
      be expressed via dividing 1 by that value and checking the sign of
      the result. In case of the compare function, we can be even smarter
      and work with the reciprocal values in case x and y are equal to 0
      (although long term we should probably rewrite the fast case for
      the typed array sorting function in C++ anyway, which will be way,
      way faster than our handwritten callback-style, type-feedback
      polluted JS implementation).
      
      R=yangguo@chromium.org
      
      Review URL: https://codereview.chromium.org/1680783002
      
      Cr-Commit-Position: refs/heads/master@{#33833}
      00f7d1f5
  21. 06 Feb, 2016 2 commits
  22. 02 Feb, 2016 3 commits
    • bmeurer's avatar
      [turbofan] Introduce proper ObjectIsReceiver operator. · 6b2001b6
      bmeurer authored
      Avoid the hacking in JSIntrinsicLowering and provide a proper simplified
      operator ObjectIsReceiver instead that is used to implement %_IsJSReceiver
      which is used by our JavaScript builtins and the JSInliner.
      
      R=jarin@chromium.org
      BUG=v8:4544
      LOG=n
      
      Review URL: https://codereview.chromium.org/1657863004
      
      Cr-Commit-Position: refs/heads/master@{#33675}
      6b2001b6
    • bmeurer's avatar
      [intrinsics] Remove %_IsFunction inline intrinsic. · 8c04a35c
      bmeurer authored
      There's no point in having %_IsFunction as inline intrinsic, as it
      is only used in non performance critical code, which is already full
      of runtime calls anyway, so %IsFunction will do the trick as well.
      
      R=yangguo@chromium.org
      
      Review URL: https://codereview.chromium.org/1658123002
      
      Cr-Commit-Position: refs/heads/master@{#33660}
      8c04a35c
    • jarin's avatar
      Remove the template magic from types.(h|cc), remove types-inl.h. · ef35f11c
      jarin authored
      This CL removes the Config templatization from the types. It is not
      necessary anymore, after the HeapTypes have been removed.
      
      The CL also changes the type hierarchy - the specific type kinds are
      not inner classes of the Type class and they do not inherit from Type.
      This is partly because it seems impossible to make this work without
      templates. Instead, a new TypeBase class is introduced and all the
      structural (i.e., non-bitset) types inherit from it.
      
      The bitset type still requires the bit-munging hack and some nasty
      reinterpret-casts to pretend bitsets are of type Type*. Additionally,
      there is now the same hack for TypeBase - all pointers to the sub-types
      of TypeBase are reinterpret-casted to Type*. This is to keep the type
      constructors in inline method definitions (although it is unclear how
      much that actually buys us).
      
      In future, we would like to move to a model where we encapsulate Type*
      into a class (or possibly use Type where we used to use Type*). This
      would loosen the coupling between bitset size and pointer size, and
      eventually we would be able to have more bits.
      
      TBR=bradnelson@chromium.org
      
      Review URL: https://codereview.chromium.org/1655833002
      
      Cr-Commit-Position: refs/heads/master@{#33656}
      ef35f11c
  23. 29 Jan, 2016 3 commits
    • ahaas's avatar
      [turbofan] Add the StackSlot operator to turbofan. · 64588037
      ahaas authored
      The StackSlot operator allows to allocate a spill slot on the stack. We
      are going to use this operator to pass floats through pointers to c
      functions, which we need for floating point rounding in the case where
      the architecture does not provide rounding instructions.
      
      R=titzer@chromium.org, v8-arm-ports@googlegroups.com, v8-ppc-ports@googlegroups.com, v8-mips-ports@googlegroups.com
      
      Committed: https://crrev.com/7a693437787090d62d937b862e29521debcc5223
      Cr-Commit-Position: refs/heads/master@{#33600}
      
      Review URL: https://codereview.chromium.org/1645653002
      
      Cr-Commit-Position: refs/heads/master@{#33606}
      64588037
    • ahaas's avatar
      Revert of [turbofan] Add the StackSlot operator to turbofan. (patchset #4... · 11f7c2e6
      ahaas authored
      Revert of [turbofan] Add the StackSlot operator to turbofan. (patchset #4 id:60001 of https://codereview.chromium.org/1645653002/ )
      
      Reason for revert:
      problems on Mac64
      
      Original issue's description:
      > [turbofan] Add the StackSlot operator to turbofan.
      >
      > The StackSlot operator allows to allocate a spill slot on the stack. We
      > are going to use this operator to pass floats through pointers to c
      > functions, which we need for floating point rounding in the case where
      > the architecture does not provide rounding instructions.
      >
      > R=titzer@chromium.org, v8-arm-ports@googlegroups.com, v8-ppc-ports@googlegroups.com, v8-mips-ports@googlegroups.com
      >
      > Committed: https://crrev.com/7a693437787090d62d937b862e29521debcc5223
      > Cr-Commit-Position: refs/heads/master@{#33600}
      
      TBR=titzer@chromium.org,v8-arm-ports@googlegroups.com,v8-mips-ports@googlegroups.com,v8-ppc-ports@googlegroups.com
      # Skipping CQ checks because original CL landed less than 1 days ago.
      NOPRESUBMIT=true
      NOTREECHECKS=true
      NOTRY=true
      
      Review URL: https://codereview.chromium.org/1644283002
      
      Cr-Commit-Position: refs/heads/master@{#33601}
      11f7c2e6
    • ahaas's avatar
      [turbofan] Add the StackSlot operator to turbofan. · 7a693437
      ahaas authored
      The StackSlot operator allows to allocate a spill slot on the stack. We
      are going to use this operator to pass floats through pointers to c
      functions, which we need for floating point rounding in the case where
      the architecture does not provide rounding instructions.
      
      R=titzer@chromium.org, v8-arm-ports@googlegroups.com, v8-ppc-ports@googlegroups.com, v8-mips-ports@googlegroups.com
      
      Review URL: https://codereview.chromium.org/1645653002
      
      Cr-Commit-Position: refs/heads/master@{#33600}
      7a693437
  24. 25 Jan, 2016 2 commits
    • bmeurer's avatar
      [for-in] Further refactorings and unification around for-in. · 88f9995d
      bmeurer authored
      Cleanup %ForInPrepare runtime entry, and unify common logic with
      %ForInEnumerate (renamed from %GetPropertyNamesFast). Also introduce
      a TupleType to properly type JSForInPrepare and its projections w/o
      special hacks in the Typer. And fix %ForInNext and JSForInNext to be
      consistent with fullcodegen again (after the proxy refactorings last
      quarter).
      
      R=jarin@chromium.org
      BUG=v8:3650
      LOG=n
      
      Review URL: https://codereview.chromium.org/1631583002
      
      Cr-Commit-Position: refs/heads/master@{#33487}
      88f9995d
    • bmeurer's avatar
      [turbofan] Switch JSForInPrepare to %ForInPrepare style. · 825ece48
      bmeurer authored
      Now TurboFan always uses the newly introduced %ForInPrepare, no matter
      whether baseline is the interpreter or fullcodegen. For fullcodegen, we
      introduce a new PrepareId bailout point for this purpose.
      
      Drive-by-fix: Avoid the NoObservableSideEffectsScope in Crankshaft and
      use the PrepareId bailout point instead.
      
      R=jarin@chromium.org
      BUG=v8:3650
      LOG=n
      
      Review URL: https://codereview.chromium.org/1630523002
      
      Cr-Commit-Position: refs/heads/master@{#33480}
      825ece48
  25. 16 Jan, 2016 1 commit
    • ahaas's avatar
      [turbofan] Add the RoundInt32ToFloat32 operator to turbofan. · e06f7d78
      ahaas authored
      The new operator converts an int32 input to float32. If the input cannot
      be represented exactly in float32, the value is rounded using the
      round-ties-even rounding mode (the default rounding mode).
      
      I provide implementations of the new operator for x64, ia32, arm, arm64,
      mips, mips64, ppc, and ppc64.
      
      R=titzer@chromium.org, v8-arm-ports@googlegroups.com, v8-mips-ports@googlegroups.com, v8-ppc-ports@googlegroups.com
      
      Review URL: https://codereview.chromium.org/1589363002
      
      Cr-Commit-Position: refs/heads/master@{#33347}
      e06f7d78