diff options
Diffstat (limited to 'chromium/v8/src/snapshot/serializer.cc')
| -rw-r--r-- | chromium/v8/src/snapshot/serializer.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/chromium/v8/src/snapshot/serializer.cc b/chromium/v8/src/snapshot/serializer.cc index d443ff67a1e..a5ab4be1c01 100644 --- a/chromium/v8/src/snapshot/serializer.cc +++ b/chromium/v8/src/snapshot/serializer.cc @@ -53,13 +53,14 @@ void Serializer::OutputStatistics(const char* name) { #ifdef OBJECT_PRINT PrintF(" Instance types (count and bytes):\n"); -#define PRINT_INSTANCE_TYPE(Name) \ - for (int space = 0; space < kNumberOfSpaces; ++space) { \ - if (instance_type_count_[space][Name]) { \ - PrintF("%10d %10zu %-10s %s\n", instance_type_count_[space][Name], \ - instance_type_size_[space][Name], \ - Heap::GetSpaceName(static_cast<AllocationSpace>(space)), #Name); \ - } \ +#define PRINT_INSTANCE_TYPE(Name) \ + for (int space = 0; space < kNumberOfSpaces; ++space) { \ + if (instance_type_count_[space][Name]) { \ + PrintF("%10d %10zu %-10s %s\n", instance_type_count_[space][Name], \ + instance_type_size_[space][Name], \ + BaseSpace::GetSpaceName(static_cast<AllocationSpace>(space)), \ + #Name); \ + } \ } INSTANCE_TYPE_LIST(PRINT_INSTANCE_TYPE) #undef PRINT_INSTANCE_TYPE @@ -540,7 +541,7 @@ void Serializer::ObjectSerializer::Serialize() { if (object_.IsScript()) { // Clear cached line ends. - Object undefined = ReadOnlyRoots(serializer_->isolate()).undefined_value(); + Oddball undefined = ReadOnlyRoots(serializer_->isolate()).undefined_value(); Script::cast(object_).set_line_ends(undefined); } |
