diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-12-14 09:13:04 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-12-17 06:25:27 -0500 |
commit | bbd1fef7840d97801307f9ace021b52d94c5f61f (patch) | |
tree | 129d13b0e9b84264e1ceb2e4bf1e8d096abfc0e0 /js/src/jit/shared | |
parent | 8e2f6a75990b2eb0df4c5e5af46162b8b1013a04 (diff) | |
download | UXP-bbd1fef7840d97801307f9ace021b52d94c5f61f.tar UXP-bbd1fef7840d97801307f9ace021b52d94c5f61f.tar.gz UXP-bbd1fef7840d97801307f9ace021b52d94c5f61f.tar.lz UXP-bbd1fef7840d97801307f9ace021b52d94c5f61f.tar.xz UXP-bbd1fef7840d97801307f9ace021b52d94c5f61f.zip |
Bug 1331092 - Part 6: Support JSOP_TOASYNCGEN in JIT.
Tag #1287
Diffstat (limited to 'js/src/jit/shared')
-rw-r--r-- | js/src/jit/shared/LIR-shared.h | 13 | ||||
-rw-r--r-- | js/src/jit/shared/LOpcodes-shared.h | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit/shared/LIR-shared.h b/js/src/jit/shared/LIR-shared.h index ecf02816e..6c8ff899b 100644 --- a/js/src/jit/shared/LIR-shared.h +++ b/js/src/jit/shared/LIR-shared.h @@ -1606,6 +1606,19 @@ class LToAsync : public LCallInstructionHelper<1, 1, 0> } }; +class LToAsyncGen : public LCallInstructionHelper<1, 1, 0> +{ + public: + LIR_HEADER(ToAsyncGen) + explicit LToAsyncGen(const LAllocation& input) { + setOperand(0, input); + } + + const LAllocation* unwrapped() { + return getOperand(0); + } +}; + class LToIdV : public LInstructionHelper<BOX_PIECES, BOX_PIECES, 1> { public: diff --git a/js/src/jit/shared/LOpcodes-shared.h b/js/src/jit/shared/LOpcodes-shared.h index e260d7e94..9e79f0266 100644 --- a/js/src/jit/shared/LOpcodes-shared.h +++ b/js/src/jit/shared/LOpcodes-shared.h @@ -353,6 +353,7 @@ _(Rest) \ _(TypeOfV) \ _(ToAsync) \ + _(ToAsyncGen) \ _(ToIdV) \ _(Floor) \ _(FloorF) \ |