| 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 return reinterpret_cast<RawObject**>(&ptr()->exception_); | 583 return reinterpret_cast<RawObject**>(&ptr()->exception_); |
| 583 } | 584 } |
| 584 RawInstance* exception_; | 585 RawInstance* exception_; |
| 585 RawInstance* stacktrace_; | 586 RawInstance* stacktrace_; |
| 586 RawObject** to() { | 587 RawObject** to() { |
| 587 return reinterpret_cast<RawObject**>(&ptr()->stacktrace_); | 588 return reinterpret_cast<RawObject**>(&ptr()->stacktrace_); |
| 588 } | 589 } |
| 589 }; | 590 }; |
| 590 | 591 |
| 591 | 592 |
| 593 class RawApiFailure : public RawObject { |
| 594 RAW_HEAP_OBJECT_IMPLEMENTATION(ApiFailure); |
| 595 |
| 596 RawObject** from() { |
| 597 return reinterpret_cast<RawObject**>(&ptr()->message_); |
| 598 } |
| 599 RawString* message_; |
| 600 RawObject** to() { |
| 601 return reinterpret_cast<RawObject**>(&ptr()->message_); |
| 602 } |
| 603 }; |
| 604 |
| 605 |
| 592 class RawInstance : public RawObject { | 606 class RawInstance : public RawObject { |
| 593 RAW_HEAP_OBJECT_IMPLEMENTATION(Instance); | 607 RAW_HEAP_OBJECT_IMPLEMENTATION(Instance); |
| 594 }; | 608 }; |
| 595 | 609 |
| 596 | 610 |
| 597 class RawNumber : public RawInstance { | 611 class RawNumber : public RawInstance { |
| 598 RAW_OBJECT_IMPLEMENTATION(Number); | 612 RAW_OBJECT_IMPLEMENTATION(Number); |
| 599 }; | 613 }; |
| 600 | 614 |
| 601 | 615 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 intptr_t type_; // Uninitialized, simple or complex. | 768 intptr_t type_; // Uninitialized, simple or complex. |
| 755 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 769 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 756 | 770 |
| 757 // Variable length data follows here. | 771 // Variable length data follows here. |
| 758 uint8_t data_[0]; | 772 uint8_t data_[0]; |
| 759 }; | 773 }; |
| 760 | 774 |
| 761 } // namespace dart | 775 } // namespace dart |
| 762 | 776 |
| 763 #endif // VM_RAW_OBJECT_H_ | 777 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |