aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/macros.tab
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-11-13 13:26:07 +0100
committerGitHub <[email protected]>2017-11-13 13:26:07 +0100
commit19245b1ac7bf881319950adb973ff2ce24fea23e (patch)
treea6b87d6fa56928cd4d1b303b7aa89d34f8c4a023 /erts/emulator/beam/macros.tab
parent67b1ee533e8ed22242bc4531f4b206ad6081bc7e (diff)
parent773ded1a02898c4a1f9f395d8df1b25444631706 (diff)
downloadotp-19245b1ac7bf881319950adb973ff2ce24fea23e.tar.gz
otp-19245b1ac7bf881319950adb973ff2ce24fea23e.tar.bz2
otp-19245b1ac7bf881319950adb973ff2ce24fea23e.zip
Merge pull request #1624 from bjorng/bjorn/add-beam-internal-doc
Add internal documentation for the beam_makeops script OTP-14626
Diffstat (limited to 'erts/emulator/beam/macros.tab')
-rw-r--r--erts/emulator/beam/macros.tab9
1 files changed, 4 insertions, 5 deletions
diff --git a/erts/emulator/beam/macros.tab b/erts/emulator/beam/macros.tab
index e0b5f56b53..494fe8961e 100644
--- a/erts/emulator/beam/macros.tab
+++ b/erts/emulator/beam/macros.tab
@@ -20,13 +20,12 @@
//
//
-// Use if there is a garbage collection before storing to a
-// general destination (either X or Y register).
+// Define a regular expression that will match instructions that
+// perform GC. That will allow beam_makeops to check for instructions
+// that don't use $REFRESH_GEN_DEST() when they should.
//
-REFRESH_GEN_DEST() {
- dst_ptr = REG_TARGET_PTR(dst);
-}
+GC_REGEXP=erts_garbage_collect|erts_gc|GcBifFunction;
// $Offset is relative to the start of the instruction (not to the
// location of the failure label reference). Since combined