| 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }. | 585 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }. |
| 586 kConstructor, | 586 kConstructor, |
| 587 kImplicitGetter, // represents an implicit getter for fields. | 587 kImplicitGetter, // represents an implicit getter for fields. |
| 588 kImplicitSetter, // represents an implicit setter for fields. | 588 kImplicitSetter, // represents an implicit setter for fields. |
| 589 kImplicitStaticFinalGetter, // represents an implicit getter for static | 589 kImplicitStaticFinalGetter, // represents an implicit getter for static |
| 590 // final fields (incl. static const fields). | 590 // final fields (incl. static const fields). |
| 591 kStaticInitializer, // used in implicit static getters. | 591 kStaticInitializer, // used in implicit static getters. |
| 592 kMethodExtractor, // converts method into implicit closure on the receiver. | 592 kMethodExtractor, // converts method into implicit closure on the receiver. |
| 593 kNoSuchMethodDispatcher, // invokes noSuchMethod. | 593 kNoSuchMethodDispatcher, // invokes noSuchMethod. |
| 594 kInvokeFieldDispatcher, // invokes a field as a closure. | 594 kInvokeFieldDispatcher, // invokes a field as a closure. |
| 595 kInvokeClosureDispatcher // invokes this as a closure (implements .call) | |
| 596 }; | 595 }; |
| 597 | 596 |
| 598 private: | 597 private: |
| 599 // So that the MarkingVisitor::DetachCode can null out the code fields. | 598 // So that the MarkingVisitor::DetachCode can null out the code fields. |
| 600 friend class MarkingVisitor; | 599 friend class MarkingVisitor; |
| 601 friend class Class; | 600 friend class Class; |
| 602 RAW_HEAP_OBJECT_IMPLEMENTATION(Function); | 601 RAW_HEAP_OBJECT_IMPLEMENTATION(Function); |
| 603 static bool SkipCode(RawFunction* raw_fun); | 602 static bool SkipCode(RawFunction* raw_fun); |
| 604 | 603 |
| 605 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 604 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| (...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1779 // Make sure this is updated when new TypedData types are added. | 1778 // Make sure this is updated when new TypedData types are added. |
| 1780 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1779 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
| 1781 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); | 1780 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); |
| 1782 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1781 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
| 1783 return (kNullCid - kTypedDataInt8ArrayCid); | 1782 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1784 } | 1783 } |
| 1785 | 1784 |
| 1786 } // namespace dart | 1785 } // namespace dart |
| 1787 | 1786 |
| 1788 #endif // VM_RAW_OBJECT_H_ | 1787 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |