| Index: pkg/compiler/lib/src/js_emitter/old_emitter/type_test_emitter.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/type_test_emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/type_test_emitter.dart
|
| index 6b4ff3d7762ca899b3d571070200c07a5b70eff7..e01100546b4e9cfef7702382ff912f7a78d73e7d 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/old_emitter/type_test_emitter.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/old_emitter/type_test_emitter.dart
|
| @@ -5,8 +5,6 @@
|
| part of dart2js.js_emitter;
|
|
|
| class TypeTestEmitter extends CodeEmitterHelper {
|
| - static const int MAX_FUNCTION_TYPE_PREDICATES = 10;
|
| -
|
| /**
|
| * Raw ClassElement symbols occuring in is-checks and type assertions. If the
|
| * program contains parameterized checks `x is Set<int>` and
|
| @@ -21,12 +19,6 @@ class TypeTestEmitter extends CodeEmitterHelper {
|
| */
|
| Set<FunctionType> checkedFunctionTypes;
|
|
|
| - Map<ClassElement, Set<FunctionType>> checkedGenericFunctionTypes =
|
| - new Map<ClassElement, Set<FunctionType>>();
|
| -
|
| - Set<FunctionType> checkedNonGenericFunctionTypes =
|
| - new Set<FunctionType>();
|
| -
|
| /// Initially contains all classes that need RTI. After
|
| /// [computeNeededClasses]
|
| /// this set only contains classes that are only used for RTI.
|
| @@ -270,13 +262,7 @@ class TypeTestEmitter extends CodeEmitterHelper {
|
| }
|
|
|
| void registerDynamicFunctionTypeCheck(FunctionType functionType) {
|
| - ClassElement classElement = Types.getClassContext(functionType);
|
| - if (classElement != null) {
|
| - checkedGenericFunctionTypes.putIfAbsent(classElement,
|
| - () => new Set<FunctionType>()).add(functionType);
|
| - } else {
|
| - checkedNonGenericFunctionTypes.add(functionType);
|
| - }
|
| + // Currently unused.
|
| }
|
|
|
| void emitRuntimeTypeSupport(CodeBuffer buffer, OutputUnit outputUnit) {
|
|
|