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

Unified Diff: pkg/compiler/lib/src/inferrer/closure_tracer.dart

Issue 2467493003: Compute NativeBehavior for native methods and fields. (Closed)
Patch Set: Updated cf. comments Created 4 years, 1 month 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 | pkg/compiler/lib/src/inferrer/list_tracer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/closure_tracer.dart
diff --git a/pkg/compiler/lib/src/inferrer/closure_tracer.dart b/pkg/compiler/lib/src/inferrer/closure_tracer.dart
index bb406ca6c231d023bf2c246d0841f18541dd0025..a757a7b89f4e98ac28e9cfb7ce47b027b895e6a5 100644
--- a/pkg/compiler/lib/src/inferrer/closure_tracer.dart
+++ b/pkg/compiler/lib/src/inferrer/closure_tracer.dart
@@ -6,6 +6,7 @@ library compiler.src.inferrer.closure_tracer;
import '../common/names.dart' show Names;
import '../elements/elements.dart';
+import '../js_backend/backend_helpers.dart';
import '../types/types.dart' show TypeMask;
import '../universe/selector.dart' show Selector;
import 'debug.dart' as debug;
@@ -71,7 +72,7 @@ class ClosureTracerVisitor extends TracerVisitor<ApplyableTypeInformation> {
Element called = info.calledElement;
if (compiler.backend.isForeign(called)) {
String name = called.name;
- if (name == 'JS' || name == 'DART_CLOSURE_TO_JS') {
+ if (name == BackendHelpers.JS || name == 'DART_CLOSURE_TO_JS') {
bailout('Used in JS ${info.call}');
}
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/list_tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698