comparison src/share/vm/opto/cfgnode.cpp @ 6725:da91efe96a93

6964458: Reimplement class meta-data storage to use native memory Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author coleenp
date Sat, 01 Sep 2012 13:25:18 -0400
parents 35acf8f0a2e4
children e626685e9f6c
comparison
equal deleted inserted replaced
6724:36d1d483d5d6 6725:da91efe96a93
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