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

Unified Diff: runtime/vm/object.h

Issue 10989016: Add is_inlinable field to functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use bit field 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 | « runtime/vm/flow_graph_inliner.cc ('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 c7b0aa3798a7ef192decb5b276c14565f9b43e0e..6c6977f35058873ae9c8d72e4d6962bf7d572ee7 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -1557,6 +1557,11 @@ class Function : public Object {
bool is_abstract() const { return AbstractBit::decode(raw_ptr()->kind_tag_); }
void set_is_abstract(bool value) const;
+ bool is_inlinable() const {
+ return InlinableBit::decode(raw_ptr()->kind_tag_);
+ }
+ void set_is_inlinable(bool value) const;
+
bool HasOptimizedCode() const;
// Returns true if the argument counts are valid for calling this function.
@@ -1684,6 +1689,7 @@ class Function : public Object {
kStaticBit = 1,
kConstBit,
kOptimizableBit,
+ kInlinableBit,
kHasFinallyBit,
kNativeBit,
kAbstractBit,
@@ -1694,6 +1700,7 @@ class Function : public Object {
class StaticBit : public BitField<bool, kStaticBit, 1> {};
class ConstBit : public BitField<bool, kConstBit, 1> {};
class OptimizableBit : public BitField<bool, kOptimizableBit, 1> {};
+ class InlinableBit : public BitField<bool, kInlinableBit, 1> {};
class HasFinallyBit : public BitField<bool, kHasFinallyBit, 1> {};
class NativeBit : public BitField<bool, kNativeBit, 1> {};
class AbstractBit : public BitField<bool, kAbstractBit, 1> {};
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698