X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Fincludes%2FBytecodes.h;h=fe32488b65531ea001280b4d096f2d635ba73dcb;hb=b3155aac1d0b847fb9249c08faad58f0ba576617;hp=e6967d9eb79f0713ef763060ee08c5e3a91959dc;hpb=772e0d3f0cf19d52b199e61afc8bbf2ee4c5281f;p=ghc-hetmet.git diff --git a/ghc/includes/Bytecodes.h b/ghc/includes/Bytecodes.h index e6967d9..fe32488 100644 --- a/ghc/includes/Bytecodes.h +++ b/ghc/includes/Bytecodes.h @@ -1,6 +1,6 @@ /* ----------------------------------------------------------------------------- - * $Id: Bytecodes.h,v 1.4 2000/12/19 16:48:58 sewardj Exp $ + * $Id: Bytecodes.h,v 1.8 2001/08/09 11:19:16 sewardj Exp $ * * (c) The GHC Team, 1998-2000 * @@ -50,5 +50,16 @@ #define bci_CASEFAIL 23 #define bci_ENTER 24 #define bci_RETURN 25 +#define bci_STKCHECK 26 +#define bci_JMP 27 +#define bci_CCALL 28 +#define bci_SWIZZLE 29 + +/* If a BCO definitely requires less than this many words of stack, + don't include an explicit STKCHECK insn in it. The interpreter + will check for this many words of stack before running each BCO, + rendering an explicit check unnecessary in the majority of + cases. */ +#define INTERP_STACK_CHECK_THRESH 50 /*-------------------------------------------------------------------------*/