we have no typeinfo
This commit is contained in:
@@ -94,8 +94,6 @@ public class IntrinsicMethods {
|
|||||||
declareIntrinsicFunction(type, "dec", 0, DEC, false);
|
declareIntrinsicFunction(type, "dec", 0, DEC, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
final Set<FunctionDescriptor> typeInfoFunctionGroup = stdlib.getTypeInfoFunctions();
|
|
||||||
|
|
||||||
declareBinaryOp("plus", Opcodes.IADD);
|
declareBinaryOp("plus", Opcodes.IADD);
|
||||||
declareBinaryOp("minus", Opcodes.ISUB);
|
declareBinaryOp("minus", Opcodes.ISUB);
|
||||||
declareBinaryOp("times", Opcodes.IMUL);
|
declareBinaryOp("times", Opcodes.IMUL);
|
||||||
|
|||||||
@@ -108,8 +108,6 @@ public class JetStandardLibrary {
|
|||||||
|
|
||||||
private JetType tuple0Type;
|
private JetType tuple0Type;
|
||||||
|
|
||||||
private Set<FunctionDescriptor> typeInfoFunction;
|
|
||||||
|
|
||||||
private EnumMap<PrimitiveType, ClassDescriptor> primitiveTypeToClass;
|
private EnumMap<PrimitiveType, ClassDescriptor> primitiveTypeToClass;
|
||||||
private EnumMap<PrimitiveType, ClassDescriptor> primitiveTypeToArrayClass;
|
private EnumMap<PrimitiveType, ClassDescriptor> primitiveTypeToArrayClass;
|
||||||
private EnumMap<PrimitiveType, JetType> primitiveTypeToJetType;
|
private EnumMap<PrimitiveType, JetType> primitiveTypeToJetType;
|
||||||
@@ -177,7 +175,6 @@ public class JetStandardLibrary {
|
|||||||
|
|
||||||
this.iterableClass = (ClassDescriptor) libraryScope.getClassifier("Iterable");
|
this.iterableClass = (ClassDescriptor) libraryScope.getClassifier("Iterable");
|
||||||
this.comparableClass = (ClassDescriptor) libraryScope.getClassifier("Comparable");
|
this.comparableClass = (ClassDescriptor) libraryScope.getClassifier("Comparable");
|
||||||
this.typeInfoFunction = libraryScope.getFunctions("typeinfo");
|
|
||||||
|
|
||||||
this.numberType = new JetTypeImpl(getNumber());
|
this.numberType = new JetTypeImpl(getNumber());
|
||||||
this.stringType = new JetTypeImpl(getString());
|
this.stringType = new JetTypeImpl(getString());
|
||||||
@@ -326,11 +323,6 @@ public class JetStandardLibrary {
|
|||||||
return throwableClass;
|
return throwableClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Set<FunctionDescriptor> getTypeInfoFunctions() {
|
|
||||||
initStdClasses();
|
|
||||||
return typeInfoFunction;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public JetType getPrimitiveJetType(PrimitiveType primitiveType) {
|
public JetType getPrimitiveJetType(PrimitiveType primitiveType) {
|
||||||
return primitiveTypeToJetType.get(primitiveType);
|
return primitiveTypeToJetType.get(primitiveType);
|
||||||
|
|||||||
Reference in New Issue
Block a user