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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 860963002: Refactor _ByteDataView.[set|get]* methods to improve their performance. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/flow_graph_inliner.cc
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc
index 2e8580a07f9de0640ee1735e9cc2c3e2632b3dea..60bdfaf026965d9a58f4b6af3ea070728ab2baf6 100644
--- a/runtime/vm/flow_graph_inliner.cc
+++ b/runtime/vm/flow_graph_inliner.cc
@@ -497,6 +497,9 @@ class CallSiteInliner : public ValueObject {
intptr_t instr_count,
intptr_t call_site_count,
intptr_t const_arg_count) {
+ if (FlowGraphInliner::AlwaysInline(callee)) {
+ return true;
+ }
if (inlined_size_ > FLAG_inlining_caller_size_threshold) {
// Prevent methods becoming humongous and thus slow to compile.
return false;
@@ -519,9 +522,6 @@ class CallSiteInliner : public ValueObject {
(instr_count <= FLAG_inlining_constant_arguments_min_size_threshold)) {
return true;
}
- if (FlowGraphInliner::AlwaysInline(callee)) {
- return true;
- }
return false;
}

Powered by Google App Engine
This is Rietveld 408576698