summaryrefslogtreecommitdiff
path: root/js/src/jit/shared/LIR-shared.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-05-21 16:38:37 +0000
committerMoonchild <moonchild@palemoon.org>2022-05-21 16:38:37 +0000
commit2694995e52a0bd767acac74f2306767d0a3720c9 (patch)
treed2a1198ccd0b8eab1b0b589b6900845aa3b87d5b /js/src/jit/shared/LIR-shared.h
parentf532bbd7af98d2cb543bf86b93b0e0e9fa1e9b2a (diff)
parent00c51f75fa4845f348708a796d552ca281f8210a (diff)
downloaduxp-1210.tar.gz
Merge branch 'master' into 12101210
Diffstat (limited to 'js/src/jit/shared/LIR-shared.h')
-rw-r--r--js/src/jit/shared/LIR-shared.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit/shared/LIR-shared.h b/js/src/jit/shared/LIR-shared.h
index 62dc574b6c..f97dc1534f 100644
--- a/js/src/jit/shared/LIR-shared.h
+++ b/js/src/jit/shared/LIR-shared.h
@@ -7851,6 +7851,21 @@ class LIsObjectAndBranch : public LControlInstructionHelper<2, BOX_PIECES, 0>
}
};
+class LIsNullOrUndefined : public LInstructionHelper<1, BOX_PIECES, 0>
+{
+ public:
+ LIR_HEADER(IsNullOrUndefined);
+ static const size_t Input = 0;
+
+ explicit LIsNullOrUndefined(const LBoxAllocation& input) {
+ setBoxOperand(Input, input);
+ }
+
+ MIsNullOrUndefined* mir() const {
+ return mir_->toIsNullOrUndefined();
+ }
+};
+
class LHasClass : public LInstructionHelper<1, 1, 0>
{
public: