| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef V8_HEAP_GC_TRACER_H_ | 5 #ifndef V8_HEAP_GC_TRACER_H_ |
| 6 #define V8_HEAP_GC_TRACER_H_ | 6 #define V8_HEAP_GC_TRACER_H_ |
| 7 | 7 |
| 8 #include "src/base/platform/platform.h" | 8 #include "src/base/platform/platform.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 MC_SWEEP_CODE, | 101 MC_SWEEP_CODE, |
| 102 MC_SWEEP_CELL, | 102 MC_SWEEP_CELL, |
| 103 MC_SWEEP_MAP, | 103 MC_SWEEP_MAP, |
| 104 MC_EVACUATE_PAGES, | 104 MC_EVACUATE_PAGES, |
| 105 MC_UPDATE_NEW_TO_NEW_POINTERS, | 105 MC_UPDATE_NEW_TO_NEW_POINTERS, |
| 106 MC_UPDATE_ROOT_TO_NEW_POINTERS, | 106 MC_UPDATE_ROOT_TO_NEW_POINTERS, |
| 107 MC_UPDATE_OLD_TO_NEW_POINTERS, | 107 MC_UPDATE_OLD_TO_NEW_POINTERS, |
| 108 MC_UPDATE_POINTERS_TO_EVACUATED, | 108 MC_UPDATE_POINTERS_TO_EVACUATED, |
| 109 MC_UPDATE_POINTERS_BETWEEN_EVACUATED, | 109 MC_UPDATE_POINTERS_BETWEEN_EVACUATED, |
| 110 MC_UPDATE_MISC_POINTERS, | 110 MC_UPDATE_MISC_POINTERS, |
| 111 MC_INCREMENTAL_WEAKCLOSURE, |
| 111 MC_WEAKCLOSURE, | 112 MC_WEAKCLOSURE, |
| 112 MC_WEAKCOLLECTION_PROCESS, | 113 MC_WEAKCOLLECTION_PROCESS, |
| 113 MC_WEAKCOLLECTION_CLEAR, | 114 MC_WEAKCOLLECTION_CLEAR, |
| 114 MC_WEAKCOLLECTION_ABORT, | 115 MC_WEAKCOLLECTION_ABORT, |
| 115 MC_FLUSH_CODE, | 116 MC_FLUSH_CODE, |
| 116 NUMBER_OF_SCOPES | 117 NUMBER_OF_SCOPES |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 Scope(GCTracer* tracer, ScopeId scope) : tracer_(tracer), scope_(scope) { | 120 Scope(GCTracer* tracer, ScopeId scope) : tracer_(tracer), scope_(scope) { |
| 120 start_time_ = base::OS::TimeCurrentMillis(); | 121 start_time_ = base::OS::TimeCurrentMillis(); |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 | 491 |
| 491 // Counts how many tracers were started without stopping. | 492 // Counts how many tracers were started without stopping. |
| 492 int start_counter_; | 493 int start_counter_; |
| 493 | 494 |
| 494 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 495 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
| 495 }; | 496 }; |
| 496 } | 497 } |
| 497 } // namespace v8::internal | 498 } // namespace v8::internal |
| 498 | 499 |
| 499 #endif // V8_HEAP_GC_TRACER_H_ | 500 #endif // V8_HEAP_GC_TRACER_H_ |
| OLD | NEW |