< prev index next >

src/hotspot/share/ci/ciMethod.cpp

Print this page

        

*** 45,54 **** --- 45,55 ---- #include "oops/method.inline.hpp" #include "oops/oop.inline.hpp" #include "prims/nativeLookup.hpp" #include "runtime/deoptimization.hpp" #include "runtime/handles.inline.hpp" + #include "runtime/sharedRuntime.hpp" #include "utilities/bitMap.inline.hpp" #include "utilities/xmlstream.hpp" #ifdef COMPILER2 #include "ci/bcEscapeAnalyzer.hpp" #include "ci/ciTypeFlow.hpp"
*** 985,998 **** vmIntrinsics::ID iid = _intrinsic_id; // do not check if loaded return iid == vmIntrinsics::_compiledLambdaForm; } // ------------------------------------------------------------------ ! // ciMethod::is_object_initializer // ! bool ciMethod::is_object_initializer() const { ! return name() == ciSymbol::object_initializer_name(); } // ------------------------------------------------------------------ // ciMethod::has_member_arg // --- 986,1012 ---- vmIntrinsics::ID iid = _intrinsic_id; // do not check if loaded return iid == vmIntrinsics::_compiledLambdaForm; } // ------------------------------------------------------------------ ! // ciMethod::is_object_constructor // ! bool ciMethod::is_object_constructor() const { ! return (name() == ciSymbol::object_initializer_name() ! && signature()->return_type()->is_void()); ! // Note: We can't test is_static, because that would ! // require the method to be loaded. Sometimes it isn't. ! } ! ! // ------------------------------------------------------------------ ! // ciMethod::is_static_init_factory ! // ! bool ciMethod::is_static_init_factory() const { ! return (name() == ciSymbol::object_initializer_name() ! && !signature()->return_type()->is_void()); ! // Note: We can't test is_static, because that would ! // require the method to be loaded. Sometimes it isn't. } // ------------------------------------------------------------------ // ciMethod::has_member_arg //
*** 1308,1318 **** bool ciMethod::has_loops () const { FETCH_FLAG_FROM_VM(has_loops); } bool ciMethod::has_jsrs () const { FETCH_FLAG_FROM_VM(has_jsrs); } bool ciMethod::is_getter () const { FETCH_FLAG_FROM_VM(is_getter); } bool ciMethod::is_setter () const { FETCH_FLAG_FROM_VM(is_setter); } bool ciMethod::is_accessor () const { FETCH_FLAG_FROM_VM(is_accessor); } ! bool ciMethod::is_initializer () const { FETCH_FLAG_FROM_VM(is_initializer); } bool ciMethod::is_boxing_method() const { if (holder()->is_box_klass()) { switch (intrinsic_id()) { case vmIntrinsics::_Boolean_valueOf: --- 1322,1332 ---- bool ciMethod::has_loops () const { FETCH_FLAG_FROM_VM(has_loops); } bool ciMethod::has_jsrs () const { FETCH_FLAG_FROM_VM(has_jsrs); } bool ciMethod::is_getter () const { FETCH_FLAG_FROM_VM(is_getter); } bool ciMethod::is_setter () const { FETCH_FLAG_FROM_VM(is_setter); } bool ciMethod::is_accessor () const { FETCH_FLAG_FROM_VM(is_accessor); } ! bool ciMethod::is_object_constructor_or_class_initializer() const { FETCH_FLAG_FROM_VM(is_object_constructor_or_class_initializer); } bool ciMethod::is_boxing_method() const { if (holder()->is_box_klass()) { switch (intrinsic_id()) { case vmIntrinsics::_Boolean_valueOf:
*** 1454,1463 **** --- 1468,1478 ---- // ------------------------------------------------------------------ static BasicType erase_to_word_type(BasicType bt) { if (is_subword_type(bt)) return T_INT; if (bt == T_ARRAY) return T_OBJECT; + if (bt == T_VALUETYPE) return T_OBJECT; return bt; } static bool basic_types_match(ciType* t1, ciType* t2) { if (t1 == t2) return true;
*** 1541,1545 **** --- 1556,1573 ---- } return true; // no mismatch found } // ------------------------------------------------------------------ + + bool ciMethod::has_scalarized_args() const { + VM_ENTRY_MARK; + return get_Method()->has_scalarized_args(); + } + + const GrowableArray<SigEntry>* ciMethod::get_sig_cc() { + VM_ENTRY_MARK; + if (get_Method()->adapter() == NULL) { + return NULL; + } + return get_Method()->adapter()->get_sig_cc(); + }
< prev index next >