Skip to content

Commit

Permalink
Bug 1886849: Remove MObjectKeysLength::computeRange r=jandem, a=dsmith
Browse files Browse the repository at this point in the history
  • Loading branch information
iainireland committed Mar 21, 2024
1 parent f4b3793 commit bdf3090
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion js/src/jit/MIROps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,6 @@
movable: false
congruent_to: if_operands_equal
alias_set: custom
compute_range: custom
clone: true

- name: LoadUnboxedScalar
Expand Down
7 changes: 0 additions & 7 deletions js/src/jit/RangeAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1821,13 +1821,6 @@ void MResizableDataViewByteLength::computeRange(TempAllocator& alloc) {
}
}

void MObjectKeysLength::computeRange(TempAllocator& alloc) {
// Object.keys(..) returns an array, but this array is bounded by the number
// of slots / elements that can be encoded in a single object.
MOZ_ASSERT(type() == MIRType::Int32);
setRange(Range::NewUInt32Range(alloc, 0, NativeObject::MAX_SLOTS_COUNT));
}

void MTypedArrayElementSize::computeRange(TempAllocator& alloc) {
constexpr auto MaxTypedArraySize = sizeof(double);

Expand Down

0 comments on commit bdf3090

Please sign in to comment.