equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2016 SAP SE. All rights reserved. |
3 * Copyright (c) 2016, 2019, SAP SE. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
8 * published by the Free Software Foundation. |
8 * published by the Free Software Foundation. |
44 opr = LIR_OprFact::address(new LIR_Address(Z_SP_opr, st_off, type)); |
44 opr = LIR_OprFact::address(new LIR_Address(Z_SP_opr, st_off, type)); |
45 } else if (r_1->is_Register()) { |
45 } else if (r_1->is_Register()) { |
46 Register reg = r_1->as_Register(); |
46 Register reg = r_1->as_Register(); |
47 if (r_2->is_Register() && (type == T_LONG || type == T_DOUBLE)) { |
47 if (r_2->is_Register() && (type == T_LONG || type == T_DOUBLE)) { |
48 opr = as_long_opr(reg); |
48 opr = as_long_opr(reg); |
49 } else if (type == T_OBJECT || type == T_ARRAY) { |
49 } else if (is_reference_type(type)) { |
50 opr = as_oop_opr(reg); |
50 opr = as_oop_opr(reg); |
51 } else if (type == T_METADATA) { |
51 } else if (type == T_METADATA) { |
52 opr = as_metadata_opr(reg); |
52 opr = as_metadata_opr(reg); |
53 } else { |
53 } else { |
54 opr = as_opr(reg); |
54 opr = as_opr(reg); |