src/share/classes/com/sun/tools/javac/jvm/Code.java

changeset 1336
26d93df3905a
parent 1326
30c36e23f154
child 1339
0e5899f09dab
equal deleted inserted replaced
1335:99983a4a593b 1336:26d93df3905a
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.

mercurial