зеркало из https://github.com/mozilla/gecko-dev.git
Bug 491514 - Followup, change from sizeof(LIns*) to sizeof(LIns), r=gal.
This commit is contained in:
Родитель
2fa623edd8
Коммит
c80c21b2c5
|
@ -131,7 +131,7 @@ static const char tagChar[] = "OIDISIBI";
|
|||
#define MAX_GLOBAL_SLOTS 4096
|
||||
|
||||
/* Max memory you can allocate in a LIR buffer via a single skip() call. */
|
||||
#define MAX_SKIP_BYTES (NJ_PAGE_SIZE - (LIR_FAR_SLOTS + 1) * sizeof(LIns*))
|
||||
#define MAX_SKIP_BYTES (NJ_PAGE_SIZE - (LIR_FAR_SLOTS + 1) * sizeof(LIns))
|
||||
|
||||
/* Max memory needed to rebuild the interpreter stack when falling off trace. */
|
||||
#define MAX_INTERP_STACK_BYTES \
|
||||
|
|
|
@ -159,7 +159,7 @@ namespace nanojit
|
|||
|
||||
void LirBufWriter::ensureRoom(uint32_t count)
|
||||
{
|
||||
NanoAssert(count <= NJ_PAGE_SIZE - (LIR_FAR_SLOTS + 1) * sizeof(LIns*));
|
||||
NanoAssert(count <= NJ_PAGE_SIZE - (LIR_FAR_SLOTS + 1) * sizeof(LIns));
|
||||
LInsp before = _buf->next();
|
||||
LInsp after = before+count+LIR_FAR_SLOTS;
|
||||
// transition to the next page?
|
||||
|
|
Загрузка…
Ссылка в новой задаче