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

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: Disable debug print. 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..9e46bfebc62bd80a88822626994219eabd06fcf2 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.
@@ -67,4 +66,15 @@ class Glue {
return _backend.isInterceptedSelector(selector);
}
+ 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