901 if (o instanceof String) return syms.stringType; |
901 if (o instanceof String) return syms.stringType; |
902 if (o instanceof Long) return syms.longType; |
902 if (o instanceof Long) return syms.longType; |
903 if (o instanceof Double) return syms.doubleType; |
903 if (o instanceof Double) return syms.doubleType; |
904 if (o instanceof ClassSymbol) return syms.classType; |
904 if (o instanceof ClassSymbol) return syms.classType; |
905 if (o instanceof Type.ArrayType) return syms.classType; |
905 if (o instanceof Type.ArrayType) return syms.classType; |
|
906 if (o instanceof Type.MethodType) return syms.methodTypeType; |
|
907 if (o instanceof Pool.MethodHandle) return syms.methodHandleType; |
906 throw new AssertionError(o); |
908 throw new AssertionError(o); |
907 } |
909 } |
908 |
910 |
909 /** Emit an opcode with a one-byte operand field; |
911 /** Emit an opcode with a one-byte operand field; |
910 * widen if field does not fit in a byte. |
912 * widen if field does not fit in a byte. |