summaryrefslogtreecommitdiff
path: root/test/instrumented/srt.patch
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-04-23 17:51:28 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-04-23 17:54:19 +0200
commit2b09d8caf5497c4e016a3e1179e5f7e842766176 (patch)
tree27c872f82fb8290b8cba6fa626ecd0b0dd627229 /test/instrumented/srt.patch
parent14df5d74b58505e082d6f7c0e42b51249d35eec4 (diff)
downloadscala-2b09d8caf5497c4e016a3e1179e5f7e842766176.tar.gz
scala-2b09d8caf5497c4e016a3e1179e5f7e842766176.tar.bz2
scala-2b09d8caf5497c4e016a3e1179e5f7e842766176.zip
rethinks tags
* introduces ArrayTag and ErasureTag * all type tags now feature erasure
Diffstat (limited to 'test/instrumented/srt.patch')
-rw-r--r--test/instrumented/srt.patch17
1 files changed, 10 insertions, 7 deletions
diff --git a/test/instrumented/srt.patch b/test/instrumented/srt.patch
index 2f472ff1c0..8d08550165 100644
--- a/test/instrumented/srt.patch
+++ b/test/instrumented/srt.patch
@@ -1,23 +1,26 @@
9a10,11
> /* INSTRUMENTED VERSION */
->
-33a36,38
+>
+43c45,48
+< def isTuple(x: Any) = x != null && tupleNames(x.getClass.getName)
+---
> var arrayApplyCount = 0
> var arrayUpdateCount = 0
->
-35c40,42
+>
+> def isTuple(x: Any) = tupleNames(x.getClass.getName)
+75c80,82
< def array_apply(xs: AnyRef, idx: Int): Any = xs match {
---
> def array_apply(xs: AnyRef, idx: Int): Any = {
> arrayApplyCount += 1
> xs match {
-47a55
+87a95
> }
-50c58,60
+90c98,100
< def array_update(xs: AnyRef, idx: Int, value: Any): Unit = xs match {
---
> def array_update(xs: AnyRef, idx: Int, value: Any): Unit = {
> arrayUpdateCount += 1
> xs match {
-62a73
+101a112
> }