Reorganize JVM intrinsics

Make IntrinsicMethod an abstract class, coerce the resulting value of the
intrinsic to the expected type
This commit is contained in:
Alexander Udalov
2013-12-12 21:23:14 +04:00
parent 24678f189e
commit 11f33c9399
38 changed files with 251 additions and 314 deletions
@@ -33,7 +33,6 @@ public class AsmTypeConstants {
public static final Type JET_UNIT_TYPE = Type.getObjectType("jet/Unit");
public static final Type JET_FUNCTION0_TYPE = Type.getObjectType("jet/Function0");
public static final Type JET_FUNCTION1_TYPE = Type.getObjectType("jet/Function1");
public static final Type JET_ITERATOR_TYPE = Type.getObjectType("jet/Iterator");
public static final Type JET_INT_RANGE_TYPE = Type.getObjectType("jet/IntRange");
public static final Type JET_SHARED_VAR_TYPE = Type.getObjectType("jet/runtime/SharedVar$Object");
public static final Type JET_SHARED_INT_TYPE = Type.getObjectType("jet/runtime/SharedVar$Int");