@@ -91,7 +91,6 @@ wasmtime_environ::foreach_builtin_function!(declare_function_signatures);
9191/// The `FuncEnvironment` implementation for use by the `ModuleEnvironment`.
9292pub struct FuncEnvironment < ' module_environment > {
9393 compiler : & ' module_environment Compiler ,
94- /// NOTE(frank-emrich) pub for use in crate::wasmfx::* modules
9594 pub ( crate ) isa : & ' module_environment ( dyn TargetIsa + ' module_environment ) ,
9695 pub ( crate ) module : & ' module_environment Module ,
9796 pub ( crate ) types : & ' module_environment ModuleTypesBuilder ,
@@ -138,7 +137,6 @@ pub struct FuncEnvironment<'module_environment> {
138137 /// VMStoreContext` for this function's vmctx argument. This pointer is stored
139138 /// in the vmctx itself, but never changes for the lifetime of the function,
140139 /// so if we load it up front we can continue to use it throughout.
141- /// NOTE(frank-emrich) pub for use in stack_switching modules
142140 pub ( crate ) vmstore_context_ptr : ir:: Value ,
143141
144142 /// A cached epoch deadline value, when performing epoch-based
@@ -1719,7 +1717,8 @@ impl<'module_environment> TargetEnvironment for FuncEnvironment<'module_environm
17191717 let needs_stack_map = match wasm_ty. top ( ) {
17201718 WasmHeapTopType :: Extern | WasmHeapTopType :: Any => true ,
17211719 WasmHeapTopType :: Func => false ,
1722- // FIXME(frank-emrich) Don't we actually need to include continuations in stack maps??
1720+ // TODO(#10248) Once continuations can be stored on the GC heap, we
1721+ // will need stack maps for continuation objects.
17231722 WasmHeapTopType :: Cont => false ,
17241723 } ;
17251724 ( ty, needs_stack_map)
@@ -3279,7 +3278,10 @@ impl FuncEnvironment<'_> {
32793278 _tag_index : u32 ,
32803279 _cont : ir:: Value ,
32813280 ) -> WasmResult < ir:: Value > {
3282- todo ! ( )
3281+ // TODO(#10248)
3282+ Err ( wasmtime_environ:: WasmError :: Unsupported (
3283+ "resume.throw instruction not implemented, yet" . to_string ( ) ,
3284+ ) )
32833285 }
32843286
32853287 pub fn translate_suspend (
0 commit comments