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

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: Do InliningDecision the way Slava suggested Created 3 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') | runtime/vm/raw_object.h » ('j') | 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 eb9ccf0018a5a02b54def0851b900008722dd1e1..8e30fd0f99d22e87ae42cadcd026929d36b03b71 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -6631,7 +6631,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));
@@ -6641,6 +6641,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);
@@ -6681,6 +6682,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()));
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698