summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2016-10-10 00:45:02 -0400
committerJune McEnroe <june@causal.agency>2016-10-10 00:45:02 -0400
commit168a151311c7e46349f2c7e952e46ee58e9cdb1c (patch)
tree677ea24b690b35bc677d5636c7db2a7775ebad47
parentAllocate two pages of stack for jrp (diff)
downloadsrc-168a151311c7e46349f2c7e952e46ee58e9cdb1c.tar.gz
src-168a151311c7e46349f2c7e952e46ee58e9cdb1c.zip
Fix jrp dop pushes
Pushing zero on a qop boundary would break because zero is the sentinal
value for code.dop.
-rwxr-xr-x.bin/jrp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/.bin/jrp.c b/.bin/jrp.c
index de137cf7..92c935df 100755
--- a/.bin/jrp.c
+++ b/.bin/jrp.c
@@ -103,8 +103,7 @@ static void jitQop(qop op) {
 
 static void jitPush(qvalue imm) {
     if ((dvalue)imm == imm) {
-        jitDop(DOP_PUSH);
-        jitDop((dop)imm);
+        jitQop(DOP_PUSH | (qop)imm << 32);
     } else {
         jitQop(QOP_PUSH);
         jitQop((qop)imm);