Commit 870d7c8d authored by Pavel Zakopaylo's avatar Pavel Zakopaylo

Implemented load and store API calls for TagRef64

parent eab0ba47
...@@ -1382,6 +1382,7 @@ impl <'a> VM { ...@@ -1382,6 +1382,7 @@ impl <'a> VM {
MuType_::Ref(ref ty) => APIHandleValue::Ref(ty.clone(), unsafe {addr.load::<Address>()}), MuType_::Ref(ref ty) => APIHandleValue::Ref(ty.clone(), unsafe {addr.load::<Address>()}),
MuType_::IRef(ref ty) => APIHandleValue::IRef(ty.clone(), unsafe {addr.load::<Address>()}), MuType_::IRef(ref ty) => APIHandleValue::IRef(ty.clone(), unsafe {addr.load::<Address>()}),
MuType_::UPtr(ref ty) => APIHandleValue::UPtr(ty.clone(), unsafe {addr.load::<Address>()}), MuType_::UPtr(ref ty) => APIHandleValue::UPtr(ty.clone(), unsafe {addr.load::<Address>()}),
MuType_::Tagref64 => APIHandleValue::TagRef64(unsafe {addr.load::<u64>()}),
_ => unimplemented!() _ => unimplemented!()
} }
...@@ -1421,6 +1422,7 @@ impl <'a> VM { ...@@ -1421,6 +1422,7 @@ impl <'a> VM {
_ => panic!("unimplemented int length") _ => panic!("unimplemented int length")
} }
}, },
APIHandleValue::TagRef64(val) => addr.store::<u64>(val),
APIHandleValue::Float(fval) => addr.store::<f32>(fval), APIHandleValue::Float(fval) => addr.store::<f32>(fval),
APIHandleValue::Double(fval) => addr.store::<f64>(fval), APIHandleValue::Double(fval) => addr.store::<f64>(fval),
APIHandleValue::UPtr(_, aval) => addr.store::<Address>(aval), APIHandleValue::UPtr(_, aval) => addr.store::<Address>(aval),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment