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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/glue.dart

Issue 806103003: cps-ir: Add support for intercepted calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Bailout on special selectors. Created 6 years 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: pkg/compiler/lib/src/js_backend/codegen/glue.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/glue.dart b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
index 8bc79b2203ba74664cde974c8975d11902cf257f..d15a458819ee88c8fc6aa7400cbdffaa95629223 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/glue.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
@@ -11,7 +11,6 @@ import '../../js/js.dart' as js;
import '../../constants/values.dart';
import '../../elements/elements.dart';
import '../../constants/expressions.dart';
-import 'task.dart' show CpsTypeEnvironment;
/// Encapsulates the dependencies of the function-compiler to the compiler,
/// backend and emitter.
@@ -63,8 +62,21 @@ class Glue {
return _namer.invocationName(selector);
}
- bool isIntercepted(Selector selector) {
+ FunctionElement get getInterceptorMethod => _backend.getInterceptorMethod;
+
+ void registerUseInterceptorInCodegen() {
+ _backend.registerUseInterceptor(_compiler.enqueuer.codegen);
+ }
+
+ bool isInterceptedSelector(Selector selector) {
return _backend.isInterceptedSelector(selector);
}
+ Set<ClassElement> getInterceptedClassesOn(Selector selector) {
+ return _backend.getInterceptedClassesOn(selector.name);
+ }
+
+ void registerSpecializedGetInterceptor(Set<ClassElement> classes) {
+ _backend.registerSpecializedGetInterceptor(classes);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698