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; |