OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
(...skipping 4563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4574 | 4574 |
4575 // A MixinAppType represents a parsed mixin application clause, e.g. | 4575 // A MixinAppType represents a parsed mixin application clause, e.g. |
4576 // "S<T> with M<U>, N<V>". | 4576 // "S<T> with M<U>, N<V>". |
4577 // MixinAppType objects do not survive finalization, so they do not | 4577 // MixinAppType objects do not survive finalization, so they do not |
4578 // need to be written to and read from snapshots. | 4578 // need to be written to and read from snapshots. |
4579 // The class finalizer creates synthesized classes S&M and S&M&N if they do not | 4579 // The class finalizer creates synthesized classes S&M and S&M&N if they do not |
4580 // yet exist in the library declaring the mixin application clause. | 4580 // yet exist in the library declaring the mixin application clause. |
4581 class MixinAppType : public AbstractType { | 4581 class MixinAppType : public AbstractType { |
4582 public: | 4582 public: |
4583 // A MixinAppType object is unfinalized by definition, since it is replaced at | 4583 // A MixinAppType object is unfinalized by definition, since it is replaced at |
4584 // class finalization time with a finalized Type or BoundedType object. | 4584 // class finalization time with a finalized (and possibly malformed or |
| 4585 // malbounded) Type object. |
4585 virtual bool IsFinalized() const { return false; } | 4586 virtual bool IsFinalized() const { return false; } |
4586 // TODO(regis): Handle malformed and malbounded MixinAppType. | |
4587 virtual bool IsMalformed() const { return false; } | 4587 virtual bool IsMalformed() const { return false; } |
4588 virtual bool IsMalbounded() const { return false; } | 4588 virtual bool IsMalbounded() const { return false; } |
4589 virtual bool IsMalformedOrMalbounded() const { return false; } | 4589 virtual bool IsMalformedOrMalbounded() const { return false; } |
4590 virtual bool IsResolved() const { return false; } | 4590 virtual bool IsResolved() const { return false; } |
4591 virtual bool HasResolvedTypeClass() const { return false; } | 4591 virtual bool HasResolvedTypeClass() const { return false; } |
4592 virtual RawString* Name() const; | 4592 virtual RawString* Name() const; |
4593 virtual intptr_t token_pos() const; | 4593 virtual intptr_t token_pos() const; |
4594 | 4594 |
4595 // Returns the mixin composition depth of this mixin application type. | 4595 // Returns the mixin composition depth of this mixin application type. |
4596 intptr_t Depth() const; | 4596 intptr_t Depth() const; |
(...skipping 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6631 | 6631 |
6632 | 6632 |
6633 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6633 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
6634 intptr_t index) { | 6634 intptr_t index) { |
6635 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6635 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
6636 } | 6636 } |
6637 | 6637 |
6638 } // namespace dart | 6638 } // namespace dart |
6639 | 6639 |
6640 #endif // VM_OBJECT_H_ | 6640 #endif // VM_OBJECT_H_ |
OLD | NEW |