Implement NativeExecutor, which attempts a native execution and falls back on Wasm otherwise.

This commit is contained in:
Gav
2018-01-23 20:38:01 +01:00
parent 91c659fbc8
commit 1617900c1d
9 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ macro_rules! impl_stubs {
$crate::Vec::from_raw_parts(input_data, input_len, input_len)
};
let output = super::$name(input);
let output = super::$name(&input[..]);
&output[0] as *const u8 as u64 + ((output.len() as u64) << 32)
}
)*