[Lldb-commits] [lldb] [lldb] Introduce formatter bytecode version 2 ABI (PR #228589)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 2 14:53:53 PDT 2026


================
@@ -238,30 +240,40 @@ This is followed by one or more dictionary values that immediately follow each o
 - Length of the program (ULEB128)
 - The program bytecode
 
+### Calling conventions
+
+A record's version number (see [Embedding](#embedding)) also determines the calling convention of its methods. This includes how `self` (`this`) is represented.
+
+In **version 1** (legacy), `self` is a combination of the data stack after `@init` and `@update` run. Nothing constrains what shape `self` ends up in, it can be zero, one, or many values.
----------------
adrian-prantl wrote:

Just describe the current version and write a short paragraph about what changed in a separate section. If someone needs to know (I don't see why) they can check out the old version of the document.

https://github.com/llvm/llvm-project/pull/228589


More information about the lldb-commits mailing list