< prev index next >

src/share/vm/opto/phaseX.hpp

Print this page

        

*** 209,226 **** --- 209,228 ---- // Get a previously recorded type for the node n. // This type must already have been recorded. // If you want the type of a very new (untransformed) node, // you must use type_or_null, and test the result for NULL. const Type* type(const Node* n) const { + assert(_pnum != Ideal_Loop, "should not be used from PhaseIdealLoop"); assert(n != NULL, "must not be null"); const Type* t = _types.fast_lookup(n->_idx); assert(t != NULL, "must set before get"); return t; } // Get a previously recorded type for the node n, // or else return NULL if there is none. const Type* type_or_null(const Node* n) const { + assert(_pnum != Ideal_Loop, "should not be used from PhaseIdealLoop"); return _types.fast_lookup(n->_idx); } // Record a type for a node. void set_type(const Node* n, const Type *t) { assert(t != NULL, "type must not be null");
< prev index next >