7#if defined(TARGET_ARCH_RISCV32) || defined(TARGET_ARCH_RISCV64)
19void GenerateIncrement(compiler::Assembler* assembler) {
24 __ sx(
A0, compiler::Address(
SP));
25 __ lx(
A1, compiler::Address(
SP));
35void GenerateEmbedStringInCode(compiler::Assembler* assembler,
37 const String& string_object =
40 __ LoadObject(
A0, string_object);
47void GenerateEmbedSmiInCode(compiler::Assembler* assembler, intptr_t
value) {
49 const intx_t val =
static_cast<intx_t
>(smi_object.ptr());
50 __ LoadImmediate(
A0, val);
static Object & ZoneHandle()
static SmiPtr New(intptr_t value)
static StringPtr New(const char *cstr, Heap::Space space=Heap::kNew)
constexpr intptr_t kWordSize