JIT works for Instructions.java

This commit is contained in:
Joel Dice
2007-09-25 17:53:11 -06:00
parent 1c90708abf
commit e7c8fb645a
10 changed files with 668 additions and 76 deletions

View File

@ -4,6 +4,7 @@
#include "stdint.h"
#include "stdlib.h"
#include "stdarg.h"
#include "stddef.h"
#include "string.h"
#include "stdio.h"
#include "types.h"
@ -44,6 +45,22 @@
inline void* operator new(size_t, void* p) throw() { return p; }
#ifdef __i386__
extern "C" uint64_t
cdeclCall(void* function, void* stack, unsigned stackSize,
unsigned returnType);
#elif defined __x86_64__
extern "C" uint64_t
amd64Call(void* function, void* stack, unsigned stackSize,
void* gprTable, void* sseTable, unsigned returnType);
#else
# error unsupported platform
#endif
namespace vm {
const unsigned BytesPerWord = sizeof(uintptr_t);