| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 MC_SWEEP_CODE, | 96 MC_SWEEP_CODE, |
| 97 MC_SWEEP_CELL, | 97 MC_SWEEP_CELL, |
| 98 MC_SWEEP_MAP, | 98 MC_SWEEP_MAP, |
| 99 MC_EVACUATE_PAGES, | 99 MC_EVACUATE_PAGES, |
| 100 MC_UPDATE_NEW_TO_NEW_POINTERS, | 100 MC_UPDATE_NEW_TO_NEW_POINTERS, |
| 101 MC_UPDATE_ROOT_TO_NEW_POINTERS, | 101 MC_UPDATE_ROOT_TO_NEW_POINTERS, |
| 102 MC_UPDATE_OLD_TO_NEW_POINTERS, | 102 MC_UPDATE_OLD_TO_NEW_POINTERS, |
| 103 MC_UPDATE_POINTERS_TO_EVACUATED, | 103 MC_UPDATE_POINTERS_TO_EVACUATED, |
| 104 MC_UPDATE_POINTERS_BETWEEN_EVACUATED, | 104 MC_UPDATE_POINTERS_BETWEEN_EVACUATED, |
| 105 MC_UPDATE_MISC_POINTERS, | 105 MC_UPDATE_MISC_POINTERS, |
| 106 MC_WEAKCLOSURE, |
| 106 MC_WEAKCOLLECTION_PROCESS, | 107 MC_WEAKCOLLECTION_PROCESS, |
| 107 MC_WEAKCOLLECTION_CLEAR, | 108 MC_WEAKCOLLECTION_CLEAR, |
| 108 MC_WEAKCOLLECTION_ABORT, | 109 MC_WEAKCOLLECTION_ABORT, |
| 109 MC_FLUSH_CODE, | 110 MC_FLUSH_CODE, |
| 110 NUMBER_OF_SCOPES | 111 NUMBER_OF_SCOPES |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 Scope(GCTracer* tracer, ScopeId scope) : tracer_(tracer), scope_(scope) { | 114 Scope(GCTracer* tracer, ScopeId scope) : tracer_(tracer), scope_(scope) { |
| 114 start_time_ = base::OS::TimeCurrentMillis(); | 115 start_time_ = base::OS::TimeCurrentMillis(); |
| 115 } | 116 } |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 455 |
| 455 // Counts how many tracers were started without stopping. | 456 // Counts how many tracers were started without stopping. |
| 456 int start_counter_; | 457 int start_counter_; |
| 457 | 458 |
| 458 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 459 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
| 459 }; | 460 }; |
| 460 } | 461 } |
| 461 } // namespace v8::internal | 462 } // namespace v8::internal |
| 462 | 463 |
| 463 #endif // V8_HEAP_GC_TRACER_H_ | 464 #endif // V8_HEAP_GC_TRACER_H_ |
| OLD | NEW |