[interp] Replace `mono_error_ok` with `is_ok`. (#16193)
commitef199425a2867b20695cb1c4e6df4b699dd8891a
authorJay Krell <jaykrell@microsoft.com>
Tue, 13 Aug 2019 13:30:28 +0000 (13 06:30 -0700)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 13 Aug 2019 13:30:28 +0000 (13 15:30 +0200)
treee03d3651cc9666d18156672969ba427e0c85e095
parentb60aaea7912839e5d343ad2bd3fde0a5c35704c1
[interp] Replace `mono_error_ok` with `is_ok`. (#16193)

The locally unknown function, despite being small/fast, forces saving values in stack and nonvolatile registers
around calling it.
Both nonvolatile registers and stack are at a premium here, whereas usually stack is cheap.
The macro is just a read from offset 0 and checking for zero.
mono/mini/interp/interp.c