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

Unified Diff: sdk/lib/_internal/compiler/js_lib/js_rti.dart

Issue 1180973003: dart2js cps: Support function types in 'is' and 'as' operators. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix status file Created 5 years, 6 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/js_lib/js_rti.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/js_rti.dart b/sdk/lib/_internal/compiler/js_lib/js_rti.dart
index f1531501070267101dc1ecb65b3443f12d4b375a..e5669e2a6babfca6dfcb3b2d8269714294549f74 100644
--- a/sdk/lib/_internal/compiler/js_lib/js_rti.dart
+++ b/sdk/lib/_internal/compiler/js_lib/js_rti.dart
@@ -389,7 +389,8 @@ bool checkSubtypeOfRuntimeType(o, t) {
rti = JS('JSExtendableArray', '#.slice()', rti); // Make a copy.
JS('', '#.splice(0, 0, #)', rti, type); // Insert type at position 0.
type = rti;
- } else if (isDartFunctionType(t)) {
+ }
+ if (isDartFunctionType(t)) {
asgerf 2015/06/17 14:01:49 This matters when 'o' is a generic class with a ca
karlklose 2015/06/18 07:45:02 Is this change not affecting the SSA backend becau
asgerf 2015/06/18 09:20:38 For direct checks against a function type, yes. H
// Functions are treated specially and have their type information stored
// directly in the instance.
var targetSignatureFunction =

Powered by Google App Engine
This is Rietveld 408576698