diff options
author | Moonchild <moonchild@palemoon.org> | 2022-05-21 16:38:37 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-05-21 16:38:37 +0000 |
commit | 2694995e52a0bd767acac74f2306767d0a3720c9 (patch) | |
tree | d2a1198ccd0b8eab1b0b589b6900845aa3b87d5b /js/src/jit/MIR.h | |
parent | f532bbd7af98d2cb543bf86b93b0e0e9fa1e9b2a (diff) | |
parent | 00c51f75fa4845f348708a796d552ca281f8210a (diff) | |
download | uxp-1210.tar.gz |
Merge branch 'master' into 12101210
Diffstat (limited to 'js/src/jit/MIR.h')
-rw-r--r-- | js/src/jit/MIR.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/js/src/jit/MIR.h b/js/src/jit/MIR.h index a398ef3344..ea00529e09 100644 --- a/js/src/jit/MIR.h +++ b/js/src/jit/MIR.h @@ -13156,6 +13156,30 @@ class MIsObject return AliasSet::None(); } }; + +class MIsNullOrUndefined + : public MUnaryInstruction, + public BoxInputsPolicy::Data +{ + explicit MIsNullOrUndefined(MDefinition* object) + : MUnaryInstruction(object) + { + setResultType(MIRType::Boolean); + setMovable(); + } + + public: + INSTRUCTION_HEADER(IsNullOrUndefined) + TRIVIAL_NEW_WRAPPERS + NAMED_OPERANDS((0, object)) + + bool congruentTo(const MDefinition* ins) const override { + return congruentIfOperandsEqual(ins); + } + AliasSet getAliasSet() const override { + return AliasSet::None(); + } +}; class MHasClass : public MUnaryInstruction, |