reuse default ident in opcNNewNimNode (performance regression) (#7330)

* reuse default ident in opcNNewNimNode (performance regression)

* use emptyIdent as default
This commit is contained in:
jcosborn
2018-03-14 10:13:30 -05:00
committed by Andreas Rumpf
parent 12f7b96be0
commit cc5140d8b6

View File

@@ -1490,7 +1490,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
c.debug[pc])
x.flags.incl nfIsRef
# prevent crashes in the compiler resulting from wrong macros:
if x.kind == nkIdent: x.ident = getIdent""
if x.kind == nkIdent: x.ident = c.cache.emptyIdent
regs[ra].node = x
of opcNCopyNimNode:
decodeB(rkNode)