From 62f810910101944d0c528b8e1ba04d34e7264f67 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Mon, 5 Jun 2023 15:16:23 +0900 Subject: [PATCH] compiler: fix compileMemoryAccessOffsetSetup comment (#1504) Signed-off-by: Anuraag Agrawal --- internal/engine/compiler/impl_arm64.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/engine/compiler/impl_arm64.go b/internal/engine/compiler/impl_arm64.go index c306f07b..866f6811 100644 --- a/internal/engine/compiler/impl_arm64.go +++ b/internal/engine/compiler/impl_arm64.go @@ -2822,7 +2822,7 @@ func (c *arm64Compiler) compileStoreImpl(offsetArg uint32, storeInst asm.Instruc return nil } -// compileMemoryAccessOffsetSetup pops the top value from the stack (called "base"), stores "base + offsetArg + targetSizeInBytes" +// compileMemoryAccessOffsetSetup pops the top value from the stack (called "base"), stores "base + offsetArg" // into a register, and returns the stored register. We call the result "offset" because we access the memory // as memory.Buffer[offset: offset+targetSizeInBytes]. //