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_SNAPSHOT_H_ | 5 #ifndef VM_SNAPSHOT_H_ |
6 #define VM_SNAPSHOT_H_ | 6 #define VM_SNAPSHOT_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
10 #include "vm/bitfield.h" | 10 #include "vm/bitfield.h" |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 static const intptr_t kDartCObjectTypeMask = (1 << kDartCObjectTypeBits) - 1; | 503 static const intptr_t kDartCObjectTypeMask = (1 << kDartCObjectTypeBits) - 1; |
504 static const intptr_t kDartCObjectMarkMask = ~kDartCObjectTypeMask; | 504 static const intptr_t kDartCObjectMarkMask = ~kDartCObjectTypeMask; |
505 static const intptr_t kDartCObjectMarkOffset = 1; | 505 static const intptr_t kDartCObjectMarkOffset = 1; |
506 | 506 |
507 void MarkCObject(Dart_CObject* object, intptr_t object_id); | 507 void MarkCObject(Dart_CObject* object, intptr_t object_id); |
508 void UnmarkCObject(Dart_CObject* object); | 508 void UnmarkCObject(Dart_CObject* object); |
509 bool IsCObjectMarked(Dart_CObject* object); | 509 bool IsCObjectMarked(Dart_CObject* object); |
510 intptr_t GetMarkedCObjectMark(Dart_CObject* object); | 510 intptr_t GetMarkedCObjectMark(Dart_CObject* object); |
511 void UnmarkAllCObjects(Dart_CObject* object); | 511 void UnmarkAllCObjects(Dart_CObject* object); |
512 | 512 |
513 void WriteSmi(int32_t value); | 513 void WriteSmi(int64_t value); |
| 514 void WriteInteger(Dart_CObject* object); |
514 void WriteInlinedHeader(Dart_CObject* object); | 515 void WriteInlinedHeader(Dart_CObject* object); |
515 void WriteCObject(Dart_CObject* object); | 516 void WriteCObject(Dart_CObject* object); |
516 | 517 |
517 intptr_t object_id_; | 518 intptr_t object_id_; |
518 | 519 |
519 DISALLOW_COPY_AND_ASSIGN(MessageWriter); | 520 DISALLOW_COPY_AND_ASSIGN(MessageWriter); |
520 }; | 521 }; |
521 | 522 |
522 | 523 |
523 class SnapshotWriter : public BaseWriter { | 524 class SnapshotWriter : public BaseWriter { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 | 608 |
608 private: | 609 private: |
609 SnapshotWriter* writer_; | 610 SnapshotWriter* writer_; |
610 | 611 |
611 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); | 612 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); |
612 }; | 613 }; |
613 | 614 |
614 } // namespace dart | 615 } // namespace dart |
615 | 616 |
616 #endif // VM_SNAPSHOT_H_ | 617 #endif // VM_SNAPSHOT_H_ |
OLD | NEW |