Returns the appropriate move rop for the given type. The result is a shared instance. @param type non-null; type of value being moved @return non-null; an appropriate instance
(TypeBearer type)
| 1257 | * @return {@code non-null;} an appropriate instance |
| 1258 | */ |
| 1259 | public static Rop opMove(TypeBearer type) { |
| 1260 | switch (type.getBasicFrameType()) { |
| 1261 | case Type.BT_INT: return MOVE_INT; |
| 1262 | case Type.BT_LONG: return MOVE_LONG; |
| 1263 | case Type.BT_FLOAT: return MOVE_FLOAT; |
| 1264 | case Type.BT_DOUBLE: return MOVE_DOUBLE; |
| 1265 | case Type.BT_OBJECT: return MOVE_OBJECT; |
| 1266 | case Type.BT_ADDR: return MOVE_RETURN_ADDRESS; |
| 1267 | } |
| 1268 | |
| 1269 | return throwBadType(type); |
| 1270 | } |
| 1271 | |
| 1272 | /** |
| 1273 | * Returns the appropriate {@code move-param} rop for the |
no test coverage detected