Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: runtime/vm/snapshot.h

Issue 9363023: Add support for big integers to the native message format (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from asiva@ Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 // Writes a message of integers. 478 // Writes a message of integers.
479 void WriteMessage(intptr_t field_count, intptr_t *data); 479 void WriteMessage(intptr_t field_count, intptr_t *data);
480 480
481 void WriteCMessage(Dart_CObject* object); 481 void WriteCMessage(Dart_CObject* object);
482 482
483 void FinalizeBuffer() { 483 void FinalizeBuffer() {
484 BaseWriter::FinalizeBuffer(Snapshot::kMessage); 484 BaseWriter::FinalizeBuffer(Snapshot::kMessage);
485 } 485 }
486 486
487 private: 487 private:
488 static const intptr_t kDartCObjectTypeBits = 3; 488 static const intptr_t kDartCObjectTypeBits = 4;
489 static const intptr_t kDartCObjectTypeMask = (1 << kDartCObjectTypeBits) - 1; 489 static const intptr_t kDartCObjectTypeMask = (1 << kDartCObjectTypeBits) - 1;
490 static const intptr_t kDartCObjectMarkMask = ~kDartCObjectTypeMask; 490 static const intptr_t kDartCObjectMarkMask = ~kDartCObjectTypeMask;
491 static const intptr_t kDartCObjectMarkOffset = 1; 491 static const intptr_t kDartCObjectMarkOffset = 1;
492 492
493 void MarkCObject(Dart_CObject* object, intptr_t object_id); 493 void MarkCObject(Dart_CObject* object, intptr_t object_id);
494 void UnmarkCObject(Dart_CObject* object); 494 void UnmarkCObject(Dart_CObject* object);
495 bool IsCObjectMarked(Dart_CObject* object); 495 bool IsCObjectMarked(Dart_CObject* object);
496 intptr_t GetMarkedCObjectMark(Dart_CObject* object); 496 intptr_t GetMarkedCObjectMark(Dart_CObject* object);
497 void UnmarkAllCObjects(Dart_CObject* object); 497 void UnmarkAllCObjects(Dart_CObject* object);
498 498
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 596
597 private: 597 private:
598 SnapshotWriter* writer_; 598 SnapshotWriter* writer_;
599 599
600 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 600 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
601 }; 601 };
602 602
603 } // namespace dart 603 } // namespace dart
604 604
605 #endif // VM_SNAPSHOT_H_ 605 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698