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

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

Issue 1761903002: dart2js cps: Keep interceptors in a separate field. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase Created 4 years, 10 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 46ef1a55726e54bff1e66cd449523faf111ae878..abbb894fd1fbc9291cb4d47cfc54589830604696 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/glue.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
@@ -299,4 +299,10 @@ class Glue {
bool mayGenerateInstanceofCheck(DartType type) {
return _backend.mayGenerateInstanceofCheck(type);
}
+
+ bool methodUsesReceiverArgument(FunctionElement function) {
+ assert(isInterceptedMethod(function));
+ ClassElement class_ = function.enclosingClass.declaration;
+ return isInterceptorClass(class_) || isUsedAsMixin(class_);
+ }
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698