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

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

Issue 1913033002: dart2js: Pass type information to constructor rather than add later. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: rebase Created 4 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/runtime_type_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart b/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart
index 16ada26bf3693b0fc94edc5630d3698a39a9d316..3974b9fd0c7d076030e9544af440d3b6ab3f5869 100644
--- a/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart
@@ -312,13 +312,13 @@ class RuntimeTypeGenerator {
backend.rti.getSubstitution(cls, element.typeDeclaration);
if (substitution != null) {
computeTypeVariable = js(
- r'#.apply(null, this.$builtinTypeInfo)',
+ r'#.apply(null, this.$ti)',
backend.rtiEncoder
.getSubstitutionCodeForVariable(substitution, index));
} else {
// TODO(ahe): These can be generated dynamically.
computeTypeVariable = js(
- r'this.$builtinTypeInfo && this.$builtinTypeInfo[#]',
+ r'this.$ti && this.$ti[#]',
js.number(index));
}
jsAst.Expression convertRtiToRuntimeType = backend.emitter

Powered by Google App Engine
This is Rietveld 408576698