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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 285903006: Fix main handling in dart2js and add tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r38186. Created 6 years, 5 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: dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index 3015e0b028d5443a81075eccc0172ed9fbef9b2c..c7658451370fe80ae9ccfb97155f98f38b9c249b 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -2105,6 +2105,14 @@ class JavaScriptBackend extends Backend {
? jsAst.prettyPrint(generatedCode[element], compiler)
: null;
}
+
+ FunctionElement helperForBadMain() => findHelper('badMain');
+
+ FunctionElement helperForMissingMain() => findHelper('missingMain');
+
+ FunctionElement helperForMainArity() {
+ return findHelper('mainHasTooManyParameters');
+ }
}
class JavaScriptionResolutionCallbacks extends ResolutionCallbacks {

Powered by Google App Engine
This is Rietveld 408576698