зеркало из https://github.com/mozilla/pjs.git
bug 570476. Support integer division on x86/x64. (r=wmaddox)
--HG-- extra : convert_revision : 064dc57a57630e1bc2ab256308cb373e3049fb0c
This commit is contained in:
Родитель
3e3e631e9a
Коммит
5dcabdc5cf
|
@ -92,6 +92,9 @@
|
|||
# define NJ_SOFTFLOAT_SUPPORTED 0
|
||||
#endif
|
||||
|
||||
#ifndef NJ_DIVI_SUPPORTED
|
||||
# define NJ_DIVI_SUPPORTED 0
|
||||
#endif
|
||||
|
||||
#if NJ_SOFTFLOAT_SUPPORTED
|
||||
#define CASESF(x) case x
|
||||
|
|
|
@ -98,6 +98,7 @@ namespace nanojit
|
|||
#define NJ_EXPANDED_LOADSTORE_SUPPORTED 1
|
||||
#define NJ_F2I_SUPPORTED 1
|
||||
#define NJ_SOFTFLOAT_SUPPORTED 1
|
||||
#define NJ_DIVI_SUPPORTED 0
|
||||
|
||||
#define NJ_CONSTANT_POOLS
|
||||
const int NJ_MAX_CPOOL_OFFSET = 4096;
|
||||
|
|
|
@ -61,6 +61,7 @@ namespace nanojit
|
|||
#define NJ_EXPANDED_LOADSTORE_SUPPORTED 0
|
||||
#define NJ_F2I_SUPPORTED 0
|
||||
#define NJ_SOFTFLOAT_SUPPORTED 0
|
||||
#define NJ_DIVI_SUPPORTED 0
|
||||
|
||||
enum ConditionRegister {
|
||||
CR0 = 0,
|
||||
|
|
|
@ -80,6 +80,7 @@ namespace nanojit
|
|||
#define NJ_EXPANDED_LOADSTORE_SUPPORTED 0
|
||||
#define NJ_F2I_SUPPORTED 1
|
||||
#define NJ_SOFTFLOAT_SUPPORTED 0
|
||||
#define NJ_DIVI_SUPPORTED 0
|
||||
|
||||
const int NJ_ALIGN_STACK = 16;
|
||||
|
||||
|
|
|
@ -67,6 +67,7 @@ namespace nanojit
|
|||
#define NJ_EXPANDED_LOADSTORE_SUPPORTED 1
|
||||
#define NJ_F2I_SUPPORTED 1
|
||||
#define NJ_SOFTFLOAT_SUPPORTED 0
|
||||
#define NJ_DIVI_SUPPORTED 1
|
||||
|
||||
static const Register RAX = { 0 }; // 1st int return, # of sse varargs
|
||||
static const Register RCX = { 1 }; // 4th int arg
|
||||
|
|
|
@ -104,7 +104,8 @@ namespace nanojit
|
|||
#define NJ_EXPANDED_LOADSTORE_SUPPORTED 1
|
||||
#define NJ_F2I_SUPPORTED 1
|
||||
#define NJ_SOFTFLOAT_SUPPORTED 0
|
||||
|
||||
#define NJ_DIVI_SUPPORTED 1
|
||||
|
||||
// Preserve a 16-byte stack alignment, to support the use of
|
||||
// SSE instructions like MOVDQA (if not by Tamarin itself,
|
||||
// then by the C functions it calls).
|
||||
|
|
Загрузка…
Ссылка в новой задаче