Bug 715817 - rm SRC_EXTENDED (r=waldo)

--HG--
extra : rebase_source : ba776d02fcaa109cac1ab450939218b3090b9b73
This commit is contained in:
Luke Wagner 2012-01-09 11:05:03 -08:00
parent 3e3406766f
commit 5f184a165b
2 changed files with 3 additions and 5 deletions

View File

@ -8117,7 +8117,7 @@ JS_FRIEND_DATA(JSSrcNoteSpec) js_SrcNoteSpec[] = {
{"switch", 2, 0, 1},
{"funcdef", 1, 0, 0},
{"catch", 1, 0, 1},
{"extended", -1, 0, 0},
{"unused", -1, 0, 0},
{"newline", 0, 0, 0},
{"setline", 1, 0, 0},
{"xdelta", 0, 0, 0},

View File

@ -922,9 +922,7 @@ EmitFunctionScript(JSContext *cx, BytecodeEmitter *bce, ParseNode *body);
* B have disjoint sets of source notes that could apply to each bytecode may
* reuse the same note type value for two notes (snA, snB) that have the same
* arity, offsetBias, and isSpanDep initializers in JSSrcNoteSpec. This is
* why SRC_IF and SRC_INITPROP have the same value below. For bad historical
* reasons, some bytecodes below that could be overlayed have not been, but
* before using SRC_EXTENDED, consider compressing the existing note types.
* why SRC_IF and SRC_INITPROP have the same value below.
*
* Don't forget to update JSXDR_BYTECODE_VERSION in jsxdrapi.h for all such
* incompatible source note or other bytecode changes.
@ -976,7 +974,7 @@ enum SrcNoteType {
SRC_SWITCHBREAK = 18, /* JSOP_GOTO is a break in a switch */
SRC_FUNCDEF = 19, /* JSOP_NOP for function f() with atomid */
SRC_CATCH = 20, /* catch block has guard */
SRC_EXTENDED = 21, /* extended source note, 32-159, in next byte */
/* 21 is unused */
SRC_NEWLINE = 22, /* bytecode follows a source newline */
SRC_SETLINE = 23, /* a file-absolute source line number note */
SRC_XDELTA = 24 /* 24-31 are for extended delta notes */