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

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

Issue 1237573002: Remove functions white-listed for use of try-finally and switch, add JS_SET_CURRENT_ISOLATE. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Change CURRENT_ISOLATE to STATIC_STATE. 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 | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/pkg.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 9c4658c21b4d5f002cab4b55fe401b9a07a8145b..6e861d86e9f8158a0db6cc530d0229be160fb64a 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/task.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart
@@ -72,19 +72,7 @@ class CpsFunctionCompiler implements FunctionCompiler {
// switch.
if (element.isNative ||
element.isPatched ||
- libraryName == 'origin library(dart:typed_data)' ||
- // Using switch or try-finally.
- library.isInternalLibrary && name == 'unwrapException' ||
- library.isPlatformLibrary && className == 'IterableBase' ||
- library.isInternalLibrary && className == 'Closure' ||
- libraryName == 'origin library(dart:collection)' &&
- name == 'mapToString' ||
- libraryName == 'library(dart:html)' && name == 'sanitizeNode' ||
- className == '_IsolateContext' ||
- className == 'IsolateNatives' ||
- className == '_Deserializer' ||
- name == '_rootRun' ||
- name == '_microtaskLoopEntry') {
+ libraryName == 'origin library(dart:typed_data)') {
compiler.log('Using SSA compiler for platform element $element');
return fallbackCompiler.compile(work);
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698