Chromium Code Reviews| 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 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1570 | 1570 |
| 1571 // Redirection information for a redirecting factory. | 1571 // Redirection information for a redirecting factory. |
| 1572 bool IsRedirectingFactory() const; | 1572 bool IsRedirectingFactory() const; |
| 1573 RawType* RedirectionType() const; | 1573 RawType* RedirectionType() const; |
| 1574 void SetRedirectionType(const Type& type) const; | 1574 void SetRedirectionType(const Type& type) const; |
| 1575 RawString* RedirectionIdentifier() const; | 1575 RawString* RedirectionIdentifier() const; |
| 1576 void SetRedirectionIdentifier(const String& identifier) const; | 1576 void SetRedirectionIdentifier(const String& identifier) const; |
| 1577 RawFunction* RedirectionTarget() const; | 1577 RawFunction* RedirectionTarget() const; |
| 1578 void SetRedirectionTarget(const Function& target) const; | 1578 void SetRedirectionTarget(const Function& target) const; |
| 1579 | 1579 |
| 1580 // Target information for forwarding constructors of mixin applications. | |
|
rmacnak
2014/03/27 01:01:30
"Target" isn't quite right, but I can't think of a
| |
| 1581 bool IsForwardingConstructor() const; | |
| 1582 RawFunction* ForwardingTarget() const; | |
| 1583 void SetForwardingTarget(const Function& target) const; | |
| 1584 | |
| 1580 RawFunction::Kind kind() const { | 1585 RawFunction::Kind kind() const { |
| 1581 return KindBits::decode(raw_ptr()->kind_tag_); | 1586 return KindBits::decode(raw_ptr()->kind_tag_); |
| 1582 } | 1587 } |
| 1583 | 1588 |
| 1584 static const char* KindToCString(RawFunction::Kind kind); | 1589 static const char* KindToCString(RawFunction::Kind kind); |
| 1585 | 1590 |
| 1586 bool is_static() const { return StaticBit::decode(raw_ptr()->kind_tag_); } | 1591 bool is_static() const { return StaticBit::decode(raw_ptr()->kind_tag_); } |
| 1587 bool is_const() const { return ConstBit::decode(raw_ptr()->kind_tag_); } | 1592 bool is_const() const { return ConstBit::decode(raw_ptr()->kind_tag_); } |
| 1588 bool is_external() const { return ExternalBit::decode(raw_ptr()->kind_tag_); } | 1593 bool is_external() const { return ExternalBit::decode(raw_ptr()->kind_tag_); } |
| 1589 bool IsConstructor() const { | 1594 bool IsConstructor() const { |
| (...skipping 5169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6759 | 6764 |
| 6760 | 6765 |
| 6761 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6766 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6762 intptr_t index) { | 6767 intptr_t index) { |
| 6763 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6768 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6764 } | 6769 } |
| 6765 | 6770 |
| 6766 } // namespace dart | 6771 } // namespace dart |
| 6767 | 6772 |
| 6768 #endif // VM_OBJECT_H_ | 6773 #endif // VM_OBJECT_H_ |
| OLD | NEW |