equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
44 jchar d = element_value(index).as_char(); |
44 jchar d = element_value(index).as_char(); |
45 assert(c == d, ""); |
45 assert(c == d, ""); |
46 #endif //ASSERT |
46 #endif //ASSERT |
47 return c; |
47 return c; |
48 } |
48 } |
|
49 |
|
50 // ------------------------------------------------------------------ |
|
51 // ciTypeArray::byte_at |
|
52 // |
|
53 // Implementation of the byte_at method. |
|
54 jbyte ciTypeArray::byte_at(int index) { |
|
55 VM_ENTRY_MARK; |
|
56 assert(index >= 0 && index < length(), "out of range"); |
|
57 return get_typeArrayOop()->byte_at(index); |
|
58 } |