mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:19:47 +00:00
34 lines
754 B
C
34 lines
754 B
C
|
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
||
|
// for details. All rights reserved. Use of this source code is governed by a
|
||
|
// BSD-style license that can be found in the LICENSE file.
|
||
|
|
||
|
#ifndef RUNTIME_VM_HANDLE_VISITOR_H_
|
||
|
#define RUNTIME_VM_HANDLE_VISITOR_H_
|
||
|
|
||
|
#include "vm/allocation.h"
|
||
|
#include "vm/flags.h"
|
||
|
#include "vm/os.h"
|
||
|
|
||
|
namespace dart {
|
||
|
|
||
|
class Thread;
|
||
|
|
||
|
class HandleVisitor {
|
||
|
public:
|
||
|
explicit HandleVisitor(Thread* thread) : thread_(thread) {}
|
||
|
virtual ~HandleVisitor() {}
|
||
|
|
||
|
Thread* thread() const { return thread_; }
|
||
|
|
||
|
virtual void VisitHandle(uword addr) = 0;
|
||
|
|
||
|
private:
|
||
|
Thread* thread_;
|
||
|
|
||
|
DISALLOW_IMPLICIT_CONSTRUCTORS(HandleVisitor);
|
||
|
};
|
||
|
|
||
|
} // namespace dart
|
||
|
|
||
|
#endif // RUNTIME_VM_HANDLE_VISITOR_H_
|