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

Unified Diff: pkg/compiler/lib/src/js_emitter/type_test_registry.dart

Issue 3001823002: Revert "Various redemptions" (Closed)
Patch Set: Created 3 years, 4 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
Index: pkg/compiler/lib/src/js_emitter/type_test_registry.dart
diff --git a/pkg/compiler/lib/src/js_emitter/type_test_registry.dart b/pkg/compiler/lib/src/js_emitter/type_test_registry.dart
index 20ec76ae9113799719f16e3a243f3bbb3fe809fd..363164c0b613b67967de56d3d825c1cd30c90b62 100644
--- a/pkg/compiler/lib/src/js_emitter/type_test_registry.dart
+++ b/pkg/compiler/lib/src/js_emitter/type_test_registry.dart
@@ -6,7 +6,9 @@ library dart2js.js_emitter.type_test_registry;
import '../common.dart';
import '../common_elements.dart';
+import '../elements/elements.dart' show MethodElement;
import '../elements/entities.dart';
+import '../elements/types.dart' show DartType;
import '../elements/types.dart';
import '../js_backend/runtime_types.dart'
show
@@ -166,8 +168,9 @@ class TypeTestRegistry {
liveMembers.where((MemberEntity element) {
return canBeReflectedAsFunction(element) && canBeReified(element);
}).forEach((_function) {
- FunctionEntity function = _function;
- FunctionType type = _elementEnvironment.getFunctionType(function);
+ // TODO(redemption): Support entities.
+ MethodElement function = _function;
+ FunctionType type = function.type;
for (ClassEntity cls in _rtiChecks.getReferencedClasses(type)) {
while (cls != null) {
_rtiNeededClasses.add(cls);
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/program_builder/registry.dart ('k') | pkg/compiler/lib/src/js_model/closure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698