compiler: add 'run' command for bytecode interpretation

This commit is contained in:
Ayke van Laethem
2018-09-12 17:26:56 +02:00
parent 8362751590
commit 20c2552f8a
2 changed files with 50 additions and 1 deletions
+3 -1
View File
@@ -3026,7 +3026,9 @@ func (c *Compiler) Optimize(optLevel, sizeLevel int, inlinerThreshold uint) {
defer builder.Dispose()
builder.SetOptLevel(optLevel)
builder.SetSizeLevel(sizeLevel)
builder.UseInlinerWithThreshold(inlinerThreshold)
if inlinerThreshold != 0 {
builder.UseInlinerWithThreshold(inlinerThreshold)
}
builder.AddCoroutinePassesToExtensionPoints()
// Run function passes for each function.