Commit 707bfeca authored by Sathya Gunasekaran's avatar Sathya Gunasekaran Committed by Commit Bot

[dict] Fix printing of dicts

These are FixedArrays, not ObjectHashTable

Change-Id: I8f5a4d8c16bc0f566719815fbea6be51b6bd8ec5
Reviewed-on: https://chromium-review.googlesource.com/c/1387864
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58505}
parent 4af9ec6a
......@@ -156,6 +156,8 @@ void HeapObject::HeapObjectPrint(std::ostream& os) { // NOLINT
case NAME_DICTIONARY_TYPE:
case GLOBAL_DICTIONARY_TYPE:
case SIMPLE_NUMBER_DICTIONARY_TYPE:
FixedArray::cast(*this)->FixedArrayPrint(os);
break;
case STRING_TABLE_TYPE:
ObjectHashTable::cast(*this)->ObjectHashTablePrint(os);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment