1 /* |
1 /* |
2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2014, 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. |
26 #define SHARE_VM_OPTO_LOCKNODE_HPP |
26 #define SHARE_VM_OPTO_LOCKNODE_HPP |
27 |
27 |
28 #include "opto/node.hpp" |
28 #include "opto/node.hpp" |
29 #include "opto/opcodes.hpp" |
29 #include "opto/opcodes.hpp" |
30 #include "opto/subnode.hpp" |
30 #include "opto/subnode.hpp" |
31 #ifdef TARGET_ARCH_MODEL_x86_32 |
31 |
32 # include "adfiles/ad_x86_32.hpp" |
32 class BiasedLockingCounters; |
33 #endif |
33 class RTMLockingCounters; |
34 #ifdef TARGET_ARCH_MODEL_x86_64 |
|
35 # include "adfiles/ad_x86_64.hpp" |
|
36 #endif |
|
37 #ifdef TARGET_ARCH_MODEL_sparc |
|
38 # include "adfiles/ad_sparc.hpp" |
|
39 #endif |
|
40 #ifdef TARGET_ARCH_MODEL_zero |
|
41 # include "adfiles/ad_zero.hpp" |
|
42 #endif |
|
43 #ifdef TARGET_ARCH_MODEL_arm |
|
44 # include "adfiles/ad_arm.hpp" |
|
45 #endif |
|
46 #ifdef TARGET_ARCH_MODEL_ppc_32 |
|
47 # include "adfiles/ad_ppc_32.hpp" |
|
48 #endif |
|
49 #ifdef TARGET_ARCH_MODEL_ppc_64 |
|
50 # include "adfiles/ad_ppc_64.hpp" |
|
51 #endif |
|
52 |
34 |
53 //------------------------------BoxLockNode------------------------------------ |
35 //------------------------------BoxLockNode------------------------------------ |
54 class BoxLockNode : public Node { |
36 class BoxLockNode : public Node { |
55 const int _slot; // stack slot |
37 const int _slot; // stack slot |
56 RegMask _inmask; // OptoReg corresponding to stack slot |
38 RegMask _inmask; // OptoReg corresponding to stack slot |