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

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

Issue 392353002: Address comment by asiva. (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 | 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 #include "vm/raw_object.h" 5 #include "vm/raw_object.h"
6 6
7 #include "vm/class_table.h" 7 #include "vm/class_table.h"
8 #include "vm/dart.h" 8 #include "vm/dart.h"
9 #include "vm/freelist.h" 9 #include "vm/freelist.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
11 #include "vm/object.h" 11 #include "vm/object.h"
12 #include "vm/visitor.h" 12 #include "vm/visitor.h"
13 13
14 14
15 namespace dart { 15 namespace dart {
16 16
17 17
18 const intptr_t RawPcDescriptors::kFullRecSize = sizeof(PcDescriptorRec); 18 const intptr_t RawPcDescriptors::kFullRecSize =
19 sizeof(RawPcDescriptors::PcDescriptorRec);
19 const intptr_t RawPcDescriptors::kCompressedRecSize = 20 const intptr_t RawPcDescriptors::kCompressedRecSize =
20 kFullRecSize - sizeof(int16_t); 21 kFullRecSize - sizeof(int16_t);
21 22
22 bool RawObject::IsVMHeapObject() const { 23 bool RawObject::IsVMHeapObject() const {
23 return Dart::vm_isolate()->heap()->Contains(ToAddr(this)); 24 return Dart::vm_isolate()->heap()->Contains(ToAddr(this));
24 } 25 }
25 26
26 27
27 void RawObject::Validate(Isolate* isolate) const { 28 void RawObject::Validate(Isolate* isolate) const {
28 if (Object::void_class_ == reinterpret_cast<RawClass*>(kHeapObjectTag)) { 29 if (Object::void_class_ == reinterpret_cast<RawClass*>(kHeapObjectTag)) {
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 intptr_t RawUserTag::VisitUserTagPointers( 880 intptr_t RawUserTag::VisitUserTagPointers(
880 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) { 881 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) {
881 // Make sure that we got here with the tagged pointer as this. 882 // Make sure that we got here with the tagged pointer as this.
882 ASSERT(raw_obj->IsHeapObject()); 883 ASSERT(raw_obj->IsHeapObject());
883 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 884 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
884 return UserTag::InstanceSize(); 885 return UserTag::InstanceSize();
885 } 886 }
886 887
887 888
888 } // namespace dart 889 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698