fixes #18612; apply cache and memcmp for methods in arc/orc (#19749)

* try using endsWith

* use memcmp

* add cache

* cleanup

* better

* minor

* fix

* improve test coverage for methods with ARC

(cherry picked from commit 8bfc396a4d)
This commit is contained in:
flywind
2022-04-27 02:14:39 +08:00
committed by narimiran
parent 0e5bf5953e
commit 1788b8b991
9 changed files with 45 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
discard """
matrix: "--mm:arc; --mm:refc"
output: '''wow2
X 1
X 3'''

View File

@@ -1,4 +1,5 @@
discard """
matrix: "--mm:arc; --mm:refc"
output: '''
wof!
wof!

View File

@@ -1,4 +1,5 @@
discard """
matrix: "--mm:arc; --mm:refc"
output: '''
do nothing
HELLO WORLD!

View File

@@ -1,5 +1,5 @@
discard """
cmd: "nim c --multimethods:off $file"
matrix: "--mm:arc --multimethods:off; --mm:refc --multimethods:off"
output: '''base
base
base