| 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_RAW_OBJECT_H_ | 5 #ifndef VM_RAW_OBJECT_H_ |
| 6 #define VM_RAW_OBJECT_H_ | 6 #define VM_RAW_OBJECT_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/token.h" | 10 #include "vm/token.h" |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 kRegularFunction, | 595 kRegularFunction, |
| 596 kClosureFunction, | 596 kClosureFunction, |
| 597 kSignatureFunction, // represents a signature only without actual code. | 597 kSignatureFunction, // represents a signature only without actual code. |
| 598 kGetterFunction, // represents getter functions e.g: get foo() { .. }. | 598 kGetterFunction, // represents getter functions e.g: get foo() { .. }. |
| 599 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }. | 599 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }. |
| 600 kConstructor, | 600 kConstructor, |
| 601 kImplicitGetter, // represents an implicit getter for fields. | 601 kImplicitGetter, // represents an implicit getter for fields. |
| 602 kImplicitSetter, // represents an implicit setter for fields. | 602 kImplicitSetter, // represents an implicit setter for fields. |
| 603 kImplicitStaticFinalGetter, // represents an implicit getter for static | 603 kImplicitStaticFinalGetter, // represents an implicit getter for static |
| 604 // final fields (incl. static const fields). | 604 // final fields (incl. static const fields). |
| 605 kStaticInitializer, // used in implicit static getters. |
| 605 kMethodExtractor, // converts method into implicit closure on the receiver. | 606 kMethodExtractor, // converts method into implicit closure on the receiver. |
| 606 kNoSuchMethodDispatcher, // invokes noSuchMethod. | 607 kNoSuchMethodDispatcher, // invokes noSuchMethod. |
| 607 kInvokeFieldDispatcher, // invokes a field as a closure. | 608 kInvokeFieldDispatcher, // invokes a field as a closure. |
| 608 }; | 609 }; |
| 609 | 610 |
| 610 private: | 611 private: |
| 611 friend class Class; | 612 friend class Class; |
| 612 RAW_HEAP_OBJECT_IMPLEMENTATION(Function); | 613 RAW_HEAP_OBJECT_IMPLEMENTATION(Function); |
| 613 | 614 |
| 614 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 615 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| (...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 // Make sure this is updated when new TypedData types are added. | 1719 // Make sure this is updated when new TypedData types are added. |
| 1719 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13); | 1720 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13); |
| 1720 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14); | 1721 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14); |
| 1721 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13); | 1722 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13); |
| 1722 return (kNullCid - kTypedDataInt8ArrayCid); | 1723 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1723 } | 1724 } |
| 1724 | 1725 |
| 1725 } // namespace dart | 1726 } // namespace dart |
| 1726 | 1727 |
| 1727 #endif // VM_RAW_OBJECT_H_ | 1728 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |