--- old/src/share/vm/ci/ciArray.hpp 2016-06-02 15:19:24.168305304 +0200 +++ new/src/share/vm/ci/ciArray.hpp 2016-06-02 15:19:24.020305300 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -53,7 +53,7 @@ void print_impl(outputStream* st); - ciConstant element_value_impl(BasicType elembt, arrayOop ary, int index); + ciConstant element_value_impl(BasicType elembt, arrayOop ary, int index, bool mismatched); public: int length() { return _length; } @@ -67,6 +67,9 @@ // Returns T_ILLEGAL if there is no element at the given index. ciConstant element_value(int index); + // Current value of an element with support for mismatched accesses. + ciConstant element_value(int index, BasicType elembt); + // Current value of an element at the specified offset. // Returns T_ILLEGAL if there is no element at the given offset. ciConstant element_value_by_offset(intptr_t element_offset);