⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 280682 in webkit


Ignore:
Timestamp:
Aug 5, 2021, 5:25:44 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

run-jsc-stress-tests: detect the riscv64 architecture
https://bugs.webkit.org/show_bug.cgi?id=228817

Patch by Zan Dobersek <zdobersek@igalia.com> on 2021-08-05
Reviewed by Adrian Perez de Castro.

  • Scripts/run-jsc-stress-tests: Detect the riscv64 architecture when

examining ELF binaries. For the moment, this architecture should be
marked as not supporting FTL.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r280664 r280682  
     12021-08-05  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        run-jsc-stress-tests: detect the riscv64 architecture
     4        https://bugs.webkit.org/show_bug.cgi?id=228817
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        * Scripts/run-jsc-stress-tests: Detect the riscv64 architecture when
     9        examining ELF binaries. For the moment, this architecture should be
     10        marked as not supporting FTL.
     11
    1122021-08-04  Peng Liu  <peng.liu6@apple.com>
    213
  • trunk/Tools/Scripts/run-jsc-stress-tests

    r280109 r280682  
    423423    # MIPS and PowerPC may be either big- or little-endian. S390 (which includes
    424424    # S390x) is big-endian. The rest are little-endian.
     425    # For RISC-V, to avoid encoding problems, construct the comparison string
     426    # by packing a char array matching the ELF's RISC-V machine value.
    425427    code = data[18, 20]
    426428    case code
     
    447449    when "\xB7\0"
    448450        "arm64"
     451    when [243, 0].pack("cc")
     452        "riscv64"
    449453    else
    450454        $stderr.puts "Warning: unable to determine architecture from code: #{code}"
     
    514518$hostOS = determineOS unless $hostOS
    515519$architecture = determineArchitecture unless $architecture
    516 $isFTLPlatform = !($architecture == "x86" || $architecture == "arm" || $architecture == "mips" || $hostOS == "windows" || $hostOS == "playstation")
     520$isFTLPlatform = !($architecture == "x86" || $architecture == "arm" || $architecture == "mips" || $architecture == "riscv64" || $hostOS == "windows" || $hostOS == "playstation")
    517521
    518522if $architecture == "x86"
Note: See TracChangeset for help on using the changeset viewer.