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

Unified Diff: runtime/vm/object.h

Issue 1820333002: Reapply "Remove Code::active_instructions_." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | 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 1ed09f76d514b35db04d259d4fe7c98947aa46e3..f95b4e82103e6fd35cd86f43aae409dc362f70d2 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -4323,9 +4323,7 @@ class DeoptInfo : public AllStatic {
class Code : public Object {
public:
- RawInstructions* active_instructions() const {
- return raw_ptr()->active_instructions_;
- }
+ uword active_entry_point() const { return raw_ptr()->entry_point_; }
RawInstructions* instructions() const { return raw_ptr()->instructions_; }
@@ -4607,12 +4605,11 @@ class Code : public Object {
void Enable() const {
if (!IsDisabled()) return;
ASSERT(Thread::Current()->IsMutatorThread());
- ASSERT(instructions() != active_instructions());
SetActiveInstructions(instructions());
}
bool IsDisabled() const {
- return instructions() != active_instructions();
+ return active_entry_point() != EntryPoint();
}
private:
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698