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

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

Issue 15995034: - Remove the unvisited handles code from handles implementation as it is not (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/handles_impl.h ('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/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 ptr()->tags_ = RememberedBit::update(true, tags); 340 ptr()->tags_ = RememberedBit::update(true, tags);
341 } 341 }
342 void ClearRememberedBit() { 342 void ClearRememberedBit() {
343 uword tags = ptr()->tags_; 343 uword tags = ptr()->tags_;
344 ptr()->tags_ = RememberedBit::update(false, tags); 344 ptr()->tags_ = RememberedBit::update(false, tags);
345 } 345 }
346 346
347 bool IsDartInstance() { 347 bool IsDartInstance() {
348 return (!IsHeapObject() || (GetClassId() >= kInstanceCid)); 348 return (!IsHeapObject() || (GetClassId() >= kInstanceCid));
349 } 349 }
350 bool IsFreeListElement() {
351 return ((GetClassId() == kFreeListElement));
352 }
350 353
351 intptr_t Size() const { 354 intptr_t Size() const {
352 uword tags = ptr()->tags_; 355 uword tags = ptr()->tags_;
353 intptr_t result = SizeTag::decode(tags); 356 intptr_t result = SizeTag::decode(tags);
354 if (result != 0) { 357 if (result != 0) {
355 ASSERT(result == SizeFromClass()); 358 ASSERT(result == SizeFromClass());
356 return result; 359 return result;
357 } 360 }
358 result = SizeFromClass(); 361 result = SizeFromClass();
359 ASSERT(result > SizeTag::kMaxSizeTag); 362 ASSERT(result > SizeTag::kMaxSizeTag);
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1681 // Make sure this is updated when new TypedData types are added. 1684 // Make sure this is updated when new TypedData types are added.
1682 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); 1685 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12);
1683 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); 1686 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13);
1684 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); 1687 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12);
1685 return (kNullCid - kTypedDataInt8ArrayCid); 1688 return (kNullCid - kTypedDataInt8ArrayCid);
1686 } 1689 }
1687 1690
1688 } // namespace dart 1691 } // namespace dart
1689 1692
1690 #endif // VM_RAW_OBJECT_H_ 1693 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/handles_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698