OLD | NEW |
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/class_table.h" | 5 #include "vm/class_table.h" |
6 #include "vm/flags.h" | 6 #include "vm/flags.h" |
7 #include "vm/freelist.h" | 7 #include "vm/freelist.h" |
8 #include "vm/object.h" | 8 #include "vm/object.h" |
9 #include "vm/raw_object.h" | 9 #include "vm/raw_object.h" |
10 #include "vm/visitor.h" | 10 #include "vm/visitor.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 | 85 |
86 void ClassTable::Print() { | 86 void ClassTable::Print() { |
87 Class& cls = Class::Handle(); | 87 Class& cls = Class::Handle(); |
88 String& name = String::Handle(); | 88 String& name = String::Handle(); |
89 | 89 |
90 for (intptr_t i = 1; i < top_; i++) { | 90 for (intptr_t i = 1; i < top_; i++) { |
91 cls = At(i); | 91 cls = At(i); |
92 if (cls.raw() != reinterpret_cast<RawClass*>(0)) { | 92 if (cls.raw() != reinterpret_cast<RawClass*>(0)) { |
93 name = cls.Name(); | 93 name = cls.Name(); |
94 OS::Print("%d: %s\n", i, name.ToCString()); | 94 OS::Print("%"Pd": %s\n", i, name.ToCString()); |
95 } | 95 } |
96 } | 96 } |
97 } | 97 } |
98 | 98 |
99 } // namespace dart | 99 } // namespace dart |
OLD | NEW |