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

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

Issue 1190143003: Fix for issue 23647 (https://github.com/dart-lang/sdk/issues/23647) (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address self review comments Created 5 years, 6 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
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | runtime/vm/snapshot.cc » ('J')
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/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 } 549 }
550 550
551 #if defined(DEBUG) 551 #if defined(DEBUG)
552 static void ValidateOverwrittenPointer(RawObject* raw); 552 static void ValidateOverwrittenPointer(RawObject* raw);
553 static void ValidateOverwrittenSmi(RawSmi* raw); 553 static void ValidateOverwrittenSmi(RawSmi* raw);
554 #endif // DEBUG 554 #endif // DEBUG
555 555
556 friend class Api; 556 friend class Api;
557 friend class ApiMessageReader; // GetClassId 557 friend class ApiMessageReader; // GetClassId
558 friend class Array; 558 friend class Array;
559 friend class Bigint;
559 friend class ByteBuffer; 560 friend class ByteBuffer;
560 friend class Code; 561 friend class Code;
561 friend class Closure; 562 friend class Closure;
563 friend class Double;
562 friend class FreeListElement; 564 friend class FreeListElement;
563 friend class Function; 565 friend class Function;
564 friend class GCMarker; 566 friend class GCMarker;
565 friend class ExternalTypedData; 567 friend class ExternalTypedData;
566 friend class ForwardList; 568 friend class ForwardList;
567 friend class GrowableObjectArray; // StorePointer 569 friend class GrowableObjectArray; // StorePointer
568 friend class Heap; 570 friend class Heap;
569 friend class HeapMapAsJSONVisitor; 571 friend class HeapMapAsJSONVisitor;
570 friend class ClassStatsVisitor; 572 friend class ClassStatsVisitor;
571 friend class MarkingVisitor; 573 friend class MarkingVisitor;
574 friend class Mint;
572 friend class Object; 575 friend class Object;
573 friend class OneByteString; // StoreSmi 576 friend class OneByteString; // StoreSmi
574 friend class RawExternalTypedData; 577 friend class RawExternalTypedData;
575 friend class RawInstructions; 578 friend class RawInstructions;
576 friend class RawInstance; 579 friend class RawInstance;
577 friend class RawTypedData; 580 friend class RawTypedData;
578 friend class Scavenger; 581 friend class Scavenger;
579 friend class ScavengerVisitor; 582 friend class ScavengerVisitor;
580 friend class SizeExcludingClassVisitor; // GetClassId 583 friend class SizeExcludingClassVisitor; // GetClassId
581 friend class SnapshotReader; 584 friend class SnapshotReader;
(...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after
2179 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2182 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2180 kTypedDataInt8ArrayViewCid + 15); 2183 kTypedDataInt8ArrayViewCid + 15);
2181 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2184 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2182 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2185 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2183 return (kNullCid - kTypedDataInt8ArrayCid); 2186 return (kNullCid - kTypedDataInt8ArrayCid);
2184 } 2187 }
2185 2188
2186 } // namespace dart 2189 } // namespace dart
2187 2190
2188 #endif // VM_RAW_OBJECT_H_ 2191 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | runtime/vm/snapshot.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698