Mercurial > hg > graal-compiler
diff src/share/vm/opto/node.cpp @ 113:ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Summary: Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
author | coleenp |
---|---|
date | Sun, 13 Apr 2008 17:43:42 -0400 |
parents | 99269dbf4ba8 |
children | d1a5218d7eaf |
line wrap: on
line diff
--- a/src/share/vm/opto/node.cpp Fri Apr 11 09:56:35 2008 -0400 +++ b/src/share/vm/opto/node.cpp Sun Apr 13 17:43:42 2008 -0400 @@ -1169,6 +1169,12 @@ return ((ConPNode*)this)->type()->is_ptr()->get_con(); } +// Get a narrow oop constant from a ConNNode. +intptr_t Node::get_narrowcon() const { + assert( Opcode() == Op_ConN, "" ); + return ((ConNNode*)this)->type()->is_narrowoop()->get_con(); +} + // Get a long constant from a ConNode. // Return a default value if there is no apparent constant here. const TypeLong* Node::find_long_type() const {