danleh / wasabi

A dynamic analysis framework for WebAssembly programs.
http://wasabi.software-lab.org
MIT License
366 stars 48 forks source link

Pass type to const hook #16

Closed danleh closed 5 years ago

danleh commented 5 years ago

Inside the const_ hook, one cannot distinguish an i32 from an f32 or f64 (assuming the latter have no fractional portion). Add op argument, similar to local and global hooks.