Fix Windows build. I'm wondering, how does gcc accept such code?
TBR=sgjesse@chromium.org Review URL: http://codereview.chromium.org/201140 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2906 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
e30d461ee4
commit
016166ee14
@ -192,7 +192,7 @@ inline ClustersCoarser::ClusterBackRefs::ClusterBackRefs(
|
||||
|
||||
|
||||
inline ClustersCoarser::ClusterBackRefs::ClusterBackRefs(
|
||||
const ClustersCoarser::ClusterBackRefs::ClusterBackRefs& src)
|
||||
const ClustersCoarser::ClusterBackRefs& src)
|
||||
: cluster(src.cluster), refs(src.refs.capacity()) {
|
||||
refs.AddAll(src.refs);
|
||||
}
|
||||
@ -200,7 +200,7 @@ inline ClustersCoarser::ClusterBackRefs::ClusterBackRefs(
|
||||
|
||||
inline ClustersCoarser::ClusterBackRefs::ClusterBackRefs&
|
||||
ClustersCoarser::ClusterBackRefs::operator=(
|
||||
const ClustersCoarser::ClusterBackRefs::ClusterBackRefs& src) {
|
||||
const ClustersCoarser::ClusterBackRefs& src) {
|
||||
if (this == &src) return *this;
|
||||
cluster = src.cluster;
|
||||
refs.Clear();
|
||||
@ -210,8 +210,8 @@ ClustersCoarser::ClusterBackRefs::operator=(
|
||||
|
||||
|
||||
inline int ClustersCoarser::ClusterBackRefs::Compare(
|
||||
const ClustersCoarser::ClusterBackRefs::ClusterBackRefs& a,
|
||||
const ClustersCoarser::ClusterBackRefs::ClusterBackRefs& b) {
|
||||
const ClustersCoarser::ClusterBackRefs& a,
|
||||
const ClustersCoarser::ClusterBackRefs& b) {
|
||||
int cmp = JSObjectsCluster::CompareConstructors(a.cluster, b.cluster);
|
||||
if (cmp != 0) return cmp;
|
||||
if (a.refs.length() < b.refs.length()) return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user