Bug 363530: Optimizing JS function/method calling bytecodes. r=brendan

This commit is contained in:
igor.bukanov@gmail.com
2007-03-01 01:33:46 +00:00
parent 8ea13e724a
commit afb4f7b136
6 changed files with 206 additions and 143 deletions

View File

@@ -109,6 +109,7 @@ typedef enum JSOpLength {
#define JOF_LEFTASSOC 0x10000 /* left-associative operator */
#define JOF_DECLARING 0x20000 /* var, const, or function declaration op */
#define JOF_ATOMBASE 0x40000 /* atom segment base setting prefix op */
#define JOF_CALLOP 0x80000 /* call operation pushing function and this */
#define JOF_TYPE_IS_EXTENDED_JUMP(t) \
((unsigned)((t) - JOF_JUMPX) <= (unsigned)(JOF_LOOKUPSWITCHX - JOF_JUMPX))