src/share/vm/opto/callnode.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 7147744 Sdiff src/share/vm/opto

src/share/vm/opto/callnode.hpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2011, 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  *


 529   virtual uint        cmp( const Node &n ) const;
 530   virtual uint        size_of() const = 0;
 531   virtual void        calling_convention( BasicType* sig_bt, VMRegPair *parm_regs, uint argcnt ) const;
 532   virtual Node       *match( const ProjNode *proj, const Matcher *m );
 533   virtual uint        ideal_reg() const { return NotAMachineReg; }
 534   // Are we guaranteed that this node is a safepoint?  Not true for leaf calls and
 535   // for some macro nodes whose expansion does not have a safepoint on the fast path.
 536   virtual bool        guaranteed_safepoint()  { return true; }
 537   // For macro nodes, the JVMState gets modified during expansion, so when cloning
 538   // the node the JVMState must be cloned.
 539   virtual void        clone_jvms() { }   // default is not to clone
 540 
 541   // Returns true if the call may modify n
 542   virtual bool        may_modify(const TypePtr *addr_t, PhaseTransform *phase);
 543   // Does this node have a use of n other than in debug information?
 544   bool                has_non_debug_use(Node *n);
 545   // Returns the unique CheckCastPP of a call
 546   // or result projection is there are several CheckCastPP
 547   // or returns NULL if there is no one.
 548   Node *result_cast();






 549 
 550   // Collect all the interesting edges from a call for use in
 551   // replacing the call by something else.  Used by macro expansion
 552   // and the late inlining support.
 553   void extract_projections(CallProjections* projs, bool separate_io_proj);
 554 
 555   virtual uint match_edge(uint idx) const;
 556 
 557 #ifndef PRODUCT
 558   virtual void        dump_req()  const;
 559   virtual void        dump_spec(outputStream *st) const;
 560 #endif
 561 };
 562 
 563 
 564 //------------------------------CallJavaNode-----------------------------------
 565 // Make a static or dynamic subroutine call node using Java calling
 566 // convention.  (The "Java" calling convention is the compiler's calling
 567 // convention, as opposed to the interpreter's or that of native C.)
 568 class CallJavaNode : public CallNode {


   1 /*
   2  * Copyright (c) 1997, 2012, 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  *


 529   virtual uint        cmp( const Node &n ) const;
 530   virtual uint        size_of() const = 0;
 531   virtual void        calling_convention( BasicType* sig_bt, VMRegPair *parm_regs, uint argcnt ) const;
 532   virtual Node       *match( const ProjNode *proj, const Matcher *m );
 533   virtual uint        ideal_reg() const { return NotAMachineReg; }
 534   // Are we guaranteed that this node is a safepoint?  Not true for leaf calls and
 535   // for some macro nodes whose expansion does not have a safepoint on the fast path.
 536   virtual bool        guaranteed_safepoint()  { return true; }
 537   // For macro nodes, the JVMState gets modified during expansion, so when cloning
 538   // the node the JVMState must be cloned.
 539   virtual void        clone_jvms() { }   // default is not to clone
 540 
 541   // Returns true if the call may modify n
 542   virtual bool        may_modify(const TypePtr *addr_t, PhaseTransform *phase);
 543   // Does this node have a use of n other than in debug information?
 544   bool                has_non_debug_use(Node *n);
 545   // Returns the unique CheckCastPP of a call
 546   // or result projection is there are several CheckCastPP
 547   // or returns NULL if there is no one.
 548   Node *result_cast();
 549   // Does this node returns pointer?
 550   bool returns_pointer() const {
 551     const TypeTuple *r = tf()->range();
 552     return (r->cnt() > TypeFunc::Parms &&
 553             r->field_at(TypeFunc::Parms)->isa_ptr());
 554   }
 555 
 556   // Collect all the interesting edges from a call for use in
 557   // replacing the call by something else.  Used by macro expansion
 558   // and the late inlining support.
 559   void extract_projections(CallProjections* projs, bool separate_io_proj);
 560 
 561   virtual uint match_edge(uint idx) const;
 562 
 563 #ifndef PRODUCT
 564   virtual void        dump_req()  const;
 565   virtual void        dump_spec(outputStream *st) const;
 566 #endif
 567 };
 568 
 569 
 570 //------------------------------CallJavaNode-----------------------------------
 571 // Make a static or dynamic subroutine call node using Java calling
 572 // convention.  (The "Java" calling convention is the compiler's calling
 573 // convention, as opposed to the interpreter's or that of native C.)
 574 class CallJavaNode : public CallNode {


src/share/vm/opto/callnode.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File