summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--erts/emulator/beam/emu/bs_instrs.tab4
1 files changed, 4 insertions, 0 deletions
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);
}