asm-js / validator

A reference validator for asm.js.
Apache License 2.0
1.78k stars 148 forks source link

luke's "no implicit coercions" semantics #33

Closed dherman closed 11 years ago

dherman commented 11 years ago

In Luke's variation of the semantics:

We have the following type signatures:

(_+_)|_ : bits32 x bits32 x bits32 -> int32
(_+_) : float64 x float64 -> float64
(_|_) : bits32 x bits32 -> int32
~~_ : float64 -> int32
~_ : bits32 -> int32
+_ : bits32 -> float64