equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2014, 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. |
50 jint dimension() { return _dimension; } |
50 jint dimension() { return _dimension; } |
51 ciType* element_type(); // JLS calls this the "component type" |
51 ciType* element_type(); // JLS calls this the "component type" |
52 ciType* base_element_type(); // JLS calls this the "element type" |
52 ciType* base_element_type(); // JLS calls this the "element type" |
53 bool is_leaf_type(); // No subtypes of this array type. |
53 bool is_leaf_type(); // No subtypes of this array type. |
54 |
54 |
55 ciInstance* component_mirror() { |
|
56 // This is a real field in ArrayKlass, but we derive it from element_type. |
|
57 return element_type()->java_mirror(); |
|
58 } |
|
59 |
|
60 // What kind of vmObject is this? |
55 // What kind of vmObject is this? |
61 bool is_array_klass() const { return true; } |
56 bool is_array_klass() const { return true; } |
62 bool is_java_klass() const { return true; } |
57 bool is_java_klass() const { return true; } |
63 |
58 |
64 static ciArrayKlass* make(ciType* element_type); |
59 static ciArrayKlass* make(ciType* element_type); |