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

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

Issue 10969014: Do not pass the name of the is check if it's not required (typically for primitive types). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
« no previous file with comments | « lib/compiler/implementation/js_backend/emitter.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/codegen.dart
===================================================================
--- lib/compiler/implementation/ssa/codegen.dart (revision 12681)
+++ lib/compiler/implementation/ssa/codegen.dart (working copy)
@@ -2462,8 +2462,10 @@
List<js.Expression> arguments = <js.Expression>[];
use(node.checkedInput);
arguments.add(pop());
- String additionalArgument = backend.namer.operatorIs(element);
- arguments.add(new js.LiteralString("'$additionalArgument'"));
+ if (helperElement.computeSignature(compiler).parameterCount != 1) {
+ String additionalArgument = backend.namer.operatorIs(element);
+ arguments.add(new js.LiteralString("'$additionalArgument'"));
+ }
String helperName = backend.namer.isolateAccess(helperElement);
push(new js.Call(new js.VariableUse(helperName), arguments));
} else {
« no previous file with comments | « lib/compiler/implementation/js_backend/emitter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698