| 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/snapshot.h" | 10 #include "vm/snapshot.h" |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 | 609 |
| 610 friend class Isolate; | 610 friend class Isolate; |
| 611 }; | 611 }; |
| 612 | 612 |
| 613 | 613 |
| 614 class RawLibraryPrefix : public RawObject { | 614 class RawLibraryPrefix : public RawObject { |
| 615 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); | 615 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); |
| 616 | 616 |
| 617 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 617 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| 618 RawString* name_; // library prefix name. | 618 RawString* name_; // library prefix name. |
| 619 RawLibrary* library_; // library imported with a prefix. | 619 RawArray* libraries_; // libraries imported with this prefix. |
| 620 RawObject** to() { | 620 RawObject** to() { |
| 621 return reinterpret_cast<RawObject**>(&ptr()->library_); | 621 return reinterpret_cast<RawObject**>(&ptr()->libraries_); |
| 622 } | 622 } |
| 623 intptr_t num_libs_; // Number of library entries in libraries_. |
| 623 }; | 624 }; |
| 624 | 625 |
| 625 | 626 |
| 626 class RawCode : public RawObject { | 627 class RawCode : public RawObject { |
| 627 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); | 628 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); |
| 628 | 629 |
| 629 RawObject** from() { | 630 RawObject** from() { |
| 630 return reinterpret_cast<RawObject**>(&ptr()->instructions_); | 631 return reinterpret_cast<RawObject**>(&ptr()->instructions_); |
| 631 } | 632 } |
| 632 RawInstructions* instructions_; | 633 RawInstructions* instructions_; |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 intptr_t type_; // Uninitialized, simple or complex. | 1079 intptr_t type_; // Uninitialized, simple or complex. |
| 1079 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 1080 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 1080 | 1081 |
| 1081 // Variable length data follows here. | 1082 // Variable length data follows here. |
| 1082 uint8_t data_[0]; | 1083 uint8_t data_[0]; |
| 1083 }; | 1084 }; |
| 1084 | 1085 |
| 1085 } // namespace dart | 1086 } // namespace dart |
| 1086 | 1087 |
| 1087 #endif // VM_RAW_OBJECT_H_ | 1088 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |