diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-12-14 09:22:32 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-12-17 06:25:28 -0500 |
commit | 580dfb2afbef15764b56714f3eb690a67f0af9c1 (patch) | |
tree | 7f60e914b45f30a9e4e585b884cd5ca2d5827055 /js/src/jit/CodeGenerator.cpp | |
parent | ef44324d916b89b95fa0ea77a3d91eafb4359bf8 (diff) | |
download | uxp-580dfb2afbef15764b56714f3eb690a67f0af9c1.tar.gz |
Bug 1331092 - Part 8: Support JSOP_TOASYNCITER in JIT.
Tag #1287
Diffstat (limited to 'js/src/jit/CodeGenerator.cpp')
-rw-r--r-- | js/src/jit/CodeGenerator.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit/CodeGenerator.cpp b/js/src/jit/CodeGenerator.cpp index 128947e5ed..2b1c671d1b 100644 --- a/js/src/jit/CodeGenerator.cpp +++ b/js/src/jit/CodeGenerator.cpp @@ -10225,6 +10225,17 @@ CodeGenerator::visitToAsyncGen(LToAsyncGen* lir) callVM(ToAsyncGenInfo, lir); } +typedef JSObject* (*ToAsyncIterFn)(JSContext*, HandleObject); +static const VMFunction ToAsyncIterInfo = + FunctionInfo<ToAsyncIterFn>(js::CreateAsyncFromSyncIterator, "ToAsyncIter"); + +void +CodeGenerator::visitToAsyncIter(LToAsyncIter* lir) +{ + pushArg(ToRegister(lir->unwrapped())); + callVM(ToAsyncIterInfo, lir); +} + typedef bool (*ToIdFn)(JSContext*, HandleScript, jsbytecode*, HandleValue, MutableHandleValue); static const VMFunction ToIdInfo = FunctionInfo<ToIdFn>(ToIdOperation, "ToIdOperation"); |