| 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_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 "vm/assert.h" | 8 #include "vm/assert.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/snapshot.h" | 10 #include "vm/snapshot.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 V(Number) \ | 42 V(Number) \ |
| 43 V(Integer) \ | 43 V(Integer) \ |
| 44 V(Smi) \ | 44 V(Smi) \ |
| 45 V(Mint) \ | 45 V(Mint) \ |
| 46 V(Bigint) \ | 46 V(Bigint) \ |
| 47 V(Double) \ | 47 V(Double) \ |
| 48 V(String) \ | 48 V(String) \ |
| 49 V(OneByteString) \ | 49 V(OneByteString) \ |
| 50 V(TwoByteString) \ | 50 V(TwoByteString) \ |
| 51 V(FourByteString) \ | 51 V(FourByteString) \ |
| 52 V(ExternalOneByteString) \ |
| 53 V(ExternalTwoByteString) \ |
| 54 V(ExternalFourByteString) \ |
| 52 V(Bool) \ | 55 V(Bool) \ |
| 53 V(Array) \ | 56 V(Array) \ |
| 54 V(ImmutableArray) \ | 57 V(ImmutableArray) \ |
| 55 V(Closure) \ | 58 V(Closure) \ |
| 56 V(Stacktrace) \ | 59 V(Stacktrace) \ |
| 57 V(JSRegExp) \ | 60 V(JSRegExp) \ |
| 58 | 61 |
| 59 #define CLASS_LIST(V) \ | 62 #define CLASS_LIST(V) \ |
| 60 V(Object) \ | 63 V(Object) \ |
| 61 CLASS_LIST_NO_OBJECT(V) | 64 CLASS_LIST_NO_OBJECT(V) |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 | 683 |
| 681 | 684 |
| 682 class RawFourByteString : public RawString { | 685 class RawFourByteString : public RawString { |
| 683 RAW_HEAP_OBJECT_IMPLEMENTATION(FourByteString); | 686 RAW_HEAP_OBJECT_IMPLEMENTATION(FourByteString); |
| 684 | 687 |
| 685 // Variable length data follows here. | 688 // Variable length data follows here. |
| 686 uint32_t data_[0]; | 689 uint32_t data_[0]; |
| 687 }; | 690 }; |
| 688 | 691 |
| 689 | 692 |
| 693 class RawExternalOneByteString : public RawString { |
| 694 RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalOneByteString); |
| 695 |
| 696 uint8_t* data_; |
| 697 void* peer_; |
| 698 }; |
| 699 |
| 700 |
| 701 class RawExternalTwoByteString : public RawString { |
| 702 RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalTwoByteString); |
| 703 |
| 704 uint16_t* data_; |
| 705 void* peer_; |
| 706 }; |
| 707 |
| 708 |
| 709 class RawExternalFourByteString : public RawString { |
| 710 RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalFourByteString); |
| 711 |
| 712 uint32_t* data_; |
| 713 void* peer_; |
| 714 }; |
| 715 |
| 716 |
| 690 class RawBool : public RawInstance { | 717 class RawBool : public RawInstance { |
| 691 RAW_HEAP_OBJECT_IMPLEMENTATION(Bool); | 718 RAW_HEAP_OBJECT_IMPLEMENTATION(Bool); |
| 692 | 719 |
| 693 bool value_; | 720 bool value_; |
| 694 }; | 721 }; |
| 695 | 722 |
| 696 | 723 |
| 697 class RawArray : public RawInstance { | 724 class RawArray : public RawInstance { |
| 698 RAW_HEAP_OBJECT_IMPLEMENTATION(Array); | 725 RAW_HEAP_OBJECT_IMPLEMENTATION(Array); |
| 699 | 726 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 intptr_t type_; // Uninitialized, simple or complex. | 798 intptr_t type_; // Uninitialized, simple or complex. |
| 772 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 799 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 773 | 800 |
| 774 // Variable length data follows here. | 801 // Variable length data follows here. |
| 775 uint8_t data_[0]; | 802 uint8_t data_[0]; |
| 776 }; | 803 }; |
| 777 | 804 |
| 778 } // namespace dart | 805 } // namespace dart |
| 779 | 806 |
| 780 #endif // VM_RAW_OBJECT_H_ | 807 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |