Mercurial > hg > graal-compiler
comparison src/share/vm/utilities/growableArray.hpp @ 6934:4735d2c84362
7200776: Implement default methods in interfaces
Summary: Add generic type analysis and default method selection algorithms
Reviewed-by: coleenp, acorn
author | kamg |
---|---|
date | Thu, 11 Oct 2012 12:25:42 -0400 |
parents | da91efe96a93 |
children | 5888334c9c24 |
comparison
equal
deleted
inserted
replaced
6921:a1b8cf9cf970 | 6934:4735d2c84362 |
---|---|
215 bool missed = !contains(elem); | 215 bool missed = !contains(elem); |
216 if (missed) append(elem); | 216 if (missed) append(elem); |
217 return missed; | 217 return missed; |
218 } | 218 } |
219 | 219 |
220 E at(int i) const { | 220 E& at(int i) { |
221 assert(0 <= i && i < _len, "illegal index"); | |
222 return _data[i]; | |
223 } | |
224 | |
225 E const& at(int i) const { | |
221 assert(0 <= i && i < _len, "illegal index"); | 226 assert(0 <= i && i < _len, "illegal index"); |
222 return _data[i]; | 227 return _data[i]; |
223 } | 228 } |
224 | 229 |
225 E* adr_at(int i) const { | 230 E* adr_at(int i) const { |