Cranelift AArch64: Use an allocated encoding for Udf (#4281)
Preserve the current behaviour when code is generated for SpiderMonkey. Copyright (c) 2022, Arm Limited.
This commit is contained in:
@@ -1672,6 +1672,7 @@ mod test {
|
||||
|
||||
buf.bind_label(label(1));
|
||||
let inst = Inst::Udf {
|
||||
use_allocated_encoding: true,
|
||||
trap_code: TrapCode::Interrupt,
|
||||
};
|
||||
inst.emit(&[], &mut buf, &info, &mut state);
|
||||
|
||||
@@ -462,6 +462,11 @@ macro_rules! isle_prelude_methods {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn is_not_baldrdash_call_conv(&mut self) -> Option<bool> {
|
||||
Some(!self.lower_ctx.abi().call_conv().extends_baldrdash())
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn func_ref_data(&mut self, func_ref: FuncRef) -> (SigRef, ExternalName, RelocDistance) {
|
||||
let funcdata = &self.lower_ctx.dfg().ext_funcs[func_ref];
|
||||
|
||||
Reference in New Issue
Block a user