| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium 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 MarkingVisitor_h | 5 #ifndef MarkingVisitor_h |
| 6 #define MarkingVisitor_h | 6 #define MarkingVisitor_h |
| 7 | 7 |
| 8 #include "platform/heap/MarkingVisitorImpl.h" | 8 #include "platform/heap/MarkingVisitorImpl.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 if (Mode != ThreadLocalMarking) | 183 if (Mode != ThreadLocalMarking) |
| 184 return true; | 184 return true; |
| 185 | 185 |
| 186 BasePage* page = pageFromObject(objectPointer); | 186 BasePage* page = pageFromObject(objectPointer); |
| 187 ASSERT(!page->orphaned()); | 187 ASSERT(!page->orphaned()); |
| 188 // When doing a thread local GC, the marker checks if | 188 // When doing a thread local GC, the marker checks if |
| 189 // the object resides in another thread's heap. If it | 189 // the object resides in another thread's heap. If it |
| 190 // does, the object should not be marked & traced. | 190 // does, the object should not be marked & traced. |
| 191 return page->terminating(); | 191 return page->terminating(); |
| 192 } | 192 } |
| 193 | |
| 194 #if ENABLE(ASSERT) | |
| 195 virtual void checkMarkingAllowed() override | |
| 196 { | |
| 197 ASSERT(ThreadState::current()->isInGC()); | |
| 198 } | |
| 199 #endif | |
| 200 }; | 193 }; |
| 201 | 194 |
| 202 } // namespace blink | 195 } // namespace blink |
| 203 | 196 |
| 204 #endif | 197 #endif |
| OLD | NEW |