• kschimpf's avatar
    [wasm] Clean up float to integer conversions · 5eca0acc
    kschimpf authored
    Cleans up the implementation of trapping/saturating operations to
    use existing models of types, instead of defining new ones. That is,
    it uses MachineType to represent the kind of integer/float value the
    conversion is operating on.
    
    It also removes the need to define NumericImplementation by using
    the actual opcodes to determine if the instruction is trapping or
    saturating.
    
    Finally, it now defines a single method to implement the truncating
    (that doesn't use a ccall) conversions. The previous code had two
    methods, one for I32 and one for I64.
    
    Bug: v8:7226
    Change-Id: Ia869416c8bd1abe76d0583c28a3105102d130b46
    Reviewed-on: https://chromium-review.googlesource.com/900558
    Commit-Queue: Karl Schimpf <kschimpf@chromium.org>
    Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#51129}
    5eca0acc
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...