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

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, 10 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 32284)
+++ runtime/vm/object.h (working copy)
@@ -1074,6 +1074,16 @@
// otherwise a new object is allocated and returned.
static RawClass* GetClass(intptr_t class_id, bool is_signature_class);
+ // Register code that has used CHA for optimization.
+ // TODO(srdjan): Also register kind of CHA optimization (e.g.: leaf class,
+ // leaf method, ...).
+ void RegisterCHACode(const Code& code);
+
+ void DisableCHAOptimizedCode();
+
+ RawArray* cha_codes() const { return raw_ptr()->cha_codes_; }
+ void set_cha_codes(const Array& value) const;
+
private:
enum {
kAny = 0,

Powered by Google App Engine
This is Rietveld 408576698