equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2014, Red Hat Inc. All rights reserved. |
3 * Copyright (c) 2014, 2018, Red Hat Inc. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
8 * published by the Free Software Foundation. |
8 * published by the Free Software Foundation. |
482 __ str(zr, Address(rfp, frame::interpreter_frame_last_sp_offset * wordSize)); |
482 __ str(zr, Address(rfp, frame::interpreter_frame_last_sp_offset * wordSize)); |
483 |
483 |
484 #if INCLUDE_JVMCI |
484 #if INCLUDE_JVMCI |
485 // Check if we need to take lock at entry of synchronized method. This can |
485 // Check if we need to take lock at entry of synchronized method. This can |
486 // only occur on method entry so emit it only for vtos with step 0. |
486 // only occur on method entry so emit it only for vtos with step 0. |
487 if (EnableJVMCI && state == vtos && step == 0) { |
487 if ((EnableJVMCI || UseAOT) && state == vtos && step == 0) { |
488 Label L; |
488 Label L; |
489 __ ldr(rscratch1, Address(rthread, Thread::pending_exception_offset())); |
489 __ ldr(rscratch1, Address(rthread, Thread::pending_exception_offset())); |
490 __ cbz(rscratch1, L); |
490 __ cbz(rscratch1, L); |
491 // Clear flag. |
491 // Clear flag. |
492 __ strb(zr, Address(rthread, JavaThread::pending_monitorenter_offset())); |
492 __ strb(zr, Address(rthread, JavaThread::pending_monitorenter_offset())); |