Skip to content

Commit

Permalink
[dart2wasm] Use unsigned comparison in native typed array index checks
Browse files Browse the repository at this point in the history
wasm-opt is not able to do this optimization and using one unsigned
comparison instead of two comparisons saves some binary space and runs
faster.

(JS typed array classes already do this)

Change-Id: Ia51d0d501af9bfd119b53d2373456bd4f0c36f25
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/335825
Commit-Queue: Ömer Ağacan <[email protected]>
Reviewed-by: Aske Simon Christensen <[email protected]>
  • Loading branch information
osa1 authored and Commit Queue committed Nov 15, 2023
1 parent 4eed065 commit bf587fb
Showing 1 changed file with 53 additions and 119 deletions.
Loading

0 comments on commit bf587fb

Please sign in to comment.