Index: pkg/compiler/lib/src/js_backend/backend.dart |
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart |
index 5b523d9723fdc2245bb9a1a48cb7ecc44f4ad767..9c4535584708c876928ebe89450ef2646cf9d8a2 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend.dart |
@@ -4,8 +4,6 @@ |
library js_backend.backend; |
-import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
- |
import '../common.dart'; |
import '../common/backend_api.dart' |
show BackendClasses, ForeignResolver, NativeRegistry, ImpactTransformer; |
@@ -1154,24 +1152,6 @@ class JavaScriptBackend { |
} |
} |
- jsAst.Call generateIsJsIndexableCall( |
- jsAst.Expression use1, jsAst.Expression use2) { |
- String dispatchPropertyName = embeddedNames.DISPATCH_PROPERTY_NAME; |
- jsAst.Expression dispatchProperty = |
- emitter.generateEmbeddedGlobalAccess(dispatchPropertyName); |
- |
- // We pass the dispatch property record to the isJsIndexable |
- // helper rather than reading it inside the helper to increase the |
- // chance of making the dispatch record access monomorphic. |
- jsAst.PropertyAccess record = |
- new jsAst.PropertyAccess(use2, dispatchProperty); |
- |
- List<jsAst.Expression> arguments = <jsAst.Expression>[use1, record]; |
- MethodElement helper = commonElements.isJsIndexable; |
- jsAst.Expression helperExpression = emitter.staticFunctionAccess(helper); |
- return new jsAst.Call(helperExpression, arguments); |
- } |
- |
/// Called after the queue is closed. [onQueueEmpty] may be called multiple |
/// times, but [onQueueClosed] is only called once. |
void onQueueClosed() { |