compiler: optimize jumps in tests
Jump target shortening affects manifest, so we better be sure.
This commit is contained in:
parent
2aaaf30db7
commit
bfa2bafb04
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ func _deploy(data interface{}, isUpdate bool) { x := 1; _ = x }
|
||||||
c := newCodegen(info, pkg)
|
c := newCodegen(info, pkg)
|
||||||
require.NoError(t, c.compile(info, pkg))
|
require.NoError(t, c.compile(info, pkg))
|
||||||
|
|
||||||
buf := c.prog.Bytes()
|
buf, err := c.writeJumps(c.prog.Bytes())
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
d := c.emitDebugInfo(buf)
|
d := c.emitDebugInfo(buf)
|
||||||
require.NotNil(t, d)
|
require.NotNil(t, d)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue