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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2818463002: Remove Compiler and JavaScriptBackend from interceptor_stub_generator. (Closed)
Patch Set: Created 3 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 | pkg/compiler/lib/src/js_emitter/full_emitter/interceptor_emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/full_emitter/interceptor_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698