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

Unified Diff: runtime/vm/object.h

Issue 1376963002: Cleanup: we are not patching entries any longer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup Created 5 years, 3 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 8e4b24ed2981d54857c2e6d980d15e6774244fb5..77b7c3190ca8a9e0400b553af4b2cc547793becb 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -4342,6 +4342,20 @@ class Code : public Object {
bool IsStubCode() const;
bool IsFunctionCode() const;
+ void DisableDartCode() const;
+
+ void DisableStubCode() const;
+
+ void Enable() const {
+ if (!IsDisabled()) return;
+ ASSERT(instructions() != active_instructions());
+ set_active_instructions(instructions());
+ }
+
+ bool IsDisabled() const {
+ return instructions() != active_instructions();
+ }
+
private:
void set_state_bits(intptr_t bits) const;
« no previous file with comments | « runtime/vm/instructions_ia32.h ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698