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

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

Issue 1241303003: dart2js cps: Use CPS IR for patched functions and typed data. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | tests/co19/co19-dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 de9713720e85b4d546345cbf926d71549a39effc..14cc633582ddab1c59fb77b351d27f1dcd54554d 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/task.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart
@@ -62,17 +62,10 @@ class CpsFunctionCompiler implements FunctionCompiler {
JavaScriptBackend backend = compiler.backend;
return compiler.withCurrentElement(element, () {
try {
- ClassElement cls = element.enclosingClass;
- String name = element.name;
- String className = cls == null ? null : cls.name;
- LibraryElement library = element.library;
- String libraryName = library == null ? null : library.toString();
// TODO(karlklose): remove this fallback.
// Fallback for a few functions that we know require try-finally and
// switch.
- if (element.isNative ||
- element.isPatched ||
- libraryName == 'origin library(dart:typed_data)') {
+ if (element.isNative) {
compiler.log('Using SSA compiler for platform element $element');
return fallbackCompiler.compile(work);
}
« no previous file with comments | « no previous file | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698