| 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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 | 554 |
| 555 AllowHeapAllocation for_the_rest_of_the_epilogue; | 555 AllowHeapAllocation for_the_rest_of_the_epilogue; |
| 556 | 556 |
| 557 #ifdef DEBUG | 557 #ifdef DEBUG |
| 558 if (FLAG_print_global_handles) isolate_->global_handles()->Print(); | 558 if (FLAG_print_global_handles) isolate_->global_handles()->Print(); |
| 559 if (FLAG_print_handles) PrintHandles(); | 559 if (FLAG_print_handles) PrintHandles(); |
| 560 if (FLAG_gc_verbose) Print(); | 560 if (FLAG_gc_verbose) Print(); |
| 561 if (FLAG_code_stats) ReportCodeStatistics("After GC"); | 561 if (FLAG_code_stats) ReportCodeStatistics("After GC"); |
| 562 #endif | 562 #endif |
| 563 if (FLAG_deopt_every_n_garbage_collections > 0) { | 563 if (FLAG_deopt_every_n_garbage_collections > 0) { |
| 564 // TODO(jkummerow/ulan/jarin): This is not safe! We can't assume that |
| 565 // the topmost optimized frame can be deoptimized safely, because it |
| 566 // might not have a lazy bailout point right after its current PC. |
| 564 if (++gcs_since_last_deopt_ == FLAG_deopt_every_n_garbage_collections) { | 567 if (++gcs_since_last_deopt_ == FLAG_deopt_every_n_garbage_collections) { |
| 565 Deoptimizer::DeoptimizeAll(isolate()); | 568 Deoptimizer::DeoptimizeAll(isolate()); |
| 566 gcs_since_last_deopt_ = 0; | 569 gcs_since_last_deopt_ = 0; |
| 567 } | 570 } |
| 568 } | 571 } |
| 569 | 572 |
| 570 UpdateMaximumCommitted(); | 573 UpdateMaximumCommitted(); |
| 571 | 574 |
| 572 isolate_->counters()->alive_after_last_gc()->Set( | 575 isolate_->counters()->alive_after_last_gc()->Set( |
| 573 static_cast<int>(SizeOfObjects())); | 576 static_cast<int>(SizeOfObjects())); |
| (...skipping 7416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7990 static_cast<int>(object_sizes_last_time_[index])); | 7993 static_cast<int>(object_sizes_last_time_[index])); |
| 7991 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7994 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 7992 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7995 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 7993 | 7996 |
| 7994 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7997 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 7995 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7998 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 7996 ClearObjectStats(); | 7999 ClearObjectStats(); |
| 7997 } | 8000 } |
| 7998 | 8001 |
| 7999 } } // namespace v8::internal | 8002 } } // namespace v8::internal |
| OLD | NEW |