Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index ee141549ed1d5d4ca43efbecacd4c83b7c0f5444..e465cb1db40d5a536f4d371851aa2aba7215bc48 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -1140,13 +1140,15 @@ bool DescriptorArray::IsSortedNoDuplicates(int valid_entries) { |
for (int i = 0; i < number_of_descriptors(); i++) { |
Name* key = GetSortedKey(i); |
if (key == current_key) { |
- PrintDescriptors(); |
+ OFStream os(stdout); |
+ PrintDescriptors(os); |
return false; |
} |
current_key = key; |
uint32_t hash = GetSortedKey(i)->Hash(); |
if (hash < current) { |
- PrintDescriptors(); |
+ OFStream os(stdout); |
+ PrintDescriptors(os); |
return false; |
} |
current = hash; |
@@ -1162,13 +1164,15 @@ bool TransitionArray::IsSortedNoDuplicates(int valid_entries) { |
for (int i = 0; i < number_of_transitions(); i++) { |
Name* key = GetSortedKey(i); |
if (key == current_key) { |
- PrintTransitions(); |
+ OFStream os(stdout); |
+ PrintTransitions(os); |
return false; |
} |
current_key = key; |
uint32_t hash = GetSortedKey(i)->Hash(); |
if (hash < current) { |
- PrintTransitions(); |
+ OFStream os(stdout); |
+ PrintTransitions(os); |
return false; |
} |
current = hash; |