annotate src/share/vm/code/vmreg.hpp @ 1972:f95d63e2154a

6989984: Use standard include model for Hospot Summary: Replaced MakeDeps and the includeDB files with more standardized solutions. Reviewed-by: coleenp, kvn, kamg
author stefank
date Tue, 23 Nov 2010 13:22:55 -0800
parents c18cbe5936b8
children b92c45f2bc75
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
2 * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
25 #ifndef SHARE_VM_CODE_VMREG_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
26 #define SHARE_VM_CODE_VMREG_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
27
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
28 #include "memory/allocation.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
29 #include "utilities/globalDefinitions.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
30 #ifdef TARGET_ARCH_x86
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
31 # include "register_x86.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
32 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
33 #ifdef TARGET_ARCH_sparc
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
34 # include "register_sparc.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
35 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
36 #ifdef TARGET_ARCH_zero
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
37 # include "register_zero.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
38 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
39 #ifdef COMPILER2
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
40 #include "opto/adlcVMDeps.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
41 #include "utilities/ostream.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
42 #ifdef TARGET_ARCH_MODEL_x86_32
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
43 # include "adfiles/adGlobals_x86_32.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
44 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
45 #ifdef TARGET_ARCH_MODEL_x86_64
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
46 # include "adfiles/adGlobals_x86_64.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
47 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
48 #ifdef TARGET_ARCH_MODEL_sparc
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
49 # include "adfiles/adGlobals_sparc.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
50 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
51 #ifdef TARGET_ARCH_MODEL_zero
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
52 # include "adfiles/adGlobals_zero.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
53 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
54 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
55
0
a61af66fc99e Initial load
duke
parents:
diff changeset
56 //------------------------------VMReg------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
57 // The VM uses 'unwarped' stack slots; the compiler uses 'warped' stack slots.
a61af66fc99e Initial load
duke
parents:
diff changeset
58 // Register numbers below VMRegImpl::stack0 are the same for both. Register
a61af66fc99e Initial load
duke
parents:
diff changeset
59 // numbers above stack0 are either warped (in the compiler) or unwarped
a61af66fc99e Initial load
duke
parents:
diff changeset
60 // (in the VM). Unwarped numbers represent stack indices, offsets from
a61af66fc99e Initial load
duke
parents:
diff changeset
61 // the current stack pointer. Warped numbers are required during compilation
a61af66fc99e Initial load
duke
parents:
diff changeset
62 // when we do not yet know how big the frame will be.
a61af66fc99e Initial load
duke
parents:
diff changeset
63
a61af66fc99e Initial load
duke
parents:
diff changeset
64 class VMRegImpl;
a61af66fc99e Initial load
duke
parents:
diff changeset
65 typedef VMRegImpl* VMReg;
a61af66fc99e Initial load
duke
parents:
diff changeset
66
a61af66fc99e Initial load
duke
parents:
diff changeset
67 class VMRegImpl {
a61af66fc99e Initial load
duke
parents:
diff changeset
68 // friend class OopMap;
a61af66fc99e Initial load
duke
parents:
diff changeset
69 friend class VMStructs;
a61af66fc99e Initial load
duke
parents:
diff changeset
70 friend class OptoReg;
a61af66fc99e Initial load
duke
parents:
diff changeset
71 // friend class Location;
a61af66fc99e Initial load
duke
parents:
diff changeset
72 private:
a61af66fc99e Initial load
duke
parents:
diff changeset
73 enum {
a61af66fc99e Initial load
duke
parents:
diff changeset
74 BAD = -1
a61af66fc99e Initial load
duke
parents:
diff changeset
75 };
a61af66fc99e Initial load
duke
parents:
diff changeset
76
a61af66fc99e Initial load
duke
parents:
diff changeset
77
a61af66fc99e Initial load
duke
parents:
diff changeset
78
a61af66fc99e Initial load
duke
parents:
diff changeset
79 static VMReg stack0;
a61af66fc99e Initial load
duke
parents:
diff changeset
80 // Names for registers
a61af66fc99e Initial load
duke
parents:
diff changeset
81 static const char *regName[];
a61af66fc99e Initial load
duke
parents:
diff changeset
82 static const int register_count;
a61af66fc99e Initial load
duke
parents:
diff changeset
83
a61af66fc99e Initial load
duke
parents:
diff changeset
84
a61af66fc99e Initial load
duke
parents:
diff changeset
85 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
86
a61af66fc99e Initial load
duke
parents:
diff changeset
87 static VMReg as_VMReg(int val, bool bad_ok = false) { assert(val > BAD || bad_ok, "invalid"); return (VMReg) (intptr_t) val; }
a61af66fc99e Initial load
duke
parents:
diff changeset
88
a61af66fc99e Initial load
duke
parents:
diff changeset
89 const char* name() {
a61af66fc99e Initial load
duke
parents:
diff changeset
90 if (is_reg()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
91 return regName[value()];
a61af66fc99e Initial load
duke
parents:
diff changeset
92 } else if (!is_valid()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
93 return "BAD";
a61af66fc99e Initial load
duke
parents:
diff changeset
94 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
95 // shouldn't really be called with stack
a61af66fc99e Initial load
duke
parents:
diff changeset
96 return "STACKED REG";
a61af66fc99e Initial load
duke
parents:
diff changeset
97 }
a61af66fc99e Initial load
duke
parents:
diff changeset
98 }
a61af66fc99e Initial load
duke
parents:
diff changeset
99 static VMReg Bad() { return (VMReg) (intptr_t) BAD; }
25
c5cbd367e4d1 6621094: PrintOptoAssembly is broken for oops information in DebugInfo
kvn
parents: 0
diff changeset
100 bool is_valid() const { return ((intptr_t) this) != BAD; }
c5cbd367e4d1 6621094: PrintOptoAssembly is broken for oops information in DebugInfo
kvn
parents: 0
diff changeset
101 bool is_stack() const { return (intptr_t) this >= (intptr_t) stack0; }
c5cbd367e4d1 6621094: PrintOptoAssembly is broken for oops information in DebugInfo
kvn
parents: 0
diff changeset
102 bool is_reg() const { return is_valid() && !is_stack(); }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
103
a61af66fc99e Initial load
duke
parents:
diff changeset
104 // A concrete register is a value that returns true for is_reg() and is
a61af66fc99e Initial load
duke
parents:
diff changeset
105 // also a register you could use in the assembler. On machines with
a61af66fc99e Initial load
duke
parents:
diff changeset
106 // 64bit registers only one half of the VMReg (and OptoReg) is considered
a61af66fc99e Initial load
duke
parents:
diff changeset
107 // concrete.
a61af66fc99e Initial load
duke
parents:
diff changeset
108 bool is_concrete();
a61af66fc99e Initial load
duke
parents:
diff changeset
109
a61af66fc99e Initial load
duke
parents:
diff changeset
110 // VMRegs are 4 bytes wide on all platforms
a61af66fc99e Initial load
duke
parents:
diff changeset
111 static const int stack_slot_size;
a61af66fc99e Initial load
duke
parents:
diff changeset
112 static const int slots_per_word;
a61af66fc99e Initial load
duke
parents:
diff changeset
113
a61af66fc99e Initial load
duke
parents:
diff changeset
114
a61af66fc99e Initial load
duke
parents:
diff changeset
115 // This really ought to check that the register is "real" in the sense that
a61af66fc99e Initial load
duke
parents:
diff changeset
116 // we don't try and get the VMReg number of a physical register that doesn't
a61af66fc99e Initial load
duke
parents:
diff changeset
117 // have an expressible part. That would be pd specific code
a61af66fc99e Initial load
duke
parents:
diff changeset
118 VMReg next() {
a61af66fc99e Initial load
duke
parents:
diff changeset
119 assert((is_reg() && value() < stack0->value() - 1) || is_stack(), "must be");
a61af66fc99e Initial load
duke
parents:
diff changeset
120 return (VMReg)(intptr_t)(value() + 1);
a61af66fc99e Initial load
duke
parents:
diff changeset
121 }
a61af66fc99e Initial load
duke
parents:
diff changeset
122 VMReg prev() {
a61af66fc99e Initial load
duke
parents:
diff changeset
123 assert((is_stack() && value() > stack0->value()) || (is_reg() && value() != 0), "must be");
a61af66fc99e Initial load
duke
parents:
diff changeset
124 return (VMReg)(intptr_t)(value() - 1);
a61af66fc99e Initial load
duke
parents:
diff changeset
125 }
a61af66fc99e Initial load
duke
parents:
diff changeset
126
a61af66fc99e Initial load
duke
parents:
diff changeset
127
a61af66fc99e Initial load
duke
parents:
diff changeset
128 intptr_t value() const {return (intptr_t) this; }
a61af66fc99e Initial load
duke
parents:
diff changeset
129
100
c7c777385a15 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 25
diff changeset
130 void print_on(outputStream* st) const;
25
c5cbd367e4d1 6621094: PrintOptoAssembly is broken for oops information in DebugInfo
kvn
parents: 0
diff changeset
131 void print() const { print_on(tty); }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
132
a61af66fc99e Initial load
duke
parents:
diff changeset
133 // bias a stack slot.
a61af66fc99e Initial load
duke
parents:
diff changeset
134 // Typically used to adjust a virtual frame slots by amounts that are offset by
a61af66fc99e Initial load
duke
parents:
diff changeset
135 // amounts that are part of the native abi. The VMReg must be a stack slot
a61af66fc99e Initial load
duke
parents:
diff changeset
136 // and the result must be also.
a61af66fc99e Initial load
duke
parents:
diff changeset
137
a61af66fc99e Initial load
duke
parents:
diff changeset
138 VMReg bias(int offset) {
a61af66fc99e Initial load
duke
parents:
diff changeset
139 assert(is_stack(), "must be");
a61af66fc99e Initial load
duke
parents:
diff changeset
140 // VMReg res = VMRegImpl::as_VMReg(value() + offset);
a61af66fc99e Initial load
duke
parents:
diff changeset
141 VMReg res = stack2reg(reg2stack() + offset);
a61af66fc99e Initial load
duke
parents:
diff changeset
142 assert(res->is_stack(), "must be");
a61af66fc99e Initial load
duke
parents:
diff changeset
143 return res;
a61af66fc99e Initial load
duke
parents:
diff changeset
144 }
a61af66fc99e Initial load
duke
parents:
diff changeset
145
a61af66fc99e Initial load
duke
parents:
diff changeset
146 // Convert register numbers to stack slots and vice versa
a61af66fc99e Initial load
duke
parents:
diff changeset
147 static VMReg stack2reg( int idx ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
148 return (VMReg) (intptr_t) (stack0->value() + idx);
a61af66fc99e Initial load
duke
parents:
diff changeset
149 }
a61af66fc99e Initial load
duke
parents:
diff changeset
150
a61af66fc99e Initial load
duke
parents:
diff changeset
151 uintptr_t reg2stack() {
a61af66fc99e Initial load
duke
parents:
diff changeset
152 assert( is_stack(), "Not a stack-based register" );
a61af66fc99e Initial load
duke
parents:
diff changeset
153 return value() - stack0->value();
a61af66fc99e Initial load
duke
parents:
diff changeset
154 }
a61af66fc99e Initial load
duke
parents:
diff changeset
155
a61af66fc99e Initial load
duke
parents:
diff changeset
156 static void set_regName();
a61af66fc99e Initial load
duke
parents:
diff changeset
157
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
158 #ifdef TARGET_ARCH_x86
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
159 # include "vmreg_x86.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
160 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
161 #ifdef TARGET_ARCH_sparc
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
162 # include "vmreg_sparc.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
163 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
164 #ifdef TARGET_ARCH_zero
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
165 # include "vmreg_zero.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
166 #endif
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
167
0
a61af66fc99e Initial load
duke
parents:
diff changeset
168
a61af66fc99e Initial load
duke
parents:
diff changeset
169 };
a61af66fc99e Initial load
duke
parents:
diff changeset
170
a61af66fc99e Initial load
duke
parents:
diff changeset
171 //---------------------------VMRegPair-------------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
172 // Pairs of 32-bit registers for arguments.
a61af66fc99e Initial load
duke
parents:
diff changeset
173 // SharedRuntime::java_calling_convention will overwrite the structs with
a61af66fc99e Initial load
duke
parents:
diff changeset
174 // the calling convention's registers. VMRegImpl::Bad is returned for any
a61af66fc99e Initial load
duke
parents:
diff changeset
175 // unused 32-bit register. This happens for the unused high half of Int
a61af66fc99e Initial load
duke
parents:
diff changeset
176 // arguments, or for 32-bit pointers or for longs in the 32-bit sparc build
a61af66fc99e Initial load
duke
parents:
diff changeset
177 // (which are passed to natives in low 32-bits of e.g. O0/O1 and the high
a61af66fc99e Initial load
duke
parents:
diff changeset
178 // 32-bits of O0/O1 are set to VMRegImpl::Bad). Longs in one register & doubles
a61af66fc99e Initial load
duke
parents:
diff changeset
179 // always return a high and a low register, as do 64-bit pointers.
a61af66fc99e Initial load
duke
parents:
diff changeset
180 //
a61af66fc99e Initial load
duke
parents:
diff changeset
181 class VMRegPair {
a61af66fc99e Initial load
duke
parents:
diff changeset
182 private:
a61af66fc99e Initial load
duke
parents:
diff changeset
183 VMReg _second;
a61af66fc99e Initial load
duke
parents:
diff changeset
184 VMReg _first;
a61af66fc99e Initial load
duke
parents:
diff changeset
185 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
186 void set_bad ( ) { _second=VMRegImpl::Bad(); _first=VMRegImpl::Bad(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
187 void set1 ( VMReg v ) { _second=VMRegImpl::Bad(); _first=v; }
a61af66fc99e Initial load
duke
parents:
diff changeset
188 void set2 ( VMReg v ) { _second=v->next(); _first=v; }
a61af66fc99e Initial load
duke
parents:
diff changeset
189 void set_pair( VMReg second, VMReg first ) { _second= second; _first= first; }
a61af66fc99e Initial load
duke
parents:
diff changeset
190 void set_ptr ( VMReg ptr ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
191 #ifdef _LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
192 _second = ptr->next();
a61af66fc99e Initial load
duke
parents:
diff changeset
193 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
194 _second = VMRegImpl::Bad();
a61af66fc99e Initial load
duke
parents:
diff changeset
195 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
196 _first = ptr;
a61af66fc99e Initial load
duke
parents:
diff changeset
197 }
a61af66fc99e Initial load
duke
parents:
diff changeset
198 // Return true if single register, even if the pair is really just adjacent stack slots
100
c7c777385a15 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 25
diff changeset
199 bool is_single_reg() const {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
200 return (_first->is_valid()) && (_first->value() + 1 == _second->value());
a61af66fc99e Initial load
duke
parents:
diff changeset
201 }
a61af66fc99e Initial load
duke
parents:
diff changeset
202
a61af66fc99e Initial load
duke
parents:
diff changeset
203 // Return true if single stack based "register" where the slot alignment matches input alignment
100
c7c777385a15 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 25
diff changeset
204 bool is_adjacent_on_stack(int alignment) const {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
205 return (_first->is_stack() && (_first->value() + 1 == _second->value()) && ((_first->value() & (alignment-1)) == 0));
a61af66fc99e Initial load
duke
parents:
diff changeset
206 }
a61af66fc99e Initial load
duke
parents:
diff changeset
207
a61af66fc99e Initial load
duke
parents:
diff changeset
208 // Return true if single stack based "register" where the slot alignment matches input alignment
100
c7c777385a15 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 25
diff changeset
209 bool is_adjacent_aligned_on_stack(int alignment) const {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
210 return (_first->is_stack() && (_first->value() + 1 == _second->value()) && ((_first->value() & (alignment-1)) == 0));
a61af66fc99e Initial load
duke
parents:
diff changeset
211 }
a61af66fc99e Initial load
duke
parents:
diff changeset
212
a61af66fc99e Initial load
duke
parents:
diff changeset
213 // Return true if single register but adjacent stack slots do not count
100
c7c777385a15 6667042: PrintAssembly option does not work without special plugin
jrose
parents: 25
diff changeset
214 bool is_single_phys_reg() const {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
215 return (_first->is_reg() && (_first->value() + 1 == _second->value()));
a61af66fc99e Initial load
duke
parents:
diff changeset
216 }
a61af66fc99e Initial load
duke
parents:
diff changeset
217
a61af66fc99e Initial load
duke
parents:
diff changeset
218 VMReg second() const { return _second; }
a61af66fc99e Initial load
duke
parents:
diff changeset
219 VMReg first() const { return _first; }
a61af66fc99e Initial load
duke
parents:
diff changeset
220 VMRegPair(VMReg s, VMReg f) { _second = s; _first = f; }
a61af66fc99e Initial load
duke
parents:
diff changeset
221 VMRegPair(VMReg f) { _second = VMRegImpl::Bad(); _first = f; }
a61af66fc99e Initial load
duke
parents:
diff changeset
222 VMRegPair() { _second = VMRegImpl::Bad(); _first = VMRegImpl::Bad(); }
a61af66fc99e Initial load
duke
parents:
diff changeset
223 };
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
224
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
225 #endif // SHARE_VM_CODE_VMREG_HPP