/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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.
*
*/
#include "precompiled.hpp"
#include "ci/ciType.hpp"
#include "ci/ciUtilities.hpp"
#include "classfile/systemDictionary.hpp"
#include "oops/oop.inline.hpp"
// ciType
//
// This class represents either a class (T_OBJECT), array (T_ARRAY),
// or one of the primitive types such as T_INT.
// ------------------------------------------------------------------
// ciType::ciType
//
}
}
}
// ------------------------------------------------------------------
// ciType::is_subtype_of
//
if (this == type) return true;
return false;
}
// ------------------------------------------------------------------
// ciType::name
//
// Return the name of this type
if (is_primitive_type()) {
return type2name(basic_type());
} else {
}
}
// ------------------------------------------------------------------
// ciType::print_impl
//
// Implementation of the print method.
}
// ------------------------------------------------------------------
// ciType::print_name
//
// Print the name of this type
}
// ------------------------------------------------------------------
// ciType::java_mirror
//
}
// ------------------------------------------------------------------
// ciType::box_klass
//
// Void is "boxed" with a null.
return CURRENT_THREAD_ENV->get_object(SystemDictionary::box_klass(basic_type()))->as_instance_klass();
}
// ------------------------------------------------------------------
// ciType::make
//
// Produce the ciType for a given primitive BasicType.
// As a bonus, produce the right reference type for T_OBJECT.
// Does not work on T_ARRAY.
// short, etc.
// Note: Bare T_ADDRESS means a raw pointer type, not a return_address.
return _basic_types[t];
}
// ciReturnAddress
//
// This class represents the type of a specific return address in the
// bytecodes.
// ------------------------------------------------------------------
// ciReturnAddress::ciReturnAddress
//
}
// ------------------------------------------------------------------
// ciReturnAddress::print_impl
//
// Implementation of the print method.
}
// ------------------------------------------------------------------
// ciReturnAddress::make
}