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

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend_impact.dart

Issue 1410313005: Move most codegen registrations into WorldImpact. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. Created 5 years, 1 month 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.js_helpers.impact; 5 library dart2js.js_helpers.impact;
6 6
7 import '../common/names.dart' show 7 import '../common/names.dart' show
8 Identifiers; 8 Identifiers;
9 import '../compiler.dart' show 9 import '../compiler.dart' show
10 Compiler; 10 Compiler;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 staticUses: [ 267 staticUses: [
268 helpers.checkSubtype, 268 helpers.checkSubtype,
269 // TODO(johnniwinther): Investigate why this is needed. 269 // TODO(johnniwinther): Investigate why this is needed.
270 helpers.setRuntimeTypeInfo, 270 helpers.setRuntimeTypeInfo,
271 helpers.getRuntimeTypeInfo], 271 helpers.getRuntimeTypeInfo],
272 instantiatedClasses: [ 272 instantiatedClasses: [
273 coreClasses.listClass], 273 coreClasses.listClass],
274 otherImpacts: [ 274 otherImpacts: [
275 getRuntimeTypeArgument]); 275 getRuntimeTypeArgument]);
276 276
277 BackendImpact get genericIsCheck => new BackendImpact(
278 instantiatedClasses: [
279 coreClasses.listClass]);
280
277 BackendImpact get genericCheckedModeTypeCheck => new BackendImpact( 281 BackendImpact get genericCheckedModeTypeCheck => new BackendImpact(
278 staticUses: [ 282 staticUses: [
279 helpers.assertSubtype]); 283 helpers.assertSubtype]);
280 284
281 BackendImpact get typeVariableTypeCheck => new BackendImpact( 285 BackendImpact get typeVariableTypeCheck => new BackendImpact(
282 staticUses: [ 286 staticUses: [
283 helpers.checkSubtypeOfRuntimeType]); 287 helpers.checkSubtypeOfRuntimeType]);
284 288
285 BackendImpact get typeVariableCheckedModeTypeCheck => new BackendImpact( 289 BackendImpact get typeVariableCheckedModeTypeCheck => new BackendImpact(
286 staticUses: [ 290 staticUses: [
287 helpers.assertSubtypeOfRuntimeType]); 291 helpers.assertSubtypeOfRuntimeType]);
288 292
289 BackendImpact get functionTypeCheck => new BackendImpact( 293 BackendImpact get functionTypeCheck => new BackendImpact(
290 staticUses: [ 294 staticUses: [
291 helpers.functionTypeTestMetaHelper]); 295 helpers.functionTypeTestMetaHelper]);
292 296
293 BackendImpact get nativeTypeCheck => new BackendImpact( 297 BackendImpact get nativeTypeCheck => new BackendImpact(
294 staticUses: [ 298 staticUses: [
295 // We will neeed to add the "$is" and "$as" properties on the 299 // We will neeed to add the "$is" and "$as" properties on the
296 // JavaScript object prototype, so we make sure 300 // JavaScript object prototype, so we make sure
297 // [:defineProperty:] is compiled. 301 // [:defineProperty:] is compiled.
298 helpers.defineProperty]); 302 helpers.defineProperty]);
299 303
300 BackendImpact get closure => new BackendImpact( 304 BackendImpact get closure => new BackendImpact(
301 instantiatedClasses: [ 305 instantiatedClasses: [
302 coreClasses.functionClass]); 306 coreClasses.functionClass]);
303 } 307 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698