Revision f230a1cf deps/v8/src/objects-printer.cc
deps/v8/src/objects-printer.cc | ||
---|---|---|
95 | 95 |
case FIXED_DOUBLE_ARRAY_TYPE: |
96 | 96 |
FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(out); |
97 | 97 |
break; |
98 |
case CONSTANT_POOL_ARRAY_TYPE: |
|
99 |
ConstantPoolArray::cast(this)->ConstantPoolArrayPrint(out); |
|
100 |
break; |
|
98 | 101 |
case FIXED_ARRAY_TYPE: |
99 | 102 |
FixedArray::cast(this)->FixedArrayPrint(out); |
100 | 103 |
break; |
... | ... | |
630 | 633 |
} |
631 | 634 |
|
632 | 635 |
|
636 |
void ConstantPoolArray::ConstantPoolArrayPrint(FILE* out) { |
|
637 |
HeapObject::PrintHeader(out, "ConstantPoolArray"); |
|
638 |
PrintF(out, " - length: %d", length()); |
|
639 |
for (int i = 0; i < length(); i++) { |
|
640 |
if (i < first_ptr_index()) { |
|
641 |
PrintF(out, "\n [%d]: double: %g", i, get_int64_entry_as_double(i)); |
|
642 |
} else if (i < first_int32_index()) { |
|
643 |
PrintF(out, "\n [%d]: pointer: %p", i, |
|
644 |
reinterpret_cast<void*>(get_ptr_entry(i))); |
|
645 |
} else { |
|
646 |
PrintF(out, "\n [%d]: int32: %d", i, get_int32_entry(i)); |
|
647 |
} |
|
648 |
} |
|
649 |
PrintF(out, "\n"); |
|
650 |
} |
|
651 |
|
|
652 |
|
|
633 | 653 |
void JSValue::JSValuePrint(FILE* out) { |
634 | 654 |
HeapObject::PrintHeader(out, "ValueObject"); |
635 | 655 |
value()->Print(out); |
... | ... | |
1100 | 1120 |
HeapObject::PrintHeader(out, "AllocationSite"); |
1101 | 1121 |
PrintF(out, " - weak_next: "); |
1102 | 1122 |
weak_next()->ShortPrint(out); |
1103 |
PrintF(out, "\n"); |
|
1104 |
|
|
1105 |
PrintF(out, " - transition_info: "); |
|
1123 |
PrintF(out, "\n - dependent code: "); |
|
1124 |
dependent_code()->ShortPrint(out); |
|
1125 |
PrintF(out, "\n - nested site: "); |
|
1126 |
nested_site()->ShortPrint(out); |
|
1127 |
PrintF(out, "\n - transition_info: "); |
|
1106 | 1128 |
if (transition_info()->IsCell()) { |
1107 | 1129 |
Cell* cell = Cell::cast(transition_info()); |
1108 | 1130 |
Object* cell_contents = cell->value(); |
Also available in: Unified diff