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

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

Issue 2954493002: Less inequivalence on Hello World! (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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' show ClosureDataLookup; 5 import '../closure.dart' show ClosureDataLookup;
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 RuntimeTypesEncoder get rtiEncoder => backend.rtiEncoder; 92 RuntimeTypesEncoder get rtiEncoder => backend.rtiEncoder;
93 93
94 FunctionInlineCache get inlineCache => backend.inlineCache; 94 FunctionInlineCache get inlineCache => backend.inlineCache;
95 95
96 MirrorsData get mirrorsData => backend.mirrorsData; 96 MirrorsData get mirrorsData => backend.mirrorsData;
97 97
98 JsInteropAnalysis get jsInteropAnalysis => backend.jsInteropAnalysis; 98 JsInteropAnalysis get jsInteropAnalysis => backend.jsInteropAnalysis;
99 99
100 DeferredLoadTask get deferredLoadTask => compiler.deferredLoadTask; 100 DeferredLoadTask get deferredLoadTask => compiler.deferredLoadTask;
101 101
102 DartTypes get types => compiler.types; 102 DartTypes get types => closedWorld.dartTypes;
103 103
104 /// Used to track the locals while building the graph. 104 /// Used to track the locals while building the graph.
105 LocalsHandler localsHandler; 105 LocalsHandler localsHandler;
106 106
107 /// A stack of instructions. 107 /// A stack of instructions.
108 /// 108 ///
109 /// We build the SSA graph by simulating a stack machine. 109 /// We build the SSA graph by simulating a stack machine.
110 List<HInstruction> stack = <HInstruction>[]; 110 List<HInstruction> stack = <HInstruction>[];
111 111
112 /// The count of nested loops we are currently building. 112 /// The count of nested loops we are currently building.
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 return mirrorsData.mustRetainMetadata; 298 return mirrorsData.mustRetainMetadata;
299 case 'USE_CONTENT_SECURITY_POLICY': 299 case 'USE_CONTENT_SECURITY_POLICY':
300 return options.useContentSecurityPolicy; 300 return options.useContentSecurityPolicy;
301 case 'IS_FULL_EMITTER': 301 case 'IS_FULL_EMITTER':
302 return !USE_LAZY_EMITTER && !options.useStartupEmitter; 302 return !USE_LAZY_EMITTER && !options.useStartupEmitter;
303 default: 303 default:
304 return null; 304 return null;
305 } 305 }
306 } 306 }
307 } 307 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution_strategy.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698