From fbd6027055a709fda63fd85787575085a9f2b2d8 Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Sat, 17 Sep 2022 16:51:54 +0200 Subject: [PATCH] toString() for debugging --- .../jwebassembly/module/WasmCallInstruction.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/de/inetsoftware/jwebassembly/module/WasmCallInstruction.java b/src/de/inetsoftware/jwebassembly/module/WasmCallInstruction.java index 10ae130..f01c05d 100644 --- a/src/de/inetsoftware/jwebassembly/module/WasmCallInstruction.java +++ b/src/de/inetsoftware/jwebassembly/module/WasmCallInstruction.java @@ -1,5 +1,5 @@ /* - Copyright 2018 - 2021 Volker Berlin (i-net software) + Copyright 2018 - 2022 Volker Berlin (i-net software) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -177,4 +177,12 @@ class WasmCallInstruction extends WasmInstruction { paramCount--; } } + + /** + * Only used for debugging + */ + @Override + public String toString() { + return getClass().getSimpleName() + ": call $" + name.signatureName + (comment == null ? "" : " ;; \"" + comment + "\""); + } }