| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 class PLATFORM_EXPORT Visitor : public VisitorHelper<Visitor> { | 238 class PLATFORM_EXPORT Visitor : public VisitorHelper<Visitor> { |
| 239 public: | 239 public: |
| 240 friend class VisitorHelper<Visitor>; | 240 friend class VisitorHelper<Visitor>; |
| 241 friend class InlinedGlobalMarkingVisitor; | 241 friend class InlinedGlobalMarkingVisitor; |
| 242 | 242 |
| 243 enum MarkingMode { | 243 enum MarkingMode { |
| 244 // This is a default visitor. This is used for GCType=GCWithSweep | 244 // This is a default visitor. This is used for GCType=GCWithSweep |
| 245 // and GCType=GCWithoutSweep. | 245 // and GCType=GCWithoutSweep. |
| 246 GlobalMarking, | 246 GlobalMarking, |
| 247 // This visitor does not trace objects outside the heap of the | 247 // This visitor does not trace objects outside the heap of the |
| 248 // GCing thread. This is the default visitor used for per thread heap |
| 249 // enabled heaps. |
| 250 ThreadLocalMarking, |
| 251 // This visitor does not trace objects outside the heap of the |
| 248 // GCing thread. This is used for GCType=ThreadTerminationGC. | 252 // GCing thread. This is used for GCType=ThreadTerminationGC. |
| 249 ThreadLocalMarking, | 253 ThreadTerminationMarking, |
| 250 // This visitor just marks objects and ignores weak processing. | 254 // This visitor just marks objects and ignores weak processing. |
| 251 // This is used for GCType=TakeSnapshot. | 255 // This is used for GCType=TakeSnapshot. |
| 252 SnapshotMarking, | 256 SnapshotMarking, |
| 253 // This visitor is used to trace objects during weak processing. | 257 // This visitor is used to trace objects during weak processing. |
| 254 // This visitor is allowed to trace only already marked objects. | 258 // This visitor is allowed to trace only already marked objects. |
| 255 WeakProcessing, | 259 WeakProcessing, |
| 256 }; | 260 }; |
| 257 | 261 |
| 258 static PassOwnPtr<Visitor> create(ThreadState*, BlinkGC::GCType); | 262 static PassOwnPtr<Visitor> create(ThreadState*, BlinkGC::GCType); |
| 259 | 263 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 private: | 327 private: |
| 324 static Visitor* fromHelper(VisitorHelper<Visitor>* helper) { return static_c
ast<Visitor*>(helper); } | 328 static Visitor* fromHelper(VisitorHelper<Visitor>* helper) { return static_c
ast<Visitor*>(helper); } |
| 325 | 329 |
| 326 ThreadState* m_state; | 330 ThreadState* m_state; |
| 327 const MarkingMode m_markingMode; | 331 const MarkingMode m_markingMode; |
| 328 }; | 332 }; |
| 329 | 333 |
| 330 } // namespace blink | 334 } // namespace blink |
| 331 | 335 |
| 332 #endif // Visitor_h | 336 #endif // Visitor_h |
| OLD | NEW |