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

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

Issue 2681123004: Handle Native("...") annotations in KernelBehaviorBuilder. (Closed)
Patch Set: Created 3 years, 10 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/js_backend/backend.dart ('k') | pkg/compiler/lib/src/kernel/element_adapter.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_helpers.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend_helpers.dart b/pkg/compiler/lib/src/js_backend/backend_helpers.dart
index 5a086225bef51d4547c5e8ef93d827b2b5e1bc9b..47f6ee89d0f4bec95a34bb39579a7192f91703f4 100644
--- a/pkg/compiler/lib/src/js_backend/backend_helpers.dart
+++ b/pkg/compiler/lib/src/js_backend/backend_helpers.dart
@@ -42,12 +42,9 @@ class BackendHelpers {
final ElementEnvironment _env;
- // TODO(johnniwinther): Remove this.
- final JavaScriptBackend _backend;
-
final CommonElements commonElements;
- BackendHelpers(this._env, this._backend, this.commonElements);
+ BackendHelpers(this._env, this.commonElements);
ClassEntity _findInterceptorsClass(String name) =>
_findClass(interceptorsLibrary, name);
@@ -794,4 +791,16 @@ class BackendHelpers {
FunctionEntity get hashCodeForNativeObject =>
_findHelperFunction('hashCodeForNativeObject');
+
+ ClassEntity _patchAnnotationClass;
+
+ /// The class for patch annotations defined in dart:_js_helper.
+ ClassEntity get patchAnnotationClass =>
+ _patchAnnotationClass ??= _findHelperClass('_Patch');
+
+ ClassEntity _nativeAnnotationClass;
+
+ /// The class for native annotations defined in dart:_js_helper.
+ ClassEntity get nativeAnnotationClass =>
+ _nativeAnnotationClass ??= _findHelperClass('Native');
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/kernel/element_adapter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698