Performance updates

git-svn-id: svn://10.0.0.236/trunk@143950 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
2003-06-19 21:43:15 +00:00
parent f2ff6cf294
commit f38cc3c2b5
7 changed files with 101 additions and 27 deletions

View File

@@ -1154,9 +1154,16 @@
pc += sizeof(short);
ASSERT(slotIndex < localFrame->frameSlots->size());
a = (*localFrame->frameSlots)[slotIndex];
float64 num = meta->toFloat64(a);
(*localFrame->frameSlots)[slotIndex] = allocNumber(num + 1.0);
pushNumber(num);
int32 i;
if (JS2VAL_IS_INT(a) && ((i = JS2VAL_TO_INT(a)) < JS2VAL_INT_MAX)) {
(*localFrame->frameSlots)[slotIndex] = INT_TO_JS2VAL(i + 1);
push(a);
}
else {
float64 num = meta->toFloat64(a);
(*localFrame->frameSlots)[slotIndex] = allocNumber(num + 1.0);
pushNumber(num);
}
}
break;
case eFrameSlotPostDec: