mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Str.walkScalars
This commit is contained in:
parent
1de9270ecf
commit
6d7c329698
15 changed files with 109 additions and 2 deletions
|
@ -293,6 +293,9 @@ impl<'a> LowLevelCall<'a> {
|
|||
StrRepeat => self.load_args_and_call_zig(backend, bitcode::STR_REPEAT),
|
||||
StrAppendScalar => self.load_args_and_call_zig(backend, bitcode::STR_APPEND_SCALAR),
|
||||
StrTrim => self.load_args_and_call_zig(backend, bitcode::STR_TRIM),
|
||||
StrGetScalarUnsafe => {
|
||||
self.load_args_and_call_zig(backend, bitcode::STR_GET_SCALAR_UNSAFE)
|
||||
}
|
||||
StrSubstringUnsafe => {
|
||||
self.load_args_and_call_zig(backend, bitcode::STR_SUBSTRING_UNSAFE)
|
||||
}
|
||||
|
|
|
@ -176,6 +176,7 @@ wasm_result_primitive!(u16, i32_store16, Align::Bytes2);
|
|||
wasm_result_primitive!(i16, i32_store16, Align::Bytes2);
|
||||
wasm_result_primitive!(u32, i32_store, Align::Bytes4);
|
||||
wasm_result_primitive!(i32, i32_store, Align::Bytes4);
|
||||
wasm_result_primitive!(char, i32_store, Align::Bytes4);
|
||||
wasm_result_primitive!(u64, i64_store, Align::Bytes8);
|
||||
wasm_result_primitive!(i64, i64_store, Align::Bytes8);
|
||||
wasm_result_primitive!(usize, i32_store, Align::Bytes4);
|
||||
|
|
|
@ -23,7 +23,7 @@ macro_rules! wasm32_sized_primitive {
|
|||
}
|
||||
|
||||
wasm32_sized_primitive!(
|
||||
u8, i8, u16, i16, u32, i32, u64, i64, u128, i128, f32, f64, bool, RocDec, RocOrder,
|
||||
u8, i8, u16, i16, u32, i32, char, u64, i64, u128, i128, f32, f64, bool, RocDec, RocOrder,
|
||||
);
|
||||
|
||||
impl Wasm32Sized for () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue