| Index: src/types.cc
|
| diff --git a/src/types.cc b/src/types.cc
|
| index f3593621193abd37a18204232f6dee1d0c2c6cb3..394f7726791b8cd81a9c8ae17a838d6cc47703e3 100644
|
| --- a/src/types.cc
|
| +++ b/src/types.cc
|
| @@ -359,6 +359,17 @@ bool TypeImpl<Config>::NowIs(TypeImpl* that) {
|
| }
|
|
|
|
|
| +// Check if this contains only (currently) stable classes.
|
| +template<class Config>
|
| +bool TypeImpl<Config>::NowStable() {
|
| + DisallowHeapAllocation no_allocation;
|
| + for (Iterator<i::Map> it = this->Classes(); !it.Done(); it.Advance()) {
|
| + if (!it.Current()->is_stable()) return false;
|
| + }
|
| + return true;
|
| +}
|
| +
|
| +
|
| // Check this overlaps that.
|
| template<class Config>
|
| bool TypeImpl<Config>::Maybe(TypeImpl* that) {
|
|
|