| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api.h" | 8 #include "src/api.h" |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
| (...skipping 4841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4852 GCIdleTimeHandler::HeapState heap_state, | 4852 GCIdleTimeHandler::HeapState heap_state, |
| 4853 double deadline_in_ms) { | 4853 double deadline_in_ms) { |
| 4854 bool result = false; | 4854 bool result = false; |
| 4855 switch (action.type) { | 4855 switch (action.type) { |
| 4856 case DONE: | 4856 case DONE: |
| 4857 result = true; | 4857 result = true; |
| 4858 break; | 4858 break; |
| 4859 case DO_INCREMENTAL_MARKING: { | 4859 case DO_INCREMENTAL_MARKING: { |
| 4860 const double remaining_idle_time_in_ms = | 4860 const double remaining_idle_time_in_ms = |
| 4861 AdvanceIncrementalMarking(action.parameter, deadline_in_ms, | 4861 AdvanceIncrementalMarking(action.parameter, deadline_in_ms, |
| 4862 IncrementalMarking::NoForcedStepActions()); | 4862 IncrementalMarking::IdleStepActions()); |
| 4863 if (remaining_idle_time_in_ms > 0.0) { | 4863 if (remaining_idle_time_in_ms > 0.0) { |
| 4864 action.additional_work = TryFinalizeIdleIncrementalMarking( | 4864 action.additional_work = TryFinalizeIdleIncrementalMarking( |
| 4865 remaining_idle_time_in_ms, heap_state.size_of_objects, | 4865 remaining_idle_time_in_ms, heap_state.size_of_objects, |
| 4866 heap_state.final_incremental_mark_compact_speed_in_bytes_per_ms); | 4866 heap_state.final_incremental_mark_compact_speed_in_bytes_per_ms); |
| 4867 } | 4867 } |
| 4868 break; | 4868 break; |
| 4869 } | 4869 } |
| 4870 case DO_FULL_GC: { | 4870 case DO_FULL_GC: { |
| 4871 DCHECK(contexts_disposed_ > 0); | 4871 DCHECK(contexts_disposed_ > 0); |
| 4872 HistogramTimerScope scope(isolate_->counters()->gc_context()); | 4872 HistogramTimerScope scope(isolate_->counters()->gc_context()); |
| (...skipping 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6901 *object_type = "CODE_TYPE"; \ | 6901 *object_type = "CODE_TYPE"; \ |
| 6902 *object_sub_type = "CODE_AGE/" #name; \ | 6902 *object_sub_type = "CODE_AGE/" #name; \ |
| 6903 return true; | 6903 return true; |
| 6904 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) | 6904 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) |
| 6905 #undef COMPARE_AND_RETURN_NAME | 6905 #undef COMPARE_AND_RETURN_NAME |
| 6906 } | 6906 } |
| 6907 return false; | 6907 return false; |
| 6908 } | 6908 } |
| 6909 } // namespace internal | 6909 } // namespace internal |
| 6910 } // namespace v8 | 6910 } // namespace v8 |
| OLD | NEW |