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

Unified Diff: pkg/compiler/lib/src/ssa/graph_builder.dart

Issue 2813603002: Less direct Compiler use in SSA (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | pkg/compiler/lib/src/ssa/ssa_branch_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/graph_builder.dart
diff --git a/pkg/compiler/lib/src/ssa/graph_builder.dart b/pkg/compiler/lib/src/ssa/graph_builder.dart
index b36ad89f96a8015e6166d9b8f5e3c0a91ea5c0a5..a5e58bd28c7529268b518af8999840dea0d45636 100644
--- a/pkg/compiler/lib/src/ssa/graph_builder.dart
+++ b/pkg/compiler/lib/src/ssa/graph_builder.dart
@@ -3,11 +3,14 @@
// BSD-style license that can be found in the LICENSE file.
import '../common/codegen.dart' show CodegenRegistry;
+import '../common_elements.dart';
import '../compiler.dart';
+import '../diagnostics/diagnostic_listener.dart';
import '../elements/elements.dart';
import '../elements/entities.dart' show Entity, Local;
import '../elements/resolution_types.dart';
import '../js_backend/js_backend.dart';
+import '../options.dart';
import '../resolution/tree_elements.dart';
import '../types/types.dart';
import '../world.dart' show ClosedWorld;
@@ -45,6 +48,12 @@ abstract class GraphBuilder {
CommonMasks get commonMasks => closedWorld.commonMasks;
+ DiagnosticReporter get reporter => backend.reporter;
+
+ CompilerOptions get options => compiler.options;
Emily Fortuna 2017/04/10 19:34:02 this works, but why not just pass CompilerOptions
Johnni Winther 2017/04/11 07:13:31 This is the plan. I just take small steps.
+
+ CommonElements get commonElements => closedWorld.commonElements;
+
GlobalTypeInferenceResults get globalInferenceResults =>
compiler.globalInference.results;
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | pkg/compiler/lib/src/ssa/ssa_branch_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698