Don't externalize setTempRet0

It is not longer needed, as we stopped to do legalization for JS FFI.
This commit is contained in:
Sergey Pepyakin
2017-11-09 17:36:13 +03:00
parent 9edf1cb467
commit d2c1d92e2b
3 changed files with 6 additions and 8 deletions
+2 -3
View File
@@ -103,7 +103,6 @@ mod test {
use parity_wasm::ModuleInstanceInterface;
use super::*;
use super::super::optimize;
use super::super::SET_TEMP_RET_SYMBOL;
use byteorder::{ByteOrder, LittleEndian};
#[test]
@@ -150,8 +149,8 @@ mod test {
.build();
let mut ctor_module = module.clone();
optimize(&mut module, vec![CALL_SYMBOL, SET_TEMP_RET_SYMBOL]).expect("Optimizer to finish without errors");
optimize(&mut ctor_module, vec![CREATE_SYMBOL, SET_TEMP_RET_SYMBOL]).expect("Optimizer to finish without errors");
optimize(&mut module, vec![CALL_SYMBOL]).expect("Optimizer to finish without errors");
optimize(&mut ctor_module, vec![CREATE_SYMBOL]).expect("Optimizer to finish without errors");
let raw_module = parity_wasm::serialize(module).unwrap();
pack_instance(raw_module.clone(), &mut ctor_module);