File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed
crates/wasmi/src/engine/executor/handler Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,23 @@ pub struct Done {
217217 _priv : ( ) ,
218218}
219219
220+ #[ cfg( not( feature = "trampolines" ) ) ]
221+ impl Done {
222+ pub fn control_continue (
223+ _ip : Ip ,
224+ _sp : Sp ,
225+ _mem0 : Mem0Ptr ,
226+ _mem0_len : Mem0Len ,
227+ _instance : NonNull < InstanceEntity > ,
228+ ) -> Self {
229+ Self { _priv : ( ) }
230+ }
231+
232+ pub fn control_break ( ) -> Self {
233+ Self { _priv : ( ) }
234+ }
235+ }
236+
220237#[ derive( Debug , Copy , Clone ) ]
221238#[ cfg( feature = "trampolines" ) ]
222239pub enum Done {
@@ -230,19 +247,8 @@ pub enum Done {
230247 Break ,
231248}
232249
250+ #[ cfg( feature = "trampolines" ) ]
233251impl Done {
234- #[ cfg( not( feature = "trampolines" ) ) ]
235- pub fn control_continue (
236- _ip : Ip ,
237- _sp : Sp ,
238- _mem0 : Mem0Ptr ,
239- _mem0_len : Mem0Len ,
240- _instance : NonNull < InstanceEntity > ,
241- ) -> Self {
242- Self { _priv : ( ) }
243- }
244-
245- #[ cfg( feature = "trampolines" ) ]
246252 pub fn control_continue (
247253 next_ip : Ip ,
248254 next_sp : Sp ,
@@ -259,12 +265,6 @@ impl Done {
259265 }
260266 }
261267
262- #[ cfg( not( feature = "trampolines" ) ) ]
263- pub fn control_break ( ) -> Self {
264- Self { _priv : ( ) }
265- }
266-
267- #[ cfg( feature = "trampolines" ) ]
268268 pub fn control_break ( ) -> Self {
269269 Self :: Break
270270 }
You can’t perform that action at this time.
0 commit comments