| 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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 | 653 |
| 654 // Variable length data follows here. | 654 // Variable length data follows here. |
| 655 intptr_t data_[0]; | 655 intptr_t data_[0]; |
| 656 }; | 656 }; |
| 657 | 657 |
| 658 | 658 |
| 659 class RawLocalVarDescriptors : public RawObject { | 659 class RawLocalVarDescriptors : public RawObject { |
| 660 RAW_HEAP_OBJECT_IMPLEMENTATION(LocalVarDescriptors); | 660 RAW_HEAP_OBJECT_IMPLEMENTATION(LocalVarDescriptors); |
| 661 | 661 |
| 662 struct VarInfo { | 662 struct VarInfo { |
| 663 intptr_t index; // Slot index on stack. | 663 intptr_t index; // Slot index on stack or in context. |
| 664 intptr_t scope_id; // Scope to which the variable belongs. |
| 664 intptr_t begin_pos; // Token position of scope start. | 665 intptr_t begin_pos; // Token position of scope start. |
| 665 intptr_t end_pos; // Token position of scope end. | 666 intptr_t end_pos; // Token position of scope end. |
| 666 }; | 667 }; |
| 667 | 668 |
| 668 intptr_t length_; // Number of descriptors. | 669 intptr_t length_; // Number of descriptors. |
| 669 RawArray* names_; // Array of [length_] variable names. | 670 RawArray* names_; // Array of [length_] variable names. |
| 670 | 671 |
| 671 VarInfo data_[0]; // Variable info with [length_] entries. | 672 VarInfo data_[0]; // Variable info with [length_] entries. |
| 672 }; | 673 }; |
| 673 | 674 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 intptr_t type_; // Uninitialized, simple or complex. | 962 intptr_t type_; // Uninitialized, simple or complex. |
| 962 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 963 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 963 | 964 |
| 964 // Variable length data follows here. | 965 // Variable length data follows here. |
| 965 uint8_t data_[0]; | 966 uint8_t data_[0]; |
| 966 }; | 967 }; |
| 967 | 968 |
| 968 } // namespace dart | 969 } // namespace dart |
| 969 | 970 |
| 970 #endif // VM_RAW_OBJECT_H_ | 971 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |