[Wasm] Don't generate wat format by default in box tests
Gives ~15% tests speedup Use kotlin.wasm.debugMode=1 to enable old behaviour
This commit is contained in:
committed by
Space
parent
706a0d287a
commit
84ed3ff5b0
@@ -127,11 +127,14 @@ abstract class BasicWasmBoxTest(
|
||||
propertyLazyInitialization = true,
|
||||
)
|
||||
|
||||
val generateWat = debugMode >= DebugMode.DEBUG
|
||||
|
||||
val compilerResult = compileWasm(
|
||||
allModules = allModules,
|
||||
backendContext = backendContext,
|
||||
emitNameSection = true,
|
||||
allowIncompleteImplementations = false,
|
||||
generateWat = generateWat,
|
||||
)
|
||||
|
||||
eliminateDeadDeclarations(allModules, backendContext)
|
||||
@@ -141,6 +144,7 @@ abstract class BasicWasmBoxTest(
|
||||
backendContext = backendContext,
|
||||
emitNameSection = true,
|
||||
allowIncompleteImplementations = true,
|
||||
generateWat = generateWat,
|
||||
)
|
||||
|
||||
val testJsQuiet = """
|
||||
@@ -176,7 +180,7 @@ abstract class BasicWasmBoxTest(
|
||||
println(" ------ $name Test file://$path/test.js")
|
||||
}
|
||||
|
||||
writeCompilationResult(res, dir, WasmLoaderKind.D8, writeWat = debugMode >= DebugMode.DEBUG)
|
||||
writeCompilationResult(res, dir, WasmLoaderKind.D8)
|
||||
File(dir, "test.js").writeText(testJs)
|
||||
ExternalTool(System.getProperty("javascript.engine.path.V8"))
|
||||
.run(
|
||||
|
||||
Reference in New Issue
Block a user