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

Unified Diff: runtime/vm/object.cc

Issue 2994283002: [VM-Compiler] Don't inline if we don't have inlining budget enough to fully inline.
Patch Set: Created 3 years, 4 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.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 7ec32463f79441d341e6206b1e5fa6a4544c6a07..1d2123bed9370cee34bd2089290739dbe898e20c 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -6594,7 +6594,7 @@ RawFunction* Function::New(const String& name,
result.set_is_generated_body(false);
result.set_always_inline(false);
result.set_is_polymorphic_target(false);
- NOT_IN_PRECOMPILED(result.set_was_compiled(false));
+ NOT_IN_PRECOMPILED(result.SetWasCompiled(false));
result.set_owner(owner);
NOT_IN_PRECOMPILED(result.set_token_pos(token_pos));
NOT_IN_PRECOMPILED(result.set_end_token_pos(token_pos));
@@ -6604,6 +6604,7 @@ RawFunction* Function::New(const String& name,
NOT_IN_PRECOMPILED(result.set_deoptimization_counter(0));
NOT_IN_PRECOMPILED(result.set_optimized_instruction_count(0));
NOT_IN_PRECOMPILED(result.set_optimized_call_site_count(0));
+ NOT_IN_PRECOMPILED(result.set_inlining_depth(0));
result.set_kernel_offset(0);
result.set_is_optimizable(is_native ? false : true);
result.set_is_inlinable(true);
@@ -6644,6 +6645,7 @@ RawFunction* Function::Clone(const Class& new_owner) const {
clone.set_usage_counter(0);
clone.set_deoptimization_counter(0);
clone.set_optimized_instruction_count(0);
+ clone.set_inlining_depth(0);
clone.set_optimized_call_site_count(0);
clone.set_kernel_offset(kernel_offset());
clone.set_kernel_data(TypedData::Handle(zone, kernel_data()));

Powered by Google App Engine
This is Rietveld 408576698