| Index: runtime/vm/object.h | 
| diff --git a/runtime/vm/object.h b/runtime/vm/object.h | 
| index 934697ec3b3f7ed2a6493d5dfdf2b10aa11ea329..3bfe15e4e5ea3f5a6a0ab0304b30176cf82bb783 100644 | 
| --- a/runtime/vm/object.h | 
| +++ b/runtime/vm/object.h | 
| @@ -4353,6 +4353,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; | 
|  | 
|  |