зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1044256: Fix hash policy of SimdConstant; r=nbp
This commit is contained in:
Родитель
56a3a17bf8
Коммит
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();
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче