/
githubmirror
/
panama-vector
Обзор
Документация
Войти
/
githubmirror
/
panama-vector
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/hotspot/share/ci/ciArrayKlass.hpp
75 строк
2 KB
David Simms
8389219: Implement JEP 401: Value Objects (Preview)
31 июл 2026, 03:45
31 июл 2026, 03:45
cc278db
Код
Авторство
О чём код?
/* * Copyright (c) 1999, 2026, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. * */ #ifndef SHARE_CI_CIARRAYKLASS_HPP #define SHARE_CI_CIARRAYKLASS_HPP #include "ci/ciKlass.hpp" #include "oops/arrayKlass.hpp" // ciArrayKlass // // This class, and its subclasses represent Klass*s in the // HotSpot virtual machine whose Klass part is an ArrayKlass. class ciArrayKlass : public ciKlass { CI_PACKAGE_ACCESS private: jint _dimension; protected: ciArrayKlass(Klass* k); ciArrayKlass(ciSymbol* name, int dimension, BasicType bt); ArrayKlass* get_ArrayKlass() { return (ArrayKlass*)get_Klass(); } const char* type_string() { return "ciArrayKlass"; } public: jint dimension() { return _dimension; } ciType* element_type(); // JLS calls this the "component type", (T[] for T[][]) ciType* base_element_type(); // JLS calls this the "element type", (T for T[][]) bool is_leaf_type(); // No subtypes of this array type. bool is_refined() const { return !is_type_array_klass() && properties().is_valid(); } // What kind of vmObject is this? bool is_array_klass() const { return true; } // The one-level type of the array elements. virtual ciKlass* element_klass() { return nullptr; } static ciArrayKlass* make(ciType* klass, bool null_free = false, bool atomic = false, bool refined_type = false); int array_header_in_bytes(); ciInstance* component_mirror_instance() const; bool is_elem_null_free() const; bool is_elem_atomic() const; ArrayProperties properties() const; }; #endif // SHARE_CI_CIARRAYKLASS_HPP