Returns the appropriate move-param 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)
| 1277 | * @return {@code non-null;} an appropriate instance |
| 1278 | */ |
| 1279 | public static Rop opMoveParam(TypeBearer type) { |
| 1280 | switch (type.getBasicFrameType()) { |
| 1281 | case Type.BT_INT: return MOVE_PARAM_INT; |
| 1282 | case Type.BT_LONG: return MOVE_PARAM_LONG; |
| 1283 | case Type.BT_FLOAT: return MOVE_PARAM_FLOAT; |
| 1284 | case Type.BT_DOUBLE: return MOVE_PARAM_DOUBLE; |
| 1285 | case Type.BT_OBJECT: return MOVE_PARAM_OBJECT; |
| 1286 | } |
| 1287 | |
| 1288 | return throwBadType(type); |
| 1289 | } |
| 1290 | |
| 1291 | /** |
| 1292 | * Returns the appropriate {@code move-exception} rop for the |
no test coverage detected