compiler: fix compileMemoryAccessOffsetSetup comment (#1504)

Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
This commit is contained in:
Anuraag Agrawal
2023-06-05 15:16:23 +09:00
committed by GitHub
parent f2d8461a62
commit 62f8109101

View File

@@ -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].
//