| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 virtual void registerWeakMembers(const void*, const void*, WeakCallback) = 0
; | 364 virtual void registerWeakMembers(const void*, const void*, WeakCallback) = 0
; |
| 365 using VisitorHelper<Visitor>::registerWeakMembers; | 365 using VisitorHelper<Visitor>::registerWeakMembers; |
| 366 | 366 |
| 367 virtual void registerWeakTable(const void*, EphemeronCallback, EphemeronCall
back) = 0; | 367 virtual void registerWeakTable(const void*, EphemeronCallback, EphemeronCall
back) = 0; |
| 368 #if ENABLE(ASSERT) | 368 #if ENABLE(ASSERT) |
| 369 virtual bool weakTableRegistered(const void*) = 0; | 369 virtual bool weakTableRegistered(const void*) = 0; |
| 370 #endif | 370 #endif |
| 371 | 371 |
| 372 virtual bool ensureMarked(const void*) = 0; | 372 virtual bool ensureMarked(const void*) = 0; |
| 373 | 373 |
| 374 inline MarkingMode markingMode() const { return m_markingMode; } | 374 inline MarkingMode getMarkingMode() const { return m_markingMode; } |
| 375 | 375 |
| 376 protected: | 376 protected: |
| 377 explicit Visitor(MarkingMode markingMode) | 377 explicit Visitor(MarkingMode markingMode) |
| 378 : m_markingMode(markingMode) | 378 : m_markingMode(markingMode) |
| 379 { } | 379 { } |
| 380 | 380 |
| 381 virtual void registerWeakCellWithCallback(void**, WeakCallback) = 0; | 381 virtual void registerWeakCellWithCallback(void**, WeakCallback) = 0; |
| 382 | 382 |
| 383 private: | 383 private: |
| 384 static Visitor* fromHelper(VisitorHelper<Visitor>* helper) { return static_c
ast<Visitor*>(helper); } | 384 static Visitor* fromHelper(VisitorHelper<Visitor>* helper) { return static_c
ast<Visitor*>(helper); } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 395 Visitor* visitor() const { return m_visitor.get(); } | 395 Visitor* visitor() const { return m_visitor.get(); } |
| 396 | 396 |
| 397 private: | 397 private: |
| 398 ThreadState* m_state; | 398 ThreadState* m_state; |
| 399 OwnPtr<Visitor> m_visitor; | 399 OwnPtr<Visitor> m_visitor; |
| 400 }; | 400 }; |
| 401 | 401 |
| 402 } // namespace blink | 402 } // namespace blink |
| 403 | 403 |
| 404 #endif // Visitor_h | 404 #endif // Visitor_h |
| OLD | NEW |