22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "ci/ciTypeArray.hpp"
27 #include "ci/ciUtilities.hpp"
28
29 // ciTypeArray
30 //
31 // This class represents an typeArrayOop in the HotSpot virtual
32 // machine.
33
34
35 // ------------------------------------------------------------------
36 // ciTypeArray::char_at
37 //
38 // Implementation of the char_at method.
39 jchar ciTypeArray::char_at(int index) {
40 VM_ENTRY_MARK;
41 assert(index >= 0 && index < length(), "out of range");
42 return get_typeArrayOop()->char_at(index);
43 }
|
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "ci/ciTypeArray.hpp"
27 #include "ci/ciUtilities.hpp"
28
29 // ciTypeArray
30 //
31 // This class represents an typeArrayOop in the HotSpot virtual
32 // machine.
33
34
35 // ------------------------------------------------------------------
36 // ciTypeArray::char_at
37 //
38 // Implementation of the char_at method.
39 jchar ciTypeArray::char_at(int index) {
40 VM_ENTRY_MARK;
41 assert(index >= 0 && index < length(), "out of range");
42 jchar c = element_value(index).as_char();
43 #ifdef ASSERT
44 jchar d = get_typeArrayOop()->char_at(index);
45 assert(c == d, "");
46 #endif //ASSERT
47 return c;
48 }
|