[vm] Add checks to parameters of math functions before inlining
[vm] Add checks to parameters of math functions before inlining

Make sure to inline functions such as sqrt only when the parameters
are double.

Change-Id: I1a11dc09e804f157f57d9d04b7b9f2aa830ab2a0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133236
Commit-Queue: Victor Agnez Lima <2b557e2902c0c9c1b289d67f4b61100bd8a329b7@google.com>
Reviewed-by: Martin Kustermann <a35dd5b79fac84b2bb3b026a16b8becc55af5961@google.com>

dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk