summaryrefslogtreecommitdiffstats
path: root/js/src/jit/BaselineCompiler.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-06-17 13:51:02 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-06-17 13:51:02 +0000
commit9a2224a97c7d258fc1f0e5fad30706987880ce22 (patch)
tree506d755bc01b2b894adb0d5b3169258b6e21bd20 /js/src/jit/BaselineCompiler.cpp
parent62311832e964ac30a75efacaa53ed93039d7d7a6 (diff)
downloadUXP-9a2224a97c7d258fc1f0e5fad30706987880ce22.tar
UXP-9a2224a97c7d258fc1f0e5fad30706987880ce22.tar.gz
UXP-9a2224a97c7d258fc1f0e5fad30706987880ce22.tar.lz
UXP-9a2224a97c7d258fc1f0e5fad30706987880ce22.tar.xz
UXP-9a2224a97c7d258fc1f0e5fad30706987880ce22.zip
Revert "Remove JSOP_SPREADCALLARRAY and just use JSOP_NEWARRAY again."
This reverts commit 912c3f5cbc512557794a3dfd7bc5cb4994413dfe.
Diffstat (limited to 'js/src/jit/BaselineCompiler.cpp')
-rw-r--r--js/src/jit/BaselineCompiler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit/BaselineCompiler.cpp b/js/src/jit/BaselineCompiler.cpp
index 6b64bfb44..93e3759b9 100644
--- a/js/src/jit/BaselineCompiler.cpp
+++ b/js/src/jit/BaselineCompiler.cpp
@@ -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");