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

Unified Diff: runtime/vm/object.h

Issue 150923002: Mark optimized code that used CHA for optimization so that lazy class 'finalization' does not inval… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 32176)
+++ runtime/vm/object.h (working copy)
@@ -3204,6 +3204,10 @@
return AliveBit::decode(raw_ptr()->state_bits_);
}
void set_is_alive(bool value) const;
+ bool has_used_cha() const {
+ return UsedCHABit::decode(raw_ptr()->state_bits_);
+ }
+ void set_has_used_cha(bool value) const;
uword EntryPoint() const {
const Instructions& instr = Instructions::Handle(instructions());
@@ -3386,10 +3390,12 @@
enum {
kOptimizedBit = 0,
kAliveBit = 1,
+ kUsedCHABit = 2,
};
class OptimizedBit : public BitField<bool, kOptimizedBit, 1> {};
class AliveBit : public BitField<bool, kAliveBit, 1> {};
+ class UsedCHABit : public BitField<bool, kUsedCHABit, 1> {};
// An object finder visitor interface.
class FindRawCodeVisitor : public FindObjectVisitor {
« runtime/vm/cha.cc ('K') | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698