diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
commit | a90a5cba08fdf6c0ceb95101c275108a152a3aed (patch) | |
tree | 532507288f3defd7f4dcf1af49698bcb76034855 /js/src/jit/MIR.h | |
parent | Adding debian version 126.0.1-1. (diff) | |
download | firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/jit/MIR.h')
-rw-r--r-- | js/src/jit/MIR.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/js/src/jit/MIR.h b/js/src/jit/MIR.h index c672092f04..853bf365e2 100644 --- a/js/src/jit/MIR.h +++ b/js/src/jit/MIR.h @@ -42,6 +42,7 @@ #include "js/ScalarType.h" // js::Scalar::Type #include "js/Value.h" #include "js/Vector.h" +#include "util/DifferentialTesting.h" #include "vm/BigIntType.h" #include "vm/EnvironmentObject.h" #include "vm/FunctionFlags.h" // js::FunctionFlags @@ -11895,7 +11896,13 @@ class MWasmNewStructObject : public MBinaryInstruction, TRIVIAL_NEW_WRAPPERS NAMED_OPERANDS((0, instance), (1, typeDefData)) - AliasSet getAliasSet() const override { return AliasSet::None(); } + AliasSet getAliasSet() const override { + if (js::SupportDifferentialTesting()) { + // Consider allocations effectful for differential testing. + return MDefinition::getAliasSet(); + } + return AliasSet::None(); + } bool isOutline() const { return isOutline_; } bool zeroFields() const { return zeroFields_; } gc::AllocKind allocKind() const { return allocKind_; } @@ -11923,7 +11930,13 @@ class MWasmNewArrayObject : public MTernaryInstruction, TRIVIAL_NEW_WRAPPERS NAMED_OPERANDS((0, instance), (1, numElements), (2, typeDefData)) - AliasSet getAliasSet() const override { return AliasSet::None(); } + AliasSet getAliasSet() const override { + if (js::SupportDifferentialTesting()) { + // Consider allocations effectful for differential testing. + return MDefinition::getAliasSet(); + } + return AliasSet::None(); + } uint32_t elemSize() const { return elemSize_; } bool zeroFields() const { return zeroFields_; } wasm::BytecodeOffset bytecodeOffset() const { return bytecodeOffset_; } |