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

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

Issue 230863005: Initial UserTag and dart:profiler library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
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"
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 828
829 829
830 intptr_t RawMirrorReference::VisitMirrorReferencePointers( 830 intptr_t RawMirrorReference::VisitMirrorReferencePointers(
831 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) { 831 RawMirrorReference* raw_obj, ObjectPointerVisitor* visitor) {
832 // Make sure that we got here with the tagged pointer as this. 832 // Make sure that we got here with the tagged pointer as this.
833 ASSERT(raw_obj->IsHeapObject()); 833 ASSERT(raw_obj->IsHeapObject());
834 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 834 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
835 return MirrorReference::InstanceSize(); 835 return MirrorReference::InstanceSize();
836 } 836 }
837 837
838
839 intptr_t RawUserTag::VisitUserTagPointers(
840 RawUserTag* raw_obj, ObjectPointerVisitor* visitor) {
841 // Make sure that we got here with the tagged pointer as this.
842 ASSERT(raw_obj->IsHeapObject());
843 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
844 return UserTag::InstanceSize();
845 }
846
847
838 } // namespace dart 848 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698