RFR: 8294100: RISC-V: Move rt_call and xxx_move from SharedRuntime to MacroAssembler

Feilong Jiang fjiang at openjdk.org
Wed Sep 21 11:45:14 UTC 2022


When we port Foreign Function & Memory API (Preview) for riscv backend [1], we find some methods in sharedRuntime_riscv.cpp that can be reused.

Here is the list of methods that can be moved to MacroAssembler:
- move32_64
- float_move
- long_move
- double_move
- object_move
- rt_call

1. https://github.com/feilongjiang/jdk/tree/riscv-foreign-api

Testing:
- Regular workloads like SPECjvm2008 (startup) and Dacapo on Unmatched board

-------------

Commit messages:
 - move some methods into MacroAssembler

Changes: https://git.openjdk.org/jdk/pull/10375/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10375&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8294100
  Stats: 432 lines in 3 files changed: 220 ins; 202 del; 10 mod
  Patch: https://git.openjdk.org/jdk/pull/10375.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10375/head:pull/10375

PR: https://git.openjdk.org/jdk/pull/10375


More information about the hotspot-dev mailing list