diff options
author | Zahary Karadjov <zahary@gmail.com> | 2012-12-01 15:24:32 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-12-01 15:37:13 +0200 |
commit | e9e22ccb2adfe1a44e998405b2dfed9b46ddcb95 (patch) | |
tree | f157d6c1bc8e3b908c8175a3729ce2f8e7bc48f4 /compiler/options.nim | |
parent | c67520a7c5d474be409bee98d9b258030115c259 (diff) | |
download | Nim-e9e22ccb2adfe1a44e998405b2dfed9b46ddcb95.tar.gz |
track the "owner" heap object in the ref write barrier
See the papers for reference counting with heap sliding views for details:
Diffstat (limited to 'compiler/options.nim')
-rwxr-xr-x | compiler/options.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/options.nim b/compiler/options.nim index a09384d33..588d716c3 100755 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -233,7 +233,7 @@ proc binaryStrSearch*(x: openarray[string], y: string): int = result = - 1 # Can we keep this? I'm using it all the time -template nimdbg*: expr = c.filename.endsWith"hallo.nim" -template cnimdbg*: expr = p.module.filename.endsWith"hallo.nim" -template enimdbg*: expr = c.module.name.s == "hallo" -template pnimdbg*: expr = p.lex.fileIdx.ToFilename.endsWith"hallo.nim" +template nimdbg*: expr = c.module.fileIdx == gProjectMainIdx +template cnimdbg*: expr = p.module.module.fileIdx == gProjectMainIdx +template pnimdbg*: expr = p.lex.fileIdx == gProjectMainIdx + |