Index: tools/clang/blink_gc_plugin/tests/heap/stubs.h |
diff --git a/tools/clang/blink_gc_plugin/tests/heap/stubs.h b/tools/clang/blink_gc_plugin/tests/heap/stubs.h |
index 5281b126b49d36ca1ff8e14b6566333e470093cc..f34fdc41cfe35854fc225cf0d23bd845d59e5cee 100644 |
--- a/tools/clang/blink_gc_plugin/tests/heap/stubs.h |
+++ b/tools/clang/blink_gc_plugin/tests/heap/stubs.h |
@@ -142,10 +142,10 @@ using namespace WTF; |
#define GC_PLUGIN_IGNORE(bug) \ |
__attribute__((annotate("blink_gc_plugin_ignore"))) |
-#define USING_GARBAGE_COLLECTED_MIXIN(type) \ |
- public: \ |
- virtual void adjustAndMark(Visitor*) const {} \ |
- virtual bool isAlive(Visitor*) const { return 0; } |
+#define USING_GARBAGE_COLLECTED_MIXIN(type) \ |
+public: \ |
+ virtual void adjustAndMark(Visitor*) const override { } \ |
+ virtual bool isHeapObjectAlive(Visitor*) const override { return 0; } |
template<typename T> class GarbageCollected { }; |
@@ -218,8 +218,9 @@ class Visitor : public VisitorHelper<Visitor> { |
}; |
class GarbageCollectedMixin { |
+public: |
virtual void adjustAndMark(Visitor*) const = 0; |
- virtual bool isAlive(Visitor*) const = 0; |
+ virtual bool isHeapObjectAlive(Visitor*) const = 0; |
virtual void trace(Visitor*) { } |
}; |