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

Side by Side Diff: pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart

Issue 2998413002: dart2js kernel: update tryInlineNativeMethod to Entities (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/builder_kernel.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 library dart2js.kernel.backend_strategy; 5 library dart2js.kernel.backend_strategy;
6 6
7 import 'package:kernel/ast.dart' as ir; 7 import 'package:kernel/ast.dart' as ir;
8 8
9 import '../backend_strategy.dart'; 9 import '../backend_strategy.dart';
10 import '../common.dart'; 10 import '../common.dart';
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 work.element, 96 work.element,
97 work.element.enclosingClass, 97 work.element.enclosingClass,
98 _compiler, 98 _compiler,
99 _elementMap, 99 _elementMap,
100 new KernelToTypeInferenceMapImpl(closedWorld), 100 new KernelToTypeInferenceMapImpl(closedWorld),
101 localsMap, 101 localsMap,
102 closedWorld, 102 closedWorld,
103 _compiler.codegenWorldBuilder, 103 _compiler.codegenWorldBuilder,
104 work.registry, 104 work.registry,
105 _compiler.backendStrategy.closureDataLookup, 105 _compiler.backendStrategy.closureDataLookup,
106 _compiler.backend.emitter.nativeEmitter,
106 // TODO(redemption): Support these: 107 // TODO(redemption): Support these:
107 const SourceInformationBuilder(), 108 const SourceInformationBuilder(),
108 null); // Function node used as capture scope id. 109 null); // Function node used as capture scope id.
109 return builder.build(); 110 return builder.build();
110 } 111 }
111 } 112 }
112 113
113 class KernelToTypeInferenceMapImpl implements KernelToTypeInferenceMap { 114 class KernelToTypeInferenceMapImpl implements KernelToTypeInferenceMap {
114 final ClosedWorld _closedWorld; 115 final ClosedWorld _closedWorld;
115 116
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 }); 244 });
244 } 245 }
245 246
246 @override 247 @override
247 Iterable<TypedefEntity> sortTypedefs(Iterable<TypedefEntity> typedefs) { 248 Iterable<TypedefEntity> sortTypedefs(Iterable<TypedefEntity> typedefs) {
248 // TODO(redemption): Support this. 249 // TODO(redemption): Support this.
249 assert(typedefs.isEmpty); 250 assert(typedefs.isEmpty);
250 return typedefs; 251 return typedefs;
251 } 252 }
252 } 253 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/builder_kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698