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

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

Issue 1082463003: dart2js: Remove obsolete shortcut code in function-type checking. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7246aa49c9992fa294f47132e771dd4ba64242e3..8ffd6e0c609a2a43341876a9ba68ea4b07d76657 100644
--- a/sdk/lib/_internal/compiler/js_lib/js_rti.dart
+++ b/sdk/lib/_internal/compiler/js_lib/js_rti.dart
@@ -400,9 +400,6 @@ bool checkSubtypeOfRuntimeType(o, t) {
} else if (hasField(t, '${JS_FUNCTION_TYPE_TAG()}')) {
// Functions are treated specially and have their type information stored
// directly in the instance.
- var signatureName =
- '${JS_OPERATOR_IS_PREFIX()}_${getField(t, JS_FUNCTION_TYPE_TAG())}';
- if (hasField(o, signatureName)) return true;
var targetSignatureFunction = getField(o, '${JS_SIGNATURE_NAME()}');
if (targetSignatureFunction == null) return false;
type = invokeOn(targetSignatureFunction, o, null);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698