mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
Sync with deps/v8/src/codegen/riscv/assembler-riscv.cc to unbreak
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
Index: deps/v8/src/codegen/riscv/assembler-riscv.h
|
||||
--- deps/v8/src/codegen/riscv/assembler-riscv.h.orig
|
||||
+++ deps/v8/src/codegen/riscv/assembler-riscv.h
|
||||
@@ -425,15 +425,15 @@ class V8_EXPORT_PRIVATE Assembler : public AssemblerBa
|
||||
// Assembler Pseudo Instructions (Tables 25.2, 25.3, RISC-V Unprivileged ISA)
|
||||
void nop();
|
||||
#if defined(V8_TARGET_ARCH_RISCV64)
|
||||
- void RecursiveLiImpl(Register rd, int64_t imm);
|
||||
- void RecursiveLi(Register rd, int64_t imm);
|
||||
- static int RecursiveLiCount(int64_t imm);
|
||||
- static int RecursiveLiImplCount(int64_t imm);
|
||||
- void RV_li(Register rd, int64_t imm);
|
||||
+ void RecursiveLiImpl(Register rd, intptr_t imm);
|
||||
+ void RecursiveLi(Register rd, intptr_t imm);
|
||||
+ static int RecursiveLiCount(intptr_t imm);
|
||||
+ static int RecursiveLiImplCount(intptr_t imm);
|
||||
+ void RV_li(Register rd, intptr_t imm);
|
||||
static int RV_li_count(int64_t imm, bool is_get_temp_reg = false);
|
||||
// Returns the number of instructions required to load the immediate
|
||||
void GeneralLi(Register rd, int64_t imm);
|
||||
- static int GeneralLiCount(int64_t imm, bool is_get_temp_reg = false);
|
||||
+ static int GeneralLiCount(intptr_t imm, bool is_get_temp_reg = false);
|
||||
// Loads an immediate, always using 8 instructions, regardless of the value,
|
||||
// so that it can be modified later.
|
||||
void li_constant(Register rd, int64_t imm);
|
||||
Reference in New Issue
Block a user