Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index eca9bab822836873e007e05f514802ff57c5cfe7..67adad6919d384f791ab7ac22fc68508f552eaf6 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -1,4 +1,4 @@ |
-// Copyright 2011 the V8 project authors. All rights reserved. |
+// Copyright 2012 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -569,7 +569,11 @@ void FixedDoubleArray::FixedDoubleArrayPrint(FILE* out) { |
HeapObject::PrintHeader(out, "FixedDoubleArray"); |
PrintF(out, " - length: %d", length()); |
for (int i = 0; i < length(); i++) { |
- PrintF(out, "\n [%d]: %g", i, get_scalar(i)); |
+ if (is_the_hole(i)) { |
+ PrintF(out, "\n [%d]: <the hole>", i); |
+ } else { |
+ PrintF(out, "\n [%d]: %g", i, get_scalar(i)); |
+ } |
} |
PrintF(out, "\n"); |
} |