diff src/share/vm/opto/machnode.cpp @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents 15120a36272d
children 52b4284cb496
line wrap: on
line diff
--- a/src/share/vm/opto/machnode.cpp	Tue Apr 01 14:09:03 2014 +0200
+++ b/src/share/vm/opto/machnode.cpp	Tue Apr 01 13:57:07 2014 +0200
@@ -134,10 +134,6 @@
   ShouldNotCallThis();
 }
 
-//---------------------------postalloc_expand----------------------------------
-// Expand node after register allocation.
-void MachNode::postalloc_expand(GrowableArray <Node *> *nodes, PhaseRegAlloc *ra_) {}
-
 //------------------------------size-------------------------------------------
 // Size of instruction in bytes
 uint MachNode::size(PhaseRegAlloc *ra_) const {
@@ -397,17 +393,6 @@
   return skipped;
 }
 
-int MachNode::operand_index(const MachOper *oper) const {
-  uint skipped = oper_input_base(); // Sum of leaves skipped so far
-  uint opcnt;
-  for (opcnt = 1; opcnt < num_opnds(); opcnt++) {
-    if (_opnds[opcnt] == oper) break;
-    uint num_edges = _opnds[opcnt]->num_edges(); // leaves for operand
-    skipped += num_edges;
-  }
-  if (_opnds[opcnt] != oper) return -1;
-  return skipped;
-}
 
 //------------------------------peephole---------------------------------------
 // Apply peephole rule(s) to this instruction
@@ -516,9 +501,6 @@
   return _constant.offset();
 }
 
-int MachConstantNode::constant_offset_unchecked() const {
-  return _constant.offset();
-}
 
 //=============================================================================
 #ifndef PRODUCT
@@ -659,15 +641,10 @@
 
 
 //------------------------------Registers--------------------------------------
-const RegMask &MachCallNode::in_RegMask(uint idx) const {
+const RegMask &MachCallNode::in_RegMask( uint idx ) const {
   // Values in the domain use the users calling convention, embodied in the
   // _in_rms array of RegMasks.
-  if (idx < tf()->domain()->cnt()) {
-    return _in_rms[idx];
-  }
-  if (idx == mach_constant_base_node_input()) {
-    return MachConstantBaseNode::static_out_RegMask();
-  }
+  if (idx < tf()->domain()->cnt())  return _in_rms[idx];
   // Values outside the domain represent debug info
   return *Compile::current()->matcher()->idealreg2debugmask[in(idx)->ideal_reg()];
 }
@@ -694,12 +671,7 @@
 const RegMask &MachCallJavaNode::in_RegMask(uint idx) const {
   // Values in the domain use the users calling convention, embodied in the
   // _in_rms array of RegMasks.
-  if (idx < tf()->domain()->cnt()) {
-    return _in_rms[idx];
-  }
-  if (idx == mach_constant_base_node_input()) {
-    return MachConstantBaseNode::static_out_RegMask();
-  }
+  if (idx < tf()->domain()->cnt())  return _in_rms[idx];
   // Values outside the domain represent debug info
   Matcher* m = Compile::current()->matcher();
   // If this call is a MethodHandle invoke we have to use a different