Mercurial > hg > truffle
comparison src/share/vm/opto/node.hpp @ 40:7c1f32ae4a20
6670459: Fix Node::dump() performance
Summary: dump full ideal graph takes forever.
Reviewed-by: never, rasbold
author | kvn |
---|---|
date | Thu, 06 Mar 2008 20:58:16 -0800 |
parents | 3288958bf319 |
children | eac007780a58 |
comparison
equal
deleted
inserted
replaced
39:76256d272075 | 40:7c1f32ae4a20 |
---|---|
1382 } | 1382 } |
1383 void set_index(uint i) { | 1383 void set_index(uint i) { |
1384 _inode_top->indx = i; | 1384 _inode_top->indx = i; |
1385 } | 1385 } |
1386 uint size_max() const { return (uint)pointer_delta(_inode_max, _inodes, sizeof(INode)); } // Max size | 1386 uint size_max() const { return (uint)pointer_delta(_inode_max, _inodes, sizeof(INode)); } // Max size |
1387 uint size() const { return (uint)pointer_delta(_inode_top, _inodes, sizeof(INode)) + 1; } // Current size | 1387 uint size() const { return (uint)pointer_delta((_inode_top+1), _inodes, sizeof(INode)); } // Current size |
1388 bool is_nonempty() const { return (_inode_top >= _inodes); } | 1388 bool is_nonempty() const { return (_inode_top >= _inodes); } |
1389 bool is_empty() const { return (_inode_top < _inodes); } | 1389 bool is_empty() const { return (_inode_top < _inodes); } |
1390 void clear() { _inode_top = _inodes - 1; } // retain storage | 1390 void clear() { _inode_top = _inodes - 1; } // retain storage |
1391 }; | 1391 }; |
1392 | 1392 |