| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 property_cell_space_(NULL), | 98 property_cell_space_(NULL), |
| 99 lo_space_(NULL), | 99 lo_space_(NULL), |
| 100 gc_state_(NOT_IN_GC), | 100 gc_state_(NOT_IN_GC), |
| 101 gc_post_processing_depth_(0), | 101 gc_post_processing_depth_(0), |
| 102 ms_count_(0), | 102 ms_count_(0), |
| 103 gc_count_(0), | 103 gc_count_(0), |
| 104 remembered_unmapped_pages_index_(0), | 104 remembered_unmapped_pages_index_(0), |
| 105 unflattened_strings_length_(0), | 105 unflattened_strings_length_(0), |
| 106 #ifdef DEBUG | 106 #ifdef DEBUG |
| 107 allocation_timeout_(0), | 107 allocation_timeout_(0), |
| 108 disallow_allocation_failure_(false), | |
| 109 #endif // DEBUG | 108 #endif // DEBUG |
| 110 new_space_high_promotion_mode_active_(false), | 109 new_space_high_promotion_mode_active_(false), |
| 111 old_generation_allocation_limit_(kMinimumOldGenerationAllocationLimit), | 110 old_generation_allocation_limit_(kMinimumOldGenerationAllocationLimit), |
| 112 size_of_old_gen_at_last_old_space_gc_(0), | 111 size_of_old_gen_at_last_old_space_gc_(0), |
| 113 external_allocation_limit_(0), | 112 external_allocation_limit_(0), |
| 114 amount_of_external_allocated_memory_(0), | 113 amount_of_external_allocated_memory_(0), |
| 115 amount_of_external_allocated_memory_at_last_global_gc_(0), | 114 amount_of_external_allocated_memory_at_last_global_gc_(0), |
| 116 old_gen_exhausted_(false), | 115 old_gen_exhausted_(false), |
| 117 inline_allocation_disabled_(false), | 116 inline_allocation_disabled_(false), |
| 118 store_buffer_rebuilder_(store_buffer()), | 117 store_buffer_rebuilder_(store_buffer()), |
| (...skipping 7401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7520 | 7519 |
| 7521 void DescriptorLookupCache::Clear() { | 7520 void DescriptorLookupCache::Clear() { |
| 7522 for (int index = 0; index < kLength; index++) keys_[index].source = NULL; | 7521 for (int index = 0; index < kLength; index++) keys_[index].source = NULL; |
| 7523 } | 7522 } |
| 7524 | 7523 |
| 7525 | 7524 |
| 7526 #ifdef DEBUG | 7525 #ifdef DEBUG |
| 7527 void Heap::GarbageCollectionGreedyCheck() { | 7526 void Heap::GarbageCollectionGreedyCheck() { |
| 7528 ASSERT(FLAG_gc_greedy); | 7527 ASSERT(FLAG_gc_greedy); |
| 7529 if (isolate_->bootstrapper()->IsActive()) return; | 7528 if (isolate_->bootstrapper()->IsActive()) return; |
| 7530 if (disallow_allocation_failure()) return; | 7529 if (!AllowAllocationFailure::IsAllowed(isolate_)) return; |
| 7531 CollectGarbage(NEW_SPACE); | 7530 CollectGarbage(NEW_SPACE); |
| 7532 } | 7531 } |
| 7533 #endif | 7532 #endif |
| 7534 | 7533 |
| 7535 | 7534 |
| 7536 void ExternalStringTable::CleanUp() { | 7535 void ExternalStringTable::CleanUp() { |
| 7537 int last = 0; | 7536 int last = 0; |
| 7538 for (int i = 0; i < new_space_strings_.length(); ++i) { | 7537 for (int i = 0; i < new_space_strings_.length(); ++i) { |
| 7539 if (new_space_strings_[i] == heap_->the_hole_value()) { | 7538 if (new_space_strings_[i] == heap_->the_hole_value()) { |
| 7540 continue; | 7539 continue; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7714 static_cast<int>(object_sizes_last_time_[index])); | 7713 static_cast<int>(object_sizes_last_time_[index])); |
| 7715 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7714 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 7716 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7715 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 7717 | 7716 |
| 7718 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7717 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 7719 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7718 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 7720 ClearObjectStats(); | 7719 ClearObjectStats(); |
| 7721 } | 7720 } |
| 7722 | 7721 |
| 7723 } } // namespace v8::internal | 7722 } } // namespace v8::internal |
| OLD | NEW |