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

Unified Diff: runtime/vm/object.h

Issue 101753005: Changes to interpret the optimizable bit based on whether the function (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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
===================================================================
--- runtime/vm/object.h (revision 31202)
+++ runtime/vm/object.h (working copy)
@@ -1734,8 +1734,10 @@
raw_ptr()->optimized_call_site_count_ = static_cast<uint16_t>(value);
}
- bool is_optimizable() const;
- void set_is_optimizable(bool value) const;
+ bool IsOptimizable() const;
+ bool IsNativeLeaf() const;
+ void SetIsOptimizable(bool value) const;
+ void SetIsNativeLeaf(bool value) const;
bool has_finally() const {
return HasFinallyBit::decode(raw_ptr()->kind_tag_);
@@ -1972,6 +1974,10 @@
void set_num_optional_parameters(intptr_t value) const; // Encoded value.
void set_kind_tag(intptr_t value) const;
void set_data(const Object& value) const;
+ bool is_optimizable() const {
+ return OptimizableBit::decode(raw_ptr()->kind_tag_);
+ }
+ void set_is_optimizable(bool value) const;
static RawFunction* New();
« 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