/
githubmirror
/
panama-vector
Обзор
Документация
Войти
/
githubmirror
/
panama-vector
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/hotspot/share/ci/ciFlatArray.hpp
56 строк
2 KB
Christian Hagedorn
8388007: [lworld] [Umbrella] Adressing remaining compiler review comments from the Valhalla PR
03 авг 2026, 09:09
03 авг 2026, 09:09
ba05044
Код
Авторство
О чём код?
/* * Copyright (c) 2017, 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_VM_CI_CIFLATARRAY_HPP #define SHARE_VM_CI_CIFLATARRAY_HPP #include "ci/ciArray.hpp" #include "ci/ciClassList.hpp" // ciFlatArray // // This class represents a flatArrayOop in the HotSpot virtual machine. // TODO 8388127: Sync ciArray class hierarchy with arrayOopDesc class hierarchy. class ciFlatArray : public ciArray { CI_PACKAGE_ACCESS protected: ciFlatArray(flatArrayHandle h_o) : ciArray(h_o) {} const char* type_string() override { return "ciFlatArray"; } public: bool is_flat_array() const override { return true; } bool is_flat() override { return true; } // Current value of an element at the specified offset. // Returns T_ILLEGAL if there is no element at the given offset. ciConstant element_value_by_offset(intptr_t element_offset) override; ciConstant field_value_by_offset(intptr_t field_offset); ciConstant field_value(int index, ciField* field); ciConstant null_marker_of_element_by_offset(intptr_t element_offset); ciConstant null_marker_of_element_by_index(int index); }; #endif // SHARE_VM_CI_CIFLATARRAY_HPP