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

Side by Side Diff: pkg/compiler/lib/src/ssa/builder_kernel.dart

Issue 2850933002: kernel backend impact - noSuchMethod helpers are passed a Map literal (Closed)
Patch Set: Created 3 years, 7 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 'package:kernel/ast.dart' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 6
7 import '../closure.dart'; 7 import '../closure.dart';
8 import '../common.dart'; 8 import '../common.dart';
9 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; 9 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem;
10 import '../common/names.dart'; 10 import '../common/names.dart';
(...skipping 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after
1917 if (constructorArgs.isEmpty) { 1917 if (constructorArgs.isEmpty) {
1918 constructor = astAdapter.mapLiteralConstructorEmpty; 1918 constructor = astAdapter.mapLiteralConstructorEmpty;
1919 } else { 1919 } else {
1920 constructor = astAdapter.mapLiteralConstructor; 1920 constructor = astAdapter.mapLiteralConstructor;
1921 HLiteralList argList = 1921 HLiteralList argList =
1922 new HLiteralList(constructorArgs, commonMasks.extendableArrayType); 1922 new HLiteralList(constructorArgs, commonMasks.extendableArrayType);
1923 add(argList); 1923 add(argList);
1924 inputs.add(argList); 1924 inputs.add(argList);
1925 } 1925 }
1926 1926
1927 assert(constructor.kind == ir.ProcedureKind.Factory); 1927 assert(constructor != null && constructor.kind == ir.ProcedureKind.Factory);
1928 1928
1929 ResolutionInterfaceType type = localsHandler 1929 ResolutionInterfaceType type = localsHandler
1930 .substInContext(astAdapter.getDartTypeOfMapLiteral(mapLiteral)); 1930 .substInContext(astAdapter.getDartTypeOfMapLiteral(mapLiteral));
1931 1931
1932 ir.Class cls = constructor.enclosingClass; 1932 ir.Class cls = constructor.enclosingClass;
1933 1933
1934 if (rtiNeed.classNeedsRti(astAdapter.getClass(cls))) { 1934 if (rtiNeed.classNeedsRti(astAdapter.getClass(cls))) {
1935 List<HInstruction> typeInputs = <HInstruction>[]; 1935 List<HInstruction> typeInputs = <HInstruction>[];
1936 type.typeArguments.forEach((ResolutionDartType argument) { 1936 type.typeArguments.forEach((ResolutionDartType argument) {
1937 typeInputs 1937 typeInputs
(...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after
3421 enterBlock.setBlockFlow( 3421 enterBlock.setBlockFlow(
3422 new HTryBlockInformation( 3422 new HTryBlockInformation(
3423 kernelBuilder.wrapStatementGraph(bodyGraph), 3423 kernelBuilder.wrapStatementGraph(bodyGraph),
3424 exception, 3424 exception,
3425 kernelBuilder.wrapStatementGraph(catchGraph), 3425 kernelBuilder.wrapStatementGraph(catchGraph),
3426 kernelBuilder.wrapStatementGraph(finallyGraph)), 3426 kernelBuilder.wrapStatementGraph(finallyGraph)),
3427 exitBlock); 3427 exitBlock);
3428 kernelBuilder.inTryStatement = previouslyInTryStatement; 3428 kernelBuilder.inTryStatement = previouslyInTryStatement;
3429 } 3429 }
3430 } 3430 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend_impact.dart ('k') | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698