| 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 19 matching lines...) Expand all Loading... |
| 30 V(Script) \ | 30 V(Script) \ |
| 31 V(Library) \ | 31 V(Library) \ |
| 32 V(LibraryPrefix) \ | 32 V(LibraryPrefix) \ |
| 33 V(Code) \ | 33 V(Code) \ |
| 34 V(Instructions) \ | 34 V(Instructions) \ |
| 35 V(PcDescriptors) \ | 35 V(PcDescriptors) \ |
| 36 V(ExceptionHandlers) \ | 36 V(ExceptionHandlers) \ |
| 37 V(Context) \ | 37 V(Context) \ |
| 38 V(ContextScope) \ | 38 V(ContextScope) \ |
| 39 V(UnhandledException) \ | 39 V(UnhandledException) \ |
| 40 V(ApiFailure) \ |
| 40 V(Instance) \ | 41 V(Instance) \ |
| 41 V(Number) \ | 42 V(Number) \ |
| 42 V(Integer) \ | 43 V(Integer) \ |
| 43 V(Smi) \ | 44 V(Smi) \ |
| 44 V(Mint) \ | 45 V(Mint) \ |
| 45 V(Bigint) \ | 46 V(Bigint) \ |
| 46 V(Double) \ | 47 V(Double) \ |
| 47 V(String) \ | 48 V(String) \ |
| 48 V(OneByteString) \ | 49 V(OneByteString) \ |
| 49 V(TwoByteString) \ | 50 V(TwoByteString) \ |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 return reinterpret_cast<RawObject**>(&ptr()->exception_); | 582 return reinterpret_cast<RawObject**>(&ptr()->exception_); |
| 582 } | 583 } |
| 583 RawInstance* exception_; | 584 RawInstance* exception_; |
| 584 RawInstance* stacktrace_; | 585 RawInstance* stacktrace_; |
| 585 RawObject** to() { | 586 RawObject** to() { |
| 586 return reinterpret_cast<RawObject**>(&ptr()->stacktrace_); | 587 return reinterpret_cast<RawObject**>(&ptr()->stacktrace_); |
| 587 } | 588 } |
| 588 }; | 589 }; |
| 589 | 590 |
| 590 | 591 |
| 592 class RawApiFailure : public RawObject { |
| 593 RAW_HEAP_OBJECT_IMPLEMENTATION(ApiFailure); |
| 594 |
| 595 RawObject** from() { |
| 596 return reinterpret_cast<RawObject**>(&ptr()->message_); |
| 597 } |
| 598 RawString* message_; |
| 599 RawObject** to() { |
| 600 return reinterpret_cast<RawObject**>(&ptr()->message_); |
| 601 } |
| 602 }; |
| 603 |
| 604 |
| 591 class RawInstance : public RawObject { | 605 class RawInstance : public RawObject { |
| 592 RAW_HEAP_OBJECT_IMPLEMENTATION(Instance); | 606 RAW_HEAP_OBJECT_IMPLEMENTATION(Instance); |
| 593 }; | 607 }; |
| 594 | 608 |
| 595 | 609 |
| 596 class RawNumber : public RawInstance { | 610 class RawNumber : public RawInstance { |
| 597 RAW_OBJECT_IMPLEMENTATION(Number); | 611 RAW_OBJECT_IMPLEMENTATION(Number); |
| 598 }; | 612 }; |
| 599 | 613 |
| 600 | 614 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 intptr_t type_; // Uninitialized, simple or complex. | 767 intptr_t type_; // Uninitialized, simple or complex. |
| 754 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 768 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 755 | 769 |
| 756 // Variable length data follows here. | 770 // Variable length data follows here. |
| 757 uint8_t data_[0]; | 771 uint8_t data_[0]; |
| 758 }; | 772 }; |
| 759 | 773 |
| 760 } // namespace dart | 774 } // namespace dart |
| 761 | 775 |
| 762 #endif // VM_RAW_OBJECT_H_ | 776 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |