equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2017, 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. |
43 ciType::ciType(BasicType basic_type) : ciMetadata() { |
43 ciType::ciType(BasicType basic_type) : ciMetadata() { |
44 assert(basic_type >= T_BOOLEAN && basic_type <= T_CONFLICT, "range check"); |
44 assert(basic_type >= T_BOOLEAN && basic_type <= T_CONFLICT, "range check"); |
45 _basic_type = basic_type; |
45 _basic_type = basic_type; |
46 } |
46 } |
47 |
47 |
48 ciType::ciType(KlassHandle k) : ciMetadata(k()) { |
48 ciType::ciType(Klass* k) : ciMetadata(k) { |
49 _basic_type = k()->is_array_klass() ? T_ARRAY : T_OBJECT; |
49 _basic_type = k->is_array_klass() ? T_ARRAY : T_OBJECT; |
50 } |
50 } |
51 |
51 |
52 |
52 |
53 // ------------------------------------------------------------------ |
53 // ------------------------------------------------------------------ |
54 // ciType::is_subtype_of |
54 // ciType::is_subtype_of |