@@ -116,10 +116,16 @@ public abstract class WasmFileSuite extends AbstractWasmSuite {
116
116
private static final int INITIAL_STATE_CHECK_ITERATIONS = 10 ;
117
117
private static final int STATE_CHECK_PERIODICITY = 2000 ;
118
118
119
- private static Map <String , String > getInterpretedNoInline () {
119
+ private static boolean isFallbackRuntime () {
120
+ return Truffle .getRuntime ().getName ().equals ("Interpreted" );
121
+ }
122
+
123
+ private static Map <String , String > getInterpreted () {
124
+ if (isFallbackRuntime ()) {
125
+ return Map .of ();
126
+ }
120
127
return Map .ofEntries (
121
- Map .entry ("engine.Compilation" , "false" ),
122
- Map .entry ("compiler.Inlining" , "false" ));
128
+ Map .entry ("engine.Compilation" , "false" ));
123
129
}
124
130
125
131
private static Map <String , String > getSyncCompiledNoInline () {
@@ -148,6 +154,9 @@ private static Map<String, String> getAsyncCompiled() {
148
154
}
149
155
150
156
private static Map <String , String > getAsyncCompiledShared () {
157
+ if (isFallbackRuntime ()) {
158
+ return Map .of ();
159
+ }
151
160
return getAsyncCompiled ();
152
161
}
153
162
@@ -406,9 +415,13 @@ private void runInContexts(WasmCase testCase, Context.Builder contextBuilder, Ar
406
415
interpreterIterations = Math .min (interpreterIterations , 1 );
407
416
}
408
417
409
- context = contextBuilder .options (getInterpretedNoInline ()).option ("wasm.EvalReturnsInstance" , "true" ).build ();
418
+ context = contextBuilder .options (getInterpreted ()).option ("wasm.EvalReturnsInstance" , "true" ).build ();
410
419
runInContext (testCase , context , sources , interpreterIterations , PHASE_INTERPRETER_ICON , "interpreter" , testOut );
411
420
421
+ if (isFallbackRuntime ()) {
422
+ return ;
423
+ }
424
+
412
425
// Run in synchronous compiled mode, with inlining turned off.
413
426
// We need to run the test at least twice like this, since the first run will lead to
414
427
// de-opts due to empty profiles.
0 commit comments