Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(624)

Unified Diff: runtime/vm/object.h

Issue 1418833004: VM: Service isolate under precompilation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: typo Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_);
}

Powered by Google App Engine
This is Rietveld 408576698