mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 13:11:32 +00:00
improve debug mode
This commit is contained in:
@ -25,7 +25,8 @@ class InternalMachine(val world: CompiledWorld, val nativeRegistry: NativeRegist
|
||||
val (op, handler) = inlined[inst.toInt()]
|
||||
if (debug) {
|
||||
val frame = frame(inst)
|
||||
println("vm: step: in ${frame?.symbolInfo?.commonSymbolIdentity ?: "unknown"}: $inst ${op.code}${if (op.args.isEmpty()) "" else " " + op.args.joinToString(" ")}")
|
||||
println("vm: step: in slab ${frame?.symbolInfo?.slab ?: "unknown"}: symbol ${frame?.symbolInfo?.symbol ?: "unknown"}: $inst ${op.code}${if (op.args.isEmpty()) "" else " " + op.args.joinToString(" ")}")
|
||||
println("vm: step: stack: ${stack}")
|
||||
}
|
||||
|
||||
handler.handle(this, op)
|
||||
|
Reference in New Issue
Block a user