src/hotspot/cpu/aarch64/c1_FrameMap_aarch64.cpp
changeset 58273 08a5148e7c4e
parent 47216 71c04702a3d5
equal deleted inserted replaced
58272:e27564cd10e3 58273:08a5148e7c4e
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright (c) 2014, Red Hat Inc. All rights reserved.
     3  * Copyright (c) 2014, Red Hat Inc. 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
    43     Register reg = r_1->as_Register();
    43     Register reg = r_1->as_Register();
    44     if (r_2->is_Register() && (type == T_LONG || type == T_DOUBLE)) {
    44     if (r_2->is_Register() && (type == T_LONG || type == T_DOUBLE)) {
    45       Register reg2 = r_2->as_Register();
    45       Register reg2 = r_2->as_Register();
    46       assert(reg2 == reg, "must be same register");
    46       assert(reg2 == reg, "must be same register");
    47       opr = as_long_opr(reg);
    47       opr = as_long_opr(reg);
    48     } else if (type == T_OBJECT || type == T_ARRAY) {
    48     } else if (is_reference_type(type)) {
    49       opr = as_oop_opr(reg);
    49       opr = as_oop_opr(reg);
    50     } else if (type == T_METADATA) {
    50     } else if (type == T_METADATA) {
    51       opr = as_metadata_opr(reg);
    51       opr = as_metadata_opr(reg);
    52     } else {
    52     } else {
    53       opr = as_opr(reg);
    53       opr = as_opr(reg);