OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2233 matching lines...) Loading... |
2244 | 2244 |
2245 class GCTracer BASE_EMBEDDED { | 2245 class GCTracer BASE_EMBEDDED { |
2246 public: | 2246 public: |
2247 class Scope BASE_EMBEDDED { | 2247 class Scope BASE_EMBEDDED { |
2248 public: | 2248 public: |
2249 enum ScopeId { | 2249 enum ScopeId { |
2250 EXTERNAL, | 2250 EXTERNAL, |
2251 MC_MARK, | 2251 MC_MARK, |
2252 MC_SWEEP, | 2252 MC_SWEEP, |
2253 MC_SWEEP_NEWSPACE, | 2253 MC_SWEEP_NEWSPACE, |
2254 MC_COMPACT, | 2254 MC_EVACUATE_PAGES, |
| 2255 MC_UPDATE_NEW_TO_NEW_POINTERS, |
| 2256 MC_UPDATE_ROOT_TO_NEW_POINTERS, |
| 2257 MC_UPDATE_OLD_TO_NEW_POINTERS, |
| 2258 MC_UPDATE_POINTERS_TO_EVACUATED, |
| 2259 MC_UPDATE_POINTERS_BETWEEN_EVACUATED, |
| 2260 MC_UPDATE_MISC_POINTERS, |
2255 MC_FLUSH_CODE, | 2261 MC_FLUSH_CODE, |
2256 kNumberOfScopes | 2262 kNumberOfScopes |
2257 }; | 2263 }; |
2258 | 2264 |
2259 Scope(GCTracer* tracer, ScopeId scope) | 2265 Scope(GCTracer* tracer, ScopeId scope) |
2260 : tracer_(tracer), | 2266 : tracer_(tracer), |
2261 scope_(scope) { | 2267 scope_(scope) { |
2262 start_time_ = OS::TimeCurrentMillis(); | 2268 start_time_ = OS::TimeCurrentMillis(); |
2263 } | 2269 } |
2264 | 2270 |
(...skipping 276 matching lines...) Loading... |
2541 | 2547 |
2542 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2548 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2543 }; | 2549 }; |
2544 #endif // DEBUG || LIVE_OBJECT_LIST | 2550 #endif // DEBUG || LIVE_OBJECT_LIST |
2545 | 2551 |
2546 } } // namespace v8::internal | 2552 } } // namespace v8::internal |
2547 | 2553 |
2548 #undef HEAP | 2554 #undef HEAP |
2549 | 2555 |
2550 #endif // V8_HEAP_H_ | 2556 #endif // V8_HEAP_H_ |
OLD | NEW |