From 399addc8754ed0b484d3c159ac35befe1d3f652c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 4 Sep 2017 19:53:05 +0200 Subject: sys, pkg/compiler: move padding computation to compiler This makes types constant during execution, everything is precomputed. --- prog/encodingexec_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prog/encodingexec_test.go') diff --git a/prog/encodingexec_test.go b/prog/encodingexec_test.go index ec8d74bba..bc9e1d705 100644 --- a/prog/encodingexec_test.go +++ b/prog/encodingexec_test.go @@ -133,7 +133,7 @@ func TestSerializeForExec(t *testing.T) { instrCopyin, dataOffset + 16, argConst, 2, 0x44, 0, 0, instrCopyin, dataOffset + 18, argConst, 2, 0x45, 0, 0, instrCopyin, dataOffset + 20, argConst, 2, 0x46, 0, 0, - instrCopyin, dataOffset + 24, argConst, 1, 0x47, 0, 0, + instrCopyin, dataOffset + 22, argConst, 1, 0x47, 0, 0, callID("syz_test$align5"), 1, argConst, ptrSize, dataOffset, 0, 0, instrEOF, }, -- cgit mrf-deployment