Chromium Code Reviews
DescriptionWhen canonicalizing UnboxInt32([tr], BoxInt64()) make sure to mark resulting converter truncating.
We regressed this logic in r41736 when we started to checking whether current UnboxInt32 can deoptimize, instead of whether it is truncating or not. This was too aggressive.
Additionally fix CanDeoptimize for UnboxInt32([tr], BoxInt64()). It was always returning true because CompileType is not smart enough to encode that Boxing returns either Smi or Mint, which is enough to guarantee that truncating UnboxInt32 won't deoptimize.
R=fschneider@google.com, fscheider@google.com
BUG=
Committed: https://code.google.com/p/dart/source/detail?r=42319
Patch Set 1 #
Messages
Total messages: 4 (1 generated)
|
|||||||||||||||||||