| 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/bigint_operations.h" | 10 #include "vm/bigint_operations.h" |
| (...skipping 6457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6468 | 6468 |
| 6469 const char* PcDescriptors::ToCString() const { | 6469 const char* PcDescriptors::ToCString() const { |
| 6470 if (Length() == 0) { | 6470 if (Length() == 0) { |
| 6471 return "No pc descriptors\n"; | 6471 return "No pc descriptors\n"; |
| 6472 } | 6472 } |
| 6473 // 4 bits per hex digit. | 6473 // 4 bits per hex digit. |
| 6474 const int addr_width = kBitsPerWord / 4; | 6474 const int addr_width = kBitsPerWord / 4; |
| 6475 // "*" in a printf format specifier tells it to read the field width from | 6475 // "*" in a printf format specifier tells it to read the field width from |
| 6476 // the printf argument list. | 6476 // the printf argument list. |
| 6477 const char* kFormat = | 6477 const char* kFormat = |
| 6478 "%#-*"Px"\t%s\t%"Pd"\t%"Pd"\t%"Pd"\n"; | 6478 "%#-*"Px"\t%s\t%"Pd"\t\t%"Pd"\t%"Pd"\n"; |
| 6479 // First compute the buffer size required. | 6479 // First compute the buffer size required. |
| 6480 intptr_t len = 1; // Trailing '\0'. | 6480 intptr_t len = 1; // Trailing '\0'. |
| 6481 for (intptr_t i = 0; i < Length(); i++) { | 6481 for (intptr_t i = 0; i < Length(); i++) { |
| 6482 len += OS::SNPrint(NULL, 0, kFormat, addr_width, | 6482 len += OS::SNPrint(NULL, 0, kFormat, addr_width, |
| 6483 PC(i), | 6483 PC(i), |
| 6484 KindAsStr(i), | 6484 KindAsStr(i), |
| 6485 DeoptId(i), | 6485 DeoptId(i), |
| 6486 TokenPos(i), | 6486 TokenPos(i), |
| 6487 TryIndex(i)); | 6487 TryIndex(i)); |
| 6488 } | 6488 } |
| (...skipping 5643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12132 } | 12132 } |
| 12133 return result.raw(); | 12133 return result.raw(); |
| 12134 } | 12134 } |
| 12135 | 12135 |
| 12136 | 12136 |
| 12137 const char* WeakProperty::ToCString() const { | 12137 const char* WeakProperty::ToCString() const { |
| 12138 return "_WeakProperty"; | 12138 return "_WeakProperty"; |
| 12139 } | 12139 } |
| 12140 | 12140 |
| 12141 } // namespace dart | 12141 } // namespace dart |
| OLD | NEW |