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

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

Issue 383063005: Refactor snapshot writer's forward list into a reusable class. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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 | « no previous file | runtime/vm/snapshot.h » ('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_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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 uword tags = ptr()->tags_; 448 uword tags = ptr()->tags_;
449 return ClassIdTag::decode(tags); 449 return ClassIdTag::decode(tags);
450 } 450 }
451 451
452 friend class Api; 452 friend class Api;
453 friend class Array; 453 friend class Array;
454 friend class Code; 454 friend class Code;
455 friend class FreeListElement; 455 friend class FreeListElement;
456 friend class GCMarker; 456 friend class GCMarker;
457 friend class ExternalTypedData; 457 friend class ExternalTypedData;
458 friend class ForwardList;
458 friend class Heap; 459 friend class Heap;
459 friend class HeapMapAsJSONVisitor; 460 friend class HeapMapAsJSONVisitor;
460 friend class ClassStatsVisitor; 461 friend class ClassStatsVisitor;
461 friend class MarkingVisitor; 462 friend class MarkingVisitor;
462 friend class Object; 463 friend class Object;
463 friend class RawExternalTypedData; 464 friend class RawExternalTypedData;
464 friend class RawInstructions; 465 friend class RawInstructions;
465 friend class RawInstance; 466 friend class RawInstance;
466 friend class RawTypedData; 467 friend class RawTypedData;
467 friend class Scavenger; 468 friend class Scavenger;
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1898 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1898 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 1899 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
1899 kTypedDataInt8ArrayViewCid + 15); 1900 kTypedDataInt8ArrayViewCid + 15);
1900 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1901 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1901 return (kNullCid - kTypedDataInt8ArrayCid); 1902 return (kNullCid - kTypedDataInt8ArrayCid);
1902 } 1903 }
1903 1904
1904 } // namespace dart 1905 } // namespace dart
1905 1906
1906 #endif // VM_RAW_OBJECT_H_ 1907 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698