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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 kRegularFunction, | 602 kRegularFunction, |
603 kClosureFunction, | 603 kClosureFunction, |
604 kSignatureFunction, // represents a signature only without actual code. | 604 kSignatureFunction, // represents a signature only without actual code. |
605 kGetterFunction, // represents getter functions e.g: get foo() { .. }. | 605 kGetterFunction, // represents getter functions e.g: get foo() { .. }. |
606 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }. | 606 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }. |
607 kConstructor, | 607 kConstructor, |
608 kImplicitGetter, // represents an implicit getter for fields. | 608 kImplicitGetter, // represents an implicit getter for fields. |
609 kImplicitSetter, // represents an implicit setter for fields. | 609 kImplicitSetter, // represents an implicit setter for fields. |
610 kImplicitStaticFinalGetter, // represents an implicit getter for static | 610 kImplicitStaticFinalGetter, // represents an implicit getter for static |
611 // final fields (incl. static const fields). | 611 // final fields (incl. static const fields). |
612 kStaticInitializer, // used in implicit static getters. | |
613 kMethodExtractor, // converts method into implicit closure on the receiver. | 612 kMethodExtractor, // converts method into implicit closure on the receiver. |
614 kNoSuchMethodDispatcher, // invokes noSuchMethod. | 613 kNoSuchMethodDispatcher, // invokes noSuchMethod. |
615 kInvokeFieldDispatcher, // invokes a field as a closure. | 614 kInvokeFieldDispatcher, // invokes a field as a closure. |
616 }; | 615 }; |
617 | 616 |
618 enum AsyncModifier { | 617 enum AsyncModifier { |
619 kNoModifier, | 618 kNoModifier, |
620 kAsync, | 619 kAsync, |
621 }; | 620 }; |
622 | 621 |
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1985 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 1984 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
1986 kTypedDataInt8ArrayViewCid + 15); | 1985 kTypedDataInt8ArrayViewCid + 15); |
1987 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 1986 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
1988 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 1987 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
1989 return (kNullCid - kTypedDataInt8ArrayCid); | 1988 return (kNullCid - kTypedDataInt8ArrayCid); |
1990 } | 1989 } |
1991 | 1990 |
1992 } // namespace dart | 1991 } // namespace dart |
1993 | 1992 |
1994 #endif // VM_RAW_OBJECT_H_ | 1993 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |