#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Thu, 01 Sep 2016 19:59:25 +0200
changeset 3961 1148f204a97d
parent 3960 c028435d05a6
child 3962 ce73bb115aa3
child 3967 706e93959a9c
#DOCUMENTATION by cg class: BinaryNode comment/format in: #codeOn:inBlock:for:
BinaryNode.st
--- a/BinaryNode.st	Wed Aug 31 19:52:10 2016 +0200
+++ b/BinaryNode.st	Thu Sep 01 19:59:25 2016 +0200
@@ -151,6 +151,9 @@
                 "/ disabled this, since it is confusing if the error is reported
                 "/ by the argument as receiver (i.e. transforms 1+foo into foo+1)
                 "/ and it might also be incorrect.
+                "/ correct would be to encode it with a reverse-plus1 opCode,
+                "/ which checks for int/float args and does a reverse send as fallback.
+                "/ The jitter does that already, so we don't care on the bytecode level.
 "/                (selector == #+) ifTrue:[
 "/                    (recVal == 1) ifTrue:[
 "/                        arg1 codeOn:aStream inBlock:b for:aCompiler.