Reviewers: Sven,
Message:
PTAL
Description:
Add elements kind to maps debugging output
BUG=none
TEST=none
Please review this at http://codereview.chromium.org/7966019/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/objects-printer.cc
Index: src/objects-printer.cc
diff --git a/src/objects-printer.cc b/src/objects-printer.cc
index
bb8039276a0de8c9c824578ed86e2b7e44fe7c9e..5dcb6984efd3305a70c8691d13d3595dcc003000
100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -532,7 +532,9 @@ void Map::MapPrint(FILE* out) {
PrintF(out, " - type: %s\n", TypeToString(instance_type()));
PrintF(out, " - instance size: %d\n", instance_size());
PrintF(out, " - inobject properties: %d\n", inobject_properties());
- PrintF(out, " - pre-allocated property fields: %d\n",
+ PrintF(out, " - elements kind: ");
+ PrintElementsKind(out, elements_kind());
+ PrintF(out, "\n - pre-allocated property fields: %d\n",
pre_allocated_property_fields());
PrintF(out, " - unused property fields: %d\n", unused_property_fields());
if (is_hidden_prototype()) {
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev