| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/assert.h" | 8 #include "vm/assert.h" |
| 9 #include "vm/dart.h" | 9 #include "vm/dart.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 private: | 604 private: |
| 605 void set_name(const String& value) const; | 605 void set_name(const String& value) const; |
| 606 void set_script(const Script& value) const; | 606 void set_script(const Script& value) const; |
| 607 void set_signature_function(const Function& value) const; | 607 void set_signature_function(const Function& value) const; |
| 608 void set_signature_type(const Type& value) const; | 608 void set_signature_type(const Type& value) const; |
| 609 void set_class_state(int8_t state) const; | 609 void set_class_state(int8_t state) const; |
| 610 | 610 |
| 611 void set_constants(const Array& value) const; | 611 void set_constants(const Array& value) const; |
| 612 RawArray* constants() const; | 612 RawArray* constants() const; |
| 613 | 613 |
| 614 void set_num_constants(intptr_t value) const; | |
| 615 intptr_t num_constants() const; | |
| 616 | |
| 617 void set_canonical_types(const Array& value) const; | 614 void set_canonical_types(const Array& value) const; |
| 618 RawArray* canonical_types() const; | 615 RawArray* canonical_types() const; |
| 619 | 616 |
| 620 void set_num_canonical_types(intptr_t value) const; | |
| 621 intptr_t num_canonical_types() const; | |
| 622 | |
| 623 void CalculateFieldOffsets() const; | 617 void CalculateFieldOffsets() const; |
| 624 | 618 |
| 625 // Check the subtype or assignability relationship. | 619 // Check the subtype or assignability relationship. |
| 626 bool TestType(TypeTestKind test, | 620 bool TestType(TypeTestKind test, |
| 627 const TypeArguments& type_arguments, | 621 const TypeArguments& type_arguments, |
| 628 const Class& other, | 622 const Class& other, |
| 629 const TypeArguments& other_type_arguments) const; | 623 const TypeArguments& other_type_arguments) const; |
| 630 | 624 |
| 631 // Assigns empty array to all raw class array fields. | 625 // Assigns empty array to all raw class array fields. |
| 632 void InitEmptyFields(); | 626 void InitEmptyFields(); |
| (...skipping 2356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2989 } | 2983 } |
| 2990 | 2984 |
| 2991 | 2985 |
| 2992 void Context::SetAt(intptr_t index, const Instance& value) const { | 2986 void Context::SetAt(intptr_t index, const Instance& value) const { |
| 2993 StorePointer(InstanceAddr(index), value.raw()); | 2987 StorePointer(InstanceAddr(index), value.raw()); |
| 2994 } | 2988 } |
| 2995 | 2989 |
| 2996 } // namespace dart | 2990 } // namespace dart |
| 2997 | 2991 |
| 2998 #endif // VM_OBJECT_H_ | 2992 #endif // VM_OBJECT_H_ |
| OLD | NEW |