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

@ -2049,6 +2049,12 @@ BaselineCompiler::emit_JSOP_NEWARRAY()
return true;
}
bool
BaselineCompiler::emit_JSOP_SPREADCALLARRAY()
{
return emit_JSOP_NEWARRAY();
}
typedef ArrayObject* (*NewArrayCopyOnWriteFn)(JSContext*, HandleArrayObject, gc::InitialHeap);
const VMFunction jit::NewArrayCopyOnWriteInfo =
FunctionInfo<NewArrayCopyOnWriteFn>(js::NewDenseCopyOnWriteArray, "NewDenseCopyOnWriteArray");