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

Unified Diff: pkg/compiler/lib/src/ssa/graph_builder.dart

Issue 2616653003: Use elements/types.dart in codegen.dart (Closed)
Patch Set: Created 3 years, 11 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/ssa/graph_builder.dart
diff --git a/pkg/compiler/lib/src/ssa/graph_builder.dart b/pkg/compiler/lib/src/ssa/graph_builder.dart
index f266b55e3a08da71de6f73dc780265222dded010..23cd44769a860032bc750ba67da2f3b4e66e59b3 100644
--- a/pkg/compiler/lib/src/ssa/graph_builder.dart
+++ b/pkg/compiler/lib/src/ssa/graph_builder.dart
@@ -223,14 +223,14 @@ abstract class GraphBuilder {
}
HInstruction callSetRuntimeTypeInfoWithTypeArguments(
- DartType type, List<HInstruction> rtiInputs, HInstruction newObject) {
+ InterfaceType type, List<HInstruction> rtiInputs, HInstruction newObject) {
if (!backend.classNeedsRti(type.element)) {
return newObject;
}
HInstruction typeInfo = new HTypeInfoExpression(
TypeInfoExpressionKind.INSTANCE,
- (type.element as ClassElement).thisType,
+ type.asRaw(),
rtiInputs,
closedWorld.commonMasks.dynamicType);
add(typeInfo);

Powered by Google App Engine
This is Rietveld 408576698