Index: runtime/vm/object.h |
diff --git a/runtime/vm/object.h b/runtime/vm/object.h |
index 3c38af15bd6ba6eabea0734b3597fbfa4afef442..aee0b26d3e0fbab9ee197c78e1e2182fd88b60e3 100644 |
--- a/runtime/vm/object.h |
+++ b/runtime/vm/object.h |
@@ -4440,6 +4440,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_); |
} |