Bug 815045: Delete JOF_TYPE_IS_EXTENDED_JUMP; it is unused. Fix comment in js::frontend::AddToSrcNoteDelta. r=luke

This commit is contained in:
Jim Blandy 2012-12-06 13:00:55 -08:00
parent 7f263401d8
commit a5622a9859
2 changed files with 2 additions and 5 deletions

View File

@ -6750,8 +6750,8 @@ frontend::AddToSrcNoteDelta(JSContext *cx, BytecodeEmitter *bce, jssrcnote *sn,
int index;
/*
* Called only from OptimizeSpanDeps and FinishTakingSrcNotes to add to
* main script note deltas, and only by a small positive amount.
* Called only from FinishTakingSrcNotes to add to main script note
* deltas, and only by a small positive amount.
*/
JS_ASSERT(bce->current == &bce->main);
JS_ASSERT((unsigned) delta < (unsigned) SN_XDELTA_LIMIT);

View File

@ -107,9 +107,6 @@ typedef enum JSOp {
#define JOF_MODE(fmt) ((fmt) & JOF_MODEMASK)
#define JOF_OPMODE(op) JOF_MODE(js_CodeSpec[op].format)
#define JOF_TYPE_IS_EXTENDED_JUMP(t) \
((unsigned)((t) - JOF_JUMP) <= (unsigned)(JOF_LOOKUPSWITCH - JOF_JUMP))
/*
* Immediate operand getters, setters, and bounds.
*/