increase dfa instruction limit (#11579)
This commit is contained in:
parent
91f0626dcb
commit
0d50b0c8a7
1 changed files with 2 additions and 2 deletions
|
|
@ -265,14 +265,14 @@ proc genLabel(c: Con): TPosition =
|
||||||
|
|
||||||
proc jmpBack(c: var Con, n: PNode, p = TPosition(0)) =
|
proc jmpBack(c: var Con, n: PNode, p = TPosition(0)) =
|
||||||
let dist = p.int - c.code.len
|
let dist = p.int - c.code.len
|
||||||
doAssert(-0x7fff < dist and dist < 0x7fff)
|
doAssert(low(int) div 2 + 1 < dist and dist < high(int) div 2)
|
||||||
c.code.add Instr(n: n, kind: goto, dest: dist)
|
c.code.add Instr(n: n, kind: goto, dest: dist)
|
||||||
|
|
||||||
proc patch(c: var Con, p: TPosition) =
|
proc patch(c: var Con, p: TPosition) =
|
||||||
# patch with current index
|
# patch with current index
|
||||||
let p = p.int
|
let p = p.int
|
||||||
let diff = c.code.len - p
|
let diff = c.code.len - p
|
||||||
doAssert(-0x7fff < diff and diff < 0x7fff)
|
doAssert(low(int) div 2 + 1 < diff and diff < high(int) div 2)
|
||||||
c.code[p].dest = diff
|
c.code[p].dest = diff
|
||||||
|
|
||||||
proc popBlock(c: var Con; oldLen: int) =
|
proc popBlock(c: var Con; oldLen: int) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue