summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Gustavsson <bjorn@erlang.org>2021-10-15 06:05:52 +0200
committerBjörn Gustavsson <bjorn@erlang.org>2021-10-15 06:05:52 +0200
commit1f3e50f651da6b635f8e17e26a7e20f4fe474764 (patch)
tree891cab00d84fa90646849338b1ec0321cef6a13d
parentd5186bded46f05bc2b70075c791e6a6d2cb0f98c (diff)
downloaderlang-1f3e50f651da6b635f8e17e26a7e20f4fe474764.tar.gz
wip
-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);
}