equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
48 assert(reg2 == reg, "must be same register"); |
48 assert(reg2 == reg, "must be same register"); |
49 opr = as_long_opr(reg); |
49 opr = as_long_opr(reg); |
50 #else |
50 #else |
51 opr = as_long_opr(reg2, reg); |
51 opr = as_long_opr(reg2, reg); |
52 #endif // _LP64 |
52 #endif // _LP64 |
53 } else if (type == T_OBJECT || type == T_ARRAY) { |
53 } else if (is_reference_type(type)) { |
54 opr = as_oop_opr(reg); |
54 opr = as_oop_opr(reg); |
55 } else if (type == T_METADATA) { |
55 } else if (type == T_METADATA) { |
56 opr = as_metadata_opr(reg); |
56 opr = as_metadata_opr(reg); |
57 } else { |
57 } else { |
58 opr = as_opr(reg); |
58 opr = as_opr(reg); |