refactor: improve the addInstructions extension method further more

This commit is contained in:
oSumAtrIX
2022-07-09 06:26:05 +02:00
parent 6bfe5716c3
commit dd941233ca
4 changed files with 88 additions and 59 deletions

View File

@@ -57,7 +57,6 @@ internal class InlineSmaliCompilerTest {
method.addInstructions(
"""
const/4 v0, 0x1
:test
const/4 v0, 0x0
"""
)
@@ -70,7 +69,7 @@ internal class InlineSmaliCompilerTest {
if-eqz v0, :test
return-void
""", listOf(
"test" to method.label(labelIndex)
ExternalLabel("test",method.instruction(1))
)
)