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

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

Issue 1075493003: Remove zapping of registers that has not turned up any GC bugs in a long time. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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/intermediate_language_x64.cc ('k') | no next file » | 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 }; 178 };
179 179
180 enum { 180 enum {
181 kSmiTag = 0, 181 kSmiTag = 0,
182 kHeapObjectTag = 1, 182 kHeapObjectTag = 1,
183 kSmiTagSize = 1, 183 kSmiTagSize = 1,
184 kSmiTagMask = 1, 184 kSmiTagMask = 1,
185 kSmiTagShift = 1, 185 kSmiTagShift = 1,
186 }; 186 };
187 187
188 enum {
189 kInvalidObjectPointer = kHeapObjectTag,
190 };
191
192 enum TypedDataElementType { 188 enum TypedDataElementType {
193 #define V(name) k##name##Element, 189 #define V(name) k##name##Element,
194 CLASS_LIST_TYPED_DATA(V) 190 CLASS_LIST_TYPED_DATA(V)
195 #undef V 191 #undef V
196 }; 192 };
197 193
198 #define SNAPSHOT_WRITER_SUPPORT() \ 194 #define SNAPSHOT_WRITER_SUPPORT() \
199 void WriteTo( \ 195 void WriteTo( \
200 SnapshotWriter* writer, intptr_t object_id, Snapshot::Kind kind); \ 196 SnapshotWriter* writer, intptr_t object_id, Snapshot::Kind kind); \
201 friend class SnapshotWriter; \ 197 friend class SnapshotWriter; \
(...skipping 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after
2161 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2157 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2162 kTypedDataInt8ArrayViewCid + 15); 2158 kTypedDataInt8ArrayViewCid + 15);
2163 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2159 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2164 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2160 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2165 return (kNullCid - kTypedDataInt8ArrayCid); 2161 return (kNullCid - kTypedDataInt8ArrayCid);
2166 } 2162 }
2167 2163
2168 } // namespace dart 2164 } // namespace dart
2169 2165
2170 #endif // VM_RAW_OBJECT_H_ 2166 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698