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

Unified Diff: pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart

Issue 1252533003: dart2js: fix named arguments with Function.apply in the startup emitter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 5 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: pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
diff --git a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
index 7e981fc8796a42d87a92ece02349e8c2fbb3341b..1b9b6effb4c02f35dddcb2878afc60c477c5e3fe 100644
--- a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
+++ b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
@@ -559,7 +559,7 @@ class ProgramBuilder {
bool canTearOff = false;
js.Name tearOffName;
- bool isClosure = false;
+ bool isClosureCallMethod = false;
bool isNotApplyTarget = !element.isFunction || element.isAccessor;
bool canBeReflected = _methodCanBeReflected(element);
@@ -574,7 +574,7 @@ class ProgramBuilder {
} else {
if (element.enclosingClass.isClosure) {
canTearOff = false;
- isClosure = true;
+ isClosureCallMethod = true;
} else {
// Careful with operators.
canTearOff = universe.hasInvokedGetter(element, _compiler.world) ||
@@ -628,7 +628,7 @@ class ProgramBuilder {
return new InstanceMethod(element, name, code,
_generateParameterStubs(element, canTearOff), callName,
needsTearOff: canTearOff, tearOffName: tearOffName,
- isClosure: isClosure, aliasName: aliasName,
+ isClosureCallMethod: isClosureCallMethod, aliasName: aliasName,
canBeApplied: canBeApplied, canBeReflected: canBeReflected,
requiredParameterCount: requiredParameterCount,
optionalParameterDefaultValues: optionalParameterDefaultValues,
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/model.dart ('k') | pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698