| Index: runtime/vm/object.h
|
| diff --git a/runtime/vm/object.h b/runtime/vm/object.h
|
| index 46b5c68af9106c5268f2fa90dc10cf8a7d9cebd9..528eaada952582590aa70b8fc8bedcdf5a5fd9e1 100644
|
| --- a/runtime/vm/object.h
|
| +++ b/runtime/vm/object.h
|
| @@ -4435,6 +4435,21 @@ class Code : public Object {
|
| DISALLOW_COPY_AND_ASSIGN(FindRawCodeVisitor);
|
| };
|
|
|
| + class SlowFindRawCodeVisitor : public FindObjectVisitor {
|
| + public:
|
| + explicit SlowFindRawCodeVisitor(uword pc)
|
| + : FindObjectVisitor(Isolate::Current()), pc_(pc) { }
|
| + virtual ~SlowFindRawCodeVisitor() { }
|
| +
|
| + // Check if object matches find condition.
|
| + virtual bool FindObject(RawObject* obj) const;
|
| +
|
| + private:
|
| + const uword pc_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(SlowFindRawCodeVisitor);
|
| + };
|
| +
|
| static bool IsOptimized(RawCode* code) {
|
| return Code::OptimizedBit::decode(code->ptr()->state_bits_);
|
| }
|
|
|