equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2012, 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. |
1934 const RegMask &PhiNode::in_RegMask(uint i) const { |
1934 const RegMask &PhiNode::in_RegMask(uint i) const { |
1935 return i ? out_RegMask() : RegMask::Empty; |
1935 return i ? out_RegMask() : RegMask::Empty; |
1936 } |
1936 } |
1937 |
1937 |
1938 const RegMask &PhiNode::out_RegMask() const { |
1938 const RegMask &PhiNode::out_RegMask() const { |
1939 uint ideal_reg = Matcher::base2reg[_type->base()]; |
1939 uint ideal_reg = _type->ideal_reg(); |
1940 assert( ideal_reg != Node::NotAMachineReg, "invalid type at Phi" ); |
1940 assert( ideal_reg != Node::NotAMachineReg, "invalid type at Phi" ); |
1941 if( ideal_reg == 0 ) return RegMask::Empty; |
1941 if( ideal_reg == 0 ) return RegMask::Empty; |
1942 return *(Compile::current()->matcher()->idealreg2spillmask[ideal_reg]); |
1942 return *(Compile::current()->matcher()->idealreg2spillmask[ideal_reg]); |
1943 } |
1943 } |
1944 |
1944 |