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

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

Issue 1312393002: dart2js cps: Use 'this' instead of receiver when possible. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Cleanup Created 5 years, 4 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
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 a68f06801740ca011c28db2f566aa54d8e444983..2029c09bcd0fe0116f20d9dfb8fe337fffdbfe2b 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/glue.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
@@ -54,6 +54,10 @@ class Glue {
_compiler.internalError(_compiler.currentElement, message);
}
+ bool isUsedAsMixin(ClassElement clazz) {
sra1 2015/08/26 15:04:43 nit: I'm not a fan of the non-word 'clazz'. Other
+ return classWorld.isUsedAsMixin(clazz);
+ }
+
ConstantValue getConstantValueForVariable(VariableElement variable) {
return _backend.constants.getConstantValueForVariable(variable);
}
@@ -114,6 +118,10 @@ class Glue {
return _backend.isInterceptedMethod(element);
}
+ bool isInterceptorClass(ClassElement element) {
+ return element.isSubclassOf(_backend.jsInterceptorClass);
+ }
+
Set<ClassElement> getInterceptedClassesOn(Selector selector) {
return _backend.getInterceptedClassesOn(selector.name);
}

Powered by Google App Engine
This is Rietveld 408576698