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

Unified Diff: lib/compiler/implementation/ssa/builder.dart

Issue 10964013: Add an internal flag to the dart2js compiler to enable/diable inlining (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 8 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
Index: lib/compiler/implementation/ssa/builder.dart
diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
index bf79a1efc38e9aadf92f818c9b8e3981c3e9d666..e87155715d8ce3973deea4953d1e0aabc63394ba 100644
--- a/lib/compiler/implementation/ssa/builder.dart
+++ b/lib/compiler/implementation/ssa/builder.dart
@@ -1011,6 +1011,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
bool tryInlineMethod(Element element,
Selector selector,
Link<Node> arguments) {
+ if (compiler.disableInlining) return false;
// TODO(floitsch): we should be able to inline inside lazy initializers.
if (!currentElement.isFunction()) return false;
// TODO(floitsch): we should be able to inline getters, setters and
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | tests/compiler/dart2js/call_site_type_inferer_static_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698