mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 22:44:13 +00:00
Bug 1044256: Fix hash policy of SimdConstant; r=nbp
This commit is contained in:
parent
56a3a17bf8
commit
a71c8f9c9f
@ -341,7 +341,8 @@ class SimdConstant {
|
||||
// SimdConstant is a HashPolicy
|
||||
typedef SimdConstant Lookup;
|
||||
static HashNumber hash(const SimdConstant &val) {
|
||||
return mozilla::HashBytes(&val.u, sizeof(SimdConstant));
|
||||
uint32_t hash = mozilla::HashBytes(&val.u, sizeof(val.u));
|
||||
return mozilla::AddToHash(hash, val.type_);
|
||||
}
|
||||
static bool match(const SimdConstant &lhs, const SimdConstant &rhs) {
|
||||
return lhs == rhs;
|
||||
|
@ -194,7 +194,7 @@ class LSimdInsertElementBase : public LInstructionHelper<1, 2, 0>
|
||||
const LAllocation *value() {
|
||||
return getOperand(1);
|
||||
}
|
||||
const SimdLane lane() const {
|
||||
SimdLane lane() const {
|
||||
return mir_->toSimdInsertElement()->lane();
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user