@@ -91,7 +91,6 @@ wasmtime_environ::foreach_builtin_function!(declare_function_signatures);
91
91
/// The `FuncEnvironment` implementation for use by the `ModuleEnvironment`.
92
92
pub struct FuncEnvironment < ' module_environment > {
93
93
compiler : & ' module_environment Compiler ,
94
- /// NOTE(frank-emrich) pub for use in crate::wasmfx::* modules
95
94
pub ( crate ) isa : & ' module_environment ( dyn TargetIsa + ' module_environment ) ,
96
95
pub ( crate ) module : & ' module_environment Module ,
97
96
pub ( crate ) types : & ' module_environment ModuleTypesBuilder ,
@@ -138,7 +137,6 @@ pub struct FuncEnvironment<'module_environment> {
138
137
/// VMStoreContext` for this function's vmctx argument. This pointer is stored
139
138
/// in the vmctx itself, but never changes for the lifetime of the function,
140
139
/// 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
142
140
pub ( crate ) vmstore_context_ptr : ir:: Value ,
143
141
144
142
/// A cached epoch deadline value, when performing epoch-based
@@ -1719,7 +1717,8 @@ impl<'module_environment> TargetEnvironment for FuncEnvironment<'module_environm
1719
1717
let needs_stack_map = match wasm_ty. top ( ) {
1720
1718
WasmHeapTopType :: Extern | WasmHeapTopType :: Any => true ,
1721
1719
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.
1723
1722
WasmHeapTopType :: Cont => false ,
1724
1723
} ;
1725
1724
( ty, needs_stack_map)
@@ -3279,7 +3278,10 @@ impl FuncEnvironment<'_> {
3279
3278
_tag_index : u32 ,
3280
3279
_cont : ir:: Value ,
3281
3280
) -> WasmResult < ir:: Value > {
3282
- todo ! ( )
3281
+ // TODO(#10248)
3282
+ Err ( wasmtime_environ:: WasmError :: Unsupported (
3283
+ "resume.throw instruction not implemented, yet" . to_string ( ) ,
3284
+ ) )
3283
3285
}
3284
3286
3285
3287
pub fn translate_suspend (
0 commit comments