Mercurial > hg > truffle
comparison src/share/vm/opto/optoreg.hpp @ 7957:0d26ce8e9251
Merge
author | acorn |
---|---|
date | Mon, 28 Jan 2013 10:34:07 -0500 |
parents | a7114d3d712e |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
7956:16fb9f942703 | 7957:0d26ce8e9251 |
---|---|
75 static Name add( Name x, int y ) { return Name(x+y); } | 75 static Name add( Name x, int y ) { return Name(x+y); } |
76 | 76 |
77 // (We would like to have an operator+ for RegName, but it is not | 77 // (We would like to have an operator+ for RegName, but it is not |
78 // a class, so this would be illegal in C++.) | 78 // a class, so this would be illegal in C++.) |
79 | 79 |
80 static void dump( int ); | 80 static void dump(int, outputStream *st = tty); |
81 | 81 |
82 // Get the stack slot number of an OptoReg::Name | 82 // Get the stack slot number of an OptoReg::Name |
83 static unsigned int reg2stack( OptoReg::Name r) { | 83 static unsigned int reg2stack( OptoReg::Name r) { |
84 assert( r >= stack0(), " must be"); | 84 assert( r >= stack0(), " must be"); |
85 return r - stack0(); | 85 return r - stack0(); |