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

Unified Diff: tests/compiler/dart2js/source_mapping_test.dart

Issue 10873025: Inlining of static functions: applying Florian's CL. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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: tests/compiler/dart2js/source_mapping_test.dart
===================================================================
--- tests/compiler/dart2js/source_mapping_test.dart (revision 11223)
+++ tests/compiler/dart2js/source_mapping_test.dart (working copy)
@@ -51,7 +51,8 @@
String FUNCTIONS_TEST = '''
@void main() { print(test(15)); @}
-@int test(int x) { return x; @}''';
+// The 'if' has been added to avoid inlining of 'test'.
+@int test(int x) { if (x != null) return x; else return null; @}''';
String RETURN_TEST = 'void main() { print(((x) { @return x; })(0)); }';
@@ -69,7 +70,8 @@
var closureSend = (x) { print(x); };
@closureSend(0);
}
-void staticSend(x) { print(x); }
+// The 'if' has been added to avoid inlining of 'staticSend'.
+void staticSend(x) { if (x == null) return; print(x); }
class NewSend { void dynamicSend(x) { print(x); } }
''';

Powered by Google App Engine
This is Rietveld 408576698