Revert "Remove JSOP_SPREADCALLARRAY and just use JSOP_NEWARRAY again."

This reverts commit 912c3f5cbc512557794a3dfd7bc5cb4994413dfe.
This commit is contained in:
wolfbeast 2019-06-17 13:51:02 +00:00 committed by Roy Tam
commit bd6c34b56a
7 changed files with 25 additions and 9 deletions

View file

@ -1916,7 +1916,6 @@ CASE(EnableInterruptsPseudoOpcode)
/* Various 1-byte no-ops. */
CASE(JSOP_NOP)
CASE(JSOP_NOP_DESTRUCTURING)
CASE(JSOP_UNUSED126)
CASE(JSOP_UNUSED192)
CASE(JSOP_UNUSED209)
CASE(JSOP_UNUSED210)
@ -3637,6 +3636,7 @@ CASE(JSOP_NEWINIT)
END_CASE(JSOP_NEWINIT)
CASE(JSOP_NEWARRAY)
CASE(JSOP_SPREADCALLARRAY)
{
uint32_t length = GET_UINT32(REGS.pc);
JSObject* obj = NewArrayOperation(cx, script, REGS.pc, length);