summaryrefslogtreecommitdiff
path: root/js/src/jit/Lowering.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-12-14 09:22:32 -0500
committerGaming4JC <g4jc@hyperbola.info>2019-12-17 06:25:28 -0500
commit3207c8c40957881821b3112961f29473178a4dcb (patch)
tree7f60e914b45f30a9e4e585b884cd5ca2d5827055 /js/src/jit/Lowering.cpp
parent769e83126f2d3929e6407476016716d0c7316f87 (diff)
downloaduxp-3207c8c40957881821b3112961f29473178a4dcb.tar.gz
Bug 1331092 - Part 8: Support JSOP_TOASYNCITER in JIT.
Tag mcp-graveyard/UXP#1287
Diffstat (limited to 'js/src/jit/Lowering.cpp')
-rw-r--r--js/src/jit/Lowering.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit/Lowering.cpp b/js/src/jit/Lowering.cpp
index ee59b8ae60..1084509833 100644
--- a/js/src/jit/Lowering.cpp
+++ b/js/src/jit/Lowering.cpp
@@ -1184,6 +1184,14 @@ LIRGenerator::visitToAsyncGen(MToAsyncGen* ins)
}
void
+LIRGenerator::visitToAsyncIter(MToAsyncIter* ins)
+{
+ LToAsyncIter* lir = new(alloc()) LToAsyncIter(useRegisterAtStart(ins->input()));
+ defineReturn(lir, ins);
+ assignSafepoint(lir, ins);
+}
+
+void
LIRGenerator::visitToId(MToId* ins)
{
LToIdV* lir = new(alloc()) LToIdV(useBox(ins->input()), tempDouble());