| 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/object.h" | 5 #include "vm/object.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 11363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11374 break; | 11374 break; |
| 11375 default: | 11375 default: |
| 11376 UNREACHABLE(); | 11376 UNREACHABLE(); |
| 11377 } | 11377 } |
| 11378 } | 11378 } |
| 11379 } | 11379 } |
| 11380 } | 11380 } |
| 11381 | 11381 |
| 11382 | 11382 |
| 11383 void ObjectPool::DebugPrint() const { | 11383 void ObjectPool::DebugPrint() const { |
| 11384 THR_Print("Object Pool: {\n"); | 11384 THR_Print("Object Pool: 0x%" Px "{\n", reinterpret_cast<uword>(raw())); |
| 11385 for (intptr_t i = 0; i < Length(); i++) { | 11385 for (intptr_t i = 0; i < Length(); i++) { |
| 11386 intptr_t offset = OffsetFromIndex(i); | 11386 intptr_t offset = OffsetFromIndex(i); |
| 11387 THR_Print(" %" Pd " PP+0x%" Px ": ", i, offset); | 11387 THR_Print(" %" Pd " PP+0x%" Px ": ", i, offset); |
| 11388 if (InfoAt(i) == kTaggedObject) { | 11388 if (InfoAt(i) == kTaggedObject) { |
| 11389 RawObject* obj = ObjectAt(i); | 11389 RawObject* obj = ObjectAt(i); |
| 11390 THR_Print("0x%" Px " %s (obj)\n", | 11390 THR_Print("0x%" Px " %s (obj)\n", |
| 11391 reinterpret_cast<uword>(obj), | 11391 reinterpret_cast<uword>(obj), |
| 11392 Object::Handle(obj).ToCString()); | 11392 Object::Handle(obj).ToCString()); |
| 11393 } else if (InfoAt(i) == kNativeEntry) { | 11393 } else if (InfoAt(i) == kNativeEntry) { |
| 11394 THR_Print("0x%" Px " (native entry)\n", RawValueAt(i)); | 11394 THR_Print("0x%" Px " (native entry)\n", RawValueAt(i)); |
| (...skipping 11554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22949 return tag_label.ToCString(); | 22949 return tag_label.ToCString(); |
| 22950 } | 22950 } |
| 22951 | 22951 |
| 22952 | 22952 |
| 22953 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 22953 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 22954 Instance::PrintJSONImpl(stream, ref); | 22954 Instance::PrintJSONImpl(stream, ref); |
| 22955 } | 22955 } |
| 22956 | 22956 |
| 22957 | 22957 |
| 22958 } // namespace dart | 22958 } // namespace dart |
| OLD | NEW |