Mercurial > hg > truffle
comparison src/share/vm/opto/optoreg.hpp @ 7636:a7114d3d712e
8005055: pass outputStream to more opto debug routines
Summary: pass the output stream to node->dump() and everything reachable from there
Reviewed-by: kvn
Contributed-by: goetz.lindenmaier@sap.com
author | kvn |
---|---|
date | Tue, 22 Jan 2013 11:31:25 -0800 |
parents | f6f3bb0ee072 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
7619:46e60405583b | 7636:a7114d3d712e |
---|---|
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(); |