diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-19 15:59:22 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-19 15:59:22 +0100 |
commit | e3f1d0d10638e46e3a22cf8363c03922200cb158 (patch) | |
tree | 4f62ebdc97e6083dd53b12a0f62510ed7e4fa913 /js/src/jit/MIR.h | |
parent | f67a2b88d7e8780f4ae81419338004b6fd781567 (diff) | |
download | UXP-e3f1d0d10638e46e3a22cf8363c03922200cb158.tar UXP-e3f1d0d10638e46e3a22cf8363c03922200cb158.tar.gz UXP-e3f1d0d10638e46e3a22cf8363c03922200cb158.tar.lz UXP-e3f1d0d10638e46e3a22cf8363c03922200cb158.tar.xz UXP-e3f1d0d10638e46e3a22cf8363c03922200cb158.zip |
Part 3: Support JSOP_SETFUNNAME in Baseline and Ion
Issue #87
Diffstat (limited to 'js/src/jit/MIR.h')
-rw-r--r-- | js/src/jit/MIR.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/js/src/jit/MIR.h b/js/src/jit/MIR.h index dcb08c317..3caa7e357 100644 --- a/js/src/jit/MIR.h +++ b/js/src/jit/MIR.h @@ -8464,6 +8464,34 @@ class MLambdaArrow } }; +class MSetFunName + : public MAryInstruction<2>, + public MixPolicy<ObjectPolicy<0>, BoxPolicy<1> >::Data +{ + uint8_t prefixKind_; + + explicit MSetFunName(MDefinition* fun, MDefinition* name, uint8_t prefixKind) + : prefixKind_(prefixKind) + { + initOperand(0, fun); + initOperand(1, name); + setResultType(MIRType::None); + } + + public: + INSTRUCTION_HEADER(SetFunName) + TRIVIAL_NEW_WRAPPERS + NAMED_OPERANDS((0, fun), (1, name)) + + uint8_t prefixKind() const { + return prefixKind_; + } + + bool possiblyCalls() const override { + return true; + } +}; + // Returns obj->slots. class MSlots : public MUnaryInstruction, |