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

Unified Diff: runtime/vm/object.h

Issue 10915120: In preparation for lazy deoptimization add "is_alive_" field to RawCode: visit embedded pointers on… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/raw_object.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 11927)
+++ runtime/vm/object.h (working copy)
@@ -2534,6 +2534,12 @@
void set_is_optimized(bool value) const {
raw_ptr()->is_optimized_ = value ? 1 : 0;
}
+ bool is_alive() const {
+ return (raw_ptr()->is_alive_ == 1);
+ }
+ void set_is_alive(bool value) const {
+ raw_ptr()->is_alive_ = value ? 1 : 0;
+ }
uword EntryPoint() const {
const Instructions& instr = Instructions::Handle(instructions());
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698