summaryrefslogtreecommitdiffstats
path: root/js/src/vm/Opcodes.h
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/vm/Opcodes.h
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/vm/Opcodes.h')
-rw-r--r--js/src/vm/Opcodes.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/js/src/vm/Opcodes.h b/js/src/vm/Opcodes.h
index 095ef57ae..4b044c8d8 100644
--- a/js/src/vm/Opcodes.h
+++ b/js/src/vm/Opcodes.h
@@ -1281,7 +1281,17 @@
* Stack: receiver, obj, propval => obj[propval]
*/ \
macro(JSOP_GETELEM_SUPER, 125, "getelem-super", NULL, 1, 3, 1, JOF_BYTE |JOF_ELEM|JOF_LEFTASSOC) \
- macro(JSOP_UNUSED126, 126, "unused126", NULL, 5, 0, 1, JOF_UINT32) \
+ /*
+ * Pushes newly created array for a spread call onto the stack. This has
+ * the same semantics as JSOP_NEWARRAY, but is distinguished to avoid
+ * using unboxed arrays in spread calls, which would make compiling spread
+ * calls in baseline more complex.
+ * Category: Literals
+ * Type: Array
+ * Operands: uint32_t length
+ * Stack: => obj
+ */ \
+ macro(JSOP_SPREADCALLARRAY, 126, "spreadcallarray", NULL, 5, 0, 1, JOF_UINT32) \
\
/*
* Defines the given function on the current scope.