mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Issue #2308 & #1240 Follow-up - Introduce new increment and decrement operations. https://bugzilla.mozilla.org/show_bug.cgi?id=1508521
This commit is contained in:
parent
e9202b0b0f
commit
5c8a6c5bb8
13 changed files with 157 additions and 30 deletions
|
|
@ -339,7 +339,7 @@ NameOpEmitter::emitIncDec()
|
|||
{
|
||||
MOZ_ASSERT(state_ == State::Start);
|
||||
|
||||
JSOp binOp = isInc() ? JSOP_ADD : JSOP_SUB;
|
||||
JSOp incOp = isInc() ? JSOP_INC : JSOP_DEC;
|
||||
if (!prepareForRhs()) { // ENV? V
|
||||
return false;
|
||||
}
|
||||
|
|
@ -351,10 +351,7 @@ NameOpEmitter::emitIncDec()
|
|||
return false;
|
||||
}
|
||||
}
|
||||
if (!bce_->emit1(JSOP_ONE)) { // ENV? N? N 1
|
||||
return false;
|
||||
}
|
||||
if (!bce_->emit1(binOp)) { // ENV? N? N+1
|
||||
if (!bce_->emit1(incOp)) { // ENV? N? N+1
|
||||
return false;
|
||||
}
|
||||
if (isPostIncDec() && emittedBindOp()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue