diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2008-12-11 21:20:46 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2008-12-11 21:20:46 +0000 |
commit | c8c1ecc5ead478560336a226dde3409658a4fbf9 (patch) | |
tree | 1288c5eec80562b7b22f1edc99c483f613fe5b4e /src/compiler | |
parent | 806edf6f84118787a36900c145e9af13d7e97a5b (diff) | |
download | scala-c8c1ecc5ead478560336a226dde3409658a4fbf9.tar.gz scala-c8c1ecc5ead478560336a226dde3409658a4fbf9.tar.bz2 scala-c8c1ecc5ead478560336a226dde3409658a4fbf9.zip |
One more thing: The JVM backend updates for inv...
One more thing: The JVM backend updates for invokedynamic.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index deea346fb5..c2ad0225ce 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -973,6 +973,11 @@ abstract class GenJVM extends SubComponent { else javaName(call.hostClass) style match { + case InvokeDynamic => + jcode.emitINVOKEINTERFACE("java.dyn.Dynamic", + javaName(method), + javaType(method).asInstanceOf[JMethodType]) + case Dynamic => if (needsInterfaceCall(method.owner)) jcode.emitINVOKEINTERFACE(owner, |