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

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

Issue 861093002: Support intercepted getters, setters and index operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/task.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/task.dart b/pkg/compiler/lib/src/js_backend/codegen/task.dart
index 0068a2178f857b7e4829f1240591b2674e179e70..76b04093990bfd9a4723830e20a99e1d8bbab780 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/task.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart
@@ -62,8 +62,10 @@ class CspFunctionCompiler implements FunctionCompiler {
js.Fun compile(CodegenWorkItem work) {
types = new TypeMaskSystem(compiler);
AstElement element = work.element;
+ JavaScriptBackend backend = compiler.backend;
return compiler.withCurrentElement(element, () {
- if (element.library.isPlatformLibrary) {
+ if (element.library.isPlatformLibrary ||
+ element.library == backend.interceptorsLibrary) {
compiler.log('Using SSA compiler for platform element $element');
return fallbackCompiler.compile(work);
}

Powered by Google App Engine
This is Rietveld 408576698