diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-12-14 09:16:32 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-12-17 06:25:28 -0500 |
commit | ef44324d916b89b95fa0ea77a3d91eafb4359bf8 (patch) | |
tree | 38ce7009388ceef8cb6793f5d0dcd5388d1d3a3f /js/src/vm/Opcodes.h | |
parent | bbd1fef7840d97801307f9ace021b52d94c5f61f (diff) | |
download | UXP-ef44324d916b89b95fa0ea77a3d91eafb4359bf8.tar UXP-ef44324d916b89b95fa0ea77a3d91eafb4359bf8.tar.gz UXP-ef44324d916b89b95fa0ea77a3d91eafb4359bf8.tar.lz UXP-ef44324d916b89b95fa0ea77a3d91eafb4359bf8.tar.xz UXP-ef44324d916b89b95fa0ea77a3d91eafb4359bf8.zip |
Bug 1331092 - Part 7: Implement Async Generator yield*.
Tag #1287
Diffstat (limited to 'js/src/vm/Opcodes.h')
-rw-r--r-- | js/src/vm/Opcodes.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/src/vm/Opcodes.h b/js/src/vm/Opcodes.h index fc7fbbe66..e13cd6221 100644 --- a/js/src/vm/Opcodes.h +++ b/js/src/vm/Opcodes.h @@ -2136,7 +2136,15 @@ * Stack: promise, gen => resolved */ \ macro(JSOP_AWAIT, 209, "await", NULL, 4, 2, 1, JOF_UINT24) \ - macro(JSOP_UNUSED210, 210, "unused210", NULL, 1, 0, 0, JOF_BYTE) \ + /* + * Pops the iterator from the top of the stack, and create async iterator + * from it and push the async iterator back onto the stack. + * Category: Statements + * Type: Generator + * Operands: + * Stack: iter => asynciter + */ \ + macro(JSOP_TOASYNCITER, 210, "toasynciter", NULL, 1, 1, 1, JOF_BYTE) \ macro(JSOP_UNUSED211, 211, "unused211", NULL, 1, 0, 0, JOF_BYTE) \ /* * Initializes generator frame, creates a generator and pushes it on the |