Commit 664bcd49 authored by Yang Guo's avatar Yang Guo Committed by Commit Bot

Correctly print NumberDictionary instances

R=cbruni@chromium.org

Change-Id: Iaac9794f2608db21c7b6d6a387085de04f0434d6
Reviewed-on: https://chromium-review.googlesource.com/1127165Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54270}
parent ccfa4ca7
......@@ -118,11 +118,13 @@ void HeapObject::HeapObjectPrint(Isolate* isolate,
case ORDERED_HASH_SET_TYPE:
case NAME_DICTIONARY_TYPE:
case GLOBAL_DICTIONARY_TYPE:
case NUMBER_DICTIONARY_TYPE:
case SIMPLE_NUMBER_DICTIONARY_TYPE:
case STRING_TABLE_TYPE:
ObjectHashTable::cast(this)->ObjectHashTablePrint(os);
break;
case NUMBER_DICTIONARY_TYPE:
NumberDictionary::cast(this)->NumberDictionaryPrint(os);
break;
case EPHEMERON_HASH_TABLE_TYPE:
EphemeronHashTable::cast(this)->EphemeronHashTablePrint(os);
break;
......@@ -891,6 +893,10 @@ void ObjectHashTable::ObjectHashTablePrint(std::ostream& os) {
PrintHashTableWithHeader(os, this, "ObjectHashTable");
}
void NumberDictionary::NumberDictionaryPrint(std::ostream& os) {
PrintHashTableWithHeader(os, this, "NumberDictionary");
}
void EphemeronHashTable::EphemeronHashTablePrint(std::ostream& os) {
PrintHashTableWithHeader(os, this, "EphemeronHashTable");
}
......
......@@ -301,6 +301,7 @@ class NumberDictionary
: public Dictionary<NumberDictionary, NumberDictionaryShape> {
public:
DECL_CAST(NumberDictionary)
DECL_PRINTER(NumberDictionary)
// Type specific at put (default NONE attributes is used when adding).
V8_WARN_UNUSED_RESULT static Handle<NumberDictionary> Set(
......
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