File tree Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use core::str::FromStr;
6
6
#[ cfg( any( feature = "cache" , feature = "cranelift" , feature = "winch" ) ) ]
7
7
use std:: path:: Path ;
8
8
use wasmparser:: WasmFeatures ;
9
- use wasmtime_environ:: { ConfigTunables , IntraModuleInlining , TripleExt , Tunables } ;
9
+ use wasmtime_environ:: { ConfigTunables , TripleExt , Tunables } ;
10
10
11
11
#[ cfg( feature = "runtime" ) ]
12
12
use crate :: memory:: MemoryCreator ;
@@ -2084,17 +2084,6 @@ impl Config {
2084
2084
self
2085
2085
}
2086
2086
2087
- /// Whether to force all possible inlining.
2088
- pub fn compiler_force_inlining ( & mut self , inlining : bool ) -> & mut Self {
2089
- let inlining = if inlining {
2090
- IntraModuleInlining :: Yes
2091
- } else {
2092
- IntraModuleInlining :: No
2093
- } ;
2094
- self . tunables . inlining_intra_module = Some ( inlining) ;
2095
- self
2096
- }
2097
-
2098
2087
/// Returns the set of features that the currently selected compiler backend
2099
2088
/// does not support at all and may panic on.
2100
2089
///
Original file line number Diff line number Diff line change @@ -50,7 +50,11 @@ fn stack_values_two_frames() -> anyhow::Result<()> {
50
50
"# ,
51
51
|config| {
52
52
config. compiler_inlining ( inlining) ;
53
- config. compiler_force_inlining ( inlining) ;
53
+ if inlining {
54
+ unsafe {
55
+ config. cranelift_flag_set ( "wasmtime_inlining_intra_module" , "true" ) ;
56
+ }
57
+ }
54
58
} ,
55
59
|mut caller : Caller < ' _ , ( ) > | {
56
60
let mut stack = caller. stack_values ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments