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

Side by Side Diff: runtime/vm/flow_graph_inliner.cc

Issue 101753005: Changes to interpret the optimizable bit based on whether the function (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/flow_graph_inliner.h" 5 #include "vm/flow_graph_inliner.h"
6 6
7 #include "vm/block_scheduler.h" 7 #include "vm/block_scheduler.h"
8 #include "vm/compiler.h" 8 #include "vm/compiler.h"
9 #include "vm/flags.h" 9 #include "vm/flags.h"
10 #include "vm/flow_graph.h" 10 #include "vm/flow_graph.h"
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 return true; 1058 return true;
1059 } 1059 }
1060 } 1060 }
1061 1061
1062 return false; 1062 return false;
1063 } 1063 }
1064 1064
1065 1065
1066 bool PolymorphicInliner::TryInlining(intptr_t receiver_cid, 1066 bool PolymorphicInliner::TryInlining(intptr_t receiver_cid,
1067 const Function& target) { 1067 const Function& target) {
1068 if (!target.is_optimizable()) { 1068 if (!target.IsOptimizable()) {
1069 if (TryInlineRecognizedMethod(receiver_cid, target)) { 1069 if (TryInlineRecognizedMethod(receiver_cid, target)) {
1070 owner_->inlined_ = true; 1070 owner_->inlined_ = true;
1071 return true; 1071 return true;
1072 } 1072 }
1073 return false; 1073 return false;
1074 } 1074 }
1075 1075
1076 GrowableArray<Value*> arguments(call_->ArgumentCount()); 1076 GrowableArray<Value*> arguments(call_->ArgumentCount());
1077 for (int i = 0; i < call_->ArgumentCount(); ++i) { 1077 for (int i = 0; i < call_->ArgumentCount(); ++i) {
1078 arguments.Add(call_->PushArgumentAt(i)->value()); 1078 arguments.Add(call_->PushArgumentAt(i)->value());
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 OS::Print("After Inlining of %s\n", flow_graph_-> 1484 OS::Print("After Inlining of %s\n", flow_graph_->
1485 parsed_function().function().ToFullyQualifiedCString()); 1485 parsed_function().function().ToFullyQualifiedCString());
1486 FlowGraphPrinter printer(*flow_graph_); 1486 FlowGraphPrinter printer(*flow_graph_);
1487 printer.PrintBlocks(); 1487 printer.PrintBlocks();
1488 } 1488 }
1489 } 1489 }
1490 } 1490 }
1491 } 1491 }
1492 1492
1493 } // namespace dart 1493 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698