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

Unified Diff: runtime/vm/object.cc

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/object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 8bdda94f00d8acddca8624c11937fe790b67a3c9..54fffcbe34f6220f1761700ef766fd8f33211e5f 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -4162,6 +4162,9 @@ void Function::set_is_abstract(bool value) const {
set_kind_tag(AbstractBit::update(value, raw_ptr()->kind_tag_));
}
+void Function::set_is_inlinable(bool value) const {
+ set_kind_tag(InlinableBit::update(value, raw_ptr()->kind_tag_));
+}
intptr_t Function::NumParameters() const {
return num_fixed_parameters() + NumOptionalParameters();
@@ -4681,6 +4684,7 @@ RawFunction* Function::New(const String& name,
result.set_is_optimizable(true);
result.set_has_finally(false);
result.set_is_native(false);
+ result.set_is_inlinable(true);
if (kind == RawFunction::kClosureFunction) {
const ClosureData& data = ClosureData::Handle(ClosureData::New());
result.set_data(data);
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698