equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2017, 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. |
35 // ciArray |
35 // ciArray |
36 // |
36 // |
37 // This class represents an arrayOop in the HotSpot virtual |
37 // This class represents an arrayOop in the HotSpot virtual |
38 // machine. |
38 // machine. |
39 static BasicType fixup_element_type(BasicType bt) { |
39 static BasicType fixup_element_type(BasicType bt) { |
40 if (bt == T_ARRAY) return T_OBJECT; |
40 if (is_reference_type(bt)) return T_OBJECT; |
41 if (bt == T_BOOLEAN) return T_BYTE; |
41 if (bt == T_BOOLEAN) return T_BYTE; |
42 return bt; |
42 return bt; |
43 } |
43 } |
44 |
44 |
45 ciConstant ciArray::element_value_impl(BasicType elembt, |
45 ciConstant ciArray::element_value_impl(BasicType elembt, |