| 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/token.h" | 10 #include "vm/token.h" |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 | 734 |
| 735 // Variable length data follows here. | 735 // Variable length data follows here. |
| 736 uint8_t data_[0]; | 736 uint8_t data_[0]; |
| 737 | 737 |
| 738 // Private helper function used while visiting stack frames. The | 738 // Private helper function used while visiting stack frames. The |
| 739 // code which iterates over dart frames is also called during GC and | 739 // code which iterates over dart frames is also called during GC and |
| 740 // is not allowed to create handles. | 740 // is not allowed to create handles. |
| 741 static bool ContainsPC(RawObject* raw_obj, uword pc); | 741 static bool ContainsPC(RawObject* raw_obj, uword pc); |
| 742 | 742 |
| 743 friend class RawCode; | 743 friend class RawCode; |
| 744 friend class Code; |
| 744 friend class StackFrame; | 745 friend class StackFrame; |
| 745 }; | 746 }; |
| 746 | 747 |
| 747 | 748 |
| 748 class RawPcDescriptors : public RawObject { | 749 class RawPcDescriptors : public RawObject { |
| 749 RAW_HEAP_OBJECT_IMPLEMENTATION(PcDescriptors); | 750 RAW_HEAP_OBJECT_IMPLEMENTATION(PcDescriptors); |
| 750 | 751 |
| 751 RawSmi* length_; // Number of descriptors. | 752 RawSmi* length_; // Number of descriptors. |
| 752 | 753 |
| 753 // Variable length data follows here. | 754 // Variable length data follows here. |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1494 kExternalUint64Array == kByteArray + 18 && | 1495 kExternalUint64Array == kByteArray + 18 && |
| 1495 kExternalFloat32Array == kByteArray + 19 && | 1496 kExternalFloat32Array == kByteArray + 19 && |
| 1496 kExternalFloat64Array == kByteArray + 20 && | 1497 kExternalFloat64Array == kByteArray + 20 && |
| 1497 kClosure == kByteArray + 21); | 1498 kClosure == kByteArray + 21); |
| 1498 return (index >= kByteArray && index <= kClosure); | 1499 return (index >= kByteArray && index <= kClosure); |
| 1499 } | 1500 } |
| 1500 | 1501 |
| 1501 } // namespace dart | 1502 } // namespace dart |
| 1502 | 1503 |
| 1503 #endif // VM_RAW_OBJECT_H_ | 1504 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |