1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2017, 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. |
953 { |
953 { |
954 |
954 |
955 Label missed; |
955 Label missed; |
956 __ movptr(temp, Address(receiver, oopDesc::klass_offset_in_bytes())); |
956 __ movptr(temp, Address(receiver, oopDesc::klass_offset_in_bytes())); |
957 __ cmpptr(temp, Address(holder, CompiledICHolder::holder_klass_offset())); |
957 __ cmpptr(temp, Address(holder, CompiledICHolder::holder_klass_offset())); |
958 __ movptr(rbx, Address(holder, CompiledICHolder::holder_method_offset())); |
958 __ movptr(rbx, Address(holder, CompiledICHolder::holder_metadata_offset())); |
959 __ jcc(Assembler::notEqual, missed); |
959 __ jcc(Assembler::notEqual, missed); |
960 // Method might have been compiled since the call site was patched to |
960 // Method might have been compiled since the call site was patched to |
961 // interpreted if that is the case treat it as a miss so we can get |
961 // interpreted if that is the case treat it as a miss so we can get |
962 // the call site corrected. |
962 // the call site corrected. |
963 __ cmpptr(Address(rbx, in_bytes(Method::code_offset())), (int32_t)NULL_WORD); |
963 __ cmpptr(Address(rbx, in_bytes(Method::code_offset())), (int32_t)NULL_WORD); |