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

Unified Diff: pkg/compiler/lib/src/js_backend/namer.dart

Issue 1032013002: dart2js: Optimize Function.apply for 0-3 argument calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 5 years, 9 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/js_lib/js_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/namer.dart
diff --git a/pkg/compiler/lib/src/js_backend/namer.dart b/pkg/compiler/lib/src/js_backend/namer.dart
index edc0a205f37faa47e475d2bf05c48265e26f5844..13c83a122188e784d4c555c80c5d68ce12a03031 100644
--- a/pkg/compiler/lib/src/js_backend/namer.dart
+++ b/pkg/compiler/lib/src/js_backend/namer.dart
@@ -417,6 +417,10 @@ class Namer implements ClosureNamer {
case JsGetName.GETTER_PREFIX: return getterPrefix;
case JsGetName.SETTER_PREFIX: return setterPrefix;
case JsGetName.CALL_PREFIX: return callPrefix;
+ case JsGetName.CALL_PREFIX0: return '${callPrefix}\$0';
+ case JsGetName.CALL_PREFIX1: return '${callPrefix}\$1';
+ case JsGetName.CALL_PREFIX2: return '${callPrefix}\$2';
+ case JsGetName.CALL_PREFIX3: return '${callPrefix}\$3';
case JsGetName.CALL_CATCH_ALL: return callCatchAllName;
case JsGetName.REFLECTABLE: return reflectableField;
case JsGetName.CLASS_DESCRIPTOR_PROPERTY:
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/js_lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698