Skip to content

Commit a67b80d

Browse files
authored
Add doc comments
1 parent 828a7cd commit a67b80d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/WasmKit/Execution/Debugger.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@
4949
/// Pc ofthe final instruction that a successful program will execute, initialized with `Instruction.endofExecution`
5050
private let endOfExecution = Pc.allocate(capacity: 1)
5151

52-
/// Addresses of functions in the original Wasm binary, used looking up functions when a breakpoint
52+
/// Addresses of functions in the original Wasm binary, used for looking up functions when a breakpoint
5353
/// is enabled at an arbitrary address if it isn't present in ``InstructionMapping`` yet (i.e. the
5454
/// was not compiled yet in lazy compilation mode).
5555
private let functionAddresses: [(address: Int, instanceFunctionIndex: Int)]
5656

57+
/// Cache for stack frames that use debugger-friendly memory layout.
5758
private var stackFrame = DebuggerStackFrame()
5859

5960
/// Initializes a new debugger state instance.

Sources/WasmKit/Execution/DebuggerStackFrame.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#if WasmDebuggingSupport
22

3+
/// Encapsulates a caching buffer that stores a stack frame in debugger-friendly
4+
/// memory layout that's distinct from WasmKit's iseq stack frame memory layout.
35
package struct DebuggerStackFrame: ~Copyable {
46
private var buffer = UnsafeMutableRawBufferPointer.allocate(byteCount: 1, alignment: 8)
57

0 commit comments

Comments
 (0)