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

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

Issue 2863073003: Access NativeData only 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.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) 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 CommonElements get commonElements => closedWorld.commonElements; 65 CommonElements get commonElements => closedWorld.commonElements;
66 66
67 CodeEmitterTask get emitter => backend.emitter; 67 CodeEmitterTask get emitter => backend.emitter;
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 => backend.nativeData; 74 NativeData get nativeData => closedWorld.nativeData;
75 75
76 InterceptorData get interceptorData => backend.interceptorData; 76 InterceptorData get interceptorData => backend.interceptorData;
77 77
78 BackendUsage get backendUsage => backend.backendUsage; 78 BackendUsage get backendUsage => backend.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;
(...skipping 210 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/ssa/codegen.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698