mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 838813 part 5 - Remove SRC_DESTRUCT. r=njn.
--HG-- extra : rebase_source : b070a9429ff3e72ce94e314734c940d9248b37a6
This commit is contained in:
parent
8911f60a07
commit
862666a8ea
@ -3027,9 +3027,6 @@ EmitDestructuringOps(JSContext *cx, BytecodeEmitter *bce, ptrdiff_t declType, Pa
|
||||
ptrdiff_t index = NewSrcNote2(cx, bce, SRC_DESTRUCTLET, 0);
|
||||
if (index < 0 || !letNotes->append(cx, bce, bce->offset(), (unsigned)index))
|
||||
return false;
|
||||
} else {
|
||||
if (NewSrcNote2(cx, bce, SRC_DESTRUCT, declType) < 0)
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -271,8 +271,6 @@ enum SrcNoteType {
|
||||
array literal: [1,2,,];
|
||||
JSOP_DUP continuing destructuring pattern;
|
||||
JSOP_POP at end of for-in */
|
||||
SRC_DESTRUCT = 6, /* JSOP_DUP starting a destructuring assignment
|
||||
operation, with SRC_DECL_* offset operand */
|
||||
SRC_PCDELTA = 7, /* distance forward from comma-operator to
|
||||
next POP, or from CONDSWITCH to first CASE
|
||||
opcode, etc. -- always a forward delta */
|
||||
|
Loading…
Reference in New Issue
Block a user