java runtime: add simple version of instanceof
authorBernhard Urban <lewurm@gmail.com>
Fri, 17 Aug 2012 17:21:45 +0000 (19:21 +0200)
committerBernhard Urban <lewurm@gmail.com>
Fri, 17 Aug 2012 13:47:04 +0000 (15:47 +0200)
commit717a866d25642626b22b9b3abbd8f98ce95c5e10
treea8971b0246ecbc4fb93d2b8d2a6395a2b2db8fe9
parentf0c1382a5ac2cf98fd6a9dcd3d193e47ca9ed8aa
java runtime: add simple version of instanceof

just works if we check for the same type, like:
>  A a = new A();
>   if (a instanceof A) {
>   [...]
Mate/Types.hs
Mate/X86CodeGen.hs
Mate/X86TrapHandling.hs
tests/InstanceOf1.java [new file with mode: 0644]