static bool RenderLoadStoreAddress(WasmRenderContext& c, const AstLoadStoreAddress& lsa, uint32_t defaultAlignLog2) { if (lsa.offset() != 0) { if (!c.buffer.append(" offset=")) return false; if (!RenderInt32(c, lsa.offset())) return false; } uint32_t alignLog2 = lsa.flags(); if (defaultAlignLog2 != alignLog2) { if (!c.buffer.append(" align=")) return false; if (!RenderInt32(c, 1 << alignLog2)) return false; } if (!c.buffer.append(" ")) return false; if (!RenderExpr(c, lsa.base())) return false; return true; }
static bool RenderLoadStoreBase(WasmRenderContext& c, const AstLoadStoreAddress& lsa) { return RenderExpr(c, lsa.base()); }