diff options
author | schinz <schinz@epfl.ch> | 2005-03-27 09:55:28 +0000 |
---|---|---|
committer | schinz <schinz@epfl.ch> | 2005-03-27 09:55:28 +0000 |
commit | 9602bf11e93ac5a449f0ab492f3c74f2fa45fa56 (patch) | |
tree | 7a14cc6a3ff3110b3fca75f1da33b4627562d2a1 /sources/scalac/transformer | |
parent | a274f949c3aa9db16bd5addd0eed4f85388e74ed (diff) | |
download | scala-9602bf11e93ac5a449f0ab492f3c74f2fa45fa56.tar.gz scala-9602bf11e93ac5a449f0ab492f3c74f2fa45fa56.tar.bz2 scala-9602bf11e93ac5a449f0ab492f3c74f2fa45fa56.zip |
- changed pattern matcher to use the erased ver...
- changed pattern matcher to use the erased versions of asInstanceOf
when possible, to gain some speed when run time types are enabled; i.e.
instead of generating code like this:
if (x.isInstanceOf[List[Int]]) {
val temp$ = x.asInstanceOf[List[Int]];
...
}
the pattern matcher now generates code like that:
if (x.isInstanceOf[List[Int]]) {
val temp$ = x.asInstanceOf$erased[List[Int]];
...
}
Diffstat (limited to 'sources/scalac/transformer')
0 files changed, 0 insertions, 0 deletions