[JS IR] IC improvements
- Reuse a built fragment - Use cache for saving built JS code
This commit is contained in:
committed by
Space
parent
f8ae097e50
commit
9952d43252
+10
-1
@@ -1,2 +1,11 @@
|
||||
|
||||
fun box() = foo()
|
||||
fun box(stepId: Int): String {
|
||||
when (stepId) {
|
||||
0 -> if (foo() != (42 + 77)) return "Fail"
|
||||
1 -> if (foo() != (42 + 88)) return "Fail"
|
||||
2 -> if (foo() != (42 + 88 + 11)) return "Fail"
|
||||
3 -> if (foo() != (42 + 88 + 22)) return "Fail"
|
||||
else -> return "Unknown"
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user