From 1f3e50f651da6b635f8e17e26a7e20f4fe474764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Fri, 15 Oct 2021 06:05:52 +0200 Subject: wip --- erts/emulator/beam/emu/bs_instrs.tab | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erts/emulator/beam/emu/bs_instrs.tab b/erts/emulator/beam/emu/bs_instrs.tab index 93c1df370b..0a45f3e964 100644 --- a/erts/emulator/beam/emu/bs_instrs.tab +++ b/erts/emulator/beam/emu/bs_instrs.tab @@ -871,11 +871,15 @@ BS_LOAD_FIXED_SIZE(Ptr, Dst) { $Dst = $Ptr[4]; } +// Implicitly uses the c_p and p variables (for convenience). BS_FAIL_INFO(Fail, Reason, ErrorType, Value) { erts_prepare_bs_construct_fail_info(c_p, p, $Reason, $ErrorType, $Value); $FAIL_HEAD_OR_BODY($Fail); } +// Implicitly uses the Size variable because of limitations of parsing in +// beam_makeops of nested macro call; a nested macro call can only have one +// argument. BS_FAIL_INFO_SYSTEM_LIMIT(Fail) { $BS_FAIL_INFO($Fail, SYSTEM_LIMIT, am_size, Size); } -- cgit v1.2.1