comparison src/share/vm/ci/ciTypeArray.cpp @ 12190:edb5ab0f3fe5

8001107: @Stable annotation for constant folding of lazily evaluated variables Reviewed-by: rbackman, twisti, kvn Contributed-by: john.r.rose@oracle.com, vladimir.x.ivanov@oracle.com
author vlivanov
date Tue, 10 Sep 2013 14:51:48 -0700
parents f95d63e2154a
children de6a9e811145
comparison
equal deleted inserted replaced
12188:cd16d587b0fa 12190:edb5ab0f3fe5
37 // 37 //
38 // Implementation of the char_at method. 38 // Implementation of the char_at method.
39 jchar ciTypeArray::char_at(int index) { 39 jchar ciTypeArray::char_at(int index) {
40 VM_ENTRY_MARK; 40 VM_ENTRY_MARK;
41 assert(index >= 0 && index < length(), "out of range"); 41 assert(index >= 0 && index < length(), "out of range");
42 return get_typeArrayOop()->char_at(index); 42 jchar c = get_typeArrayOop()->char_at(index);
43 #ifdef ASSERT
44 jchar d = element_value(index).as_char();
45 assert(c == d, "");
46 #endif //ASSERT
47 return c;
43 } 48 }