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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2615623002: Revert "Reduce use of Element in optimize.dart" (Closed)
Patch Set: Created 3 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
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/js_backend/backend_helpers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index e0cc2538821e599128969aafb10c9f75e528386a..004dd0217e3b5520191ea7535bf0d4f0f9fa59f5 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -793,7 +793,7 @@ class JavaScriptBackend extends Backend {
bool isNative(Entity element) => nativeData.isNative(element);
/// Returns the [NativeBehavior] for calling the native [method].
- native.NativeBehavior getNativeMethodBehavior(MethodElement method) {
+ native.NativeBehavior getNativeMethodBehavior(FunctionElement method) {
return nativeData.getNativeMethodBehavior(method);
}
@@ -3271,12 +3271,7 @@ class JavaScriptBackendClasses implements BackendClasses {
}
@override
- bool isNativeClass(ClassElement element) {
- return helpers.backend.isNative(element);
- }
-
- @override
- bool isNativeMember(MemberElement element) {
+ bool isNative(Element element) {
return helpers.backend.isNative(element);
}
}
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/js_backend/backend_helpers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698