merged in the easy relocation requiring opcodes

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4096
This commit is contained in:
David Anderson
2006-09-23 04:11:01 +00:00
parent 845ae65797
commit 968692755b
7 changed files with 990 additions and 693 deletions
+6
View File
@@ -23,6 +23,7 @@ typedef unsigned __int64 jit_uint64_t;
typedef char * jitcode_t;
typedef unsigned int jitoffs_t;
typedef signed int jitrel_t;
class JitWriter
{
@@ -79,8 +80,13 @@ public:
{
outptr = outbase + offs;
}
inline jitoffs_t inputrel()
{
return (jitoffs_t)((char *)inptr - (char *)inbase);
}
public:
cell_t *inptr; /* input pointer */
cell_t *inbase; /* input base */
jitcode_t outbase; /* output pointer */
jitcode_t outptr; /* output base */
SourcePawn::ICompilation *data; /* compiler live info */