Mercurial > hg > truffle
comparison src/share/vm/opto/phaseX.hpp @ 7473:d092d1b31229
8005071: Incremental inlining for JSR 292
Summary: post parse inlining driven by number of live nodes.
Reviewed-by: twisti, kvn, jrose
author | roland |
---|---|
date | Sun, 23 Dec 2012 17:08:22 +0100 |
parents | d804e148cff8 |
children | b2ee5dc63353 |
comparison
equal
deleted
inserted
replaced
7445:cd962e15c08e | 7473:d092d1b31229 |
---|---|
90 assert(table_index < _max, "Must be within table"); | 90 assert(table_index < _max, "Must be within table"); |
91 return _table[table_index]; | 91 return _table[table_index]; |
92 } | 92 } |
93 | 93 |
94 void remove_useless_nodes(VectorSet &useful); // replace with sentinel | 94 void remove_useless_nodes(VectorSet &useful); // replace with sentinel |
95 void replace_with(NodeHash* nh); | |
95 | 96 |
96 Node *sentinel() { return _sentinel; } | 97 Node *sentinel() { return _sentinel; } |
97 | 98 |
98 #ifndef PRODUCT | 99 #ifndef PRODUCT |
99 Node *find_index(uint idx); // For debugging | 100 Node *find_index(uint idx); // For debugging |
384 // Return a node which computes the same function as this node, but | 385 // Return a node which computes the same function as this node, but |
385 // in a faster or cheaper fashion. | 386 // in a faster or cheaper fashion. |
386 Node *transform( Node *n ); | 387 Node *transform( Node *n ); |
387 Node *transform_no_reclaim( Node *n ); | 388 Node *transform_no_reclaim( Node *n ); |
388 | 389 |
390 void replace_with(PhaseGVN* gvn) { | |
391 _table.replace_with(&gvn->_table); | |
392 _types = gvn->_types; | |
393 } | |
394 | |
389 // Check for a simple dead loop when a data node references itself. | 395 // Check for a simple dead loop when a data node references itself. |
390 DEBUG_ONLY(void dead_loop_check(Node *n);) | 396 DEBUG_ONLY(void dead_loop_check(Node *n);) |
391 }; | 397 }; |
392 | 398 |
393 //------------------------------PhaseIterGVN----------------------------------- | 399 //------------------------------PhaseIterGVN----------------------------------- |