test dummy import of JIT structure

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4073
This commit is contained in:
David Anderson
2006-09-20 00:41:24 +00:00
parent 70a960dd84
commit 302636d5e0
10 changed files with 1277 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#ifndef _INCLUDE_SOURCEPAWN_JIT_X86_H_
#define _INCLUDE_SOURCEPAWN_JIT_X86_H_
#include <sp_vm_api.h>
using namespace SourcePawn;
class CompData : public ICompilation
{
public:
CompData() : plugin(NULL), debug(false)
{
};
public:
sp_plugin_t *plugin;
bool debug;
};
class JITX86 : public IVirtualMachine
{
public:
const char *GetVMName() =0;
ICompilation *StartCompilation(sp_plugin_t *plugin);
bool SetCompilationOption(ICompilation *co, const char *key, const char *val) ;
IPluginContext *CompileToContext(ICompilation *co);
void AbortCompilation(ICompilation *co);
void FreeContextVars(sp_context_t *ctx);
int ContextExecute(sp_context_t *ctx, uint32_t code_idx, cell_t *result);
};
#endif //_INCLUDE_SOURCEPAWN_JIT_X86_H_