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

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: Address review comments 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
« no previous file with comments | « runtime/vm/instructions_ia32.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « runtime/vm/instructions_ia32.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698