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

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

Issue 22903036: Use predicates to check simple function types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 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: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
index 0e592f366c91fde5b1f874009d654a3a8d8b0e32..b1eb8f2f7f59b3ef335005e7c9cdff6a1fff4127 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
@@ -2260,7 +2260,7 @@ abstract class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
world.registerIsCheck(type, work.resolutionTree);
js.PropertyAccess field =
- new js.PropertyAccess.field(pop(), backend.namer.operatorIs(element));
+ new js.PropertyAccess.field(pop(), backend.namer.operatorIsType(type));
// We always negate at least once so that the result is boolified.
push(new js.Prefix('!', field));
// If the result is not negated, put another '!' in front.
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | tests/compiler/dart2js/simple_function_subtype_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698