[WASM] mem_cmp added to the Wasm runtime (#7539)

* mem_cmp added to the Wasm runtime

* schedule.wasm.mem_copy to schedule.wasm.mem_cmp for mem_cmp
This commit is contained in:
Alexey
2018-01-15 17:24:24 +03:00
committed by Nikolay Volf
parent ad14e656f6
commit d927320719
6 changed files with 37 additions and 0 deletions

View File

@@ -128,6 +128,8 @@ pub struct WasmCosts {
/// Memory (load/store) operations multiplier.
pub mem: u32,
/// Memory copy operation, per byte.
pub mem_cmp: u32,
/// Memory copy operation, per byte.
pub mem_copy: u32,
/// Memory move operation, per byte.
pub mem_move: u32,
@@ -148,6 +150,7 @@ impl Default for WasmCosts {
div: 16,
mul: 4,
mem: 2,
mem_cmp: 1,
mem_copy: 1,
mem_move: 1,
mem_set: 1,