< prev index next >

src/hotspot/share/opto/memnode.hpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


 223 
 224   // Split instance field load through Phi.
 225   Node* split_through_phi(PhaseGVN *phase);
 226 
 227   // Recover original value from boxed values
 228   Node *eliminate_autobox(PhaseGVN *phase);
 229 
 230   // Compute a new Type for this node.  Basically we just do the pre-check,
 231   // then call the virtual add() to set the type.
 232   virtual const Type* Value(PhaseGVN* phase) const;
 233 
 234   // Common methods for LoadKlass and LoadNKlass nodes.
 235   const Type* klass_value_common(PhaseGVN* phase) const;
 236   Node* klass_identity_common(PhaseGVN* phase);
 237 
 238   virtual uint ideal_reg() const;
 239   virtual const Type *bottom_type() const;
 240   // Following method is copied from TypeNode:
 241   void set_type(const Type* t) {
 242     assert(t != NULL, "sanity");
 243     debug_only(uint check_hash = (VerifyHashTableKeys && _hash_lock) ? hash() : NO_HASH);
 244     *(const Type**)&_type = t;   // cast away const-ness
 245     // If this node is in the hash table, make sure it doesn't need a rehash.
 246     assert(check_hash == NO_HASH || check_hash == hash(), "type change must preserve hash code");
 247   }
 248   const Type* type() const { assert(_type != NULL, "sanity"); return _type; };
 249 
 250   // Do not match memory edge
 251   virtual uint match_edge(uint idx) const;
 252 
 253   // Map a load opcode to its corresponding store opcode.
 254   virtual int store_Opcode() const = 0;
 255 
 256   // Check if the load's memory input is a Phi node with the same control.
 257   bool is_instance_field_load_with_local_phi(Node* ctrl);
 258 
 259   Node* convert_to_unsigned_load(PhaseGVN& gvn);
 260   Node* convert_to_signed_load(PhaseGVN& gvn);
 261 
 262 #ifndef PRODUCT
 263   virtual void dump_spec(outputStream *st) const;


   1 /*
   2  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


 223 
 224   // Split instance field load through Phi.
 225   Node* split_through_phi(PhaseGVN *phase);
 226 
 227   // Recover original value from boxed values
 228   Node *eliminate_autobox(PhaseGVN *phase);
 229 
 230   // Compute a new Type for this node.  Basically we just do the pre-check,
 231   // then call the virtual add() to set the type.
 232   virtual const Type* Value(PhaseGVN* phase) const;
 233 
 234   // Common methods for LoadKlass and LoadNKlass nodes.
 235   const Type* klass_value_common(PhaseGVN* phase) const;
 236   Node* klass_identity_common(PhaseGVN* phase);
 237 
 238   virtual uint ideal_reg() const;
 239   virtual const Type *bottom_type() const;
 240   // Following method is copied from TypeNode:
 241   void set_type(const Type* t) {
 242     assert(t != NULL, "sanity");
 243     debug_only(uint check_hash = (VerifyHashTableKeys && _hash_lock) ? hash() : (uint) NO_HASH);
 244     *(const Type**)&_type = t;   // cast away const-ness
 245     // If this node is in the hash table, make sure it doesn't need a rehash.
 246     assert(check_hash == NO_HASH || check_hash == hash(), "type change must preserve hash code");
 247   }
 248   const Type* type() const { assert(_type != NULL, "sanity"); return _type; };
 249 
 250   // Do not match memory edge
 251   virtual uint match_edge(uint idx) const;
 252 
 253   // Map a load opcode to its corresponding store opcode.
 254   virtual int store_Opcode() const = 0;
 255 
 256   // Check if the load's memory input is a Phi node with the same control.
 257   bool is_instance_field_load_with_local_phi(Node* ctrl);
 258 
 259   Node* convert_to_unsigned_load(PhaseGVN& gvn);
 260   Node* convert_to_signed_load(PhaseGVN& gvn);
 261 
 262 #ifndef PRODUCT
 263   virtual void dump_spec(outputStream *st) const;


< prev index next >