Version: 5.1.6

INTERP_KERNEL.AsmX86 Class Reference

#include <InterpKernelAsmX86.hxx>

Public Member Functions

std::vector< char > convertIntoMachineLangage (const std::vector< std::string > &asmb) const throw (INTERP_KERNEL::Exception)
char * copyToExecMemZone (const std::vector< char > &ml, unsigned &offset) const

Private Member Functions

void convertOneInstructionInML (const std::string &inst, std::vector< char > &ml) const throw (INTERP_KERNEL::Exception)

Static Private Member Functions

static void convertMov (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertPush (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertPop (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertFld (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertFaddp (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertFsubp (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertFmulp (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertFdivp (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertFcos (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertFsin (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertFabs (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertFchs (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertFsqrt (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertSub (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertAdd (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertRet (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertLeave (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertMovsd (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertFst (const std::string &inst, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void convertMovToEsp (const std::string &inst1, const std::string &inst2, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)
static void appendAddress (const std::string &addr, int nbOfByte, std::vector< char > &ml) throw (INTERP_KERNEL::Exception)

Static Private Attributes

static const int NB_OF_OPS = 19
static const char * OPS [NB_OF_OPS] = {"mov","push","pop","fld","faddp","fsubp","fmulp","fdivp","fcos","fsin","fabs","fchs","fsqrt","sub","add","ret","leave","movsd","fst"}

Member Function Documentation

std::vector< char > INTERP_KERNEL.AsmX86::convertIntoMachineLangage ( const std::vector< std::string > &  asmb  )  const throw (INTERP_KERNEL::Exception)

References testMEDMEM.ret.

char * INTERP_KERNEL.AsmX86::copyToExecMemZone ( const std::vector< char > &  ml,
unsigned &  offset 
) const

References NULL, and testMEDMEM.ret.

void INTERP_KERNEL.AsmX86::convertOneInstructionInML ( const std::string &  inst,
std::vector< char > &  ml 
) const throw (INTERP_KERNEL::Exception) [private]

References Med_Gen_test.it.

void INTERP_KERNEL.AsmX86::convertMov ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertPush ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertPop ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertFld ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertFaddp ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertFsubp ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertFmulp ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertFdivp ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertFcos ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertFsin ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertFabs ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertFchs ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertFsqrt ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertSub ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertAdd ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertRet ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertLeave ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertMovsd ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertFst ( const std::string &  inst,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::convertMovToEsp ( const std::string &  inst1,
const std::string &  inst2,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]
void INTERP_KERNEL.AsmX86::appendAddress ( const std::string &  addr,
int  nbOfByte,
std::vector< char > &  ml 
) throw (INTERP_KERNEL::Exception) [static, private]

Field Documentation

const int INTERP_KERNEL.AsmX86.NB_OF_OPS = 19 [static, private]
const char * INTERP_KERNEL.AsmX86::OPS = {"mov","push","pop","fld","faddp","fsubp","fmulp","fdivp","fcos","fsin","fabs","fchs","fsqrt","sub","add","ret","leave","movsd","fst"} [static, private]