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

Side by Side Diff: pkg/compiler/lib/src/ssa/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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 import 'dart:collection'; 5 import 'dart:collection';
6 6
7 import 'package:js_runtime/shared/embedded_names.dart'; 7 import 'package:js_runtime/shared/embedded_names.dart';
8 8
9 import '../closure.dart'; 9 import '../closure.dart';
10 import '../common.dart'; 10 import '../common.dart';
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 hasRtiInput = true; 1306 hasRtiInput = true;
1307 List<HInstruction> typeArguments = <HInstruction>[]; 1307 List<HInstruction> typeArguments = <HInstruction>[];
1308 classElement.typeVariables.forEach((TypeVariableType typeVariable) { 1308 classElement.typeVariables.forEach((TypeVariableType typeVariable) {
1309 HInstruction argument = localsHandler 1309 HInstruction argument = localsHandler
1310 .readLocal(localsHandler.getTypeVariableAsLocal(typeVariable)); 1310 .readLocal(localsHandler.getTypeVariableAsLocal(typeVariable));
1311 typeArguments.add(argument); 1311 typeArguments.add(argument);
1312 }); 1312 });
1313 1313
1314 HInstruction typeInfo = new HTypeInfoExpression( 1314 HInstruction typeInfo = new HTypeInfoExpression(
1315 TypeInfoExpressionKind.INSTANCE, 1315 TypeInfoExpressionKind.INSTANCE,
1316 classElement.thisType, 1316 classElement.rawType,
1317 typeArguments, 1317 typeArguments,
1318 commonMasks.dynamicType); 1318 commonMasks.dynamicType);
1319 add(typeInfo); 1319 add(typeInfo);
1320 constructorArguments.add(typeInfo); 1320 constructorArguments.add(typeInfo);
1321 } 1321 }
1322 1322
1323 newObject = new HCreate(classElement, constructorArguments, ssaType, 1323 newObject = new HCreate(classElement, constructorArguments, ssaType,
1324 instantiatedTypes: instantiatedTypes, hasRtiInput: hasRtiInput); 1324 instantiatedTypes: instantiatedTypes, hasRtiInput: hasRtiInput);
1325 if (function != null) { 1325 if (function != null) {
1326 // TODO(johnniwinther): Provide source information for creation through 1326 // TODO(johnniwinther): Provide source information for creation through
(...skipping 5428 matching lines...) Expand 10 before | Expand all | Expand 10 after
6755 this.oldReturnLocal, 6755 this.oldReturnLocal,
6756 this.oldReturnType, 6756 this.oldReturnType,
6757 this.oldResolvedAst, 6757 this.oldResolvedAst,
6758 this.oldStack, 6758 this.oldStack,
6759 this.oldLocalsHandler, 6759 this.oldLocalsHandler,
6760 this.inTryStatement, 6760 this.inTryStatement,
6761 this.allFunctionsCalledOnce, 6761 this.allFunctionsCalledOnce,
6762 this.oldElementInferenceResults) 6762 this.oldElementInferenceResults)
6763 : super(function); 6763 : super(function);
6764 } 6764 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698