| 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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }. | 600 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }. |
| 601 kConstructor, | 601 kConstructor, |
| 602 kImplicitGetter, // represents an implicit getter for fields. | 602 kImplicitGetter, // represents an implicit getter for fields. |
| 603 kImplicitSetter, // represents an implicit setter for fields. | 603 kImplicitSetter, // represents an implicit setter for fields. |
| 604 kImplicitStaticFinalGetter, // represents an implicit getter for static | 604 kImplicitStaticFinalGetter, // represents an implicit getter for static |
| 605 // final fields (incl. static const fields). | 605 // final fields (incl. static const fields). |
| 606 kStaticInitializer, // used in implicit static getters. | 606 kStaticInitializer, // used in implicit static getters. |
| 607 kMethodExtractor, // converts method into implicit closure on the receiver. | 607 kMethodExtractor, // converts method into implicit closure on the receiver. |
| 608 kNoSuchMethodDispatcher, // invokes noSuchMethod. | 608 kNoSuchMethodDispatcher, // invokes noSuchMethod. |
| 609 kInvokeFieldDispatcher, // invokes a field as a closure. | 609 kInvokeFieldDispatcher, // invokes a field as a closure. |
| 610 kEvalFunction, |
| 610 }; | 611 }; |
| 611 | 612 |
| 612 private: | 613 private: |
| 613 // So that the MarkingVisitor::DetachCode can null out the code fields. | 614 // So that the MarkingVisitor::DetachCode can null out the code fields. |
| 614 friend class MarkingVisitor; | 615 friend class MarkingVisitor; |
| 615 friend class Class; | 616 friend class Class; |
| 616 RAW_HEAP_OBJECT_IMPLEMENTATION(Function); | 617 RAW_HEAP_OBJECT_IMPLEMENTATION(Function); |
| 617 static bool SkipCode(RawFunction* raw_fun); | 618 static bool SkipCode(RawFunction* raw_fun); |
| 618 | 619 |
| 619 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 620 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| (...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1896 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1897 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
| 1897 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 1898 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 1898 kTypedDataInt8ArrayViewCid + 15); | 1899 kTypedDataInt8ArrayViewCid + 15); |
| 1899 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1900 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
| 1900 return (kNullCid - kTypedDataInt8ArrayCid); | 1901 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1901 } | 1902 } |
| 1902 | 1903 |
| 1903 } // namespace dart | 1904 } // namespace dart |
| 1904 | 1905 |
| 1905 #endif // VM_RAW_OBJECT_H_ | 1906 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |