Index: runtime/vm/object.cc |
=================================================================== |
--- runtime/vm/object.cc (revision 32457) |
+++ runtime/vm/object.cc (working copy) |
@@ -5007,11 +5007,18 @@ |
set_is_optimizable(value); |
} |
+ |
void Function::set_is_optimizable(bool value) const { |
set_kind_tag(OptimizableBit::update(value, raw_ptr()->kind_tag_)); |
} |
+void Function::set_allows_hoisting_check_class(bool value) const { |
+ set_kind_tag( |
+ AllowsHoistingCheckClassBit::update(value, raw_ptr()->kind_tag_)); |
+} |
+ |
+ |
void Function::set_is_native(bool value) const { |
set_kind_tag(NativeBit::update(value, raw_ptr()->kind_tag_)); |
} |
@@ -5525,6 +5532,7 @@ |
result.set_optimized_call_site_count(0); |
result.set_is_optimizable(is_native ? false : true); |
result.set_is_inlinable(true); |
+ result.set_allows_hoisting_check_class(true); |
if (kind == RawFunction::kClosureFunction) { |
const ClosureData& data = ClosureData::Handle(ClosureData::New()); |
result.set_data(data); |