1. 12 May, 2021 1 commit
    • Milad Fa's avatar
      PPC/S390 [simulator] Use bit_cast instead of reinterpret_cast · dfe7aca1
      Milad Fa authored
      The following bit casting method using reinterpret_cast
      has undefined behaviour:
      ```
      int a = 1;
      float b = *reinterpret_cast<float*>(&a);
      ```
      Above breaks the strict aliasing rule which indicates:
      > dereferencing pointers to objects of different types will
      never refer to the same memory location.
      
      More information can be found under src/base/macros.h.
      
      `bit_cast` here is implemented with `memcpy` behind the scenes.
      C++20 will have this feature included by default.
      
      Change-Id: I69ffdbeba6db64e24b268d838ea1d863fcd9121d
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2889331Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
      Commit-Queue: Milad Fa <mfarazma@redhat.com>
      Cr-Commit-Position: refs/heads/master@{#74513}
      dfe7aca1
  2. 07 May, 2021 1 commit
  3. 30 Apr, 2021 1 commit
  4. 22 Apr, 2021 1 commit
  5. 07 Apr, 2021 1 commit
  6. 26 Mar, 2021 1 commit
  7. 25 Mar, 2021 1 commit
  8. 22 Mar, 2021 2 commits
  9. 17 Mar, 2021 2 commits
  10. 16 Mar, 2021 2 commits
  11. 15 Mar, 2021 2 commits
  12. 12 Mar, 2021 3 commits
  13. 11 Mar, 2021 1 commit
  14. 10 Mar, 2021 3 commits
  15. 08 Mar, 2021 1 commit
  16. 03 Mar, 2021 2 commits
  17. 02 Mar, 2021 2 commits
  18. 01 Mar, 2021 1 commit
  19. 25 Feb, 2021 2 commits
  20. 24 Feb, 2021 1 commit
  21. 23 Feb, 2021 1 commit
  22. 15 Feb, 2021 1 commit
  23. 02 Feb, 2021 1 commit
    • Milad Fa's avatar
      PPC/s390: Fix frame size to account for q registers · f8360140
      Milad Fa authored
      Port 45b99aaa
      
      Original Commit Message:
      
          In https://crrev.com/c/2645694 we push the full q registers before lazy
          compile, but we did not change the fixed frame size to account for the
          wider registers being pushed.
      
          This manifested in the frame having data like:
      
          (gdb) x/10xg start.ptr_
          0x7f5576ff3eb0: 0x0000000000000000      0x0000336b08202759
          0x7f5576ff3ec0: 0x7ff000007f801000      0x0000000000000000
          0x7f5576ff3ed0: 0x7ff000007f801001      0x0000000000000000
          0x7f5576ff3ee0: 0x7ff000007f801002      0x0000000000000000
          0x7f5576ff3ef0: 0x7ff000007f801003      0x0000000000000000
      
          The GC then walks part of this frame, thinking that 0x7ff000007f801003
          is a heap object, and then crashes.
      
          Add some static_asserts (similar to builtins-x64) to remind ourselves
          that the pushed registers have to match the size in frame constants.
      
      R=zhin@chromium.org, joransiu@ca.ibm.com, junyan@redhat.com, midawson@redhat.com
      BUG=
      LOG=N
      
      Change-Id: I994f1b7fecbb24ea97d846b1eed98201bc3b08ad
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2669308Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
      Commit-Queue: Milad Fa <mfarazma@redhat.com>
      Cr-Commit-Position: refs/heads/master@{#72496}
      f8360140
  24. 29 Jan, 2021 1 commit
  25. 17 Nov, 2020 1 commit
  26. 03 Nov, 2020 1 commit
  27. 02 Nov, 2020 1 commit
  28. 28 Oct, 2020 1 commit
  29. 03 Sep, 2020 1 commit