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_GC_TRACER_H_ | 5 #ifndef V8_GC_TRACER_H_ |
6 #define V8_GC_TRACER_H_ | 6 #define V8_GC_TRACER_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 85 matching lines...) Loading... |
96 MC_SWEEP_MAP, | 96 MC_SWEEP_MAP, |
97 MC_EVACUATE_PAGES, | 97 MC_EVACUATE_PAGES, |
98 MC_UPDATE_NEW_TO_NEW_POINTERS, | 98 MC_UPDATE_NEW_TO_NEW_POINTERS, |
99 MC_UPDATE_ROOT_TO_NEW_POINTERS, | 99 MC_UPDATE_ROOT_TO_NEW_POINTERS, |
100 MC_UPDATE_OLD_TO_NEW_POINTERS, | 100 MC_UPDATE_OLD_TO_NEW_POINTERS, |
101 MC_UPDATE_POINTERS_TO_EVACUATED, | 101 MC_UPDATE_POINTERS_TO_EVACUATED, |
102 MC_UPDATE_POINTERS_BETWEEN_EVACUATED, | 102 MC_UPDATE_POINTERS_BETWEEN_EVACUATED, |
103 MC_UPDATE_MISC_POINTERS, | 103 MC_UPDATE_MISC_POINTERS, |
104 MC_WEAKCOLLECTION_PROCESS, | 104 MC_WEAKCOLLECTION_PROCESS, |
105 MC_WEAKCOLLECTION_CLEAR, | 105 MC_WEAKCOLLECTION_CLEAR, |
| 106 MC_WEAKCOLLECTION_ABORT, |
106 MC_FLUSH_CODE, | 107 MC_FLUSH_CODE, |
107 NUMBER_OF_SCOPES | 108 NUMBER_OF_SCOPES |
108 }; | 109 }; |
109 | 110 |
110 Scope(GCTracer* tracer, ScopeId scope) : tracer_(tracer), scope_(scope) { | 111 Scope(GCTracer* tracer, ScopeId scope) : tracer_(tracer), scope_(scope) { |
111 start_time_ = base::OS::TimeCurrentMillis(); | 112 start_time_ = base::OS::TimeCurrentMillis(); |
112 } | 113 } |
113 | 114 |
114 ~Scope() { | 115 ~Scope() { |
115 ASSERT(scope_ < NUMBER_OF_SCOPES); // scope_ is unsigned. | 116 ASSERT(scope_ < NUMBER_OF_SCOPES); // scope_ is unsigned. |
(...skipping 217 matching lines...) Loading... |
333 // of the initial atomic sweeping pause. Make sure that it accumulates | 334 // of the initial atomic sweeping pause. Make sure that it accumulates |
334 // all sweeping operations performed on the main thread. | 335 // all sweeping operations performed on the main thread. |
335 double cumulative_sweeping_duration_; | 336 double cumulative_sweeping_duration_; |
336 | 337 |
337 DISALLOW_COPY_AND_ASSIGN(GCTracer); | 338 DISALLOW_COPY_AND_ASSIGN(GCTracer); |
338 }; | 339 }; |
339 } | 340 } |
340 } // namespace v8::internal | 341 } // namespace v8::internal |
341 | 342 |
342 #endif // V8_GC_TRACER_H_ | 343 #endif // V8_GC_TRACER_H_ |
OLD | NEW |