summaryrefslogtreecommitdiff
path: root/ghc/rts/Interpreter.c
diff options
context:
space:
mode:
authorsewardj <unknown>2001-08-09 11:19:16 +0000
committersewardj <unknown>2001-08-09 11:19:16 +0000
commit4ee658a72d01e21315a5467f66a6fd36f139e306 (patch)
treecc21c0270929a0ef048f536538fc928e92bf43fb /ghc/rts/Interpreter.c
parent70b37ccbd9d1448f9a8311f2ead5eff35d919b07 (diff)
downloadhaskell-4ee658a72d01e21315a5467f66a6fd36f139e306.tar.gz
[project @ 2001-08-09 11:19:16 by sewardj]
C-side FFI support for Byte/Ptr arrays.
Diffstat (limited to 'ghc/rts/Interpreter.c')
-rw-r--r--ghc/rts/Interpreter.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/ghc/rts/Interpreter.c b/ghc/rts/Interpreter.c
index cb78cddb3d..cf5b99fed8 100644
--- a/ghc/rts/Interpreter.c
+++ b/ghc/rts/Interpreter.c
@@ -5,8 +5,8 @@
* Copyright (c) 1994-2000.
*
* $RCSfile: Interpreter.c,v $
- * $Revision: 1.27 $
- * $Date: 2001/08/07 09:02:02 $
+ * $Revision: 1.28 $
+ * $Date: 2001/08/09 11:19:16 $
* ---------------------------------------------------------------------------*/
#include "Rts.h"
@@ -37,7 +37,7 @@
scheduler. Ie normally you don't want REFERENCE_INTERPRETER to be
defined. */
-/* #define REFERENCE_INTERPRETER */
+#define REFERENCE_INTERPRETER
/* Gather stats about entry, opcode, opcode-pair frequencies. For
tuning the interpreter. */
@@ -763,6 +763,12 @@ StgThreadReturnCode interpretBCO ( Capability* cap )
}
}
}
+ case bci_SWIZZLE: {
+ int stkoff = BCO_NEXT;
+ signed short n = (signed short)(BCO_NEXT);
+ StackWord(stkoff) += (W_)n;
+ goto nextInsn;
+ }
case bci_CCALL: {
StgInt tok;
int o_itbl = BCO_NEXT;