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

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

Issue 2319863002: Revert "dart2js: Pass type information to constructor rather than add later." (Closed)
Patch Set: Created 4 years, 3 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/program_builder/program_builder.dart
diff --git a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
index a3dc79fd29e1a1dca8f17f06d43d05edd1c2dc07..efec052e37bd4eba4be5b2e4340d662a0334e658 100644
--- a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
+++ b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
@@ -499,14 +499,12 @@ class ProgramBuilder {
return new Class(
element, name, null, [], instanceFields, [], [], [], [], [], [], null,
isDirectlyInstantiated: true,
- hasRtiField: backend.classNeedsRtiField(element),
onlyForRti: false,
isNative: backend.isNative(element));
}
Class _buildClass(ClassElement element) {
bool onlyForRti = collector.classesOnlyNeededForRti.contains(element);
- bool hasRtiField = backend.classNeedsRtiField(element);
if (backend.isJsInterop(element)) {
// TODO(jacobr): check whether the class has any active static fields
// if it does not we can suppress it completely.
@@ -637,7 +635,6 @@ class ProgramBuilder {
isChecks,
typeTests.functionTypeIndex,
isDirectlyInstantiated: isInstantiated,
- hasRtiField: hasRtiField,
onlyForRti: onlyForRti);
} else {
result = new Class(
@@ -654,7 +651,6 @@ class ProgramBuilder {
isChecks,
typeTests.functionTypeIndex,
isDirectlyInstantiated: isInstantiated,
- hasRtiField: hasRtiField,
onlyForRti: onlyForRti,
isNative: backend.isNative(element));
}
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/model.dart ('k') | pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698