Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCompilerToVM.hpp @ 9887:4d5872186e76
Add compressed oops support in Graal/Hotspot site
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Tue, 04 Jun 2013 19:36:16 +0200 |
parents | e522a00b91aa |
children | 91c16dff3fc1 |
comparison
equal
deleted
inserted
replaced
9886:d14b65dac937 | 9887:4d5872186e76 |
---|---|
52 arrayOop _args; | 52 arrayOop _args; |
53 int _index; | 53 int _index; |
54 | 54 |
55 oop next_arg(BasicType expectedType) { | 55 oop next_arg(BasicType expectedType) { |
56 assert(_index < _args->length(), "out of bounds"); | 56 assert(_index < _args->length(), "out of bounds"); |
57 oop arg = ((oop*) _args->base(T_OBJECT))[_index++]; | 57 oop arg; |
58 if(UseCompressedOops) { | |
59 arg = oopDesc::decode_heap_oop(((narrowOop*) _args->base(T_OBJECT))[_index++]); | |
60 } else { | |
61 arg = ((oop*) _args->base(T_OBJECT))[_index++]; | |
62 } | |
58 assert(expectedType == T_OBJECT || java_lang_boxing_object::is_instance(arg, expectedType), "arg type mismatch"); | 63 assert(expectedType == T_OBJECT || java_lang_boxing_object::is_instance(arg, expectedType), "arg type mismatch"); |
59 return arg; | 64 return arg; |
60 } | 65 } |
61 | 66 |
62 public: | 67 public: |