5

What does this line in smali do? I have been searching for the .restart thing on google and haven't been able to find any information about it.

.restart local v3       #i:I
Esoteric Screen Name
  • 6,082
  • 4
  • 29
  • 38
Notbad
  • 5,936
  • 12
  • 54
  • 100
  • 3
    IMO, this shouldn't have been closed. This was a specific question about a feature of smali, which is an assembly language for dalvik bytecode. The question was clear and concise, and easily answered by someone with knowledge of dalvik bytecode/dex format, but otherwise possibly difficult to find just by searching the web. – JesusFreke Dec 16 '13 at 18:49

1 Answers1

3

This is equivalent to the "DBG_RESTART_LOCAL" opcode in the debug_info item in the dex file.

From http://s.android.com/tech/dalvik/dex-format.html:

re-introduces a local variable at the current address. The name and type are the same as the last local that was live in the specified register.

JesusFreke
  • 19,784
  • 5
  • 65
  • 68