| 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 | 583 |
| 584 AllowHeapAllocation for_the_rest_of_the_epilogue; | 584 AllowHeapAllocation for_the_rest_of_the_epilogue; |
| 585 | 585 |
| 586 #ifdef DEBUG | 586 #ifdef DEBUG |
| 587 if (FLAG_print_global_handles) isolate_->global_handles()->Print(); | 587 if (FLAG_print_global_handles) isolate_->global_handles()->Print(); |
| 588 if (FLAG_print_handles) PrintHandles(); | 588 if (FLAG_print_handles) PrintHandles(); |
| 589 if (FLAG_gc_verbose) Print(); | 589 if (FLAG_gc_verbose) Print(); |
| 590 if (FLAG_code_stats) ReportCodeStatistics("After GC"); | 590 if (FLAG_code_stats) ReportCodeStatistics("After GC"); |
| 591 #endif | 591 #endif |
| 592 if (FLAG_deopt_every_n_garbage_collections > 0) { | 592 if (FLAG_deopt_every_n_garbage_collections > 0) { |
| 593 // TODO(jkummerow/ulan/jarin): This is not safe! We can't assume that |
| 594 // the topmost optimized frame can be deoptimized safely, because it |
| 595 // might not have a lazy bailout point right after its current PC. |
| 593 if (++gcs_since_last_deopt_ == FLAG_deopt_every_n_garbage_collections) { | 596 if (++gcs_since_last_deopt_ == FLAG_deopt_every_n_garbage_collections) { |
| 594 Deoptimizer::DeoptimizeAll(isolate()); | 597 Deoptimizer::DeoptimizeAll(isolate()); |
| 595 gcs_since_last_deopt_ = 0; | 598 gcs_since_last_deopt_ = 0; |
| 596 } | 599 } |
| 597 } | 600 } |
| 598 | 601 |
| 599 UpdateMaximumCommitted(); | 602 UpdateMaximumCommitted(); |
| 600 | 603 |
| 601 isolate_->counters()->alive_after_last_gc()->Set( | 604 isolate_->counters()->alive_after_last_gc()->Set( |
| 602 static_cast<int>(SizeOfObjects())); | 605 static_cast<int>(SizeOfObjects())); |
| (...skipping 7099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7702 static_cast<int>(object_sizes_last_time_[index])); | 7705 static_cast<int>(object_sizes_last_time_[index])); |
| 7703 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7706 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 7704 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7707 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 7705 | 7708 |
| 7706 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7709 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 7707 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7710 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 7708 ClearObjectStats(); | 7711 ClearObjectStats(); |
| 7709 } | 7712 } |
| 7710 | 7713 |
| 7711 } } // namespace v8::internal | 7714 } } // namespace v8::internal |
| OLD | NEW |