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

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

Issue 2875313002: Access BackendUsage through ClosedWorld (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 '../closure.dart'; 5 import '../closure.dart';
6 import '../constants/constant_system.dart'; 6 import '../constants/constant_system.dart';
7 import '../common/codegen.dart' show CodegenRegistry; 7 import '../common/codegen.dart' show CodegenRegistry;
8 import '../common_elements.dart'; 8 import '../common_elements.dart';
9 import '../compiler.dart'; 9 import '../compiler.dart';
10 import '../deferred_load.dart'; 10 import '../deferred_load.dart';
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 GlobalTypeInferenceResults get globalInferenceResults => 69 GlobalTypeInferenceResults get globalInferenceResults =>
70 compiler.globalInference.results; 70 compiler.globalInference.results;
71 71
72 ClosureTask get closureToClassMapper => compiler.closureToClassMapper; 72 ClosureTask get closureToClassMapper => compiler.closureToClassMapper;
73 73
74 NativeData get nativeData => closedWorld.nativeData; 74 NativeData get nativeData => closedWorld.nativeData;
75 75
76 InterceptorData get interceptorData => closedWorld.interceptorData; 76 InterceptorData get interceptorData => closedWorld.interceptorData;
77 77
78 BackendUsage get backendUsage => backend.backendUsage; 78 BackendUsage get backendUsage => closedWorld.backendUsage;
79 79
80 Namer get namer => backend.namer; 80 Namer get namer => backend.namer;
81 81
82 RuntimeTypesNeed get rtiNeed => backend.rtiNeed; 82 RuntimeTypesNeed get rtiNeed => backend.rtiNeed;
83 83
84 JavaScriptConstantCompiler get constants => backend.constants; 84 JavaScriptConstantCompiler get constants => backend.constants;
85 85
86 ConstantSystem get constantSystem => constants.constantSystem; 86 ConstantSystem get constantSystem => constants.constantSystem;
87 87
88 RuntimeTypesEncoder get rtiEncoder => backend.rtiEncoder; 88 RuntimeTypesEncoder get rtiEncoder => backend.rtiEncoder;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 return mirrorsData.mustRetainMetadata; 295 return mirrorsData.mustRetainMetadata;
296 case 'USE_CONTENT_SECURITY_POLICY': 296 case 'USE_CONTENT_SECURITY_POLICY':
297 return options.useContentSecurityPolicy; 297 return options.useContentSecurityPolicy;
298 case 'IS_FULL_EMITTER': 298 case 'IS_FULL_EMITTER':
299 return !USE_LAZY_EMITTER && !options.useStartupEmitter; 299 return !USE_LAZY_EMITTER && !options.useStartupEmitter;
300 default: 300 default:
301 return null; 301 return null;
302 } 302 }
303 } 303 }
304 } 304 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution_strategy.dart ('k') | pkg/compiler/lib/src/universe/element_world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698