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

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend_helpers.dart

Issue 2711783006: Remove HRuntimeType scheme for function types. (Closed)
Patch Set: fix mock library 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.js_backend.helpers; 5 library dart2js.js_backend.helpers;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/names.dart' show Identifiers, Uris; 8 import '../common/names.dart' show Identifiers, Uris;
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../core_types.dart' show CommonElements, ElementEnvironment; 10 import '../core_types.dart' show CommonElements, ElementEnvironment;
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 _findHelperFunction('runtimeTypeToString'); 605 _findHelperFunction('runtimeTypeToString');
606 606
607 FunctionEntity get assertIsSubtype => _findHelperFunction('assertIsSubtype'); 607 FunctionEntity get assertIsSubtype => _findHelperFunction('assertIsSubtype');
608 608
609 FunctionEntity get checkSubtype => _findHelperFunction('checkSubtype'); 609 FunctionEntity get checkSubtype => _findHelperFunction('checkSubtype');
610 610
611 FunctionEntity get assertSubtype => _findHelperFunction('assertSubtype'); 611 FunctionEntity get assertSubtype => _findHelperFunction('assertSubtype');
612 612
613 FunctionEntity get subtypeCast => _findHelperFunction('subtypeCast'); 613 FunctionEntity get subtypeCast => _findHelperFunction('subtypeCast');
614 614
615 FunctionEntity get functionTypeTest =>
616 _findHelperFunction('functionTypeTest');
617
615 FunctionEntity get checkSubtypeOfRuntimeType => 618 FunctionEntity get checkSubtypeOfRuntimeType =>
616 _findHelperFunction('checkSubtypeOfRuntimeType'); 619 _findHelperFunction('checkSubtypeOfRuntimeType');
617 620
618 FunctionEntity get assertSubtypeOfRuntimeType => 621 FunctionEntity get assertSubtypeOfRuntimeType =>
619 _findHelperFunction('assertSubtypeOfRuntimeType'); 622 _findHelperFunction('assertSubtypeOfRuntimeType');
620 623
621 FunctionEntity get subtypeOfRuntimeTypeCast => 624 FunctionEntity get subtypeOfRuntimeTypeCast =>
622 _findHelperFunction('subtypeOfRuntimeTypeCast'); 625 _findHelperFunction('subtypeOfRuntimeTypeCast');
623 626
624 FunctionEntity get checkDeferredIsLoaded => 627 FunctionEntity get checkDeferredIsLoaded =>
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 /// The class for patch annotations defined in dart:_js_helper. 803 /// The class for patch annotations defined in dart:_js_helper.
801 ClassEntity get patchAnnotationClass => 804 ClassEntity get patchAnnotationClass =>
802 _patchAnnotationClass ??= _findHelperClass('_Patch'); 805 _patchAnnotationClass ??= _findHelperClass('_Patch');
803 806
804 ClassEntity _nativeAnnotationClass; 807 ClassEntity _nativeAnnotationClass;
805 808
806 /// The class for native annotations defined in dart:_js_helper. 809 /// The class for native annotations defined in dart:_js_helper.
807 ClassEntity get nativeAnnotationClass => 810 ClassEntity get nativeAnnotationClass =>
808 _nativeAnnotationClass ??= _findHelperClass('Native'); 811 _nativeAnnotationClass ??= _findHelperClass('Native');
809 } 812 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698