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

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

Issue 1151013005: Serialize maps without hashes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: _getIndexSize and name constant 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 | « runtime/vm/object.cc ('k') | runtime/vm/raw_object_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_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 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 RawObject* const* data() const { OPEN_ARRAY_START(RawObject*, RawObject*); } 1654 RawObject* const* data() const { OPEN_ARRAY_START(RawObject*, RawObject*); }
1655 RawObject** to(intptr_t length) { 1655 RawObject** to(intptr_t length) {
1656 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); 1656 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]);
1657 } 1657 }
1658 1658
1659 friend class RawCode; 1659 friend class RawCode;
1660 friend class RawImmutableArray; 1660 friend class RawImmutableArray;
1661 friend class SnapshotReader; 1661 friend class SnapshotReader;
1662 friend class GrowableObjectArray; 1662 friend class GrowableObjectArray;
1663 friend class LinkedHashMap; 1663 friend class LinkedHashMap;
1664 friend class RawLinkedHashMap;
1664 friend class Object; 1665 friend class Object;
1665 friend class ICData; // For high performance access. 1666 friend class ICData; // For high performance access.
1666 friend class SubtypeTestCache; // For high performance access. 1667 friend class SubtypeTestCache; // For high performance access.
1667 }; 1668 };
1668 1669
1669 1670
1670 class RawImmutableArray : public RawArray { 1671 class RawImmutableArray : public RawArray {
1671 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); 1672 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray);
1672 1673
1673 friend class SnapshotReader; 1674 friend class SnapshotReader;
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
2136 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2137 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2137 kTypedDataInt8ArrayViewCid + 15); 2138 kTypedDataInt8ArrayViewCid + 15);
2138 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2139 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2139 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2140 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2140 return (kNullCid - kTypedDataInt8ArrayCid); 2141 return (kNullCid - kTypedDataInt8ArrayCid);
2141 } 2142 }
2142 2143
2143 } // namespace dart 2144 } // namespace dart
2144 2145
2145 #endif // VM_RAW_OBJECT_H_ 2146 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698