| 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');
|
| }
|
|
|